5e7dbf87b38b503431ee98173358456a361ed93c
[platform/upstream/syncevolution.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for syncevolution 0.9.2+1.0alpha1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME='syncevolution'
728 PACKAGE_TARNAME='syncevolution'
729 PACKAGE_VERSION='0.9.2+1.0alpha1'
730 PACKAGE_STRING='syncevolution 0.9.2+1.0alpha1'
731 PACKAGE_BUGREPORT=''
732
733 # Factoring default headers for most tests.
734 ac_includes_default="\
735 #include <stdio.h>
736 #ifdef HAVE_SYS_TYPES_H
737 # include <sys/types.h>
738 #endif
739 #ifdef HAVE_SYS_STAT_H
740 # include <sys/stat.h>
741 #endif
742 #ifdef STDC_HEADERS
743 # include <stdlib.h>
744 # include <stddef.h>
745 #else
746 # ifdef HAVE_STDLIB_H
747 #  include <stdlib.h>
748 # endif
749 #endif
750 #ifdef HAVE_STRING_H
751 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #  include <memory.h>
753 # endif
754 # include <string.h>
755 #endif
756 #ifdef HAVE_STRINGS_H
757 # include <strings.h>
758 #endif
759 #ifdef HAVE_INTTYPES_H
760 # include <inttypes.h>
761 #endif
762 #ifdef HAVE_STDINT_H
763 # include <stdint.h>
764 #endif
765 #ifdef HAVE_UNISTD_H
766 # include <unistd.h>
767 #endif"
768
769 ac_subst_vars='SHELL
770 PATH_SEPARATOR
771 PACKAGE_NAME
772 PACKAGE_TARNAME
773 PACKAGE_VERSION
774 PACKAGE_STRING
775 PACKAGE_BUGREPORT
776 exec_prefix
777 prefix
778 program_transform_name
779 bindir
780 sbindir
781 libexecdir
782 datarootdir
783 datadir
784 sysconfdir
785 sharedstatedir
786 localstatedir
787 includedir
788 oldincludedir
789 docdir
790 infodir
791 htmldir
792 dvidir
793 pdfdir
794 psdir
795 libdir
796 localedir
797 mandir
798 DEFS
799 ECHO_C
800 ECHO_N
801 ECHO_T
802 LIBS
803 build_alias
804 host_alias
805 target_alias
806 INSTALL_PROGRAM
807 INSTALL_SCRIPT
808 INSTALL_DATA
809 am__isrc
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
822 AWK
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
828 MODIFY_SYNCCOMPARE
829 CC
830 CFLAGS
831 LDFLAGS
832 CPPFLAGS
833 ac_ct_CC
834 EXEEXT
835 OBJEXT
836 DEPDIR
837 am__include
838 am__quote
839 AMDEP_TRUE
840 AMDEP_FALSE
841 AMDEPBACKSLASH
842 CCDEPMODE
843 am__fastdepCC_TRUE
844 am__fastdepCC_FALSE
845 CPP
846 GREP
847 EGREP
848 CPPUNIT_CXXFLAGS
849 CPPUNIT_LDFLAGS
850 ENABLE_UNIT_TESTS_TRUE
851 ENABLE_UNIT_TESTS_FALSE
852 ENABLE_TESTING_TRUE
853 ENABLE_TESTING_FALSE
854 CORE_LDADD_DEP
855 PKG_CONFIG
856 LIBSOUP_CFLAGS
857 LIBSOUP_LIBS
858 LIBOPENOBEX_CFLAGS
859 LIBOPENOBEX_LIBS
860 BLUEZ_CFLAGS
861 BLUEZ_LIBS
862 ENABLE_OBEX_TRUE
863 ENABLE_OBEX_FALSE
864 ENABLE_BLUETOOTH_TRUE
865 ENABLE_BLUETOOTH_FALSE
866 TRANSPORT_LIBS
867 TRANSPORT_CFLAGS
868 XSLT
869 COND_GUI_TRUE
870 COND_GUI_FALSE
871 COND_DBUS_TRUE
872 COND_DBUS_FALSE
873 KEYRING_CFLAGS
874 KEYRING_LIBS
875 KEYRING_2_20_CFLAGS
876 KEYRING_2_20_LIBS
877 DBUS_GLIB_CFLAGS
878 DBUS_GLIB_LIBS
879 DBUS_BINDING_TOOL
880 GLIB_GENMARSHAL
881 DBUS_CFLAGS
882 DBUS_LIBS
883 LIBEXECDIR
884 DBUS_SERVICES_DIR
885 UNIQUE_CFLAGS
886 UNIQUE_LIBS
887 GUI_CFLAGS
888 GUI_LIBS
889 GTK_BUILDER_CONV
890 USE_NLS
891 INTLTOOL_UPDATE
892 INTLTOOL_MERGE
893 INTLTOOL_EXTRACT
894 INTLTOOL_DESKTOP_RULE
895 INTLTOOL_DIRECTORY_RULE
896 INTLTOOL_KEYS_RULE
897 INTLTOOL_PROP_RULE
898 INTLTOOL_OAF_RULE
899 INTLTOOL_PONG_RULE
900 INTLTOOL_SERVER_RULE
901 INTLTOOL_SHEET_RULE
902 INTLTOOL_SOUNDLIST_RULE
903 INTLTOOL_UI_RULE
904 INTLTOOL_XAM_RULE
905 INTLTOOL_KBD_RULE
906 INTLTOOL_XML_RULE
907 INTLTOOL_XML_NOMERGE_RULE
908 INTLTOOL_CAVES_RULE
909 INTLTOOL_SCHEMAS_RULE
910 INTLTOOL_THEME_RULE
911 INTLTOOL_SERVICE_RULE
912 INTLTOOL_POLICY_RULE
913 XGETTEXT
914 MSGMERGE
915 MSGFMT
916 GMSGFMT
917 INTLTOOL_PERL
918 ALL_LINGUAS
919 DATADIRNAME
920 MSGFMT_OPTS
921 CATALOGS
922 CATOBJEXT
923 GMOFILES
924 INSTOBJEXT
925 INTLLIBS
926 PO_IN_DATADIR_TRUE
927 PO_IN_DATADIR_FALSE
928 POFILES
929 POSUB
930 MKINSTALLDIRS
931 SYNCEVOLUTION_LOCALEDIR
932 GETTEXT_PACKAGE
933 GUI_PROGRAMS
934 GUI_DESKTOP_FILES
935 CXX
936 CXXFLAGS
937 ac_ct_CXX
938 CXXDEPMODE
939 am__fastdepCXX_TRUE
940 am__fastdepCXX_FALSE
941 BOOST_CPPFLAGS
942 BOOST_LDFLAGS
943 SYNTHESIS_SRC
944 SYNTHESIS_CFLAGS
945 SYNTHESIS_LIBS
946 SYNTHESIS
947 SYNTHESIS_SUBDIR
948 SYNTHESIS_DEP
949 SYNTHESIS_ENGINE
950 SYNTHESIS_LIB
951 SYNTHESISSRC
952 SYNCSOURCES
953 BACKEND_DEFINES
954 BACKEND_CPPFLAGS
955 ADDRESSBOOK_CFLAGS
956 ADDRESSBOOK_LIBS
957 EPACKAGE_CFLAGS
958 EPACKAGE_LIBS
959 ECAL_CFLAGS
960 ECAL_LIBS
961 EBOOK_CFLAGS
962 EBOOK_LIBS
963 ENABLE_ECAL_TRUE
964 ENABLE_ECAL_FALSE
965 FILE_CFLAGS
966 FILE_LIBS
967 SQLITE_CFLAGS
968 SQLITE_LIBS
969 GLIB_CFLAGS
970 GLIB_LIBS
971 build
972 build_cpu
973 build_vendor
974 build_os
975 host
976 host_cpu
977 host_vendor
978 host_os
979 SED
980 LN_S
981 ECHO
982 AR
983 RANLIB
984 DSYMUTIL
985 NMEDIT
986 CXXCPP
987 F77
988 FFLAGS
989 ac_ct_F77
990 LIBTOOL
991 ENABLE_MODULES_TRUE
992 ENABLE_MODULES_FALSE
993 SYNCEVOLUTION_LDADD
994 SYNCEVOLUTION_CXXFLAGS
995 ENABLE_EVOLUTION_COMPATIBILITY_TRUE
996 ENABLE_EVOLUTION_COMPATIBILITY_FALSE
997 backenddir
998 backendsearchdir
999 LIBOBJS
1000 LTLIBOBJS'
1001 ac_subst_files=''
1002       ac_precious_vars='build_alias
1003 host_alias
1004 target_alias
1005 CC
1006 CFLAGS
1007 LDFLAGS
1008 LIBS
1009 CPPFLAGS
1010 CPP
1011 PKG_CONFIG
1012 LIBSOUP_CFLAGS
1013 LIBSOUP_LIBS
1014 LIBOPENOBEX_CFLAGS
1015 LIBOPENOBEX_LIBS
1016 BLUEZ_CFLAGS
1017 BLUEZ_LIBS
1018 KEYRING_CFLAGS
1019 KEYRING_LIBS
1020 KEYRING_2_20_CFLAGS
1021 KEYRING_2_20_LIBS
1022 DBUS_GLIB_CFLAGS
1023 DBUS_GLIB_LIBS
1024 DBUS_CFLAGS
1025 DBUS_LIBS
1026 UNIQUE_CFLAGS
1027 UNIQUE_LIBS
1028 GUI_CFLAGS
1029 GUI_LIBS
1030 CXX
1031 CXXFLAGS
1032 CCC
1033 SYNTHESIS_CFLAGS
1034 SYNTHESIS_LIBS
1035 EPACKAGE_CFLAGS
1036 EPACKAGE_LIBS
1037 ECAL_CFLAGS
1038 ECAL_LIBS
1039 EBOOK_CFLAGS
1040 EBOOK_LIBS
1041 SQLITE_CFLAGS
1042 SQLITE_LIBS
1043 GLIB_CFLAGS
1044 GLIB_LIBS
1045 CXXCPP
1046 F77
1047 FFLAGS'
1048
1049
1050 # Initialize some variables set by options.
1051 ac_init_help=
1052 ac_init_version=false
1053 # The variables have the same names as the options, with
1054 # dashes changed to underlines.
1055 cache_file=/dev/null
1056 exec_prefix=NONE
1057 no_create=
1058 no_recursion=
1059 prefix=NONE
1060 program_prefix=NONE
1061 program_suffix=NONE
1062 program_transform_name=s,x,x,
1063 silent=
1064 site=
1065 srcdir=
1066 verbose=
1067 x_includes=NONE
1068 x_libraries=NONE
1069
1070 # Installation directory options.
1071 # These are left unexpanded so users can "make install exec_prefix=/foo"
1072 # and all the variables that are supposed to be based on exec_prefix
1073 # by default will actually change.
1074 # Use braces instead of parens because sh, perl, etc. also accept them.
1075 # (The list follows the same order as the GNU Coding Standards.)
1076 bindir='${exec_prefix}/bin'
1077 sbindir='${exec_prefix}/sbin'
1078 libexecdir='${exec_prefix}/libexec'
1079 datarootdir='${prefix}/share'
1080 datadir='${datarootdir}'
1081 sysconfdir='${prefix}/etc'
1082 sharedstatedir='${prefix}/com'
1083 localstatedir='${prefix}/var'
1084 includedir='${prefix}/include'
1085 oldincludedir='/usr/include'
1086 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1087 infodir='${datarootdir}/info'
1088 htmldir='${docdir}'
1089 dvidir='${docdir}'
1090 pdfdir='${docdir}'
1091 psdir='${docdir}'
1092 libdir='${exec_prefix}/lib'
1093 localedir='${datarootdir}/locale'
1094 mandir='${datarootdir}/man'
1095
1096 ac_prev=
1097 ac_dashdash=
1098 for ac_option
1099 do
1100   # If the previous option needs an argument, assign it.
1101   if test -n "$ac_prev"; then
1102     eval $ac_prev=\$ac_option
1103     ac_prev=
1104     continue
1105   fi
1106
1107   case $ac_option in
1108   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1109   *)    ac_optarg=yes ;;
1110   esac
1111
1112   # Accept the important Cygnus configure options, so we can diagnose typos.
1113
1114   case $ac_dashdash$ac_option in
1115   --)
1116     ac_dashdash=yes ;;
1117
1118   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1119     ac_prev=bindir ;;
1120   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1121     bindir=$ac_optarg ;;
1122
1123   -build | --build | --buil | --bui | --bu)
1124     ac_prev=build_alias ;;
1125   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1126     build_alias=$ac_optarg ;;
1127
1128   -cache-file | --cache-file | --cache-fil | --cache-fi \
1129   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1130     ac_prev=cache_file ;;
1131   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1132   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1133     cache_file=$ac_optarg ;;
1134
1135   --config-cache | -C)
1136     cache_file=config.cache ;;
1137
1138   -datadir | --datadir | --datadi | --datad)
1139     ac_prev=datadir ;;
1140   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1141     datadir=$ac_optarg ;;
1142
1143   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1144   | --dataroo | --dataro | --datar)
1145     ac_prev=datarootdir ;;
1146   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1147   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1148     datarootdir=$ac_optarg ;;
1149
1150   -disable-* | --disable-*)
1151     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1152     # Reject names that are not valid shell variable names.
1153     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1155    { (exit 1); exit 1; }; }
1156     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1157     eval enable_$ac_feature=no ;;
1158
1159   -docdir | --docdir | --docdi | --doc | --do)
1160     ac_prev=docdir ;;
1161   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162     docdir=$ac_optarg ;;
1163
1164   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165     ac_prev=dvidir ;;
1166   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167     dvidir=$ac_optarg ;;
1168
1169   -enable-* | --enable-*)
1170     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1174    { (exit 1); exit 1; }; }
1175     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1176     eval enable_$ac_feature=\$ac_optarg ;;
1177
1178   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1179   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1180   | --exec | --exe | --ex)
1181     ac_prev=exec_prefix ;;
1182   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1183   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1184   | --exec=* | --exe=* | --ex=*)
1185     exec_prefix=$ac_optarg ;;
1186
1187   -gas | --gas | --ga | --g)
1188     # Obsolete; use --with-gas.
1189     with_gas=yes ;;
1190
1191   -help | --help | --hel | --he | -h)
1192     ac_init_help=long ;;
1193   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1194     ac_init_help=recursive ;;
1195   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1196     ac_init_help=short ;;
1197
1198   -host | --host | --hos | --ho)
1199     ac_prev=host_alias ;;
1200   -host=* | --host=* | --hos=* | --ho=*)
1201     host_alias=$ac_optarg ;;
1202
1203   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1204     ac_prev=htmldir ;;
1205   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1206   | --ht=*)
1207     htmldir=$ac_optarg ;;
1208
1209   -includedir | --includedir | --includedi | --included | --include \
1210   | --includ | --inclu | --incl | --inc)
1211     ac_prev=includedir ;;
1212   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1213   | --includ=* | --inclu=* | --incl=* | --inc=*)
1214     includedir=$ac_optarg ;;
1215
1216   -infodir | --infodir | --infodi | --infod | --info | --inf)
1217     ac_prev=infodir ;;
1218   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1219     infodir=$ac_optarg ;;
1220
1221   -libdir | --libdir | --libdi | --libd)
1222     ac_prev=libdir ;;
1223   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1224     libdir=$ac_optarg ;;
1225
1226   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1227   | --libexe | --libex | --libe)
1228     ac_prev=libexecdir ;;
1229   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1230   | --libexe=* | --libex=* | --libe=*)
1231     libexecdir=$ac_optarg ;;
1232
1233   -localedir | --localedir | --localedi | --localed | --locale)
1234     ac_prev=localedir ;;
1235   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1236     localedir=$ac_optarg ;;
1237
1238   -localstatedir | --localstatedir | --localstatedi | --localstated \
1239   | --localstate | --localstat | --localsta | --localst | --locals)
1240     ac_prev=localstatedir ;;
1241   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1242   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1243     localstatedir=$ac_optarg ;;
1244
1245   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1246     ac_prev=mandir ;;
1247   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1248     mandir=$ac_optarg ;;
1249
1250   -nfp | --nfp | --nf)
1251     # Obsolete; use --without-fp.
1252     with_fp=no ;;
1253
1254   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1255   | --no-cr | --no-c | -n)
1256     no_create=yes ;;
1257
1258   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1259   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1260     no_recursion=yes ;;
1261
1262   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1263   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1264   | --oldin | --oldi | --old | --ol | --o)
1265     ac_prev=oldincludedir ;;
1266   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1267   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1268   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1269     oldincludedir=$ac_optarg ;;
1270
1271   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1272     ac_prev=prefix ;;
1273   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1274     prefix=$ac_optarg ;;
1275
1276   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1277   | --program-pre | --program-pr | --program-p)
1278     ac_prev=program_prefix ;;
1279   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1280   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1281     program_prefix=$ac_optarg ;;
1282
1283   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1284   | --program-suf | --program-su | --program-s)
1285     ac_prev=program_suffix ;;
1286   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1287   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1288     program_suffix=$ac_optarg ;;
1289
1290   -program-transform-name | --program-transform-name \
1291   | --program-transform-nam | --program-transform-na \
1292   | --program-transform-n | --program-transform- \
1293   | --program-transform | --program-transfor \
1294   | --program-transfo | --program-transf \
1295   | --program-trans | --program-tran \
1296   | --progr-tra | --program-tr | --program-t)
1297     ac_prev=program_transform_name ;;
1298   -program-transform-name=* | --program-transform-name=* \
1299   | --program-transform-nam=* | --program-transform-na=* \
1300   | --program-transform-n=* | --program-transform-=* \
1301   | --program-transform=* | --program-transfor=* \
1302   | --program-transfo=* | --program-transf=* \
1303   | --program-trans=* | --program-tran=* \
1304   | --progr-tra=* | --program-tr=* | --program-t=*)
1305     program_transform_name=$ac_optarg ;;
1306
1307   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1308     ac_prev=pdfdir ;;
1309   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1310     pdfdir=$ac_optarg ;;
1311
1312   -psdir | --psdir | --psdi | --psd | --ps)
1313     ac_prev=psdir ;;
1314   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1315     psdir=$ac_optarg ;;
1316
1317   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318   | -silent | --silent | --silen | --sile | --sil)
1319     silent=yes ;;
1320
1321   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1322     ac_prev=sbindir ;;
1323   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1324   | --sbi=* | --sb=*)
1325     sbindir=$ac_optarg ;;
1326
1327   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1328   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1329   | --sharedst | --shareds | --shared | --share | --shar \
1330   | --sha | --sh)
1331     ac_prev=sharedstatedir ;;
1332   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1333   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1334   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1335   | --sha=* | --sh=*)
1336     sharedstatedir=$ac_optarg ;;
1337
1338   -site | --site | --sit)
1339     ac_prev=site ;;
1340   -site=* | --site=* | --sit=*)
1341     site=$ac_optarg ;;
1342
1343   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1344     ac_prev=srcdir ;;
1345   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1346     srcdir=$ac_optarg ;;
1347
1348   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1349   | --syscon | --sysco | --sysc | --sys | --sy)
1350     ac_prev=sysconfdir ;;
1351   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1352   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1353     sysconfdir=$ac_optarg ;;
1354
1355   -target | --target | --targe | --targ | --tar | --ta | --t)
1356     ac_prev=target_alias ;;
1357   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1358     target_alias=$ac_optarg ;;
1359
1360   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1361     verbose=yes ;;
1362
1363   -version | --version | --versio | --versi | --vers | -V)
1364     ac_init_version=: ;;
1365
1366   -with-* | --with-*)
1367     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1368     # Reject names that are not valid shell variable names.
1369     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370       { echo "$as_me: error: invalid package name: $ac_package" >&2
1371    { (exit 1); exit 1; }; }
1372     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1373     eval with_$ac_package=\$ac_optarg ;;
1374
1375   -without-* | --without-*)
1376     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379       { echo "$as_me: error: invalid package name: $ac_package" >&2
1380    { (exit 1); exit 1; }; }
1381     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382     eval with_$ac_package=no ;;
1383
1384   --x)
1385     # Obsolete; use --with-x.
1386     with_x=yes ;;
1387
1388   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1389   | --x-incl | --x-inc | --x-in | --x-i)
1390     ac_prev=x_includes ;;
1391   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1392   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1393     x_includes=$ac_optarg ;;
1394
1395   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1396   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1397     ac_prev=x_libraries ;;
1398   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1399   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1400     x_libraries=$ac_optarg ;;
1401
1402   -*) { echo "$as_me: error: unrecognized option: $ac_option
1403 Try \`$0 --help' for more information." >&2
1404    { (exit 1); exit 1; }; }
1405     ;;
1406
1407   *=*)
1408     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1409     # Reject names that are not valid shell variable names.
1410     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1411       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1412    { (exit 1); exit 1; }; }
1413     eval $ac_envvar=\$ac_optarg
1414     export $ac_envvar ;;
1415
1416   *)
1417     # FIXME: should be removed in autoconf 3.0.
1418     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1419     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1420       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1421     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1422     ;;
1423
1424   esac
1425 done
1426
1427 if test -n "$ac_prev"; then
1428   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1429   { echo "$as_me: error: missing argument to $ac_option" >&2
1430    { (exit 1); exit 1; }; }
1431 fi
1432
1433 # Be sure to have absolute directory names.
1434 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435                 datadir sysconfdir sharedstatedir localstatedir includedir \
1436                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437                 libdir localedir mandir
1438 do
1439   eval ac_val=\$$ac_var
1440   case $ac_val in
1441     [\\/$]* | ?:[\\/]* )  continue;;
1442     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1443   esac
1444   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1445    { (exit 1); exit 1; }; }
1446 done
1447
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1451 build=$build_alias
1452 host=$host_alias
1453 target=$target_alias
1454
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x; then
1457   if test "x$build_alias" = x; then
1458     cross_compiling=maybe
1459     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1460     If a cross compiler is detected then cross compile mode will be used." >&2
1461   elif test "x$build_alias" != "x$host_alias"; then
1462     cross_compiling=yes
1463   fi
1464 fi
1465
1466 ac_tool_prefix=
1467 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1468
1469 test "$silent" = yes && exec 6>/dev/null
1470
1471
1472 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1473 ac_ls_di=`ls -di .` &&
1474 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1475   { echo "$as_me: error: Working directory cannot be determined" >&2
1476    { (exit 1); exit 1; }; }
1477 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478   { echo "$as_me: error: pwd does not report name of working directory" >&2
1479    { (exit 1); exit 1; }; }
1480
1481
1482 # Find the source files, if location was not specified.
1483 if test -z "$srcdir"; then
1484   ac_srcdir_defaulted=yes
1485   # Try the directory containing this script, then the parent directory.
1486   ac_confdir=`$as_dirname -- "$0" ||
1487 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488          X"$0" : 'X\(//\)[^/]' \| \
1489          X"$0" : 'X\(//\)$' \| \
1490          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1491 echo X"$0" |
1492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1493             s//\1/
1494             q
1495           }
1496           /^X\(\/\/\)[^/].*/{
1497             s//\1/
1498             q
1499           }
1500           /^X\(\/\/\)$/{
1501             s//\1/
1502             q
1503           }
1504           /^X\(\/\).*/{
1505             s//\1/
1506             q
1507           }
1508           s/.*/./; q'`
1509   srcdir=$ac_confdir
1510   if test ! -r "$srcdir/$ac_unique_file"; then
1511     srcdir=..
1512   fi
1513 else
1514   ac_srcdir_defaulted=no
1515 fi
1516 if test ! -r "$srcdir/$ac_unique_file"; then
1517   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1519    { (exit 1); exit 1; }; }
1520 fi
1521 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1522 ac_abs_confdir=`(
1523         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1524    { (exit 1); exit 1; }; }
1525         pwd)`
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1528   srcdir=.
1529 fi
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1533 case $srcdir in
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 esac
1536 for ac_var in $ac_precious_vars; do
1537   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538   eval ac_env_${ac_var}_value=\$${ac_var}
1539   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541 done
1542
1543 #
1544 # Report the --help message.
1545 #
1546 if test "$ac_init_help" = "long"; then
1547   # Omit some internal or obsolete options to make the list less imposing.
1548   # This message is too long to be a string in the A/UX 3.1 sh.
1549   cat <<_ACEOF
1550 \`configure' configures syncevolution 0.9.2+1.0alpha1 to adapt to many kinds of systems.
1551
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1553
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE.  See below for descriptions of some of the useful variables.
1556
1557 Defaults for the options are specified in brackets.
1558
1559 Configuration:
1560   -h, --help              display this help and exit
1561       --help=short        display options specific to this package
1562       --help=recursive    display the short help of all the included packages
1563   -V, --version           display version information and exit
1564   -q, --quiet, --silent   do not print \`checking...' messages
1565       --cache-file=FILE   cache test results in FILE [disabled]
1566   -C, --config-cache      alias for \`--cache-file=config.cache'
1567   -n, --no-create         do not create output files
1568       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1569
1570 Installation directories:
1571   --prefix=PREFIX         install architecture-independent files in PREFIX
1572                           [$ac_default_prefix]
1573   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1574                           [PREFIX]
1575
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1580
1581 For better control, use the options below.
1582
1583 Fine tuning of the installation directories:
1584   --bindir=DIR           user executables [EPREFIX/bin]
1585   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1586   --libexecdir=DIR       program executables [EPREFIX/libexec]
1587   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1588   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1589   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1590   --libdir=DIR           object code libraries [EPREFIX/lib]
1591   --includedir=DIR       C header files [PREFIX/include]
1592   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1593   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1594   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1595   --infodir=DIR          info documentation [DATAROOTDIR/info]
1596   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1597   --mandir=DIR           man documentation [DATAROOTDIR/man]
1598   --docdir=DIR           documentation root [DATAROOTDIR/doc/syncevolution]
1599   --htmldir=DIR          html documentation [DOCDIR]
1600   --dvidir=DIR           dvi documentation [DOCDIR]
1601   --pdfdir=DIR           pdf documentation [DOCDIR]
1602   --psdir=DIR            ps documentation [DOCDIR]
1603 _ACEOF
1604
1605   cat <<\_ACEOF
1606
1607 Program names:
1608   --program-prefix=PREFIX            prepend PREFIX to installed program names
1609   --program-suffix=SUFFIX            append SUFFIX to installed program names
1610   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1611
1612 System types:
1613   --build=BUILD     configure for building on BUILD [guessed]
1614   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1615 _ACEOF
1616 fi
1617
1618 if test -n "$ac_init_help"; then
1619   case $ac_init_help in
1620      short | recursive ) echo "Configuration of syncevolution 0.9.2+1.0alpha1:";;
1621    esac
1622   cat <<\_ACEOF
1623
1624 Optional Features:
1625   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1626   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1627   --enable-shared         build backends as dynamically loadable modules
1628   --enable-static         build backends also as static libraries
1629   --enable-unit-tests     enables tests embedded in the source code of the
1630                           library (changes content of executable)
1631   --enable-integration-tests
1632                           enables tests outside of the library (can be used
1633                           together with normal builds of the library)
1634   --enable-static-cxx     build executables which contain libstdc++ instead of
1635                           requiring suitable libstdc++.so to run
1636   --enable-evolution-compatibility
1637                           build executables which only call Evolution via
1638                           dlopen/dlsym: this avoids all hard dependencies on
1639                           EDS shared objects, but might lead to crashes when
1640                           their ABI changes
1641   --enable-developer-mode The dynamic loadble backend libraries is loaded from
1642                           current build directory instead of the standard
1643                           library path
1644   --enable-maemo          enables some hacks which work around problems with
1645                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1646   --disable-dependency-tracking  speeds up one-time build
1647   --enable-dependency-tracking   do not reject slow dependency extractors
1648   --enable-libcurl        enable libcurl as transport layer
1649   --enable-libsoup        enable libsoup as transport layer
1650   --disable-ssl-certificate-check
1651                           Disable SSL certificate checking in all server
1652                           *templates*. Users can still choose to enable or
1653                           disable it in their configuration. This is necessary
1654                           on platforms where the transport library has
1655                           problems verifying the server's certificate (libsoup
1656                           + Google,
1657                           http://bugzilla.moblin.org/show_bug.cgi?id=4551)
1658   --enable-gui=gui type   enables building the GTK+ UI that uses the
1659                           SyncEvolution DBus API. Options: gtk, moblin, all
1660                           (builds sync-ui-gtk and sync-ui-moblin) "gtk" is the
1661                           default for --enable-gui without type. No GUI is
1662                           built when --enable-gui is not used. --enable-gui
1663                           implies --enable-dbus.
1664   --enable-dbus-service   enables building the dbus service executable and the
1665                           wrapper library for it
1666   --disable-nls           do not use Native Language Support
1667 --enable-addressbook    enable access to Mac OS X address book (default off)
1668 --disable-ebook         disable access to Evolution addressbooks (must be
1669                           used to compile without it)
1670 --disable-ecal          disable access to Evolution calendars and tasks
1671                           (must be used to compile without it)
1672 --disable-file          disable file-based backend which stores items in
1673                           separate files in a fixed directory (default on)
1674 --enable-sqlite         enable access to PIM data stored in SQLite files
1675                           (experimental, default off)
1676   --enable-shared[=PKGS]  build shared libraries [default=yes]
1677   --enable-static[=PKGS]  build static libraries [default=yes]
1678   --enable-fast-install[=PKGS]
1679                           optimize for fast installation [default=yes]
1680   --disable-libtool-lock  avoid locking (might break parallel builds)
1681
1682 Optional Packages:
1683   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1684   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1685   --with-synthesis-src=<base directory|svn URL|git URL>
1686                           Specifies location of the Synthesis root directory.
1687                           Use this when the Synthesis library is to be
1688                           compiled as part of the SyncEvolution compilation.
1689                           In release versions of SyncEvolution, a copy of the
1690                           Synthesis code is bundled under 'src/synthesis' and
1691                           compiled unless something else is specified.
1692                           --with-synthesis-src can be given a path to sources
1693                           checked out already, a Subversion repository URL or
1694                           a git repository URL. When given a repository URL,
1695                           then the configure script will checkout the sources
1696                           into 'src/synthesis-workdir' or update that working
1697                           copy if the directory already exists. Default:
1698                           bundled source in src/synthesis (in released
1699                           SyncEvolution sources),  otherwise.
1700   --with-syncml-engines=client|server|both
1701                           Determines which kind of support for SyncML is
1702                           compiled and linked into SyncEvolution. Default is
1703                           both. Currently has no effect.
1704   --with-synthesis-username=<svn username>
1705                           username to use when checking out
1706                           --with-synthesis-src sources from Subversion,
1707                           default 'guest'
1708   --with-synthesis-revision=<git tag/branch/hash or Subversion revision>
1709                           Identifies which source revision to use from
1710                           --with-synthesis-src repository, empty string stands
1711                           for latest. Default for default --synthesis-src:
1712                           syncevolution-0.9
1713   --with-ca-certificates=<colon separated list of files>
1714                           Specifies location of one or more CA certificate
1715                           files. This sets the default value for the
1716                           SSLServerCertificates option. Default: empty when
1717                           using libcurl (because it has its own default), a
1718                           list of paths known to work for Debian and Red Hat
1719                           otherwise.
1720   --with-boost[=DIR]      use boost (default is yes) - it is possible to
1721                           specify the root directory for boost (optional)
1722   --with-boost-libdir=LIB_DIR
1723                           Force given directory for boost libraries. Note that
1724                           this will overwrite library path detection, so use
1725                           this parameter only if default library detection
1726                           fails and you know exactly where your boost
1727                           libraries are located.
1728   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1729   --with-pic              try to use only PIC/non-PIC objects [default=use
1730                           both]
1731   --with-tags[=TAGS]      include additional configurations [automatic]
1732
1733 Some influential environment variables:
1734   CC          C compiler command
1735   CFLAGS      C compiler flags
1736   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1737               nonstandard directory <lib dir>
1738   LIBS        libraries to pass to the linker, e.g. -l<library>
1739   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1740               you have headers in a nonstandard directory <include dir>
1741   CPP         C preprocessor
1742   PKG_CONFIG  path to pkg-config utility
1743   LIBSOUP_CFLAGS
1744               C compiler flags for LIBSOUP, overriding pkg-config
1745   LIBSOUP_LIBS
1746               linker flags for LIBSOUP, overriding pkg-config
1747   LIBOPENOBEX_CFLAGS
1748               C compiler flags for LIBOPENOBEX, overriding pkg-config
1749   LIBOPENOBEX_LIBS
1750               linker flags for LIBOPENOBEX, overriding pkg-config
1751   BLUEZ_CFLAGS
1752               C compiler flags for BLUEZ, overriding pkg-config
1753   BLUEZ_LIBS  linker flags for BLUEZ, overriding pkg-config
1754   KEYRING_CFLAGS
1755               C compiler flags for KEYRING, overriding pkg-config
1756   KEYRING_LIBS
1757               linker flags for KEYRING, overriding pkg-config
1758   KEYRING_2_20_CFLAGS
1759               C compiler flags for KEYRING_2_20, overriding pkg-config
1760   KEYRING_2_20_LIBS
1761               linker flags for KEYRING_2_20, overriding pkg-config
1762   DBUS_GLIB_CFLAGS
1763               C compiler flags for DBUS_GLIB, overriding pkg-config
1764   DBUS_GLIB_LIBS
1765               linker flags for DBUS_GLIB, overriding pkg-config
1766   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1767   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1768   UNIQUE_CFLAGS
1769               C compiler flags for UNIQUE, overriding pkg-config
1770   UNIQUE_LIBS linker flags for UNIQUE, overriding pkg-config
1771   GUI_CFLAGS  C compiler flags for GUI, overriding pkg-config
1772   GUI_LIBS    linker flags for GUI, overriding pkg-config
1773   CXX         C++ compiler command
1774   CXXFLAGS    C++ compiler flags
1775   SYNTHESIS_CFLAGS
1776               C compiler flags for SYNTHESIS, overriding pkg-config
1777   SYNTHESIS_LIBS
1778               linker flags for SYNTHESIS, overriding pkg-config
1779   EPACKAGE_CFLAGS
1780               C compiler flags for EPACKAGE, overriding pkg-config
1781   EPACKAGE_LIBS
1782               linker flags for EPACKAGE, overriding pkg-config
1783   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
1784   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
1785   EBOOK_CFLAGS
1786               C compiler flags for EBOOK, overriding pkg-config
1787   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
1788   SQLITE_CFLAGS
1789               C compiler flags for SQLITE, overriding pkg-config
1790   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1791   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1792   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1793   CXXCPP      C++ preprocessor
1794   F77         Fortran 77 compiler command
1795   FFLAGS      Fortran 77 compiler flags
1796
1797 Use these variables to override the choices made by `configure' or to help
1798 it to find libraries and programs with nonstandard names/locations.
1799
1800 _ACEOF
1801 ac_status=$?
1802 fi
1803
1804 if test "$ac_init_help" = "recursive"; then
1805   # If there are subdirs, report their specific --help.
1806   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1807     test -d "$ac_dir" || continue
1808     ac_builddir=.
1809
1810 case "$ac_dir" in
1811 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1812 *)
1813   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1814   # A ".." for each directory in $ac_dir_suffix.
1815   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1816   case $ac_top_builddir_sub in
1817   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1818   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1819   esac ;;
1820 esac
1821 ac_abs_top_builddir=$ac_pwd
1822 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1823 # for backward compatibility:
1824 ac_top_builddir=$ac_top_build_prefix
1825
1826 case $srcdir in
1827   .)  # We are building in place.
1828     ac_srcdir=.
1829     ac_top_srcdir=$ac_top_builddir_sub
1830     ac_abs_top_srcdir=$ac_pwd ;;
1831   [\\/]* | ?:[\\/]* )  # Absolute name.
1832     ac_srcdir=$srcdir$ac_dir_suffix;
1833     ac_top_srcdir=$srcdir
1834     ac_abs_top_srcdir=$srcdir ;;
1835   *) # Relative name.
1836     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1837     ac_top_srcdir=$ac_top_build_prefix$srcdir
1838     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1839 esac
1840 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1841
1842     cd "$ac_dir" || { ac_status=$?; continue; }
1843     # Check for guested configure.
1844     if test -f "$ac_srcdir/configure.gnu"; then
1845       echo &&
1846       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1847     elif test -f "$ac_srcdir/configure"; then
1848       echo &&
1849       $SHELL "$ac_srcdir/configure" --help=recursive
1850     else
1851       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1852     fi || ac_status=$?
1853     cd "$ac_pwd" || { ac_status=$?; break; }
1854   done
1855 fi
1856
1857 test -n "$ac_init_help" && exit $ac_status
1858 if $ac_init_version; then
1859   cat <<\_ACEOF
1860 syncevolution configure 0.9.2+1.0alpha1
1861 generated by GNU Autoconf 2.61
1862
1863 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1864 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1865 This configure script is free software; the Free Software Foundation
1866 gives unlimited permission to copy, distribute and modify it.
1867 _ACEOF
1868   exit
1869 fi
1870 cat >config.log <<_ACEOF
1871 This file contains any messages produced by compilers while
1872 running configure, to aid debugging if configure makes a mistake.
1873
1874 It was created by syncevolution $as_me 0.9.2+1.0alpha1, which was
1875 generated by GNU Autoconf 2.61.  Invocation command line was
1876
1877   $ $0 $@
1878
1879 _ACEOF
1880 exec 5>>config.log
1881 {
1882 cat <<_ASUNAME
1883 ## --------- ##
1884 ## Platform. ##
1885 ## --------- ##
1886
1887 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1892
1893 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1895
1896 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1897 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1898 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1900 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1901 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1902 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1903
1904 _ASUNAME
1905
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   echo "PATH: $as_dir"
1912 done
1913 IFS=$as_save_IFS
1914
1915 } >&5
1916
1917 cat >&5 <<_ACEOF
1918
1919
1920 ## ----------- ##
1921 ## Core tests. ##
1922 ## ----------- ##
1923
1924 _ACEOF
1925
1926
1927 # Keep a trace of the command line.
1928 # Strip out --no-create and --no-recursion so they do not pile up.
1929 # Strip out --silent because we don't want to record it for future runs.
1930 # Also quote any args containing shell meta-characters.
1931 # Make two passes to allow for proper duplicate-argument suppression.
1932 ac_configure_args=
1933 ac_configure_args0=
1934 ac_configure_args1=
1935 ac_must_keep_next=false
1936 for ac_pass in 1 2
1937 do
1938   for ac_arg
1939   do
1940     case $ac_arg in
1941     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943     | -silent | --silent | --silen | --sile | --sil)
1944       continue ;;
1945     *\'*)
1946       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947     esac
1948     case $ac_pass in
1949     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1950     2)
1951       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1952       if test $ac_must_keep_next = true; then
1953         ac_must_keep_next=false # Got value, back to normal.
1954       else
1955         case $ac_arg in
1956           *=* | --config-cache | -C | -disable-* | --disable-* \
1957           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959           | -with-* | --with-* | -without-* | --without-* | --x)
1960             case "$ac_configure_args0 " in
1961               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962             esac
1963             ;;
1964           -* ) ac_must_keep_next=true ;;
1965         esac
1966       fi
1967       ac_configure_args="$ac_configure_args '$ac_arg'"
1968       ;;
1969     esac
1970   done
1971 done
1972 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1973 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1974
1975 # When interrupted or exit'd, cleanup temporary files, and complete
1976 # config.log.  We remove comments because anyway the quotes in there
1977 # would cause problems or look ugly.
1978 # WARNING: Use '\'' to represent an apostrophe within the trap.
1979 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980 trap 'exit_status=$?
1981   # Save into config.log some information that might help in debugging.
1982   {
1983     echo
1984
1985     cat <<\_ASBOX
1986 ## ---------------- ##
1987 ## Cache variables. ##
1988 ## ---------------- ##
1989 _ASBOX
1990     echo
1991     # The following way of writing the cache mishandles newlines in values,
1992 (
1993   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1994     eval ac_val=\$$ac_var
1995     case $ac_val in #(
1996     *${as_nl}*)
1997       case $ac_var in #(
1998       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1999 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2000       esac
2001       case $ac_var in #(
2002       _ | IFS | as_nl) ;; #(
2003       *) $as_unset $ac_var ;;
2004       esac ;;
2005     esac
2006   done
2007   (set) 2>&1 |
2008     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2009     *${as_nl}ac_space=\ *)
2010       sed -n \
2011         "s/'\''/'\''\\\\'\'''\''/g;
2012           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2013       ;; #(
2014     *)
2015       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2016       ;;
2017     esac |
2018     sort
2019 )
2020     echo
2021
2022     cat <<\_ASBOX
2023 ## ----------------- ##
2024 ## Output variables. ##
2025 ## ----------------- ##
2026 _ASBOX
2027     echo
2028     for ac_var in $ac_subst_vars
2029     do
2030       eval ac_val=\$$ac_var
2031       case $ac_val in
2032       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033       esac
2034       echo "$ac_var='\''$ac_val'\''"
2035     done | sort
2036     echo
2037
2038     if test -n "$ac_subst_files"; then
2039       cat <<\_ASBOX
2040 ## ------------------- ##
2041 ## File substitutions. ##
2042 ## ------------------- ##
2043 _ASBOX
2044       echo
2045       for ac_var in $ac_subst_files
2046       do
2047         eval ac_val=\$$ac_var
2048         case $ac_val in
2049         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2050         esac
2051         echo "$ac_var='\''$ac_val'\''"
2052       done | sort
2053       echo
2054     fi
2055
2056     if test -s confdefs.h; then
2057       cat <<\_ASBOX
2058 ## ----------- ##
2059 ## confdefs.h. ##
2060 ## ----------- ##
2061 _ASBOX
2062       echo
2063       cat confdefs.h
2064       echo
2065     fi
2066     test "$ac_signal" != 0 &&
2067       echo "$as_me: caught signal $ac_signal"
2068     echo "$as_me: exit $exit_status"
2069   } >&5
2070   rm -f core *.core core.conftest.* &&
2071     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072     exit $exit_status
2073 ' 0
2074 for ac_signal in 1 2 13 15; do
2075   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2076 done
2077 ac_signal=0
2078
2079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2080 rm -f -r conftest* confdefs.h
2081
2082 # Predefined preprocessor variables.
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_NAME "$PACKAGE_NAME"
2086 _ACEOF
2087
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 _ACEOF
2092
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2096 _ACEOF
2097
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 _ACEOF
2102
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108
2109 # Let the site file select an alternate cache file if it wants to.
2110 # Prefer explicitly selected file to automatically selected ones.
2111 if test -n "$CONFIG_SITE"; then
2112   set x "$CONFIG_SITE"
2113 elif test "x$prefix" != xNONE; then
2114   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2115 else
2116   set x "$ac_default_prefix/share/config.site" \
2117         "$ac_default_prefix/etc/config.site"
2118 fi
2119 shift
2120 for ac_site_file
2121 do
2122   if test -r "$ac_site_file"; then
2123     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2124 echo "$as_me: loading site script $ac_site_file" >&6;}
2125     sed 's/^/| /' "$ac_site_file" >&5
2126     . "$ac_site_file"
2127   fi
2128 done
2129
2130 if test -r "$cache_file"; then
2131   # Some versions of bash will fail to source /dev/null (special
2132   # files actually), so we avoid doing that.
2133   if test -f "$cache_file"; then
2134     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2135 echo "$as_me: loading cache $cache_file" >&6;}
2136     case $cache_file in
2137       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138       *)                      . "./$cache_file";;
2139     esac
2140   fi
2141 else
2142   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2143 echo "$as_me: creating cache $cache_file" >&6;}
2144   >$cache_file
2145 fi
2146
2147 # Check that the precious variables saved in the cache have kept the same
2148 # value.
2149 ac_cache_corrupted=false
2150 for ac_var in $ac_precious_vars; do
2151   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2152   eval ac_new_set=\$ac_env_${ac_var}_set
2153   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2154   eval ac_new_val=\$ac_env_${ac_var}_value
2155   case $ac_old_set,$ac_new_set in
2156     set,)
2157       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2158 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2159       ac_cache_corrupted=: ;;
2160     ,set)
2161       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2162 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2163       ac_cache_corrupted=: ;;
2164     ,);;
2165     *)
2166       if test "x$ac_old_val" != "x$ac_new_val"; then
2167         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2168 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2169         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2170 echo "$as_me:   former value:  $ac_old_val" >&2;}
2171         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2172 echo "$as_me:   current value: $ac_new_val" >&2;}
2173         ac_cache_corrupted=:
2174       fi;;
2175   esac
2176   # Pass precious variables to config.status.
2177   if test "$ac_new_set" = set; then
2178     case $ac_new_val in
2179     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2180     *) ac_arg=$ac_var=$ac_new_val ;;
2181     esac
2182     case " $ac_configure_args " in
2183       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2184       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2185     esac
2186   fi
2187 done
2188 if $ac_cache_corrupted; then
2189   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2190 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2191   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2192 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2193    { (exit 1); exit 1; }; }
2194 fi
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220 ac_ext=c
2221 ac_cpp='$CPP $CPPFLAGS'
2222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2225
2226
2227 am__api_version='1.10'
2228
2229 ac_aux_dir=
2230 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2231   if test -f "$ac_dir/install-sh"; then
2232     ac_aux_dir=$ac_dir
2233     ac_install_sh="$ac_aux_dir/install-sh -c"
2234     break
2235   elif test -f "$ac_dir/install.sh"; then
2236     ac_aux_dir=$ac_dir
2237     ac_install_sh="$ac_aux_dir/install.sh -c"
2238     break
2239   elif test -f "$ac_dir/shtool"; then
2240     ac_aux_dir=$ac_dir
2241     ac_install_sh="$ac_aux_dir/shtool install -c"
2242     break
2243   fi
2244 done
2245 if test -z "$ac_aux_dir"; then
2246   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2247 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2248    { (exit 1); exit 1; }; }
2249 fi
2250
2251 # These three variables are undocumented and unsupported,
2252 # and are intended to be withdrawn in a future Autoconf release.
2253 # They can cause serious problems if a builder's source tree is in a directory
2254 # whose full name contains unusual characters.
2255 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2256 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2257 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2258
2259
2260 # Find a good install program.  We prefer a C program (faster),
2261 # so one script is as good as another.  But avoid the broken or
2262 # incompatible versions:
2263 # SysV /etc/install, /usr/sbin/install
2264 # SunOS /usr/etc/install
2265 # IRIX /sbin/install
2266 # AIX /bin/install
2267 # AmigaOS /C/install, which installs bootblocks on floppy discs
2268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271 # OS/2's system install, which has a completely different semantic
2272 # ./install, which can be erroneously created by make from ./install.sh.
2273 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2274 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2275 if test -z "$INSTALL"; then
2276 if test "${ac_cv_path_install+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   # Account for people who put trailing slashes in PATH elements.
2285 case $as_dir/ in
2286   ./ | .// | /cC/* | \
2287   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2288   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2289   /usr/ucb/* ) ;;
2290   *)
2291     # OSF1 and SCO ODT 3.0 have their own names for install.
2292     # Don't use installbsd from OSF since it installs stuff as root
2293     # by default.
2294     for ac_prog in ginstall scoinst install; do
2295       for ac_exec_ext in '' $ac_executable_extensions; do
2296         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2297           if test $ac_prog = install &&
2298             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2299             # AIX install.  It has an incompatible calling convention.
2300             :
2301           elif test $ac_prog = install &&
2302             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2303             # program-specific install script used by HP pwplus--don't use.
2304             :
2305           else
2306             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2307             break 3
2308           fi
2309         fi
2310       done
2311     done
2312     ;;
2313 esac
2314 done
2315 IFS=$as_save_IFS
2316
2317
2318 fi
2319   if test "${ac_cv_path_install+set}" = set; then
2320     INSTALL=$ac_cv_path_install
2321   else
2322     # As a last resort, use the slow shell script.  Don't cache a
2323     # value for INSTALL within a source directory, because that will
2324     # break other packages using the cache if that directory is
2325     # removed, or if the value is a relative name.
2326     INSTALL=$ac_install_sh
2327   fi
2328 fi
2329 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2330 echo "${ECHO_T}$INSTALL" >&6; }
2331
2332 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2333 # It thinks the first close brace ends the variable substitution.
2334 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335
2336 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337
2338 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339
2340 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2341 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2342 # Just in case
2343 sleep 1
2344 echo timestamp > conftest.file
2345 # Do `set' in a subshell so we don't clobber the current shell's
2346 # arguments.  Must try -L first in case configure is actually a
2347 # symlink; some systems play weird games with the mod time of symlinks
2348 # (eg FreeBSD returns the mod time of the symlink's containing
2349 # directory).
2350 if (
2351    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2352    if test "$*" = "X"; then
2353       # -L didn't work.
2354       set X `ls -t $srcdir/configure conftest.file`
2355    fi
2356    rm -f conftest.file
2357    if test "$*" != "X $srcdir/configure conftest.file" \
2358       && test "$*" != "X conftest.file $srcdir/configure"; then
2359
2360       # If neither matched, then we have a broken ls.  This can happen
2361       # if, for instance, CONFIG_SHELL is bash and it inherits a
2362       # broken ls alias from the environment.  This has actually
2363       # happened.  Such a system could not be considered "sane".
2364       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2365 alias in your environment" >&5
2366 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2367 alias in your environment" >&2;}
2368    { (exit 1); exit 1; }; }
2369    fi
2370
2371    test "$2" = conftest.file
2372    )
2373 then
2374    # Ok.
2375    :
2376 else
2377    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2378 Check your system clock" >&5
2379 echo "$as_me: error: newly created file is older than distributed files!
2380 Check your system clock" >&2;}
2381    { (exit 1); exit 1; }; }
2382 fi
2383 { echo "$as_me:$LINENO: result: yes" >&5
2384 echo "${ECHO_T}yes" >&6; }
2385 test "$program_prefix" != NONE &&
2386   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2387 # Use a double $ so make ignores it.
2388 test "$program_suffix" != NONE &&
2389   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2390 # Double any \ or $.  echo might interpret backslashes.
2391 # By default was `s,x,x', remove it if useless.
2392 cat <<\_ACEOF >conftest.sed
2393 s/[\\$]/&&/g;s/;s,x,x,$//
2394 _ACEOF
2395 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2396 rm -f conftest.sed
2397
2398 # expand $ac_aux_dir to an absolute path
2399 am_aux_dir=`cd $ac_aux_dir && pwd`
2400
2401 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2402 # Use eval to expand $SHELL
2403 if eval "$MISSING --run true"; then
2404   am_missing_run="$MISSING --run "
2405 else
2406   am_missing_run=
2407   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2408 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2409 fi
2410
2411 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2412 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2413 if test -z "$MKDIR_P"; then
2414   if test "${ac_cv_path_mkdir+set}" = set; then
2415   echo $ECHO_N "(cached) $ECHO_C" >&6
2416 else
2417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2419 do
2420   IFS=$as_save_IFS
2421   test -z "$as_dir" && as_dir=.
2422   for ac_prog in mkdir gmkdir; do
2423          for ac_exec_ext in '' $ac_executable_extensions; do
2424            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2425            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2426              'mkdir (GNU coreutils) '* | \
2427              'mkdir (coreutils) '* | \
2428              'mkdir (fileutils) '4.1*)
2429                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2430                break 3;;
2431            esac
2432          done
2433        done
2434 done
2435 IFS=$as_save_IFS
2436
2437 fi
2438
2439   if test "${ac_cv_path_mkdir+set}" = set; then
2440     MKDIR_P="$ac_cv_path_mkdir -p"
2441   else
2442     # As a last resort, use the slow shell script.  Don't cache a
2443     # value for MKDIR_P within a source directory, because that will
2444     # break other packages using the cache if that directory is
2445     # removed, or if the value is a relative name.
2446     test -d ./--version && rmdir ./--version
2447     MKDIR_P="$ac_install_sh -d"
2448   fi
2449 fi
2450 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2451 echo "${ECHO_T}$MKDIR_P" >&6; }
2452
2453 mkdir_p="$MKDIR_P"
2454 case $mkdir_p in
2455   [\\/$]* | ?:[\\/]*) ;;
2456   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2457 esac
2458
2459 for ac_prog in gawk mawk nawk awk
2460 do
2461   # Extract the first word of "$ac_prog", so it can be a program name with args.
2462 set dummy $ac_prog; ac_word=$2
2463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2465 if test "${ac_cv_prog_AWK+set}" = set; then
2466   echo $ECHO_N "(cached) $ECHO_C" >&6
2467 else
2468   if test -n "$AWK"; then
2469   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474   IFS=$as_save_IFS
2475   test -z "$as_dir" && as_dir=.
2476   for ac_exec_ext in '' $ac_executable_extensions; do
2477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478     ac_cv_prog_AWK="$ac_prog"
2479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480     break 2
2481   fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 AWK=$ac_cv_prog_AWK
2489 if test -n "$AWK"; then
2490   { echo "$as_me:$LINENO: result: $AWK" >&5
2491 echo "${ECHO_T}$AWK" >&6; }
2492 else
2493   { echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6; }
2495 fi
2496
2497
2498   test -n "$AWK" && break
2499 done
2500
2501 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2502 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2503 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2504 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2505   echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507   cat >conftest.make <<\_ACEOF
2508 SHELL = /bin/sh
2509 all:
2510         @echo '@@@%%%=$(MAKE)=@@@%%%'
2511 _ACEOF
2512 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2513 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2514   *@@@%%%=?*=@@@%%%*)
2515     eval ac_cv_prog_make_${ac_make}_set=yes;;
2516   *)
2517     eval ac_cv_prog_make_${ac_make}_set=no;;
2518 esac
2519 rm -f conftest.make
2520 fi
2521 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2522   { echo "$as_me:$LINENO: result: yes" >&5
2523 echo "${ECHO_T}yes" >&6; }
2524   SET_MAKE=
2525 else
2526   { echo "$as_me:$LINENO: result: no" >&5
2527 echo "${ECHO_T}no" >&6; }
2528   SET_MAKE="MAKE=${MAKE-make}"
2529 fi
2530
2531 rm -rf .tst 2>/dev/null
2532 mkdir .tst 2>/dev/null
2533 if test -d .tst; then
2534   am__leading_dot=.
2535 else
2536   am__leading_dot=_
2537 fi
2538 rmdir .tst 2>/dev/null
2539
2540 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2541   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2542   # is not polluted with repeated "-I."
2543   am__isrc=' -I$(srcdir)'
2544   # test to see if srcdir already configured
2545   if test -f $srcdir/config.status; then
2546     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2547 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2548    { (exit 1); exit 1; }; }
2549   fi
2550 fi
2551
2552 # test whether we have cygpath
2553 if test -z "$CYGPATH_W"; then
2554   if (cygpath --version) >/dev/null 2>/dev/null; then
2555     CYGPATH_W='cygpath -w'
2556   else
2557     CYGPATH_W=echo
2558   fi
2559 fi
2560
2561
2562 # Define the identity of the package.
2563  PACKAGE='syncevolution'
2564  VERSION='0.9.2+1.0alpha1'
2565
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE "$PACKAGE"
2569 _ACEOF
2570
2571
2572 cat >>confdefs.h <<_ACEOF
2573 #define VERSION "$VERSION"
2574 _ACEOF
2575
2576 # Some tools Automake needs.
2577
2578 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2579
2580
2581 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2582
2583
2584 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2585
2586
2587 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2588
2589
2590 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2591
2592 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2593
2594 # Installed binaries are usually stripped using `strip' when the user
2595 # run `make install-strip'.  However `strip' might not be the right
2596 # tool to use in cross-compilation environments, therefore Automake
2597 # will honor the `STRIP' environment variable to overrule this program.
2598 if test "$cross_compiling" != no; then
2599   if test -n "$ac_tool_prefix"; then
2600   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2601 set dummy ${ac_tool_prefix}strip; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_STRIP+set}" = set; then
2605   echo $ECHO_N "(cached) $ECHO_C" >&6
2606 else
2607   if test -n "$STRIP"; then
2608   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615   for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 STRIP=$ac_cv_prog_STRIP
2628 if test -n "$STRIP"; then
2629   { echo "$as_me:$LINENO: result: $STRIP" >&5
2630 echo "${ECHO_T}$STRIP" >&6; }
2631 else
2632   { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2634 fi
2635
2636
2637 fi
2638 if test -z "$ac_cv_prog_STRIP"; then
2639   ac_ct_STRIP=$STRIP
2640   # Extract the first word of "strip", so it can be a program name with args.
2641 set dummy strip; ac_word=$2
2642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2644 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2645   echo $ECHO_N "(cached) $ECHO_C" >&6
2646 else
2647   if test -n "$ac_ct_STRIP"; then
2648   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_ac_ct_STRIP="strip"
2658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2668 if test -n "$ac_ct_STRIP"; then
2669   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2670 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2671 else
2672   { echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6; }
2674 fi
2675
2676   if test "x$ac_ct_STRIP" = x; then
2677     STRIP=":"
2678   else
2679     case $cross_compiling:$ac_tool_warned in
2680 yes:)
2681 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet.  If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&5
2684 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2685 whose name does not start with the host triplet.  If you think this
2686 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2687 ac_tool_warned=yes ;;
2688 esac
2689     STRIP=$ac_ct_STRIP
2690   fi
2691 else
2692   STRIP="$ac_cv_prog_STRIP"
2693 fi
2694
2695 fi
2696 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2697
2698 # We need awk for the "check" target.  The system "awk" is bad on
2699 # some platforms.
2700 # Always define AMTAR for backward compatibility.
2701
2702 AMTAR=${AMTAR-"${am_missing_run}tar"}
2703
2704
2705 { echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2706 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2707 # Loop over all known methods to create a tar archive until one works.
2708 _am_tools='gnutar plaintar pax cpio none'
2709 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2710 # Do not fold the above two line into one, because Tru64 sh and
2711 # Solaris sh will not grok spaces in the rhs of `-'.
2712 for _am_tool in $_am_tools
2713 do
2714   case $_am_tool in
2715   gnutar)
2716     for _am_tar in tar gnutar gtar;
2717     do
2718       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2719    ($_am_tar --version) >&5 2>&5
2720    ac_status=$?
2721    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722    (exit $ac_status); } && break
2723     done
2724     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2725     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2726     am__untar="$_am_tar -xf -"
2727     ;;
2728   plaintar)
2729     # Must skip GNU tar: if it does not support --format= it doesn't create
2730     # ustar tarball either.
2731     (tar --version) >/dev/null 2>&1 && continue
2732     am__tar='tar chf - "$$tardir"'
2733     am__tar_='tar chf - "$tardir"'
2734     am__untar='tar xf -'
2735     ;;
2736   pax)
2737     am__tar='pax -L -x ustar -w "$$tardir"'
2738     am__tar_='pax -L -x ustar -w "$tardir"'
2739     am__untar='pax -r'
2740     ;;
2741   cpio)
2742     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2743     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2744     am__untar='cpio -i -H ustar -d'
2745     ;;
2746   none)
2747     am__tar=false
2748     am__tar_=false
2749     am__untar=false
2750     ;;
2751   esac
2752
2753   # If the value was cached, stop now.  We just wanted to have am__tar
2754   # and am__untar set.
2755   test -n "${am_cv_prog_tar_ustar}" && break
2756
2757   # tar/untar a dummy directory, and stop if the command works
2758   rm -rf conftest.dir
2759   mkdir conftest.dir
2760   echo GrepMe > conftest.dir/file
2761   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2762    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2763    ac_status=$?
2764    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765    (exit $ac_status); }
2766   rm -rf conftest.dir
2767   if test -s conftest.tar; then
2768     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2769    ($am__untar <conftest.tar) >&5 2>&5
2770    ac_status=$?
2771    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772    (exit $ac_status); }
2773     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2774   fi
2775 done
2776 rm -rf conftest.dir
2777
2778 if test "${am_cv_prog_tar_ustar+set}" = set; then
2779   echo $ECHO_N "(cached) $ECHO_C" >&6
2780 else
2781   am_cv_prog_tar_ustar=$_am_tool
2782 fi
2783
2784 { echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2785 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2786
2787
2788
2789
2790
2791
2792
2793
2794 ac_config_headers="$ac_config_headers config.h"
2795
2796
2797
2798
2799 DEVICE_TYPE=workstation
2800
2801
2802 # Check whether --with-synthesis-src was given.
2803 if test "${with_synthesis_src+set}" = set; then
2804   withval=$with_synthesis_src; SYNTHESISSRC="$withval"
2805              test "$SYNTHESISSRC" != "yes" || { { echo "$as_me:$LINENO: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&5
2806 echo "$as_me: error: --with-synthesis-src requires a parameter (base directory, svn URL or git URL)" >&2;}
2807    { (exit 1); exit 1; }; }
2808 else
2809   SYNTHESISSRC="$SYNTHESISSRC_DEF"; REVISION="syncevolution-0.9"
2810 fi
2811
2812
2813
2814 # Check whether --with-syncml-engines was given.
2815 if test "${with_syncml_engines+set}" = set; then
2816   withval=$with_syncml_engines; SYNCML_ENGINES="$withval"
2817 else
2818   SYNCML_ENGINES=both
2819 fi
2820
2821
2822 case $SYNCML_ENGINES in both|client)
2823 cat >>confdefs.h <<\_ACEOF
2824 #define ENABLE_SYNCML_CLIENT 1
2825 _ACEOF
2826 ;; esac
2827 case $SYNCML_ENGINES in both|server)
2828 cat >>confdefs.h <<\_ACEOF
2829 #define ENABLE_SYNCML_SERVER 1
2830 _ACEOF
2831 ;; esac
2832 case $SYNCML_ENGINES in both|server|client) true;; *) { { echo "$as_me:$LINENO: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&5
2833 echo "$as_me: error: Invalid value for --with-syncml-engines: $SYNCML_ENGINES" >&2;}
2834    { (exit 1); exit 1; }; };; esac
2835
2836
2837 # Check whether --with-synthesis-username was given.
2838 if test "${with_synthesis_username+set}" = set; then
2839   withval=$with_synthesis_username; USERNAME="$withval"
2840 else
2841   USERNAME="guest"
2842 fi
2843
2844
2845
2846 # Check whether --with-synthesis-revision was given.
2847 if test "${with_synthesis_revision+set}" = set; then
2848   withval=$with_synthesis_revision; REVISION="$withval"
2849 fi
2850
2851
2852 # Check whether --enable-shared was given.
2853 if test "${enable_shared+set}" = set; then
2854   enableval=$enable_shared; enable_shared="$enableval"
2855 else
2856   enable_shared="no"
2857 fi
2858
2859
2860 # Check whether --enable-static was given.
2861 if test "${enable_static+set}" = set; then
2862   enableval=$enable_static; enable_static="$enableval"
2863 else
2864   enable_static="no"
2865 fi
2866
2867
2868 # Check whether --enable-unit-tests was given.
2869 if test "${enable_unit_tests+set}" = set; then
2870   enableval=$enable_unit_tests; enable_unit_tests="$enableval"
2871 else
2872   enable_unit_tests="no"
2873 fi
2874
2875 # Check whether --enable-integration-tests was given.
2876 if test "${enable_integration_tests+set}" = set; then
2877   enableval=$enable_integration_tests; enable_integration_tests="$enableval"
2878 else
2879   enable_integration_tests="no"
2880 fi
2881
2882
2883 # Check whether --enable-static-cxx was given.
2884 if test "${enable_static_cxx+set}" = set; then
2885   enableval=$enable_static_cxx; enable_static_cxx="$enableval"
2886 else
2887   enable_static_cxx="no"
2888 fi
2889
2890
2891 # Check whether --enable-evolution-compatibility was given.
2892 if test "${enable_evolution_compatibility+set}" = set; then
2893   enableval=$enable_evolution_compatibility; enable_evolution_compatibility="$enableval"
2894 else
2895   enable_evolution_compatibility="no"
2896 fi
2897
2898
2899 # Check whether --enable-developer-mode was given.
2900 if test "${enable_developer_mode+set}" = set; then
2901   enableval=$enable_developer_mode; enable_developer_mode="$enableval"
2902 else
2903   enable_developer_mode="no"
2904 fi
2905
2906
2907 # Maemo hacks:
2908 # - set the (non-standard!) DBUS_DEFAULT_TIMEOUT
2909 # - wrap e_book_from_string() to fix invalid parameter
2910 # - don't use UTF-8 encoding in Perl script
2911 # Check whether --enable-maemo was given.
2912 if test "${enable_maemo+set}" = set; then
2913   enableval=$enable_maemo;
2914 cat >>confdefs.h <<\_ACEOF
2915 #define ENABLE_MAEMO 1
2916 _ACEOF
2917
2918                DEVICE_TYPE=Maemo
2919                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
2920 fi
2921
2922
2923
2924 DEPDIR="${am__leading_dot}deps"
2925
2926 ac_config_commands="$ac_config_commands depfiles"
2927
2928
2929 am_make=${MAKE-make}
2930 cat > confinc << 'END'
2931 am__doit:
2932         @echo done
2933 .PHONY: am__doit
2934 END
2935 # If we don't find an include directive, just comment out the code.
2936 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2937 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2938 am__include="#"
2939 am__quote=
2940 _am_result=none
2941 # First try GNU make style include.
2942 echo "include confinc" > confmf
2943 # We grep out `Entering directory' and `Leaving directory'
2944 # messages which can occur if `w' ends up in MAKEFLAGS.
2945 # In particular we don't look at `^make:' because GNU make might
2946 # be invoked under some other name (usually "gmake"), in which
2947 # case it prints its new name instead of `make'.
2948 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2949    am__include=include
2950    am__quote=
2951    _am_result=GNU
2952 fi
2953 # Now try BSD make style include.
2954 if test "$am__include" = "#"; then
2955    echo '.include "confinc"' > confmf
2956    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2957       am__include=.include
2958       am__quote="\""
2959       _am_result=BSD
2960    fi
2961 fi
2962
2963
2964 { echo "$as_me:$LINENO: result: $_am_result" >&5
2965 echo "${ECHO_T}$_am_result" >&6; }
2966 rm -f confinc confmf
2967
2968 # Check whether --enable-dependency-tracking was given.
2969 if test "${enable_dependency_tracking+set}" = set; then
2970   enableval=$enable_dependency_tracking;
2971 fi
2972
2973 if test "x$enable_dependency_tracking" != xno; then
2974   am_depcomp="$ac_aux_dir/depcomp"
2975   AMDEPBACKSLASH='\'
2976 fi
2977  if test "x$enable_dependency_tracking" != xno; then
2978   AMDEP_TRUE=
2979   AMDEP_FALSE='#'
2980 else
2981   AMDEP_TRUE='#'
2982   AMDEP_FALSE=
2983 fi
2984
2985
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 if test -n "$ac_tool_prefix"; then
2992   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2996 if test "${ac_cv_prog_CC+set}" = set; then
2997   echo $ECHO_N "(cached) $ECHO_C" >&6
2998 else
2999   if test -n "$CC"; then
3000   ac_cv_prog_CC="$CC" # Let the user override the test.
3001 else
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 for as_dir in $PATH
3004 do
3005   IFS=$as_save_IFS
3006   test -z "$as_dir" && as_dir=.
3007   for ac_exec_ext in '' $ac_executable_extensions; do
3008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011     break 2
3012   fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi
3018 fi
3019 CC=$ac_cv_prog_CC
3020 if test -n "$CC"; then
3021   { echo "$as_me:$LINENO: result: $CC" >&5
3022 echo "${ECHO_T}$CC" >&6; }
3023 else
3024   { echo "$as_me:$LINENO: result: no" >&5
3025 echo "${ECHO_T}no" >&6; }
3026 fi
3027
3028
3029 fi
3030 if test -z "$ac_cv_prog_CC"; then
3031   ac_ct_CC=$CC
3032   # Extract the first word of "gcc", so it can be a program name with args.
3033 set dummy gcc; ac_word=$2
3034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3036 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3037   echo $ECHO_N "(cached) $ECHO_C" >&6
3038 else
3039   if test -n "$ac_ct_CC"; then
3040   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045   IFS=$as_save_IFS
3046   test -z "$as_dir" && as_dir=.
3047   for ac_exec_ext in '' $ac_executable_extensions; do
3048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049     ac_cv_prog_ac_ct_CC="gcc"
3050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051     break 2
3052   fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060 if test -n "$ac_ct_CC"; then
3061   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3062 echo "${ECHO_T}$ac_ct_CC" >&6; }
3063 else
3064   { echo "$as_me:$LINENO: result: no" >&5
3065 echo "${ECHO_T}no" >&6; }
3066 fi
3067
3068   if test "x$ac_ct_CC" = x; then
3069     CC=""
3070   else
3071     case $cross_compiling:$ac_tool_warned in
3072 yes:)
3073 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3074 whose name does not start with the host triplet.  If you think this
3075 configuration is useful to you, please write to autoconf@gnu.org." >&5
3076 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3077 whose name does not start with the host triplet.  If you think this
3078 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3079 ac_tool_warned=yes ;;
3080 esac
3081     CC=$ac_ct_CC
3082   fi
3083 else
3084   CC="$ac_cv_prog_CC"
3085 fi
3086
3087 if test -z "$CC"; then
3088           if test -n "$ac_tool_prefix"; then
3089     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3090 set dummy ${ac_tool_prefix}cc; ac_word=$2
3091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3093 if test "${ac_cv_prog_CC+set}" = set; then
3094   echo $ECHO_N "(cached) $ECHO_C" >&6
3095 else
3096   if test -n "$CC"; then
3097   ac_cv_prog_CC="$CC" # Let the user override the test.
3098 else
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104   for ac_exec_ext in '' $ac_executable_extensions; do
3105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106     ac_cv_prog_CC="${ac_tool_prefix}cc"
3107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108     break 2
3109   fi
3110 done
3111 done
3112 IFS=$as_save_IFS
3113
3114 fi
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118   { echo "$as_me:$LINENO: result: $CC" >&5
3119 echo "${ECHO_T}$CC" >&6; }
3120 else
3121   { echo "$as_me:$LINENO: result: no" >&5
3122 echo "${ECHO_T}no" >&6; }
3123 fi
3124
3125
3126   fi
3127 fi
3128 if test -z "$CC"; then
3129   # Extract the first word of "cc", so it can be a program name with args.
3130 set dummy cc; ac_word=$2
3131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3133 if test "${ac_cv_prog_CC+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   if test -n "$CC"; then
3137   ac_cv_prog_CC="$CC" # Let the user override the test.
3138 else
3139   ac_prog_rejected=no
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3148        ac_prog_rejected=yes
3149        continue
3150      fi
3151     ac_cv_prog_CC="cc"
3152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3153     break 2
3154   fi
3155 done
3156 done
3157 IFS=$as_save_IFS
3158
3159 if test $ac_prog_rejected = yes; then
3160   # We found a bogon in the path, so make sure we never use it.
3161   set dummy $ac_cv_prog_CC
3162   shift
3163   if test $# != 0; then
3164     # We chose a different compiler from the bogus one.
3165     # However, it has the same basename, so the bogon will be chosen
3166     # first if we set CC to just the basename; use the full file name.
3167     shift
3168     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3169   fi
3170 fi
3171 fi
3172 fi
3173 CC=$ac_cv_prog_CC
3174 if test -n "$CC"; then
3175   { echo "$as_me:$LINENO: result: $CC" >&5
3176 echo "${ECHO_T}$CC" >&6; }
3177 else
3178   { echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6; }
3180 fi
3181
3182
3183 fi
3184 if test -z "$CC"; then
3185   if test -n "$ac_tool_prefix"; then
3186   for ac_prog in cl.exe
3187   do
3188     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3189 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_CC+set}" = set; then
3193   echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195   if test -n "$CC"; then
3196   ac_cv_prog_CC="$CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203   for ac_exec_ext in '' $ac_executable_extensions; do
3204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207     break 2
3208   fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 CC=$ac_cv_prog_CC
3216 if test -n "$CC"; then
3217   { echo "$as_me:$LINENO: result: $CC" >&5
3218 echo "${ECHO_T}$CC" >&6; }
3219 else
3220   { echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6; }
3222 fi
3223
3224
3225     test -n "$CC" && break
3226   done
3227 fi
3228 if test -z "$CC"; then
3229   ac_ct_CC=$CC
3230   for ac_prog in cl.exe
3231 do
3232   # Extract the first word of "$ac_prog", so it can be a program name with args.
3233 set dummy $ac_prog; ac_word=$2
3234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3236 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3237   echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239   if test -n "$ac_ct_CC"; then
3240   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247   for ac_exec_ext in '' $ac_executable_extensions; do
3248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249     ac_cv_prog_ac_ct_CC="$ac_prog"
3250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254 done
3255 IFS=$as_save_IFS
3256
3257 fi
3258 fi
3259 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3260 if test -n "$ac_ct_CC"; then
3261   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3262 echo "${ECHO_T}$ac_ct_CC" >&6; }
3263 else
3264   { echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6; }
3266 fi
3267
3268
3269   test -n "$ac_ct_CC" && break
3270 done
3271
3272   if test "x$ac_ct_CC" = x; then
3273     CC=""
3274   else
3275     case $cross_compiling:$ac_tool_warned in
3276 yes:)
3277 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3278 whose name does not start with the host triplet.  If you think this
3279 configuration is useful to you, please write to autoconf@gnu.org." >&5
3280 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3281 whose name does not start with the host triplet.  If you think this
3282 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3283 ac_tool_warned=yes ;;
3284 esac
3285     CC=$ac_ct_CC
3286   fi
3287 fi
3288
3289 fi
3290
3291
3292 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3293 See \`config.log' for more details." >&5
3294 echo "$as_me: error: no acceptable C compiler found in \$PATH
3295 See \`config.log' for more details." >&2;}
3296    { (exit 1); exit 1; }; }
3297
3298 # Provide some information about the compiler.
3299 echo "$as_me:$LINENO: checking for C compiler version" >&5
3300 ac_compiler=`set X $ac_compile; echo $2`
3301 { (ac_try="$ac_compiler --version >&5"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307   (eval "$ac_compiler --version >&5") 2>&5
3308   ac_status=$?
3309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); }
3311 { (ac_try="$ac_compiler -v >&5"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_compiler -v >&5") 2>&5
3318   ac_status=$?
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); }
3321 { (ac_try="$ac_compiler -V >&5"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_compiler -V >&5") 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }
3331
3332 cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338
3339 int
3340 main ()
3341 {
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 ac_clean_files_save=$ac_clean_files
3348 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3349 # Try to create an executable without -o first, disregard a.out.
3350 # It will help us diagnose broken compilers, and finding out an intuition
3351 # of exeext.
3352 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3353 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3354 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3355 #
3356 # List of possible output files, starting from the most likely.
3357 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3358 # only as a last resort.  b.out is created by i960 compilers.
3359 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3360 #
3361 # The IRIX 6 linker writes into existing files which may not be
3362 # executable, retaining their permissions.  Remove them first so a
3363 # subsequent execution test works.
3364 ac_rmfiles=
3365 for ac_file in $ac_files
3366 do
3367   case $ac_file in
3368     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3369     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3370   esac
3371 done
3372 rm -f $ac_rmfiles
3373
3374 if { (ac_try="$ac_link_default"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380   (eval "$ac_link_default") 2>&5
3381   ac_status=$?
3382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383   (exit $ac_status); }; then
3384   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3385 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3386 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3387 # so that the user can short-circuit this test for compilers unknown to
3388 # Autoconf.
3389 for ac_file in $ac_files ''
3390 do
3391   test -f "$ac_file" || continue
3392   case $ac_file in
3393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3394         ;;
3395     [ab].out )
3396         # We found the default executable, but exeext='' is most
3397         # certainly right.
3398         break;;
3399     *.* )
3400         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3401         then :; else
3402            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403         fi
3404         # We set ac_cv_exeext here because the later test for it is not
3405         # safe: cross compilers may not add the suffix if given an `-o'
3406         # argument, so we may need to know it at that point already.
3407         # Even if this section looks crufty: it has the advantage of
3408         # actually working.
3409         break;;
3410     * )
3411         break;;
3412   esac
3413 done
3414 test "$ac_cv_exeext" = no && ac_cv_exeext=
3415
3416 else
3417   ac_file=''
3418 fi
3419
3420 { echo "$as_me:$LINENO: result: $ac_file" >&5
3421 echo "${ECHO_T}$ac_file" >&6; }
3422 if test -z "$ac_file"; then
3423   echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3427 See \`config.log' for more details." >&5
3428 echo "$as_me: error: C compiler cannot create executables
3429 See \`config.log' for more details." >&2;}
3430    { (exit 77); exit 77; }; }
3431 fi
3432
3433 ac_exeext=$ac_cv_exeext
3434
3435 # Check that the compiler produces executables we can run.  If not, either
3436 # the compiler is broken, or we cross compile.
3437 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3438 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3439 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3440 # If not cross compiling, check that we can run a simple program.
3441 if test "$cross_compiling" != yes; then
3442   if { ac_try='./$ac_file'
3443   { (case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_try") 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); }; }; then
3452     cross_compiling=no
3453   else
3454     if test "$cross_compiling" = maybe; then
3455         cross_compiling=yes
3456     else
3457         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3458 If you meant to cross compile, use \`--host'.
3459 See \`config.log' for more details." >&5
3460 echo "$as_me: error: cannot run C compiled programs.
3461 If you meant to cross compile, use \`--host'.
3462 See \`config.log' for more details." >&2;}
3463    { (exit 1); exit 1; }; }
3464     fi
3465   fi
3466 fi
3467 { echo "$as_me:$LINENO: result: yes" >&5
3468 echo "${ECHO_T}yes" >&6; }
3469
3470 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3471 ac_clean_files=$ac_clean_files_save
3472 # Check that the compiler produces executables we can run.  If not, either
3473 # the compiler is broken, or we cross compile.
3474 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3475 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3476 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3477 echo "${ECHO_T}$cross_compiling" >&6; }
3478
3479 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3480 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3481 if { (ac_try="$ac_link"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_link") 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); }; then
3491   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3492 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3493 # work properly (i.e., refer to `conftest.exe'), while it won't with
3494 # `rm'.
3495 for ac_file in conftest.exe conftest conftest.*; do
3496   test -f "$ac_file" || continue
3497   case $ac_file in
3498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3499     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3500           break;;
3501     * ) break;;
3502   esac
3503 done
3504 else
3505   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3506 See \`config.log' for more details." >&5
3507 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3508 See \`config.log' for more details." >&2;}
3509    { (exit 1); exit 1; }; }
3510 fi
3511
3512 rm -f conftest$ac_cv_exeext
3513 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3514 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3515
3516 rm -f conftest.$ac_ext
3517 EXEEXT=$ac_cv_exeext
3518 ac_exeext=$EXEEXT
3519 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3520 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3521 if test "${ac_cv_objext+set}" = set; then
3522   echo $ECHO_N "(cached) $ECHO_C" >&6
3523 else
3524   cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h.  */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h.  */
3530
3531 int
3532 main ()
3533 {
3534
3535   ;
3536   return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.o conftest.obj
3540 if { (ac_try="$ac_compile"
3541 case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3546   (eval "$ac_compile") 2>&5
3547   ac_status=$?
3548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549   (exit $ac_status); }; then
3550   for ac_file in conftest.o conftest.obj conftest.*; do
3551   test -f "$ac_file" || continue;
3552   case $ac_file in
3553     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3554     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3555        break;;
3556   esac
3557 done
3558 else
3559   echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3563 See \`config.log' for more details." >&5
3564 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3565 See \`config.log' for more details." >&2;}
3566    { (exit 1); exit 1; }; }
3567 fi
3568
3569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3570 fi
3571 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3572 echo "${ECHO_T}$ac_cv_objext" >&6; }
3573 OBJEXT=$ac_cv_objext
3574 ac_objext=$OBJEXT
3575 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3576 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3577 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3578   echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580   cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h.  */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h.  */
3586
3587 int
3588 main ()
3589 {
3590 #ifndef __GNUC__
3591        choke me
3592 #endif
3593
3594   ;
3595   return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3600 case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605   (eval "$ac_compile") 2>conftest.er1
3606   ac_status=$?
3607   grep -v '^ *+' conftest.er1 >conftest.err
3608   rm -f conftest.er1
3609   cat conftest.err >&5
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } && {
3612          test -z "$ac_c_werror_flag" ||
3613          test ! -s conftest.err
3614        } && test -s conftest.$ac_objext; then
3615   ac_compiler_gnu=yes
3616 else
3617   echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620         ac_compiler_gnu=no
3621 fi
3622
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3625
3626 fi
3627 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3628 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3629 GCC=`test $ac_compiler_gnu = yes && echo yes`
3630 ac_test_CFLAGS=${CFLAGS+set}
3631 ac_save_CFLAGS=$CFLAGS
3632 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3633 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3634 if test "${ac_cv_prog_cc_g+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   ac_save_c_werror_flag=$ac_c_werror_flag
3638    ac_c_werror_flag=yes
3639    ac_cv_prog_cc_g=no
3640    CFLAGS="-g"
3641    cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h.  */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h.  */
3647
3648 int
3649 main ()
3650 {
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext
3657 if { (ac_try="$ac_compile"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663   (eval "$ac_compile") 2>conftest.er1
3664   ac_status=$?
3665   grep -v '^ *+' conftest.er1 >conftest.err
3666   rm -f conftest.er1
3667   cat conftest.err >&5
3668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669   (exit $ac_status); } && {
3670          test -z "$ac_c_werror_flag" ||
3671          test ! -s conftest.err
3672        } && test -s conftest.$ac_objext; then
3673   ac_cv_prog_cc_g=yes
3674 else
3675   echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.$ac_ext >&5
3677
3678         CFLAGS=""
3679       cat >conftest.$ac_ext <<_ACEOF
3680 /* confdefs.h.  */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h.  */
3685
3686 int
3687 main ()
3688 {
3689
3690   ;
3691   return 0;
3692 }
3693 _ACEOF
3694 rm -f conftest.$ac_objext
3695 if { (ac_try="$ac_compile"
3696 case "(($ac_try" in
3697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698   *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701   (eval "$ac_compile") 2>conftest.er1
3702   ac_status=$?
3703   grep -v '^ *+' conftest.er1 >conftest.err
3704   rm -f conftest.er1
3705   cat conftest.err >&5
3706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707   (exit $ac_status); } && {
3708          test -z "$ac_c_werror_flag" ||
3709          test ! -s conftest.err
3710        } && test -s conftest.$ac_objext; then
3711   :
3712 else
3713   echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716         ac_c_werror_flag=$ac_save_c_werror_flag
3717          CFLAGS="-g"
3718          cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h.  */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h.  */
3724
3725 int
3726 main ()
3727 {
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 rm -f conftest.$ac_objext
3734 if { (ac_try="$ac_compile"
3735 case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740   (eval "$ac_compile") 2>conftest.er1
3741   ac_status=$?
3742   grep -v '^ *+' conftest.er1 >conftest.err
3743   rm -f conftest.er1
3744   cat conftest.err >&5
3745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746   (exit $ac_status); } && {
3747          test -z "$ac_c_werror_flag" ||
3748          test ! -s conftest.err
3749        } && test -s conftest.$ac_objext; then
3750   ac_cv_prog_cc_g=yes
3751 else
3752   echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755
3756 fi
3757
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 fi
3763
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765    ac_c_werror_flag=$ac_save_c_werror_flag
3766 fi
3767 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3768 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3769 if test "$ac_test_CFLAGS" = set; then
3770   CFLAGS=$ac_save_CFLAGS
3771 elif test $ac_cv_prog_cc_g = yes; then
3772   if test "$GCC" = yes; then
3773     CFLAGS="-g -O2"
3774   else
3775     CFLAGS="-g"
3776   fi
3777 else
3778   if test "$GCC" = yes; then
3779     CFLAGS="-O2"
3780   else
3781     CFLAGS=
3782   fi
3783 fi
3784 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3785 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3786 if test "${ac_cv_prog_cc_c89+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   ac_cv_prog_cc_c89=no
3790 ac_save_CC=$CC
3791 cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h.  */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h.  */
3797 #include <stdarg.h>
3798 #include <stdio.h>
3799 #include <sys/types.h>
3800 #include <sys/stat.h>
3801 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3802 struct buf { int x; };
3803 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3804 static char *e (p, i)
3805      char **p;
3806      int i;
3807 {
3808   return p[i];
3809 }
3810 static char *f (char * (*g) (char **, int), char **p, ...)
3811 {
3812   char *s;
3813   va_list v;
3814   va_start (v,p);
3815   s = g (p, va_arg (v,int));
3816   va_end (v);
3817   return s;
3818 }
3819
3820 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3821    function prototypes and stuff, but not '\xHH' hex character constants.
3822    These don't provoke an error unfortunately, instead are silently treated
3823    as 'x'.  The following induces an error, until -std is added to get
3824    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3825    array size at least.  It's necessary to write '\x00'==0 to get something
3826    that's true only with -std.  */
3827 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3828
3829 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3830    inside strings and character constants.  */
3831 #define FOO(x) 'x'
3832 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3833
3834 int test (int i, double x);
3835 struct s1 {int (*f) (int a);};
3836 struct s2 {int (*f) (double a);};
3837 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3838 int argc;
3839 char **argv;
3840 int
3841 main ()
3842 {
3843 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3849         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3850 do
3851   CC="$ac_save_CC $ac_arg"
3852   rm -f conftest.$ac_objext
3853 if { (ac_try="$ac_compile"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3859   (eval "$ac_compile") 2>conftest.er1
3860   ac_status=$?
3861   grep -v '^ *+' conftest.er1 >conftest.err
3862   rm -f conftest.er1
3863   cat conftest.err >&5
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); } && {
3866          test -z "$ac_c_werror_flag" ||
3867          test ! -s conftest.err
3868        } && test -s conftest.$ac_objext; then
3869   ac_cv_prog_cc_c89=$ac_arg
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874
3875 fi
3876
3877 rm -f core conftest.err conftest.$ac_objext
3878   test "x$ac_cv_prog_cc_c89" != "xno" && break
3879 done
3880 rm -f conftest.$ac_ext
3881 CC=$ac_save_CC
3882
3883 fi
3884 # AC_CACHE_VAL
3885 case "x$ac_cv_prog_cc_c89" in
3886   x)
3887     { echo "$as_me:$LINENO: result: none needed" >&5
3888 echo "${ECHO_T}none needed" >&6; } ;;
3889   xno)
3890     { echo "$as_me:$LINENO: result: unsupported" >&5
3891 echo "${ECHO_T}unsupported" >&6; } ;;
3892   *)
3893     CC="$CC $ac_cv_prog_cc_c89"
3894     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3895 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3896 esac
3897
3898
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904
3905 depcc="$CC"   am_compiler_list=
3906
3907 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3908 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3909 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3910   echo $ECHO_N "(cached) $ECHO_C" >&6
3911 else
3912   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3913   # We make a subdir and do the tests there.  Otherwise we can end up
3914   # making bogus files that we don't know about and never remove.  For
3915   # instance it was reported that on HP-UX the gcc test will end up
3916   # making a dummy file named `D' -- because `-MD' means `put the output
3917   # in D'.
3918   mkdir conftest.dir
3919   # Copy depcomp to subdir because otherwise we won't find it if we're
3920   # using a relative directory.
3921   cp "$am_depcomp" conftest.dir
3922   cd conftest.dir
3923   # We will build objects and dependencies in a subdirectory because
3924   # it helps to detect inapplicable dependency modes.  For instance
3925   # both Tru64's cc and ICC support -MD to output dependencies as a
3926   # side effect of compilation, but ICC will put the dependencies in
3927   # the current directory while Tru64 will put them in the object
3928   # directory.
3929   mkdir sub
3930
3931   am_cv_CC_dependencies_compiler_type=none
3932   if test "$am_compiler_list" = ""; then
3933      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3934   fi
3935   for depmode in $am_compiler_list; do
3936     # Setup a source with many dependencies, because some compilers
3937     # like to wrap large dependency lists on column 80 (with \), and
3938     # we should not choose a depcomp mode which is confused by this.
3939     #
3940     # We need to recreate these files for each test, as the compiler may
3941     # overwrite some of them when testing with obscure command lines.
3942     # This happens at least with the AIX C compiler.
3943     : > sub/conftest.c
3944     for i in 1 2 3 4 5 6; do
3945       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3946       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3947       # Solaris 8's {/usr,}/bin/sh.
3948       touch sub/conftst$i.h
3949     done
3950     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3951
3952     case $depmode in
3953     nosideeffect)
3954       # after this tag, mechanisms are not by side-effect, so they'll
3955       # only be used when explicitly requested
3956       if test "x$enable_dependency_tracking" = xyes; then
3957         continue
3958       else
3959         break
3960       fi
3961       ;;
3962     none) break ;;
3963     esac
3964     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3965     # mode.  It turns out that the SunPro C++ compiler does not properly
3966     # handle `-M -o', and we need to detect this.
3967     if depmode=$depmode \
3968        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3969        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3970        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3971          >/dev/null 2>conftest.err &&
3972        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3973        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3974        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3975        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3976       # icc doesn't choke on unknown options, it will just issue warnings
3977       # or remarks (even with -Werror).  So we grep stderr for any message
3978       # that says an option was ignored or not supported.
3979       # When given -MP, icc 7.0 and 7.1 complain thusly:
3980       #   icc: Command line warning: ignoring option '-M'; no argument required
3981       # The diagnosis changed in icc 8.0:
3982       #   icc: Command line remark: option '-MP' not supported
3983       if (grep 'ignoring option' conftest.err ||
3984           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3985         am_cv_CC_dependencies_compiler_type=$depmode
3986         break
3987       fi
3988     fi
3989   done
3990
3991   cd ..
3992   rm -rf conftest.dir
3993 else
3994   am_cv_CC_dependencies_compiler_type=none
3995 fi
3996
3997 fi
3998 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3999 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4000 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4001
4002  if
4003   test "x$enable_dependency_tracking" != xno \
4004   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4005   am__fastdepCC_TRUE=
4006   am__fastdepCC_FALSE='#'
4007 else
4008   am__fastdepCC_TRUE='#'
4009   am__fastdepCC_FALSE=
4010 fi
4011
4012
4013
4014 ac_ext=c
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4020 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4021 # On Suns, sometimes $CPP names a directory.
4022 if test -n "$CPP" && test -d "$CPP"; then
4023   CPP=
4024 fi
4025 if test -z "$CPP"; then
4026   if test "${ac_cv_prog_CPP+set}" = set; then
4027   echo $ECHO_N "(cached) $ECHO_C" >&6
4028 else
4029       # Double quotes because CPP needs to be expanded
4030     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4031     do
4032       ac_preproc_ok=false
4033 for ac_c_preproc_warn_flag in '' yes
4034 do
4035   # Use a header file that comes with gcc, so configuring glibc
4036   # with a fresh cross-compiler works.
4037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4038   # <limits.h> exists even on freestanding compilers.
4039   # On the NeXT, cc -E runs the code through the compiler's parser,
4040   # not just through cpp. "Syntax error" is here to catch this case.
4041   cat >conftest.$ac_ext <<_ACEOF
4042 /* confdefs.h.  */
4043 _ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h.  */
4047 #ifdef __STDC__
4048 # include <limits.h>
4049 #else
4050 # include <assert.h>
4051 #endif
4052                      Syntax error
4053 _ACEOF
4054 if { (ac_try="$ac_cpp conftest.$ac_ext"
4055 case "(($ac_try" in
4056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057   *) ac_try_echo=$ac_try;;
4058 esac
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4061   ac_status=$?
4062   grep -v '^ *+' conftest.er1 >conftest.err
4063   rm -f conftest.er1
4064   cat conftest.err >&5
4065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066   (exit $ac_status); } >/dev/null && {
4067          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4068          test ! -s conftest.err
4069        }; then
4070   :
4071 else
4072   echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4074
4075   # Broken: fails on valid input.
4076 continue
4077 fi
4078
4079 rm -f conftest.err conftest.$ac_ext
4080
4081   # OK, works on sane cases.  Now check whether nonexistent headers
4082   # can be detected and how.
4083   cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h.  */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h.  */
4089 #include <ac_nonexistent.h>
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094   *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4098   ac_status=$?
4099   grep -v '^ *+' conftest.er1 >conftest.err
4100   rm -f conftest.er1
4101   cat conftest.err >&5
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } >/dev/null && {
4104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105          test ! -s conftest.err
4106        }; then
4107   # Broken: success on invalid input.
4108 continue
4109 else
4110   echo "$as_me: failed program was:" >&5
4111 sed 's/^/| /' conftest.$ac_ext >&5
4112
4113   # Passes both tests.
4114 ac_preproc_ok=:
4115 break
4116 fi
4117
4118 rm -f conftest.err conftest.$ac_ext
4119
4120 done
4121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4122 rm -f conftest.err conftest.$ac_ext
4123 if $ac_preproc_ok; then
4124   break
4125 fi
4126
4127     done
4128     ac_cv_prog_CPP=$CPP
4129
4130 fi
4131   CPP=$ac_cv_prog_CPP
4132 else
4133   ac_cv_prog_CPP=$CPP
4134 fi
4135 { echo "$as_me:$LINENO: result: $CPP" >&5
4136 echo "${ECHO_T}$CPP" >&6; }
4137 ac_preproc_ok=false
4138 for ac_c_preproc_warn_flag in '' yes
4139 do
4140   # Use a header file that comes with gcc, so configuring glibc
4141   # with a fresh cross-compiler works.
4142   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4143   # <limits.h> exists even on freestanding compilers.
4144   # On the NeXT, cc -E runs the code through the compiler's parser,
4145   # not just through cpp. "Syntax error" is here to catch this case.
4146   cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152 #ifdef __STDC__
4153 # include <limits.h>
4154 #else
4155 # include <assert.h>
4156 #endif
4157                      Syntax error
4158 _ACEOF
4159 if { (ac_try="$ac_cpp conftest.$ac_ext"
4160 case "(($ac_try" in
4161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162   *) ac_try_echo=$ac_try;;
4163 esac
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4166   ac_status=$?
4167   grep -v '^ *+' conftest.er1 >conftest.err
4168   rm -f conftest.er1
4169   cat conftest.err >&5
4170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); } >/dev/null && {
4172          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4173          test ! -s conftest.err
4174        }; then
4175   :
4176 else
4177   echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4179
4180   # Broken: fails on valid input.
4181 continue
4182 fi
4183
4184 rm -f conftest.err conftest.$ac_ext
4185
4186   # OK, works on sane cases.  Now check whether nonexistent headers
4187   # can be detected and how.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <ac_nonexistent.h>
4195 _ACEOF
4196 if { (ac_try="$ac_cpp conftest.$ac_ext"
4197 case "(($ac_try" in
4198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199   *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4203   ac_status=$?
4204   grep -v '^ *+' conftest.er1 >conftest.err
4205   rm -f conftest.er1
4206   cat conftest.err >&5
4207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208   (exit $ac_status); } >/dev/null && {
4209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4210          test ! -s conftest.err
4211        }; then
4212   # Broken: success on invalid input.
4213 continue
4214 else
4215   echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218   # Passes both tests.
4219 ac_preproc_ok=:
4220 break
4221 fi
4222
4223 rm -f conftest.err conftest.$ac_ext
4224
4225 done
4226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4227 rm -f conftest.err conftest.$ac_ext
4228 if $ac_preproc_ok; then
4229   :
4230 else
4231   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4232 See \`config.log' for more details." >&5
4233 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4234 See \`config.log' for more details." >&2;}
4235    { (exit 1); exit 1; }; }
4236 fi
4237
4238 ac_ext=c
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243
4244
4245 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4246 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4247 if test "${ac_cv_path_GREP+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   # Extract the first word of "grep ggrep" to use in msg output
4251 if test -z "$GREP"; then
4252 set dummy grep ggrep; ac_prog_name=$2
4253 if test "${ac_cv_path_GREP+set}" = set; then
4254   echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256   ac_path_GREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_prog in grep ggrep; do
4264   for ac_exec_ext in '' $ac_executable_extensions; do
4265     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4266     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4267     # Check for GNU ac_path_GREP and select it if it is found.
4268   # Check for GNU $ac_path_GREP
4269 case `"$ac_path_GREP" --version 2>&1` in
4270 *GNU*)
4271   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4272 *)
4273   ac_count=0
4274   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4275   while :
4276   do
4277     cat "conftest.in" "conftest.in" >"conftest.tmp"
4278     mv "conftest.tmp" "conftest.in"
4279     cp "conftest.in" "conftest.nl"
4280     echo 'GREP' >> "conftest.nl"
4281     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283     ac_count=`expr $ac_count + 1`
4284     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4285       # Best one so far, save it but keep looking for a better one
4286       ac_cv_path_GREP="$ac_path_GREP"
4287       ac_path_GREP_max=$ac_count
4288     fi
4289     # 10*(2^10) chars as input seems more than enough
4290     test $ac_count -gt 10 && break
4291   done
4292   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 esac
4294
4295
4296     $ac_path_GREP_found && break 3
4297   done
4298 done
4299
4300 done
4301 IFS=$as_save_IFS
4302
4303
4304 fi
4305
4306 GREP="$ac_cv_path_GREP"
4307 if test -z "$GREP"; then
4308   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4309 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4310    { (exit 1); exit 1; }; }
4311 fi
4312
4313 else
4314   ac_cv_path_GREP=$GREP
4315 fi
4316
4317
4318 fi
4319 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4320 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4321  GREP="$ac_cv_path_GREP"
4322
4323
4324 { echo "$as_me:$LINENO: checking for egrep" >&5
4325 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4326 if test "${ac_cv_path_EGREP+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4330    then ac_cv_path_EGREP="$GREP -E"
4331    else
4332      # Extract the first word of "egrep" to use in msg output
4333 if test -z "$EGREP"; then
4334 set dummy egrep; ac_prog_name=$2
4335 if test "${ac_cv_path_EGREP+set}" = set; then
4336   echo $ECHO_N "(cached) $ECHO_C" >&6
4337 else
4338   ac_path_EGREP_found=false
4339 # Loop through the user's path and test for each of PROGNAME-LIST
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4342 do
4343   IFS=$as_save_IFS
4344   test -z "$as_dir" && as_dir=.
4345   for ac_prog in egrep; do
4346   for ac_exec_ext in '' $ac_executable_extensions; do
4347     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4348     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4349     # Check for GNU ac_path_EGREP and select it if it is found.
4350   # Check for GNU $ac_path_EGREP
4351 case `"$ac_path_EGREP" --version 2>&1` in
4352 *GNU*)
4353   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4354 *)
4355   ac_count=0
4356   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4357   while :
4358   do
4359     cat "conftest.in" "conftest.in" >"conftest.tmp"
4360     mv "conftest.tmp" "conftest.in"
4361     cp "conftest.in" "conftest.nl"
4362     echo 'EGREP' >> "conftest.nl"
4363     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4364     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4365     ac_count=`expr $ac_count + 1`
4366     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4367       # Best one so far, save it but keep looking for a better one
4368       ac_cv_path_EGREP="$ac_path_EGREP"
4369       ac_path_EGREP_max=$ac_count
4370     fi
4371     # 10*(2^10) chars as input seems more than enough
4372     test $ac_count -gt 10 && break
4373   done
4374   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4375 esac
4376
4377
4378     $ac_path_EGREP_found && break 3
4379   done
4380 done
4381
4382 done
4383 IFS=$as_save_IFS
4384
4385
4386 fi
4387
4388 EGREP="$ac_cv_path_EGREP"
4389 if test -z "$EGREP"; then
4390   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4391 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4392    { (exit 1); exit 1; }; }
4393 fi
4394
4395 else
4396   ac_cv_path_EGREP=$EGREP
4397 fi
4398
4399
4400    fi
4401 fi
4402 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4403 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4404  EGREP="$ac_cv_path_EGREP"
4405
4406
4407 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4408 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_stdc+set}" = set; then
4410   echo $ECHO_N "(cached) $ECHO_C" >&6
4411 else
4412   cat >conftest.$ac_ext <<_ACEOF
4413 /* confdefs.h.  */
4414 _ACEOF
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h.  */
4418 #include <stdlib.h>
4419 #include <stdarg.h>
4420 #include <string.h>
4421 #include <float.h>
4422
4423 int
4424 main ()
4425 {
4426
4427   ;
4428   return 0;
4429 }
4430 _ACEOF
4431 rm -f conftest.$ac_objext
4432 if { (ac_try="$ac_compile"
4433 case "(($ac_try" in
4434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435   *) ac_try_echo=$ac_try;;
4436 esac
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438   (eval "$ac_compile") 2>conftest.er1
4439   ac_status=$?
4440   grep -v '^ *+' conftest.er1 >conftest.err
4441   rm -f conftest.er1
4442   cat conftest.err >&5
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); } && {
4445          test -z "$ac_c_werror_flag" ||
4446          test ! -s conftest.err
4447        } && test -s conftest.$ac_objext; then
4448   ac_cv_header_stdc=yes
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453         ac_cv_header_stdc=no
4454 fi
4455
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457
4458 if test $ac_cv_header_stdc = yes; then
4459   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4460   cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466 #include <string.h>
4467
4468 _ACEOF
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470   $EGREP "memchr" >/dev/null 2>&1; then
4471   :
4472 else
4473   ac_cv_header_stdc=no
4474 fi
4475 rm -f conftest*
4476
4477 fi
4478
4479 if test $ac_cv_header_stdc = yes; then
4480   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4481   cat >conftest.$ac_ext <<_ACEOF
4482 /* confdefs.h.  */
4483 _ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h.  */
4487 #include <stdlib.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491   $EGREP "free" >/dev/null 2>&1; then
4492   :
4493 else
4494   ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4502   if test "$cross_compiling" = yes; then
4503   :
4504 else
4505   cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h.  */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h.  */
4511 #include <ctype.h>
4512 #include <stdlib.h>
4513 #if ((' ' & 0x0FF) == 0x020)
4514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4516 #else
4517 # define ISLOWER(c) \
4518                    (('a' <= (c) && (c) <= 'i') \
4519                      || ('j' <= (c) && (c) <= 'r') \
4520                      || ('s' <= (c) && (c) <= 'z'))
4521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522 #endif
4523
4524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525 int
4526 main ()
4527 {
4528   int i;
4529   for (i = 0; i < 256; i++)
4530     if (XOR (islower (i), ISLOWER (i))
4531         || toupper (i) != TOUPPER (i))
4532       return 2;
4533   return 0;
4534 }
4535 _ACEOF
4536 rm -f conftest$ac_exeext
4537 if { (ac_try="$ac_link"
4538 case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543   (eval "$ac_link") 2>&5
4544   ac_status=$?
4545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4547   { (case "(($ac_try" in
4548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549   *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552   (eval "$ac_try") 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }; }; then
4556   :
4557 else
4558   echo "$as_me: program exited with status $ac_status" >&5
4559 echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4561
4562 ( exit $ac_status )
4563 ac_cv_header_stdc=no
4564 fi
4565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4566 fi
4567
4568
4569 fi
4570 fi
4571 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4572 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4573 if test $ac_cv_header_stdc = yes; then
4574
4575 cat >>confdefs.h <<\_ACEOF
4576 #define STDC_HEADERS 1
4577 _ACEOF
4578
4579 fi
4580
4581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4592                   inttypes.h stdint.h unistd.h
4593 do
4594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4598   echo $ECHO_N "(cached) $ECHO_C" >&6
4599 else
4600   cat >conftest.$ac_ext <<_ACEOF
4601 /* confdefs.h.  */
4602 _ACEOF
4603 cat confdefs.h >>conftest.$ac_ext
4604 cat >>conftest.$ac_ext <<_ACEOF
4605 /* end confdefs.h.  */
4606 $ac_includes_default
4607
4608 #include <$ac_header>
4609 _ACEOF
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4612 case "(($ac_try" in
4613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614   *) ac_try_echo=$ac_try;;
4615 esac
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617   (eval "$ac_compile") 2>conftest.er1
4618   ac_status=$?
4619   grep -v '^ *+' conftest.er1 >conftest.err
4620   rm -f conftest.er1
4621   cat conftest.err >&5
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); } && {
4624          test -z "$ac_c_werror_flag" ||
4625          test ! -s conftest.err
4626        } && test -s conftest.$ac_objext; then
4627   eval "$as_ac_Header=yes"
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632         eval "$as_ac_Header=no"
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 ac_res=`eval echo '${'$as_ac_Header'}'`
4638                { echo "$as_me:$LINENO: result: $ac_res" >&5
4639 echo "${ECHO_T}$ac_res" >&6; }
4640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4641   cat >>confdefs.h <<_ACEOF
4642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 _ACEOF
4644
4645 fi
4646
4647 done
4648
4649
4650
4651
4652 for ac_header in signal.h dlfcn.h
4653 do
4654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4656   { echo "$as_me:$LINENO: checking for $ac_header" >&5
4657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 fi
4661 ac_res=`eval echo '${'$as_ac_Header'}'`
4662                { echo "$as_me:$LINENO: result: $ac_res" >&5
4663 echo "${ECHO_T}$ac_res" >&6; }
4664 else
4665   # Is the header compilable?
4666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h.  */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h.  */
4674 $ac_includes_default
4675 #include <$ac_header>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (ac_try="$ac_compile"
4679 case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_compile") 2>conftest.er1
4685   ac_status=$?
4686   grep -v '^ *+' conftest.er1 >conftest.err
4687   rm -f conftest.er1
4688   cat conftest.err >&5
4689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690   (exit $ac_status); } && {
4691          test -z "$ac_c_werror_flag" ||
4692          test ! -s conftest.err
4693        } && test -s conftest.$ac_objext; then
4694   ac_header_compiler=yes
4695 else
4696   echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4698
4699         ac_header_compiler=no
4700 fi
4701
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4704 echo "${ECHO_T}$ac_header_compiler" >&6; }
4705
4706 # Is the header present?
4707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h.  */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h.  */
4715 #include <$ac_header>
4716 _ACEOF
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4718 case "(($ac_try" in
4719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720   *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } >/dev/null && {
4730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731          test ! -s conftest.err
4732        }; then
4733   ac_header_preproc=yes
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738   ac_header_preproc=no
4739 fi
4740
4741 rm -f conftest.err conftest.$ac_ext
4742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4743 echo "${ECHO_T}$ac_header_preproc" >&6; }
4744
4745 # So?  What about this header?
4746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4747   yes:no: )
4748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4752     ac_header_preproc=yes
4753     ;;
4754   no:yes:* )
4755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4767
4768     ;;
4769 esac
4770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   eval "$as_ac_Header=\$ac_header_preproc"
4776 fi
4777 ac_res=`eval echo '${'$as_ac_Header'}'`
4778                { echo "$as_me:$LINENO: result: $ac_res" >&5
4779 echo "${ECHO_T}$ac_res" >&6; }
4780
4781 fi
4782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4783   cat >>confdefs.h <<_ACEOF
4784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785 _ACEOF
4786
4787 fi
4788
4789 done
4790
4791
4792 # cppunit needed?
4793 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
4794         CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
4795 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
4796    { (exit 1); exit 1; }; }
4797         CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
4798 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
4799    { (exit 1); exit 1; }; }
4800 fi
4801
4802
4803
4804 if test "$enable_unit_tests" = "yes"; then
4805
4806 cat >>confdefs.h <<\_ACEOF
4807 #define ENABLE_UNIT_TESTS 1
4808 _ACEOF
4809
4810 fi
4811  if test "$enable_unit_tests" = "yes"; then
4812   ENABLE_UNIT_TESTS_TRUE=
4813   ENABLE_UNIT_TESTS_FALSE='#'
4814 else
4815   ENABLE_UNIT_TESTS_TRUE='#'
4816   ENABLE_UNIT_TESTS_FALSE=
4817 fi
4818
4819  if test "$enable_unit_tests" = "yes" || test "$enable_integration_tests" = "yes" ; then
4820   ENABLE_TESTING_TRUE=
4821   ENABLE_TESTING_FALSE='#'
4822 else
4823   ENABLE_TESTING_TRUE='#'
4824   ENABLE_TESTING_FALSE=
4825 fi
4826
4827
4828 if test $enable_static_cxx == "yes"; then
4829         LIBS="$LIBS -L."
4830         CORE_LDADD_DEP=libstdc++.a
4831 fi
4832
4833
4834 # Check for transport layer.
4835 # Both curl and libsoup can be enabled and disabled explicitly.
4836 # The default is to use libsoup if available, otherwise curl.
4837
4838 { echo "$as_me:$LINENO: checking for libcurl" >&5
4839 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6; }
4840 if LIBCURL_LIBS=`sh -c 'curl-config --libs' 2>&5` && \
4841     LIBCURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
4842     { echo "$as_me:$LINENO: result: yes" >&5
4843 echo "${ECHO_T}yes" >&6; }
4844     have_libcurl="yes"
4845 else
4846     { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4848     have_libcurl="no"
4849 fi
4850
4851
4852 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4853         if test -n "$ac_tool_prefix"; then
4854   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4855 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4858 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4859   echo $ECHO_N "(cached) $ECHO_C" >&6
4860 else
4861   case $PKG_CONFIG in
4862   [\\/]* | ?:[\\/]*)
4863   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4864   ;;
4865   *)
4866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881   ;;
4882 esac
4883 fi
4884 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4885 if test -n "$PKG_CONFIG"; then
4886   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4887 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4888 else
4889   { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4891 fi
4892
4893
4894 fi
4895 if test -z "$ac_cv_path_PKG_CONFIG"; then
4896   ac_pt_PKG_CONFIG=$PKG_CONFIG
4897   # Extract the first word of "pkg-config", so it can be a program name with args.
4898 set dummy pkg-config; ac_word=$2
4899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4901 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4902   echo $ECHO_N "(cached) $ECHO_C" >&6
4903 else
4904   case $ac_pt_PKG_CONFIG in
4905   [\\/]* | ?:[\\/]*)
4906   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4907   ;;
4908   *)
4909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910 for as_dir in $PATH
4911 do
4912   IFS=$as_save_IFS
4913   test -z "$as_dir" && as_dir=.
4914   for ac_exec_ext in '' $ac_executable_extensions; do
4915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4916     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4917     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918     break 2
4919   fi
4920 done
4921 done
4922 IFS=$as_save_IFS
4923
4924   ;;
4925 esac
4926 fi
4927 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4928 if test -n "$ac_pt_PKG_CONFIG"; then
4929   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4930 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4931 else
4932   { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4934 fi
4935
4936   if test "x$ac_pt_PKG_CONFIG" = x; then
4937     PKG_CONFIG=""
4938   else
4939     case $cross_compiling:$ac_tool_warned in
4940 yes:)
4941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4942 whose name does not start with the host triplet.  If you think this
4943 configuration is useful to you, please write to autoconf@gnu.org." >&5
4944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4945 whose name does not start with the host triplet.  If you think this
4946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4947 ac_tool_warned=yes ;;
4948 esac
4949     PKG_CONFIG=$ac_pt_PKG_CONFIG
4950   fi
4951 else
4952   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4953 fi
4954
4955 fi
4956 if test -n "$PKG_CONFIG"; then
4957         _pkg_min_version=0.9.0
4958         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4959 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4960         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4961                 { echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6; }
4963         else
4964                 { echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6; }
4966                 PKG_CONFIG=""
4967         fi
4968
4969 fi
4970
4971 pkg_failed=no
4972 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
4973 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
4974
4975 if test -n "$PKG_CONFIG"; then
4976     if test -n "$LIBSOUP_CFLAGS"; then
4977         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
4978     else
4979         if test -n "$PKG_CONFIG" && \
4980     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
4981   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
4982   ac_status=$?
4983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }; then
4985   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-gnome-2.4" 2>/dev/null`
4986 else
4987   pkg_failed=yes
4988 fi
4989     fi
4990 else
4991         pkg_failed=untried
4992 fi
4993 if test -n "$PKG_CONFIG"; then
4994     if test -n "$LIBSOUP_LIBS"; then
4995         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
4996     else
4997         if test -n "$PKG_CONFIG" && \
4998     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-gnome-2.4\"") >&5
4999   ($PKG_CONFIG --exists --print-errors "libsoup-gnome-2.4") 2>&5
5000   ac_status=$?
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); }; then
5003   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-gnome-2.4" 2>/dev/null`
5004 else
5005   pkg_failed=yes
5006 fi
5007     fi
5008 else
5009         pkg_failed=untried
5010 fi
5011
5012
5013
5014 if test $pkg_failed = yes; then
5015
5016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5017         _pkg_short_errors_supported=yes
5018 else
5019         _pkg_short_errors_supported=no
5020 fi
5021         if test $_pkg_short_errors_supported = yes; then
5022                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5023         else
5024                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-gnome-2.4"`
5025         fi
5026         # Put the nasty error message in config.log where it belongs
5027         echo "$LIBSOUP_PKG_ERRORS" >&5
5028
5029         { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5031
5032 pkg_failed=no
5033 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5034 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5035
5036 if test -n "$PKG_CONFIG"; then
5037     if test -n "$LIBSOUP_CFLAGS"; then
5038         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5039     else
5040         if test -n "$PKG_CONFIG" && \
5041     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5042   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5043   ac_status=$?
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); }; then
5046   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5047 else
5048   pkg_failed=yes
5049 fi
5050     fi
5051 else
5052         pkg_failed=untried
5053 fi
5054 if test -n "$PKG_CONFIG"; then
5055     if test -n "$LIBSOUP_LIBS"; then
5056         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5057     else
5058         if test -n "$PKG_CONFIG" && \
5059     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5060   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); }; then
5064   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5065 else
5066   pkg_failed=yes
5067 fi
5068     fi
5069 else
5070         pkg_failed=untried
5071 fi
5072
5073
5074
5075 if test $pkg_failed = yes; then
5076
5077 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5078         _pkg_short_errors_supported=yes
5079 else
5080         _pkg_short_errors_supported=no
5081 fi
5082         if test $_pkg_short_errors_supported = yes; then
5083                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5084         else
5085                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5086         fi
5087         # Put the nasty error message in config.log where it belongs
5088         echo "$LIBSOUP_PKG_ERRORS" >&5
5089
5090         { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5092                 have_libsoup="no"
5093 elif test $pkg_failed = untried; then
5094         have_libsoup="no"
5095 else
5096         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5097         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5098         { echo "$as_me:$LINENO: result: yes" >&5
5099 echo "${ECHO_T}yes" >&6; }
5100         have_libsoup="yes"
5101 fi
5102 elif test $pkg_failed = untried; then
5103
5104 pkg_failed=no
5105 { echo "$as_me:$LINENO: checking for LIBSOUP" >&5
5106 echo $ECHO_N "checking for LIBSOUP... $ECHO_C" >&6; }
5107
5108 if test -n "$PKG_CONFIG"; then
5109     if test -n "$LIBSOUP_CFLAGS"; then
5110         pkg_cv_LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS"
5111     else
5112         if test -n "$PKG_CONFIG" && \
5113     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5114   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5115   ac_status=$?
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); }; then
5118   pkg_cv_LIBSOUP_CFLAGS=`$PKG_CONFIG --cflags "libsoup-2.4" 2>/dev/null`
5119 else
5120   pkg_failed=yes
5121 fi
5122     fi
5123 else
5124         pkg_failed=untried
5125 fi
5126 if test -n "$PKG_CONFIG"; then
5127     if test -n "$LIBSOUP_LIBS"; then
5128         pkg_cv_LIBSOUP_LIBS="$LIBSOUP_LIBS"
5129     else
5130         if test -n "$PKG_CONFIG" && \
5131     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libsoup-2.4\"") >&5
5132   ($PKG_CONFIG --exists --print-errors "libsoup-2.4") 2>&5
5133   ac_status=$?
5134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135   (exit $ac_status); }; then
5136   pkg_cv_LIBSOUP_LIBS=`$PKG_CONFIG --libs "libsoup-2.4" 2>/dev/null`
5137 else
5138   pkg_failed=yes
5139 fi
5140     fi
5141 else
5142         pkg_failed=untried
5143 fi
5144
5145
5146
5147 if test $pkg_failed = yes; then
5148
5149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5150         _pkg_short_errors_supported=yes
5151 else
5152         _pkg_short_errors_supported=no
5153 fi
5154         if test $_pkg_short_errors_supported = yes; then
5155                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsoup-2.4"`
5156         else
5157                 LIBSOUP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsoup-2.4"`
5158         fi
5159         # Put the nasty error message in config.log where it belongs
5160         echo "$LIBSOUP_PKG_ERRORS" >&5
5161
5162         { echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6; }
5164                 have_libsoup="no"
5165 elif test $pkg_failed = untried; then
5166         have_libsoup="no"
5167 else
5168         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5169         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5170         { echo "$as_me:$LINENO: result: yes" >&5
5171 echo "${ECHO_T}yes" >&6; }
5172         have_libsoup="yes"
5173 fi
5174 else
5175         LIBSOUP_CFLAGS=$pkg_cv_LIBSOUP_CFLAGS
5176         LIBSOUP_LIBS=$pkg_cv_LIBSOUP_LIBS
5177         { echo "$as_me:$LINENO: result: yes" >&5
5178 echo "${ECHO_T}yes" >&6; }
5179         have_libsoup="yes"
5180
5181 cat >>confdefs.h <<\_ACEOF
5182 #define HAVE_LIBSOUP_SOUP_GNOME_FEATURES_H 1
5183 _ACEOF
5184
5185 fi
5186
5187
5188 pkg_failed=no
5189 { echo "$as_me:$LINENO: checking for LIBOPENOBEX" >&5
5190 echo $ECHO_N "checking for LIBOPENOBEX... $ECHO_C" >&6; }
5191
5192 if test -n "$PKG_CONFIG"; then
5193     if test -n "$LIBOPENOBEX_CFLAGS"; then
5194         pkg_cv_LIBOPENOBEX_CFLAGS="$LIBOPENOBEX_CFLAGS"
5195     else
5196         if test -n "$PKG_CONFIG" && \
5197     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5198   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; then
5202   pkg_cv_LIBOPENOBEX_CFLAGS=`$PKG_CONFIG --cflags "openobex" 2>/dev/null`
5203 else
5204   pkg_failed=yes
5205 fi
5206     fi
5207 else
5208         pkg_failed=untried
5209 fi
5210 if test -n "$PKG_CONFIG"; then
5211     if test -n "$LIBOPENOBEX_LIBS"; then
5212         pkg_cv_LIBOPENOBEX_LIBS="$LIBOPENOBEX_LIBS"
5213     else
5214         if test -n "$PKG_CONFIG" && \
5215     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openobex\"") >&5
5216   ($PKG_CONFIG --exists --print-errors "openobex") 2>&5
5217   ac_status=$?
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); }; then
5220   pkg_cv_LIBOPENOBEX_LIBS=`$PKG_CONFIG --libs "openobex" 2>/dev/null`
5221 else
5222   pkg_failed=yes
5223 fi
5224     fi
5225 else
5226         pkg_failed=untried
5227 fi
5228
5229
5230
5231 if test $pkg_failed = yes; then
5232
5233 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5234         _pkg_short_errors_supported=yes
5235 else
5236         _pkg_short_errors_supported=no
5237 fi
5238         if test $_pkg_short_errors_supported = yes; then
5239                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "openobex"`
5240         else
5241                 LIBOPENOBEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openobex"`
5242         fi
5243         # Put the nasty error message in config.log where it belongs
5244         echo "$LIBOPENOBEX_PKG_ERRORS" >&5
5245
5246         { echo "$as_me:$LINENO: result: no" >&5
5247 echo "${ECHO_T}no" >&6; }
5248                 have_obex="no"
5249 elif test $pkg_failed = untried; then
5250         have_obex="no"
5251 else
5252         LIBOPENOBEX_CFLAGS=$pkg_cv_LIBOPENOBEX_CFLAGS
5253         LIBOPENOBEX_LIBS=$pkg_cv_LIBOPENOBEX_LIBS
5254         { echo "$as_me:$LINENO: result: yes" >&5
5255 echo "${ECHO_T}yes" >&6; }
5256         have_obex="yes"
5257 fi
5258 if test $have_obex == "yes"; then
5259
5260 cat >>confdefs.h <<\_ACEOF
5261 #define ENABLE_OBEX 1
5262 _ACEOF
5263
5264
5265 pkg_failed=no
5266 { echo "$as_me:$LINENO: checking for BLUEZ" >&5
5267 echo $ECHO_N "checking for BLUEZ... $ECHO_C" >&6; }
5268
5269 if test -n "$PKG_CONFIG"; then
5270     if test -n "$BLUEZ_CFLAGS"; then
5271         pkg_cv_BLUEZ_CFLAGS="$BLUEZ_CFLAGS"
5272     else
5273         if test -n "$PKG_CONFIG" && \
5274     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5275   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5276   ac_status=$?
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); }; then
5279   pkg_cv_BLUEZ_CFLAGS=`$PKG_CONFIG --cflags "bluez" 2>/dev/null`
5280 else
5281   pkg_failed=yes
5282 fi
5283     fi
5284 else
5285         pkg_failed=untried
5286 fi
5287 if test -n "$PKG_CONFIG"; then
5288     if test -n "$BLUEZ_LIBS"; then
5289         pkg_cv_BLUEZ_LIBS="$BLUEZ_LIBS"
5290     else
5291         if test -n "$PKG_CONFIG" && \
5292     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"bluez\"") >&5
5293   ($PKG_CONFIG --exists --print-errors "bluez") 2>&5
5294   ac_status=$?
5295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); }; then
5297   pkg_cv_BLUEZ_LIBS=`$PKG_CONFIG --libs "bluez" 2>/dev/null`
5298 else
5299   pkg_failed=yes
5300 fi
5301     fi
5302 else
5303         pkg_failed=untried
5304 fi
5305
5306
5307
5308 if test $pkg_failed = yes; then
5309
5310 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5311         _pkg_short_errors_supported=yes
5312 else
5313         _pkg_short_errors_supported=no
5314 fi
5315         if test $_pkg_short_errors_supported = yes; then
5316                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "bluez"`
5317         else
5318                 BLUEZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "bluez"`
5319         fi
5320         # Put the nasty error message in config.log where it belongs
5321         echo "$BLUEZ_PKG_ERRORS" >&5
5322
5323         { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5325                 have_bluez="no"
5326 elif test $pkg_failed = untried; then
5327         have_bluez="no"
5328 else
5329         BLUEZ_CFLAGS=$pkg_cv_BLUEZ_CFLAGS
5330         BLUEZ_LIBS=$pkg_cv_BLUEZ_LIBS
5331         { echo "$as_me:$LINENO: result: yes" >&5
5332 echo "${ECHO_T}yes" >&6; }
5333         have_bluez="yes"
5334 fi
5335     if test $have_bluez == "yes"; then
5336
5337 cat >>confdefs.h <<\_ACEOF
5338 #define ENABLE_BLUETOOTH 1
5339 _ACEOF
5340
5341     fi
5342 fi
5343  if test "$have_obex" = "yes"; then
5344   ENABLE_OBEX_TRUE=
5345   ENABLE_OBEX_FALSE='#'
5346 else
5347   ENABLE_OBEX_TRUE='#'
5348   ENABLE_OBEX_FALSE=
5349 fi
5350
5351  if test "$have_bluez" = "yes"; then
5352   ENABLE_BLUETOOTH_TRUE=
5353   ENABLE_BLUETOOTH_FALSE='#'
5354 else
5355   ENABLE_BLUETOOTH_TRUE='#'
5356   ENABLE_BLUETOOTH_FALSE=
5357 fi
5358
5359
5360
5361
5362
5363
5364 TRANSPORT=
5365 TRANSPORT_LIBS=
5366 TRANSPORT_CFLAGS=
5367
5368
5369 # Check whether --with-ca-certificates was given.
5370 if test "${with_ca_certificates+set}" = set; then
5371   withval=$with_ca_certificates; CA_CERTIFICATES="$withval"
5372 fi
5373
5374
5375
5376 # choose default transport (mirrors code in EvolutionSyncClient::createTransportAgent())
5377 if test "$have_libsoup" = "yes"; then
5378    default_transport="libsoup"
5379 elif test "$have_libcurl" = "yes"; then
5380    default_transport="libcurl"
5381 fi
5382
5383 # Check whether --enable-libcurl was given.
5384 if test "${enable_libcurl+set}" = set; then
5385   enableval=$enable_libcurl;  if test "$enableval" = "yes"; then
5386                    test "$have_libcurl" = "yes" || { { echo "$as_me:$LINENO: error: libcurl not found" >&5
5387 echo "$as_me: error: libcurl not found" >&2;}
5388    { (exit 1); exit 1; }; }
5389                    TRANSPORT="$TRANSPORT libcurl"
5390                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5391                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5392
5393 cat >>confdefs.h <<\_ACEOF
5394 #define ENABLE_LIBCURL 1
5395 _ACEOF
5396
5397                 else
5398                    libcurl_disabled="yes"
5399                 fi
5400 else
5401    if test "$have_libcurl" = "yes" && test "$default_transport" = "libcurl" ; then
5402                    TRANSPORT="$TRANSPORT libcurl"
5403                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBCURL_LIBS"
5404                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBCURL_CFLAGS"
5405
5406 cat >>confdefs.h <<\_ACEOF
5407 #define ENABLE_LIBCURL 1
5408 _ACEOF
5409
5410                 fi
5411 fi
5412
5413
5414 # Check whether --enable-libsoup was given.
5415 if test "${enable_libsoup+set}" = set; then
5416   enableval=$enable_libsoup;  if test "$enableval" = "yes"; then
5417                    test "$have_libsoup" = "yes" || { { echo "$as_me:$LINENO: error: libsoup not found" >&5
5418 echo "$as_me: error: libsoup not found" >&2;}
5419    { (exit 1); exit 1; }; }
5420                    TRANSPORT="$TRANSPORT libsoup"
5421                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5422                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5423
5424 cat >>confdefs.h <<\_ACEOF
5425 #define ENABLE_LIBSOUP 1
5426 _ACEOF
5427
5428                 else
5429                    libsoup_disabled="yes"
5430                 fi
5431 else
5432    if test "$have_libsoup" = "yes" && test "$default_transport" = "libsoup"; then
5433                    TRANSPORT="$TRANSPORT libsoup"
5434                    TRANSPORT_LIBS="$TRANSPORT_LIBS $LIBSOUP_LIBS"
5435                    TRANSPORT_CFLAGS="$TRANSPORT_CFLAGS $LIBSOUP_CFLAGS"
5436
5437 cat >>confdefs.h <<\_ACEOF
5438 #define ENABLE_LIBSOUP 1
5439 _ACEOF
5440
5441                 fi
5442 fi
5443
5444
5445 if test ! "$TRANSPORT" &&
5446    test "$libsoup_disabled" != "yes" &&
5447    test "$libcurl_disabled" != "yes" &&
5448    test "$have_bluez" != "yes" ; then
5449    { { echo "$as_me:$LINENO: error: no transport library found, configure with --disable-libcurl --disable-libsoup to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&5
5450 echo "$as_me: error: no transport library found, configure with --disable-libcurl --disable-libsoup to continue anyway (only useful if users of libsyncevolution provide transport implementation)" >&2;}
5451    { (exit 1); exit 1; }; }
5452 fi
5453
5454 # for libsoup we must specify the SSL certificate file outself
5455 if test "$libsoup_disabled" != "yes" && test -z "$CA_CERTIFICATES"; then
5456    # Debian and Red Hat paths
5457    CA_CERTIFICATES="/etc/ssl/certs/ca-certificates.crt:/etc/pki/tls/certs/ca-bundle.crt:/usr/share/ssl/certs/ca-bundle.crt"
5458 fi
5459
5460 cat >>confdefs.h <<_ACEOF
5461 #define SYNCEVOLUTION_SSL_SERVER_CERTIFICATES "$CA_CERTIFICATES"
5462 _ACEOF
5463
5464
5465
5466
5467
5468 # Check whether --enable-ssl-certificate-check was given.
5469 if test "${enable_ssl_certificate_check+set}" = set; then
5470   enableval=$enable_ssl_certificate_check; enable_ssl_certificate_check="$enableval"
5471 else
5472   enable_ssl_certificate_check="yes"
5473 fi
5474
5475 if test "$enable_ssl_certificate_check" = "yes"; then
5476
5477 cat >>confdefs.h <<\_ACEOF
5478 #define ENABLE_SSL_CERTIFICATE_CHECK 1
5479 _ACEOF
5480
5481 fi
5482
5483 # for dbus interface file mangling
5484 # Extract the first word of "xsltproc", so it can be a program name with args.
5485 set dummy xsltproc; ac_word=$2
5486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5488 if test "${ac_cv_path_XSLT+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   case $XSLT in
5492   [\\/]* | ?:[\\/]*)
5493   ac_cv_path_XSLT="$XSLT" # Let the user override the test with a path.
5494   ;;
5495   *)
5496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5498 do
5499   IFS=$as_save_IFS
5500   test -z "$as_dir" && as_dir=.
5501   for ac_exec_ext in '' $ac_executable_extensions; do
5502   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503     ac_cv_path_XSLT="$as_dir/$ac_word$ac_exec_ext"
5504     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505     break 2
5506   fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511   ;;
5512 esac
5513 fi
5514 XSLT=$ac_cv_path_XSLT
5515 if test -n "$XSLT"; then
5516   { echo "$as_me:$LINENO: result: $XSLT" >&5
5517 echo "${ECHO_T}$XSLT" >&6; }
5518 else
5519   { echo "$as_me:$LINENO: result: no" >&5
5520 echo "${ECHO_T}no" >&6; }
5521 fi
5522
5523
5524
5525 # Check whether --enable-gui was given.
5526 if test "${enable_gui+set}" = set; then
5527   enableval=$enable_gui;  if test "$enableval" = "gtk" ; then
5528                     enable_gui=gtk
5529                 elif test "$enableval" = "yes" ; then
5530                     enable_gui=gtk
5531                 elif test "$enableval" = "moblin" ; then
5532                     enable_gui=moblin
5533                 elif test "$enableval" = "no" ; then
5534                     enable_gui=no
5535                 elif test "$enableval" = "all" ; then
5536                     enable_gui=all
5537                 else
5538                     { { echo "$as_me:$LINENO: error: Unknown gui type: '$enableval'" >&5
5539 echo "$as_me: error: Unknown gui type: '$enableval'" >&2;}
5540    { (exit 1); exit 1; }; }
5541                 fi
5542
5543 else
5544    enable_gui=no
5545 fi
5546
5547
5548  if test "$enable_gui" != "no"; then
5549   COND_GUI_TRUE=
5550   COND_GUI_FALSE='#'
5551 else
5552   COND_GUI_TRUE='#'
5553   COND_GUI_FALSE=
5554 fi
5555
5556
5557 # Check whether --enable-dbus-service was given.
5558 if test "${enable_dbus_service+set}" = set; then
5559   enableval=$enable_dbus_service; enable_dbus_service="$enableval"
5560 else
5561   if test $enable_gui == "no"; then
5562                   enable_dbus_service="no"
5563                else
5564                   enable_dbus_service="yes"
5565                fi
5566 fi
5567
5568  if test "$enable_dbus_service" = "yes"; then
5569   COND_DBUS_TRUE=
5570   COND_DBUS_FALSE='#'
5571 else
5572   COND_DBUS_TRUE='#'
5573   COND_DBUS_FALSE=
5574 fi
5575
5576
5577 if test $enable_gui != "no" && test $enable_dbus_service == "no"; then
5578    { { echo "$as_me:$LINENO: error: cannot build GUI without building the D-Bus service" >&5
5579 echo "$as_me: error: cannot build GUI without building the D-Bus service" >&2;}
5580    { (exit 1); exit 1; }; }
5581 fi
5582
5583
5584 pkg_failed=no
5585 { echo "$as_me:$LINENO: checking for KEYRING" >&5
5586 echo $ECHO_N "checking for KEYRING... $ECHO_C" >&6; }
5587
5588 if test -n "$PKG_CONFIG"; then
5589     if test -n "$KEYRING_CFLAGS"; then
5590         pkg_cv_KEYRING_CFLAGS="$KEYRING_CFLAGS"
5591     else
5592         if test -n "$PKG_CONFIG" && \
5593     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5594   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5595   ac_status=$?
5596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597   (exit $ac_status); }; then
5598   pkg_cv_KEYRING_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1" 2>/dev/null`
5599 else
5600   pkg_failed=yes
5601 fi
5602     fi
5603 else
5604         pkg_failed=untried
5605 fi
5606 if test -n "$PKG_CONFIG"; then
5607     if test -n "$KEYRING_LIBS"; then
5608         pkg_cv_KEYRING_LIBS="$KEYRING_LIBS"
5609     else
5610         if test -n "$PKG_CONFIG" && \
5611     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1\"") >&5
5612   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1") 2>&5
5613   ac_status=$?
5614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615   (exit $ac_status); }; then
5616   pkg_cv_KEYRING_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1" 2>/dev/null`
5617 else
5618   pkg_failed=yes
5619 fi
5620     fi
5621 else
5622         pkg_failed=untried
5623 fi
5624
5625
5626
5627 if test $pkg_failed = yes; then
5628
5629 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5630         _pkg_short_errors_supported=yes
5631 else
5632         _pkg_short_errors_supported=no
5633 fi
5634         if test $_pkg_short_errors_supported = yes; then
5635                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1"`
5636         else
5637                 KEYRING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1"`
5638         fi
5639         # Put the nasty error message in config.log where it belongs
5640         echo "$KEYRING_PKG_ERRORS" >&5
5641
5642         { echo "$as_me:$LINENO: result: no" >&5
5643 echo "${ECHO_T}no" >&6; }
5644                 HAVE_KEYRING=no
5645 elif test $pkg_failed = untried; then
5646         HAVE_KEYRING=no
5647 else
5648         KEYRING_CFLAGS=$pkg_cv_KEYRING_CFLAGS
5649         KEYRING_LIBS=$pkg_cv_KEYRING_LIBS
5650         { echo "$as_me:$LINENO: result: yes" >&5
5651 echo "${ECHO_T}yes" >&6; }
5652         HAVE_KEYRING=yes
5653 fi
5654 if test $HAVE_KEYRING == "yes"; then
5655
5656 cat >>confdefs.h <<\_ACEOF
5657 #define USE_GNOME_KEYRING 1
5658 _ACEOF
5659
5660
5661 pkg_failed=no
5662 { echo "$as_me:$LINENO: checking for KEYRING_2_20" >&5
5663 echo $ECHO_N "checking for KEYRING_2_20... $ECHO_C" >&6; }
5664
5665 if test -n "$PKG_CONFIG"; then
5666     if test -n "$KEYRING_2_20_CFLAGS"; then
5667         pkg_cv_KEYRING_2_20_CFLAGS="$KEYRING_2_20_CFLAGS"
5668     else
5669         if test -n "$PKG_CONFIG" && \
5670     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5671   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; then
5675   pkg_cv_KEYRING_2_20_CFLAGS=`$PKG_CONFIG --cflags "gnome-keyring-1 >= 2.20 " 2>/dev/null`
5676 else
5677   pkg_failed=yes
5678 fi
5679     fi
5680 else
5681         pkg_failed=untried
5682 fi
5683 if test -n "$PKG_CONFIG"; then
5684     if test -n "$KEYRING_2_20_LIBS"; then
5685         pkg_cv_KEYRING_2_20_LIBS="$KEYRING_2_20_LIBS"
5686     else
5687         if test -n "$PKG_CONFIG" && \
5688     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-keyring-1 >= 2.20 \"") >&5
5689   ($PKG_CONFIG --exists --print-errors "gnome-keyring-1 >= 2.20 ") 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; then
5693   pkg_cv_KEYRING_2_20_LIBS=`$PKG_CONFIG --libs "gnome-keyring-1 >= 2.20 " 2>/dev/null`
5694 else
5695   pkg_failed=yes
5696 fi
5697     fi
5698 else
5699         pkg_failed=untried
5700 fi
5701
5702
5703
5704 if test $pkg_failed = yes; then
5705
5706 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5707         _pkg_short_errors_supported=yes
5708 else
5709         _pkg_short_errors_supported=no
5710 fi
5711         if test $_pkg_short_errors_supported = yes; then
5712                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
5713         else
5714                 KEYRING_2_20_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-keyring-1 >= 2.20 "`
5715         fi
5716         # Put the nasty error message in config.log where it belongs
5717         echo "$KEYRING_2_20_PKG_ERRORS" >&5
5718
5719         { echo "$as_me:$LINENO: result: no" >&5
5720 echo "${ECHO_T}no" >&6; }
5721                 KEYRING220=no
5722 elif test $pkg_failed = untried; then
5723         KEYRING220=no
5724 else
5725         KEYRING_2_20_CFLAGS=$pkg_cv_KEYRING_2_20_CFLAGS
5726         KEYRING_2_20_LIBS=$pkg_cv_KEYRING_2_20_LIBS
5727         { echo "$as_me:$LINENO: result: yes" >&5
5728 echo "${ECHO_T}yes" >&6; }
5729         KEYRING220=yes
5730 fi
5731     if test $KEYRING220 == "yes"; then
5732
5733 cat >>confdefs.h <<\_ACEOF
5734 #define GNOME_KEYRING_220 1
5735 _ACEOF
5736
5737     fi
5738 fi
5739
5740 if test $enable_dbus_service == "yes"; then
5741
5742 pkg_failed=no
5743 { echo "$as_me:$LINENO: checking for DBUS_GLIB" >&5
5744 echo $ECHO_N "checking for DBUS_GLIB... $ECHO_C" >&6; }
5745
5746 if test -n "$PKG_CONFIG"; then
5747     if test -n "$DBUS_GLIB_CFLAGS"; then
5748         pkg_cv_DBUS_GLIB_CFLAGS="$DBUS_GLIB_CFLAGS"
5749     else
5750         if test -n "$PKG_CONFIG" && \
5751     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
5752   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
5753   ac_status=$?
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); }; then
5756   pkg_cv_DBUS_GLIB_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 glib-2.0" 2>/dev/null`
5757 else
5758   pkg_failed=yes
5759 fi
5760     fi
5761 else
5762         pkg_failed=untried
5763 fi
5764 if test -n "$PKG_CONFIG"; then
5765     if test -n "$DBUS_GLIB_LIBS"; then
5766         pkg_cv_DBUS_GLIB_LIBS="$DBUS_GLIB_LIBS"
5767     else
5768         if test -n "$PKG_CONFIG" && \
5769     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-glib-1 glib-2.0\"") >&5
5770   ($PKG_CONFIG --exists --print-errors "dbus-glib-1 glib-2.0") 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; then
5774   pkg_cv_DBUS_GLIB_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 glib-2.0" 2>/dev/null`
5775 else
5776   pkg_failed=yes
5777 fi
5778     fi
5779 else
5780         pkg_failed=untried
5781 fi
5782
5783
5784
5785 if test $pkg_failed = yes; then
5786
5787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5788         _pkg_short_errors_supported=yes
5789 else
5790         _pkg_short_errors_supported=no
5791 fi
5792         if test $_pkg_short_errors_supported = yes; then
5793                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
5794         else
5795                 DBUS_GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 glib-2.0"`
5796         fi
5797         # Put the nasty error message in config.log where it belongs
5798         echo "$DBUS_GLIB_PKG_ERRORS" >&5
5799
5800         { { echo "$as_me:$LINENO: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
5801
5802 $DBUS_GLIB_PKG_ERRORS
5803
5804 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5805 installed software in a non-standard prefix.
5806
5807 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5808 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5809 See the pkg-config man page for more details.
5810 " >&5
5811 echo "$as_me: error: Package requirements (dbus-glib-1 glib-2.0) were not met:
5812
5813 $DBUS_GLIB_PKG_ERRORS
5814
5815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5816 installed software in a non-standard prefix.
5817
5818 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5819 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5820 See the pkg-config man page for more details.
5821 " >&2;}
5822    { (exit 1); exit 1; }; }
5823 elif test $pkg_failed = untried; then
5824         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
5825 is in your PATH or set the PKG_CONFIG environment variable to the full
5826 path to pkg-config.
5827
5828 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5829 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5830 See the pkg-config man page for more details.
5831
5832 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5833 See \`config.log' for more details." >&5
5834 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
5835 is in your PATH or set the PKG_CONFIG environment variable to the full
5836 path to pkg-config.
5837
5838 Alternatively, you may set the environment variables DBUS_GLIB_CFLAGS
5839 and DBUS_GLIB_LIBS to avoid the need to call pkg-config.
5840 See the pkg-config man page for more details.
5841
5842 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5843 See \`config.log' for more details." >&2;}
5844    { (exit 1); exit 1; }; }
5845 else
5846         DBUS_GLIB_CFLAGS=$pkg_cv_DBUS_GLIB_CFLAGS
5847         DBUS_GLIB_LIBS=$pkg_cv_DBUS_GLIB_LIBS
5848         { echo "$as_me:$LINENO: result: yes" >&5
5849 echo "${ECHO_T}yes" >&6; }
5850         :
5851 fi
5852     # Extract the first word of "dbus-binding-tool", so it can be a program name with args.
5853 set dummy dbus-binding-tool; ac_word=$2
5854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5856 if test "${ac_cv_path_DBUS_BINDING_TOOL+set}" = set; then
5857   echo $ECHO_N "(cached) $ECHO_C" >&6
5858 else
5859   case $DBUS_BINDING_TOOL in
5860   [\\/]* | ?:[\\/]*)
5861   ac_cv_path_DBUS_BINDING_TOOL="$DBUS_BINDING_TOOL" # Let the user override the test with a path.
5862   ;;
5863   *)
5864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 for as_dir in $PATH
5866 do
5867   IFS=$as_save_IFS
5868   test -z "$as_dir" && as_dir=.
5869   for ac_exec_ext in '' $ac_executable_extensions; do
5870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871     ac_cv_path_DBUS_BINDING_TOOL="$as_dir/$ac_word$ac_exec_ext"
5872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873     break 2
5874   fi
5875 done
5876 done
5877 IFS=$as_save_IFS
5878
5879   ;;
5880 esac
5881 fi
5882 DBUS_BINDING_TOOL=$ac_cv_path_DBUS_BINDING_TOOL
5883 if test -n "$DBUS_BINDING_TOOL"; then
5884   { echo "$as_me:$LINENO: result: $DBUS_BINDING_TOOL" >&5
5885 echo "${ECHO_T}$DBUS_BINDING_TOOL" >&6; }
5886 else
5887   { echo "$as_me:$LINENO: result: no" >&5
5888 echo "${ECHO_T}no" >&6; }
5889 fi
5890
5891
5892     # Extract the first word of "glib-genmarshal", so it can be a program name with args.
5893 set dummy glib-genmarshal; ac_word=$2
5894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5896 if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
5897   echo $ECHO_N "(cached) $ECHO_C" >&6
5898 else
5899   case $GLIB_GENMARSHAL in
5900   [\\/]* | ?:[\\/]*)
5901   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
5902   ;;
5903   *)
5904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5906 do
5907   IFS=$as_save_IFS
5908   test -z "$as_dir" && as_dir=.
5909   for ac_exec_ext in '' $ac_executable_extensions; do
5910   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
5912     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913     break 2
5914   fi
5915 done
5916 done
5917 IFS=$as_save_IFS
5918
5919   ;;
5920 esac
5921 fi
5922 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
5923 if test -n "$GLIB_GENMARSHAL"; then
5924   { echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
5925 echo "${ECHO_T}$GLIB_GENMARSHAL" >&6; }
5926 else
5927   { echo "$as_me:$LINENO: result: no" >&5
5928 echo "${ECHO_T}no" >&6; }
5929 fi
5930
5931
5932     if test -z "$XSLT"; then
5933        { { echo "$as_me:$LINENO: error: xsltproc not found, is required for D-Bus service" >&5
5934 echo "$as_me: error: xsltproc not found, is required for D-Bus service" >&2;}
5935    { (exit 1); exit 1; }; }
5936     fi
5937
5938 pkg_failed=no
5939 { echo "$as_me:$LINENO: checking for DBUS" >&5
5940 echo $ECHO_N "checking for DBUS... $ECHO_C" >&6; }
5941
5942 if test -n "$PKG_CONFIG"; then
5943     if test -n "$DBUS_CFLAGS"; then
5944         pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
5945     else
5946         if test -n "$PKG_CONFIG" && \
5947     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
5948   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
5949   ac_status=$?
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); }; then
5952   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null`
5953 else
5954   pkg_failed=yes
5955 fi
5956     fi
5957 else
5958         pkg_failed=untried
5959 fi
5960 if test -n "$PKG_CONFIG"; then
5961     if test -n "$DBUS_LIBS"; then
5962         pkg_cv_DBUS_LIBS="$DBUS_LIBS"
5963     else
5964         if test -n "$PKG_CONFIG" && \
5965     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1\"") >&5
5966   ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5
5967   ac_status=$?
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); }; then
5970   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null`
5971 else
5972   pkg_failed=yes
5973 fi
5974     fi
5975 else
5976         pkg_failed=untried
5977 fi
5978
5979
5980
5981 if test $pkg_failed = yes; then
5982
5983 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5984         _pkg_short_errors_supported=yes
5985 else
5986         _pkg_short_errors_supported=no
5987 fi
5988         if test $_pkg_short_errors_supported = yes; then
5989                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "dbus-1"`
5990         else
5991                 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1"`
5992         fi
5993         # Put the nasty error message in config.log where it belongs
5994         echo "$DBUS_PKG_ERRORS" >&5
5995
5996         { echo "$as_me:$LINENO: result: no" >&5
5997 echo "${ECHO_T}no" >&6; }
5998                 { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
5999 echo "$as_me: error: libdbus-1 is required" >&2;}
6000    { (exit 1); exit 1; }; }
6001 elif test $pkg_failed = untried; then
6002         { { echo "$as_me:$LINENO: error: libdbus-1 is required" >&5
6003 echo "$as_me: error: libdbus-1 is required" >&2;}
6004    { (exit 1); exit 1; }; }
6005 else
6006         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
6007         DBUS_LIBS=$pkg_cv_DBUS_LIBS
6008         { echo "$as_me:$LINENO: result: yes" >&5
6009 echo "${ECHO_T}yes" >&6; }
6010         dummy=yes
6011 fi
6012     { echo "$as_me:$LINENO: checking for dbus_watch_get_unix_fd in -ldbus-1" >&5
6013 echo $ECHO_N "checking for dbus_watch_get_unix_fd in -ldbus-1... $ECHO_C" >&6; }
6014 if test "${ac_cv_lib_dbus_1_dbus_watch_get_unix_fd+set}" = set; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   ac_check_lib_save_LIBS=$LIBS
6018 LIBS="-ldbus-1  $LIBS"
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025
6026 /* Override any GCC internal prototype to avoid an error.
6027    Use char because int might match the return type of a GCC
6028    builtin and then its argument prototype would still apply.  */
6029 #ifdef __cplusplus
6030 extern "C"
6031 #endif
6032 char dbus_watch_get_unix_fd ();
6033 int
6034 main ()
6035 {
6036 return dbus_watch_get_unix_fd ();
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (ac_try="$ac_link"
6043 case "(($ac_try" in
6044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045   *) ac_try_echo=$ac_try;;
6046 esac
6047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048   (eval "$ac_link") 2>conftest.er1
6049   ac_status=$?
6050   grep -v '^ *+' conftest.er1 >conftest.err
6051   rm -f conftest.er1
6052   cat conftest.err >&5
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); } && {
6055          test -z "$ac_c_werror_flag" ||
6056          test ! -s conftest.err
6057        } && test -s conftest$ac_exeext &&
6058        $as_test_x conftest$ac_exeext; then
6059   ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=yes
6060 else
6061   echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064         ac_cv_lib_dbus_1_dbus_watch_get_unix_fd=no
6065 fi
6066
6067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6068       conftest$ac_exeext conftest.$ac_ext
6069 LIBS=$ac_check_lib_save_LIBS
6070 fi
6071 { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&5
6072 echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_watch_get_unix_fd" >&6; }
6073 if test $ac_cv_lib_dbus_1_dbus_watch_get_unix_fd = yes; then
6074   dummy=yes
6075 else
6076
6077 cat >>confdefs.h <<\_ACEOF
6078 #define NEED_DBUS_WATCH_GET_UNIX_FD 1
6079 _ACEOF
6080
6081 fi
6082
6083     need_glib=yes
6084 fi
6085
6086
6087
6088
6089
6090
6091
6092
6093 DBUS_SERVICES_DIR="${datadir}/dbus-1/services"
6094
6095
6096 cat >>confdefs.h <<_ACEOF
6097 #define DBUS_SERVICES_DIR "$DBUS_SERVICES_DIR"
6098 _ACEOF
6099
6100
6101 # decide which sync-ui(s) we are building:
6102 # sync-ui (in either GTK or Moblin mode) or both (in separate binaries)
6103 case $enable_gui in
6104      all) GUI_PROGRAMS='sync-ui-gtk${EXEEXT} sync-ui-moblin${EXEEXT}'; GUI_DESKTOP_FILES="sync-gtk.desktop sync-moblin.desktop";;
6105      gtk|moblin) GUI_PROGRAMS='sync-ui${EXEEXT}'; GUI_DESKTOP_FILES="sync.desktop";;
6106      no) GUI_PROGRAMS=; GUI_DESKTOP_FILES=;;
6107      *) { { echo "$as_me:$LINENO: error: Unknown enable_gui type: '$enable_gui'" >&5
6108 echo "$as_me: error: Unknown enable_gui type: '$enable_gui'" >&2;}
6109    { (exit 1); exit 1; }; }
6110 esac
6111
6112 if test $enable_gui != "no"; then
6113     gui_modules="glib-2.0 dbus-glib-1 >= 0.60 gtk+-2.0 libglade-2.0 gio-2.0"
6114     if test $enable_gui == "moblin"; then
6115
6116 cat >>confdefs.h <<\_ACEOF
6117 #define USE_MOBLIN_UX 1
6118 _ACEOF
6119
6120     fi
6121
6122
6123 pkg_failed=no
6124 { echo "$as_me:$LINENO: checking for UNIQUE" >&5
6125 echo $ECHO_N "checking for UNIQUE... $ECHO_C" >&6; }
6126
6127 if test -n "$PKG_CONFIG"; then
6128     if test -n "$UNIQUE_CFLAGS"; then
6129         pkg_cv_UNIQUE_CFLAGS="$UNIQUE_CFLAGS"
6130     else
6131         if test -n "$PKG_CONFIG" && \
6132     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
6133   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; then
6137   pkg_cv_UNIQUE_CFLAGS=`$PKG_CONFIG --cflags "unique-1.0" 2>/dev/null`
6138 else
6139   pkg_failed=yes
6140 fi
6141     fi
6142 else
6143         pkg_failed=untried
6144 fi
6145 if test -n "$PKG_CONFIG"; then
6146     if test -n "$UNIQUE_LIBS"; then
6147         pkg_cv_UNIQUE_LIBS="$UNIQUE_LIBS"
6148     else
6149         if test -n "$PKG_CONFIG" && \
6150     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"unique-1.0\"") >&5
6151   ($PKG_CONFIG --exists --print-errors "unique-1.0") 2>&5
6152   ac_status=$?
6153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154   (exit $ac_status); }; then
6155   pkg_cv_UNIQUE_LIBS=`$PKG_CONFIG --libs "unique-1.0" 2>/dev/null`
6156 else
6157   pkg_failed=yes
6158 fi
6159     fi
6160 else
6161         pkg_failed=untried
6162 fi
6163
6164
6165
6166 if test $pkg_failed = yes; then
6167
6168 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6169         _pkg_short_errors_supported=yes
6170 else
6171         _pkg_short_errors_supported=no
6172 fi
6173         if test $_pkg_short_errors_supported = yes; then
6174                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "unique-1.0"`
6175         else
6176                 UNIQUE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "unique-1.0"`
6177         fi
6178         # Put the nasty error message in config.log where it belongs
6179         echo "$UNIQUE_PKG_ERRORS" >&5
6180
6181         { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6183                 have_unique="no"
6184 elif test $pkg_failed = untried; then
6185         have_unique="no"
6186 else
6187         UNIQUE_CFLAGS=$pkg_cv_UNIQUE_CFLAGS
6188         UNIQUE_LIBS=$pkg_cv_UNIQUE_LIBS
6189         { echo "$as_me:$LINENO: result: yes" >&5
6190 echo "${ECHO_T}yes" >&6; }
6191         have_unique="yes"
6192 fi
6193     if test $have_unique == "yes"; then
6194         gui_modules="$gui_modules unique-1.0"
6195
6196 cat >>confdefs.h <<\_ACEOF
6197 #define ENABLE_UNIQUE 1
6198 _ACEOF
6199
6200     fi
6201
6202 pkg_failed=no
6203 { echo "$as_me:$LINENO: checking for GUI" >&5
6204 echo $ECHO_N "checking for GUI... $ECHO_C" >&6; }
6205
6206 if test -n "$PKG_CONFIG"; then
6207     if test -n "$GUI_CFLAGS"; then
6208         pkg_cv_GUI_CFLAGS="$GUI_CFLAGS"
6209     else
6210         if test -n "$PKG_CONFIG" && \
6211     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
6212   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
6213   ac_status=$?
6214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215   (exit $ac_status); }; then
6216   pkg_cv_GUI_CFLAGS=`$PKG_CONFIG --cflags "$gui_modules" 2>/dev/null`
6217 else
6218   pkg_failed=yes
6219 fi
6220     fi
6221 else
6222         pkg_failed=untried
6223 fi
6224 if test -n "$PKG_CONFIG"; then
6225     if test -n "$GUI_LIBS"; then
6226         pkg_cv_GUI_LIBS="$GUI_LIBS"
6227     else
6228         if test -n "$PKG_CONFIG" && \
6229     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$gui_modules\"") >&5
6230   ($PKG_CONFIG --exists --print-errors "$gui_modules") 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); }; then
6234   pkg_cv_GUI_LIBS=`$PKG_CONFIG --libs "$gui_modules" 2>/dev/null`
6235 else
6236   pkg_failed=yes
6237 fi
6238     fi
6239 else
6240         pkg_failed=untried
6241 fi
6242
6243
6244
6245 if test $pkg_failed = yes; then
6246
6247 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6248         _pkg_short_errors_supported=yes
6249 else
6250         _pkg_short_errors_supported=no
6251 fi
6252         if test $_pkg_short_errors_supported = yes; then
6253                 GUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gui_modules"`
6254         else
6255                 GUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gui_modules"`
6256         fi
6257         # Put the nasty error message in config.log where it belongs
6258         echo "$GUI_PKG_ERRORS" >&5
6259
6260         { { echo "$as_me:$LINENO: error: Package requirements ($gui_modules) were not met:
6261
6262 $GUI_PKG_ERRORS
6263
6264 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6265 installed software in a non-standard prefix.
6266
6267 Alternatively, you may set the environment variables GUI_CFLAGS
6268 and GUI_LIBS to avoid the need to call pkg-config.
6269 See the pkg-config man page for more details.
6270 " >&5
6271 echo "$as_me: error: Package requirements ($gui_modules) were not met:
6272
6273 $GUI_PKG_ERRORS
6274
6275 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6276 installed software in a non-standard prefix.
6277
6278 Alternatively, you may set the environment variables GUI_CFLAGS
6279 and GUI_LIBS to avoid the need to call pkg-config.
6280 See the pkg-config man page for more details.
6281 " >&2;}
6282    { (exit 1); exit 1; }; }
6283 elif test $pkg_failed = untried; then
6284         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
6285 is in your PATH or set the PKG_CONFIG environment variable to the full
6286 path to pkg-config.
6287
6288 Alternatively, you may set the environment variables GUI_CFLAGS
6289 and GUI_LIBS to avoid the need to call pkg-config.
6290 See the pkg-config man page for more details.
6291
6292 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6293 See \`config.log' for more details." >&5
6294 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
6295 is in your PATH or set the PKG_CONFIG environment variable to the full
6296 path to pkg-config.
6297
6298 Alternatively, you may set the environment variables GUI_CFLAGS
6299 and GUI_LIBS to avoid the need to call pkg-config.
6300 See the pkg-config man page for more details.
6301
6302 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6303 See \`config.log' for more details." >&2;}
6304    { (exit 1); exit 1; }; }
6305 else
6306         GUI_CFLAGS=$pkg_cv_GUI_CFLAGS
6307         GUI_LIBS=$pkg_cv_GUI_LIBS
6308         { echo "$as_me:$LINENO: result: yes" >&5
6309 echo "${ECHO_T}yes" >&6; }
6310         :
6311 fi
6312
6313     # Extract the first word of "gtk-builder-convert", so it can be a program name with args.
6314 set dummy gtk-builder-convert; ac_word=$2
6315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6317 if test "${ac_cv_path_GTK_BUILDER_CONV+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   case $GTK_BUILDER_CONV in
6321   [\\/]* | ?:[\\/]*)
6322   ac_cv_path_GTK_BUILDER_CONV="$GTK_BUILDER_CONV" # Let the user override the test with a path.
6323   ;;
6324   *)
6325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6327 do
6328   IFS=$as_save_IFS
6329   test -z "$as_dir" && as_dir=.
6330   for ac_exec_ext in '' $ac_executable_extensions; do
6331   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332     ac_cv_path_GTK_BUILDER_CONV="$as_dir/$ac_word$ac_exec_ext"
6333     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6334     break 2
6335   fi
6336 done
6337 done
6338 IFS=$as_save_IFS
6339
6340   ;;
6341 esac
6342 fi
6343 GTK_BUILDER_CONV=$ac_cv_path_GTK_BUILDER_CONV
6344 if test -n "$GTK_BUILDER_CONV"; then
6345   { echo "$as_me:$LINENO: result: $GTK_BUILDER_CONV" >&5
6346 echo "${ECHO_T}$GTK_BUILDER_CONV" >&6; }
6347 else
6348   { echo "$as_me:$LINENO: result: no" >&5
6349 echo "${ECHO_T}no" >&6; }
6350 fi
6351
6352
6353
6354   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6355 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6356     # Check whether --enable-nls was given.
6357 if test "${enable_nls+set}" = set; then
6358   enableval=$enable_nls; USE_NLS=$enableval
6359 else
6360   USE_NLS=yes
6361 fi
6362
6363   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6364 echo "${ECHO_T}$USE_NLS" >&6; }
6365
6366
6367
6368
6369 case "$am__api_version" in
6370     1.01234)
6371         { { echo "$as_me:$LINENO: error: Automake 1.5 or newer is required to use intltool" >&5
6372 echo "$as_me: error: Automake 1.5 or newer is required to use intltool" >&2;}
6373    { (exit 1); exit 1; }; }
6374     ;;
6375     *)
6376     ;;
6377 esac
6378
6379 if test -n "0.37.1"; then
6380     { echo "$as_me:$LINENO: checking for intltool >= 0.37.1" >&5
6381 echo $ECHO_N "checking for intltool >= 0.37.1... $ECHO_C" >&6; }
6382
6383     INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.37.1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6384     INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
6385     INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
6386
6387     { echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
6388 echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6; }
6389     test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
6390         { { echo "$as_me:$LINENO: error: Your intltool is too old.  You need intltool 0.37.1 or later." >&5
6391 echo "$as_me: error: Your intltool is too old.  You need intltool 0.37.1 or later." >&2;}
6392    { (exit 1); exit 1; }; }
6393 fi
6394
6395 # Extract the first word of "intltool-update", so it can be a program name with args.
6396 set dummy intltool-update; ac_word=$2
6397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6399 if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   case $INTLTOOL_UPDATE in
6403   [\\/]* | ?:[\\/]*)
6404   ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
6405   ;;
6406   *)
6407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in $PATH
6409 do
6410   IFS=$as_save_IFS
6411   test -z "$as_dir" && as_dir=.
6412   for ac_exec_ext in '' $ac_executable_extensions; do
6413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414     ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
6415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416     break 2
6417   fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422   ;;
6423 esac
6424 fi
6425 INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
6426 if test -n "$INTLTOOL_UPDATE"; then
6427   { echo "$as_me:$LINENO: result: $INTLTOOL_UPDATE" >&5
6428 echo "${ECHO_T}$INTLTOOL_UPDATE" >&6; }
6429 else
6430   { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6432 fi
6433
6434
6435 # Extract the first word of "intltool-merge", so it can be a program name with args.
6436 set dummy intltool-merge; ac_word=$2
6437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6439 if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then
6440   echo $ECHO_N "(cached) $ECHO_C" >&6
6441 else
6442   case $INTLTOOL_MERGE in
6443   [\\/]* | ?:[\\/]*)
6444   ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
6445   ;;
6446   *)
6447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in $PATH
6449 do
6450   IFS=$as_save_IFS
6451   test -z "$as_dir" && as_dir=.
6452   for ac_exec_ext in '' $ac_executable_extensions; do
6453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454     ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
6455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6456     break 2
6457   fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462   ;;
6463 esac
6464 fi
6465 INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
6466 if test -n "$INTLTOOL_MERGE"; then
6467   { echo "$as_me:$LINENO: result: $INTLTOOL_MERGE" >&5
6468 echo "${ECHO_T}$INTLTOOL_MERGE" >&6; }
6469 else
6470   { echo "$as_me:$LINENO: result: no" >&5
6471 echo "${ECHO_T}no" >&6; }
6472 fi
6473
6474
6475 # Extract the first word of "intltool-extract", so it can be a program name with args.
6476 set dummy intltool-extract; ac_word=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   case $INTLTOOL_EXTRACT in
6483   [\\/]* | ?:[\\/]*)
6484   ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
6485   ;;
6486   *)
6487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 for as_dir in $PATH
6489 do
6490   IFS=$as_save_IFS
6491   test -z "$as_dir" && as_dir=.
6492   for ac_exec_ext in '' $ac_executable_extensions; do
6493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494     ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
6495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6496     break 2
6497   fi
6498 done
6499 done
6500 IFS=$as_save_IFS
6501
6502   ;;
6503 esac
6504 fi
6505 INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
6506 if test -n "$INTLTOOL_EXTRACT"; then
6507   { echo "$as_me:$LINENO: result: $INTLTOOL_EXTRACT" >&5
6508 echo "${ECHO_T}$INTLTOOL_EXTRACT" >&6; }
6509 else
6510   { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6512 fi
6513
6514
6515 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
6516     { { echo "$as_me:$LINENO: error: The intltool scripts were not found. Please install intltool." >&5
6517 echo "$as_me: error: The intltool scripts were not found. Please install intltool." >&2;}
6518    { (exit 1); exit 1; }; }
6519 fi
6520
6521   INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6522 INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6523      INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6524      INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6525       INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
6526      INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6527    INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6528     INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6529 INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6530        INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6531       INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6532       INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
6533       INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6534       INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6535     INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6536   INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6537     INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6538     INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6539    INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637 # Check the gettext tools to make sure they are GNU
6638 # Extract the first word of "xgettext", so it can be a program name with args.
6639 set dummy xgettext; ac_word=$2
6640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6642 if test "${ac_cv_path_XGETTEXT+set}" = set; then
6643   echo $ECHO_N "(cached) $ECHO_C" >&6
6644 else
6645   case $XGETTEXT in
6646   [\\/]* | ?:[\\/]*)
6647   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6648   ;;
6649   *)
6650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655   for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
6658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662 done
6663 IFS=$as_save_IFS
6664
6665   ;;
6666 esac
6667 fi
6668 XGETTEXT=$ac_cv_path_XGETTEXT
6669 if test -n "$XGETTEXT"; then
6670   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6671 echo "${ECHO_T}$XGETTEXT" >&6; }
6672 else
6673   { echo "$as_me:$LINENO: result: no" >&5
6674 echo "${ECHO_T}no" >&6; }
6675 fi
6676
6677
6678 # Extract the first word of "msgmerge", so it can be a program name with args.
6679 set dummy msgmerge; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   case $MSGMERGE in
6686   [\\/]* | ?:[\\/]*)
6687   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6688   ;;
6689   *)
6690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695   for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
6698     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702 done
6703 IFS=$as_save_IFS
6704
6705   ;;
6706 esac
6707 fi
6708 MSGMERGE=$ac_cv_path_MSGMERGE
6709 if test -n "$MSGMERGE"; then
6710   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6711 echo "${ECHO_T}$MSGMERGE" >&6; }
6712 else
6713   { echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6; }
6715 fi
6716
6717
6718 # Extract the first word of "msgfmt", so it can be a program name with args.
6719 set dummy msgfmt; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_path_MSGFMT+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   case $MSGFMT in
6726   [\\/]* | ?:[\\/]*)
6727   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6728   ;;
6729   *)
6730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731 for as_dir in $PATH
6732 do
6733   IFS=$as_save_IFS
6734   test -z "$as_dir" && as_dir=.
6735   for ac_exec_ext in '' $ac_executable_extensions; do
6736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739     break 2
6740   fi
6741 done
6742 done
6743 IFS=$as_save_IFS
6744
6745   ;;
6746 esac
6747 fi
6748 MSGFMT=$ac_cv_path_MSGFMT
6749 if test -n "$MSGFMT"; then
6750   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6751 echo "${ECHO_T}$MSGFMT" >&6; }
6752 else
6753   { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6755 fi
6756
6757
6758 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6759 set dummy gmsgfmt; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_path_GMSGFMT+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   case $GMSGFMT in
6766   [\\/]* | ?:[\\/]*)
6767   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6768   ;;
6769   *)
6770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773   IFS=$as_save_IFS
6774   test -z "$as_dir" && as_dir=.
6775   for ac_exec_ext in '' $ac_executable_extensions; do
6776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779     break 2
6780   fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6786   ;;
6787 esac
6788 fi
6789 GMSGFMT=$ac_cv_path_GMSGFMT
6790 if test -n "$GMSGFMT"; then
6791   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
6792 echo "${ECHO_T}$GMSGFMT" >&6; }
6793 else
6794   { echo "$as_me:$LINENO: result: no" >&5
6795 echo "${ECHO_T}no" >&6; }
6796 fi
6797
6798
6799 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
6800     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6801 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6802    { (exit 1); exit 1; }; }
6803 fi
6804 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
6805 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
6806 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
6807 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
6808     { { echo "$as_me:$LINENO: error: GNU gettext tools not found; required for intltool" >&5
6809 echo "$as_me: error: GNU gettext tools not found; required for intltool" >&2;}
6810    { (exit 1); exit 1; }; }
6811 fi
6812
6813 # Extract the first word of "perl", so it can be a program name with args.
6814 set dummy perl; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   case $INTLTOOL_PERL in
6821   [\\/]* | ?:[\\/]*)
6822   ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
6823   ;;
6824   *)
6825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830   for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
6833     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837 done
6838 IFS=$as_save_IFS
6839
6840   ;;
6841 esac
6842 fi
6843 INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
6844 if test -n "$INTLTOOL_PERL"; then
6845   { echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
6846 echo "${ECHO_T}$INTLTOOL_PERL" >&6; }
6847 else
6848   { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6850 fi
6851
6852
6853 if test -z "$INTLTOOL_PERL"; then
6854    { { echo "$as_me:$LINENO: error: perl not found" >&5
6855 echo "$as_me: error: perl not found" >&2;}
6856    { (exit 1); exit 1; }; }
6857 fi
6858 { echo "$as_me:$LINENO: checking for perl >= 5.8.1" >&5
6859 echo $ECHO_N "checking for perl >= 5.8.1... $ECHO_C" >&6; }
6860 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
6861 if test $? -ne 0; then
6862    { { echo "$as_me:$LINENO: error: perl 5.8.1 is required for intltool" >&5
6863 echo "$as_me: error: perl 5.8.1 is required for intltool" >&2;}
6864    { (exit 1); exit 1; }; }
6865 else
6866    IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
6867    { echo "$as_me:$LINENO: result: $IT_PERL_VERSION" >&5
6868 echo "${ECHO_T}$IT_PERL_VERSION" >&6; }
6869 fi
6870 if test "x" != "xno-xml"; then
6871    { echo "$as_me:$LINENO: checking for XML::Parser" >&5
6872 echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6; }
6873    if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
6874        { echo "$as_me:$LINENO: result: ok" >&5
6875 echo "${ECHO_T}ok" >&6; }
6876    else
6877        { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
6878 echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
6879    { (exit 1); exit 1; }; }
6880    fi
6881 fi
6882
6883 # Substitute ALL_LINGUAS so we can use it in po/Makefile
6884
6885
6886 # Set DATADIRNAME correctly if it is not set yet
6887 # (copied from glib-gettext.m4)
6888 if test -z "$DATADIRNAME"; then
6889   cat >conftest.$ac_ext <<_ACEOF
6890 /* confdefs.h.  */
6891 _ACEOF
6892 cat confdefs.h >>conftest.$ac_ext
6893 cat >>conftest.$ac_ext <<_ACEOF
6894 /* end confdefs.h.  */
6895
6896 int
6897 main ()
6898 {
6899 extern int _nl_msg_cat_cntr;
6900                        return _nl_msg_cat_cntr
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909   *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912   (eval "$ac_link") 2>conftest.er1
6913   ac_status=$?
6914   grep -v '^ *+' conftest.er1 >conftest.err
6915   rm -f conftest.er1
6916   cat conftest.err >&5
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } && {
6919          test -z "$ac_c_werror_flag" ||
6920          test ! -s conftest.err
6921        } && test -s conftest$ac_exeext &&
6922        $as_test_x conftest$ac_exeext; then
6923   DATADIRNAME=share
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928         case $host in
6929     *-*-solaris*)
6930                         { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
6931 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
6932 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
6933   echo $ECHO_N "(cached) $ECHO_C" >&6
6934 else
6935   cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h.  */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h.  */
6941 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
6942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6943 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
6944
6945 /* System header to define __stub macros and hopefully few prototypes,
6946     which can conflict with char bind_textdomain_codeset (); below.
6947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6948     <limits.h> exists even on freestanding compilers.  */
6949
6950 #ifdef __STDC__
6951 # include <limits.h>
6952 #else
6953 # include <assert.h>
6954 #endif
6955
6956 #undef bind_textdomain_codeset
6957
6958 /* Override any GCC internal prototype to avoid an error.
6959    Use char because int might match the return type of a GCC
6960    builtin and then its argument prototype would still apply.  */
6961 #ifdef __cplusplus
6962 extern "C"
6963 #endif
6964 char bind_textdomain_codeset ();
6965 /* The GNU C library defines this for functions which it implements
6966     to always fail with ENOSYS.  Some functions are actually named
6967     something starting with __ and the normal name is an alias.  */
6968 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
6969 choke me
6970 #endif
6971
6972 int
6973 main ()
6974 {
6975 return bind_textdomain_codeset ();
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 rm -f conftest.$ac_objext conftest$ac_exeext
6981 if { (ac_try="$ac_link"
6982 case "(($ac_try" in
6983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6984   *) ac_try_echo=$ac_try;;
6985 esac
6986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6987   (eval "$ac_link") 2>conftest.er1
6988   ac_status=$?
6989   grep -v '^ *+' conftest.er1 >conftest.err
6990   rm -f conftest.er1
6991   cat conftest.err >&5
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } && {
6994          test -z "$ac_c_werror_flag" ||
6995          test ! -s conftest.err
6996        } && test -s conftest$ac_exeext &&
6997        $as_test_x conftest$ac_exeext; then
6998   ac_cv_func_bind_textdomain_codeset=yes
6999 else
7000   echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7002
7003         ac_cv_func_bind_textdomain_codeset=no
7004 fi
7005
7006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7007       conftest$ac_exeext conftest.$ac_ext
7008 fi
7009 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7010 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7011 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7012   DATADIRNAME=share
7013 else
7014   DATADIRNAME=lib
7015 fi
7016
7017     ;;
7018     *)
7019     DATADIRNAME=lib
7020     ;;
7021     esac
7022 fi
7023
7024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7025       conftest$ac_exeext conftest.$ac_ext
7026 fi
7027
7028
7029
7030
7031
7032     GETTEXT_PACKAGE=syncevolution
7033
7034 cat >>confdefs.h <<_ACEOF
7035 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7036 _ACEOF
7037
7038
7039
7040 for ac_header in locale.h
7041 do
7042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7044   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7047   echo $ECHO_N "(cached) $ECHO_C" >&6
7048 fi
7049 ac_res=`eval echo '${'$as_ac_Header'}'`
7050                { echo "$as_me:$LINENO: result: $ac_res" >&5
7051 echo "${ECHO_T}$ac_res" >&6; }
7052 else
7053   # Is the header compilable?
7054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h.  */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h.  */
7062 $ac_includes_default
7063 #include <$ac_header>
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (ac_try="$ac_compile"
7067 case "(($ac_try" in
7068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069   *) ac_try_echo=$ac_try;;
7070 esac
7071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072   (eval "$ac_compile") 2>conftest.er1
7073   ac_status=$?
7074   grep -v '^ *+' conftest.er1 >conftest.err
7075   rm -f conftest.er1
7076   cat conftest.err >&5
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); } && {
7079          test -z "$ac_c_werror_flag" ||
7080          test ! -s conftest.err
7081        } && test -s conftest.$ac_objext; then
7082   ac_header_compiler=yes
7083 else
7084   echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087         ac_header_compiler=no
7088 fi
7089
7090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7092 echo "${ECHO_T}$ac_header_compiler" >&6; }
7093
7094 # Is the header present?
7095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7097 cat >conftest.$ac_ext <<_ACEOF
7098 /* confdefs.h.  */
7099 _ACEOF
7100 cat confdefs.h >>conftest.$ac_ext
7101 cat >>conftest.$ac_ext <<_ACEOF
7102 /* end confdefs.h.  */
7103 #include <$ac_header>
7104 _ACEOF
7105 if { (ac_try="$ac_cpp conftest.$ac_ext"
7106 case "(($ac_try" in
7107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7108   *) ac_try_echo=$ac_try;;
7109 esac
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } >/dev/null && {
7118          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7119          test ! -s conftest.err
7120        }; then
7121   ac_header_preproc=yes
7122 else
7123   echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126   ac_header_preproc=no
7127 fi
7128
7129 rm -f conftest.err conftest.$ac_ext
7130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7131 echo "${ECHO_T}$ac_header_preproc" >&6; }
7132
7133 # So?  What about this header?
7134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7135   yes:no: )
7136     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7138     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7140     ac_header_preproc=yes
7141     ;;
7142   no:yes:* )
7143     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7145     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7146 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7147     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7149     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7150 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7151     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7153     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7155
7156     ;;
7157 esac
7158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7161   echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163   eval "$as_ac_Header=\$ac_header_preproc"
7164 fi
7165 ac_res=`eval echo '${'$as_ac_Header'}'`
7166                { echo "$as_me:$LINENO: result: $ac_res" >&5
7167 echo "${ECHO_T}$ac_res" >&6; }
7168
7169 fi
7170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7171   cat >>confdefs.h <<_ACEOF
7172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7173 _ACEOF
7174
7175 fi
7176
7177 done
7178
7179     if test $ac_cv_header_locale_h = yes; then
7180     { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
7181 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
7182 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
7183   echo $ECHO_N "(cached) $ECHO_C" >&6
7184 else
7185   cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h.  */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h.  */
7191 #include <locale.h>
7192 int
7193 main ()
7194 {
7195 return LC_MESSAGES
7196   ;
7197   return 0;
7198 }
7199 _ACEOF
7200 rm -f conftest.$ac_objext conftest$ac_exeext
7201 if { (ac_try="$ac_link"
7202 case "(($ac_try" in
7203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204   *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207   (eval "$ac_link") 2>conftest.er1
7208   ac_status=$?
7209   grep -v '^ *+' conftest.er1 >conftest.err
7210   rm -f conftest.er1
7211   cat conftest.err >&5
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } && {
7214          test -z "$ac_c_werror_flag" ||
7215          test ! -s conftest.err
7216        } && test -s conftest$ac_exeext &&
7217        $as_test_x conftest$ac_exeext; then
7218   am_cv_val_LC_MESSAGES=yes
7219 else
7220   echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223         am_cv_val_LC_MESSAGES=no
7224 fi
7225
7226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7227       conftest$ac_exeext conftest.$ac_ext
7228 fi
7229 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
7230 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
7231     if test $am_cv_val_LC_MESSAGES = yes; then
7232
7233 cat >>confdefs.h <<\_ACEOF
7234 #define HAVE_LC_MESSAGES 1
7235 _ACEOF
7236
7237     fi
7238   fi
7239      USE_NLS=yes
7240
7241
7242     gt_cv_have_gettext=no
7243
7244     CATOBJEXT=NONE
7245     XGETTEXT=:
7246     INTLLIBS=
7247
7248     if test "${ac_cv_header_libintl_h+set}" = set; then
7249   { echo "$as_me:$LINENO: checking for libintl.h" >&5
7250 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7251 if test "${ac_cv_header_libintl_h+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 fi
7254 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7255 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7256 else
7257   # Is the header compilable?
7258 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
7259 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h.  */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h.  */
7266 $ac_includes_default
7267 #include <libintl.h>
7268 _ACEOF
7269 rm -f conftest.$ac_objext
7270 if { (ac_try="$ac_compile"
7271 case "(($ac_try" in
7272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273   *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276   (eval "$ac_compile") 2>conftest.er1
7277   ac_status=$?
7278   grep -v '^ *+' conftest.er1 >conftest.err
7279   rm -f conftest.er1
7280   cat conftest.err >&5
7281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282   (exit $ac_status); } && {
7283          test -z "$ac_c_werror_flag" ||
7284          test ! -s conftest.err
7285        } && test -s conftest.$ac_objext; then
7286   ac_header_compiler=yes
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291         ac_header_compiler=no
7292 fi
7293
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7296 echo "${ECHO_T}$ac_header_compiler" >&6; }
7297
7298 # Is the header present?
7299 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
7300 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
7301 cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307 #include <libintl.h>
7308 _ACEOF
7309 if { (ac_try="$ac_cpp conftest.$ac_ext"
7310 case "(($ac_try" in
7311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312   *) ac_try_echo=$ac_try;;
7313 esac
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7316   ac_status=$?
7317   grep -v '^ *+' conftest.er1 >conftest.err
7318   rm -f conftest.er1
7319   cat conftest.err >&5
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); } >/dev/null && {
7322          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7323          test ! -s conftest.err
7324        }; then
7325   ac_header_preproc=yes
7326 else
7327   echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330   ac_header_preproc=no
7331 fi
7332
7333 rm -f conftest.err conftest.$ac_ext
7334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7335 echo "${ECHO_T}$ac_header_preproc" >&6; }
7336
7337 # So?  What about this header?
7338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7339   yes:no: )
7340     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7341 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7342     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
7343 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
7344     ac_header_preproc=yes
7345     ;;
7346   no:yes:* )
7347     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
7349     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
7351     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
7352 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
7353     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
7354 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7355     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
7356 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
7357     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
7358 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
7359
7360     ;;
7361 esac
7362 { echo "$as_me:$LINENO: checking for libintl.h" >&5
7363 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
7364 if test "${ac_cv_header_libintl_h+set}" = set; then
7365   echo $ECHO_N "(cached) $ECHO_C" >&6
7366 else
7367   ac_cv_header_libintl_h=$ac_header_preproc
7368 fi
7369 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
7370 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
7371
7372 fi
7373 if test $ac_cv_header_libintl_h = yes; then
7374   gt_cv_func_dgettext_libintl="no"
7375       libintl_extra_libs=""
7376
7377       #
7378       # First check in libc
7379       #
7380       { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
7381 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
7382 if test "${gt_cv_func_ngettext_libc+set}" = set; then
7383   echo $ECHO_N "(cached) $ECHO_C" >&6
7384 else
7385   cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h.  */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h.  */
7391
7392 #include <libintl.h>
7393
7394 int
7395 main ()
7396 {
7397 return !ngettext ("","", 1)
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7404 case "(($ac_try" in
7405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406   *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409   (eval "$ac_link") 2>conftest.er1
7410   ac_status=$?
7411   grep -v '^ *+' conftest.er1 >conftest.err
7412   rm -f conftest.er1
7413   cat conftest.err >&5
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); } && {
7416          test -z "$ac_c_werror_flag" ||
7417          test ! -s conftest.err
7418        } && test -s conftest$ac_exeext &&
7419        $as_test_x conftest$ac_exeext; then
7420   gt_cv_func_ngettext_libc=yes
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425         gt_cv_func_ngettext_libc=no
7426 fi
7427
7428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7429       conftest$ac_exeext conftest.$ac_ext
7430
7431 fi
7432 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
7433 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
7434
7435       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7436               { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
7437 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
7438 if test "${gt_cv_func_dgettext_libc+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h.  */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h.  */
7447
7448 #include <libintl.h>
7449
7450 int
7451 main ()
7452 {
7453 return !dgettext ("","")
7454   ;
7455   return 0;
7456 }
7457 _ACEOF
7458 rm -f conftest.$ac_objext conftest$ac_exeext
7459 if { (ac_try="$ac_link"
7460 case "(($ac_try" in
7461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7462   *) ac_try_echo=$ac_try;;
7463 esac
7464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7465   (eval "$ac_link") 2>conftest.er1
7466   ac_status=$?
7467   grep -v '^ *+' conftest.er1 >conftest.err
7468   rm -f conftest.er1
7469   cat conftest.err >&5
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); } && {
7472          test -z "$ac_c_werror_flag" ||
7473          test ! -s conftest.err
7474        } && test -s conftest$ac_exeext &&
7475        $as_test_x conftest$ac_exeext; then
7476   gt_cv_func_dgettext_libc=yes
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481         gt_cv_func_dgettext_libc=no
7482 fi
7483
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485       conftest$ac_exeext conftest.$ac_ext
7486
7487 fi
7488 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
7489 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
7490       fi
7491
7492       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
7493
7494 for ac_func in bind_textdomain_codeset
7495 do
7496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7500   echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502   cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h.  */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h.  */
7508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7510 #define $ac_func innocuous_$ac_func
7511
7512 /* System header to define __stub macros and hopefully few prototypes,
7513     which can conflict with char $ac_func (); below.
7514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7515     <limits.h> exists even on freestanding compilers.  */
7516
7517 #ifdef __STDC__
7518 # include <limits.h>
7519 #else
7520 # include <assert.h>
7521 #endif
7522
7523 #undef $ac_func
7524
7525 /* Override any GCC internal prototype to avoid an error.
7526    Use char because int might match the return type of a GCC
7527    builtin and then its argument prototype would still apply.  */
7528 #ifdef __cplusplus
7529 extern "C"
7530 #endif
7531 char $ac_func ();
7532 /* The GNU C library defines this for functions which it implements
7533     to always fail with ENOSYS.  Some functions are actually named
7534     something starting with __ and the normal name is an alias.  */
7535 #if defined __stub_$ac_func || defined __stub___$ac_func
7536 choke me
7537 #endif
7538
7539 int
7540 main ()
7541 {
7542 return $ac_func ();
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7549 case "(($ac_try" in
7550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551   *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554   (eval "$ac_link") 2>conftest.er1
7555   ac_status=$?
7556   grep -v '^ *+' conftest.er1 >conftest.err
7557   rm -f conftest.er1
7558   cat conftest.err >&5
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } && {
7561          test -z "$ac_c_werror_flag" ||
7562          test ! -s conftest.err
7563        } && test -s conftest$ac_exeext &&
7564        $as_test_x conftest$ac_exeext; then
7565   eval "$as_ac_var=yes"
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570         eval "$as_ac_var=no"
7571 fi
7572
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574       conftest$ac_exeext conftest.$ac_ext
7575 fi
7576 ac_res=`eval echo '${'$as_ac_var'}'`
7577                { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7579 if test `eval echo '${'$as_ac_var'}'` = yes; then
7580   cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7582 _ACEOF
7583
7584 fi
7585 done
7586
7587       fi
7588
7589       #
7590       # If we don't have everything we want, check in libintl
7591       #
7592       if test "$gt_cv_func_dgettext_libc" != "yes" \
7593          || test "$gt_cv_func_ngettext_libc" != "yes" \
7594          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
7595
7596         { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
7597 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
7598 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
7599   echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601   ac_check_lib_save_LIBS=$LIBS
7602 LIBS="-lintl  $LIBS"
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h.  */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h.  */
7609
7610 /* Override any GCC internal prototype to avoid an error.
7611    Use char because int might match the return type of a GCC
7612    builtin and then its argument prototype would still apply.  */
7613 #ifdef __cplusplus
7614 extern "C"
7615 #endif
7616 char bindtextdomain ();
7617 int
7618 main ()
7619 {
7620 return bindtextdomain ();
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (ac_try="$ac_link"
7627 case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_link") 2>conftest.er1
7633   ac_status=$?
7634   grep -v '^ *+' conftest.er1 >conftest.err
7635   rm -f conftest.er1
7636   cat conftest.err >&5
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); } && {
7639          test -z "$ac_c_werror_flag" ||
7640          test ! -s conftest.err
7641        } && test -s conftest$ac_exeext &&
7642        $as_test_x conftest$ac_exeext; then
7643   ac_cv_lib_intl_bindtextdomain=yes
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648         ac_cv_lib_intl_bindtextdomain=no
7649 fi
7650
7651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7652       conftest$ac_exeext conftest.$ac_ext
7653 LIBS=$ac_check_lib_save_LIBS
7654 fi
7655 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
7656 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
7657 if test $ac_cv_lib_intl_bindtextdomain = yes; then
7658   { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7659 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7660 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   ac_check_lib_save_LIBS=$LIBS
7664 LIBS="-lintl  $LIBS"
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671
7672 /* Override any GCC internal prototype to avoid an error.
7673    Use char because int might match the return type of a GCC
7674    builtin and then its argument prototype would still apply.  */
7675 #ifdef __cplusplus
7676 extern "C"
7677 #endif
7678 char ngettext ();
7679 int
7680 main ()
7681 {
7682 return ngettext ();
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 rm -f conftest.$ac_objext conftest$ac_exeext
7688 if { (ac_try="$ac_link"
7689 case "(($ac_try" in
7690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691   *) ac_try_echo=$ac_try;;
7692 esac
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694   (eval "$ac_link") 2>conftest.er1
7695   ac_status=$?
7696   grep -v '^ *+' conftest.er1 >conftest.err
7697   rm -f conftest.er1
7698   cat conftest.err >&5
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); } && {
7701          test -z "$ac_c_werror_flag" ||
7702          test ! -s conftest.err
7703        } && test -s conftest$ac_exeext &&
7704        $as_test_x conftest$ac_exeext; then
7705   ac_cv_lib_intl_ngettext=yes
7706 else
7707   echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710         ac_cv_lib_intl_ngettext=no
7711 fi
7712
7713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7714       conftest$ac_exeext conftest.$ac_ext
7715 LIBS=$ac_check_lib_save_LIBS
7716 fi
7717 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7718 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7719 if test $ac_cv_lib_intl_ngettext = yes; then
7720   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
7721 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
7722 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   ac_check_lib_save_LIBS=$LIBS
7726 LIBS="-lintl  $LIBS"
7727 cat >conftest.$ac_ext <<_ACEOF
7728 /* confdefs.h.  */
7729 _ACEOF
7730 cat confdefs.h >>conftest.$ac_ext
7731 cat >>conftest.$ac_ext <<_ACEOF
7732 /* end confdefs.h.  */
7733
7734 /* Override any GCC internal prototype to avoid an error.
7735    Use char because int might match the return type of a GCC
7736    builtin and then its argument prototype would still apply.  */
7737 #ifdef __cplusplus
7738 extern "C"
7739 #endif
7740 char dgettext ();
7741 int
7742 main ()
7743 {
7744 return dgettext ();
7745   ;
7746   return 0;
7747 }
7748 _ACEOF
7749 rm -f conftest.$ac_objext conftest$ac_exeext
7750 if { (ac_try="$ac_link"
7751 case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7756   (eval "$ac_link") 2>conftest.er1
7757   ac_status=$?
7758   grep -v '^ *+' conftest.er1 >conftest.err
7759   rm -f conftest.er1
7760   cat conftest.err >&5
7761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762   (exit $ac_status); } && {
7763          test -z "$ac_c_werror_flag" ||
7764          test ! -s conftest.err
7765        } && test -s conftest$ac_exeext &&
7766        $as_test_x conftest$ac_exeext; then
7767   ac_cv_lib_intl_dgettext=yes
7768 else
7769   echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7771
7772         ac_cv_lib_intl_dgettext=no
7773 fi
7774
7775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7776       conftest$ac_exeext conftest.$ac_ext
7777 LIBS=$ac_check_lib_save_LIBS
7778 fi
7779 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
7780 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
7781 if test $ac_cv_lib_intl_dgettext = yes; then
7782   gt_cv_func_dgettext_libintl=yes
7783 fi
7784
7785 fi
7786
7787 fi
7788
7789
7790         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
7791           { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
7792 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
7793           { echo "$as_me:$LINENO: result: " >&5
7794 echo "${ECHO_T}" >&6; }
7795           { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
7796 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
7797 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
7798   echo $ECHO_N "(cached) $ECHO_C" >&6
7799 else
7800   ac_check_lib_save_LIBS=$LIBS
7801 LIBS="-lintl -liconv $LIBS"
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h.  */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h.  */
7808
7809 /* Override any GCC internal prototype to avoid an error.
7810    Use char because int might match the return type of a GCC
7811    builtin and then its argument prototype would still apply.  */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 char ngettext ();
7816 int
7817 main ()
7818 {
7819 return ngettext ();
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 rm -f conftest.$ac_objext conftest$ac_exeext
7825 if { (ac_try="$ac_link"
7826 case "(($ac_try" in
7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828   *) ac_try_echo=$ac_try;;
7829 esac
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831   (eval "$ac_link") 2>conftest.er1
7832   ac_status=$?
7833   grep -v '^ *+' conftest.er1 >conftest.err
7834   rm -f conftest.er1
7835   cat conftest.err >&5
7836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); } && {
7838          test -z "$ac_c_werror_flag" ||
7839          test ! -s conftest.err
7840        } && test -s conftest$ac_exeext &&
7841        $as_test_x conftest$ac_exeext; then
7842   ac_cv_lib_intl_ngettext=yes
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847         ac_cv_lib_intl_ngettext=no
7848 fi
7849
7850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7851       conftest$ac_exeext conftest.$ac_ext
7852 LIBS=$ac_check_lib_save_LIBS
7853 fi
7854 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
7855 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
7856 if test $ac_cv_lib_intl_ngettext = yes; then
7857   { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
7858 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
7859 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
7860   echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862   ac_check_lib_save_LIBS=$LIBS
7863 LIBS="-lintl -liconv $LIBS"
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h.  */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h.  */
7870
7871 /* Override any GCC internal prototype to avoid an error.
7872    Use char because int might match the return type of a GCC
7873    builtin and then its argument prototype would still apply.  */
7874 #ifdef __cplusplus
7875 extern "C"
7876 #endif
7877 char dcgettext ();
7878 int
7879 main ()
7880 {
7881 return dcgettext ();
7882   ;
7883   return 0;
7884 }
7885 _ACEOF
7886 rm -f conftest.$ac_objext conftest$ac_exeext
7887 if { (ac_try="$ac_link"
7888 case "(($ac_try" in
7889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890   *) ac_try_echo=$ac_try;;
7891 esac
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893   (eval "$ac_link") 2>conftest.er1
7894   ac_status=$?
7895   grep -v '^ *+' conftest.er1 >conftest.err
7896   rm -f conftest.er1
7897   cat conftest.err >&5
7898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899   (exit $ac_status); } && {
7900          test -z "$ac_c_werror_flag" ||
7901          test ! -s conftest.err
7902        } && test -s conftest$ac_exeext &&
7903        $as_test_x conftest$ac_exeext; then
7904   ac_cv_lib_intl_dcgettext=yes
7905 else
7906   echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.$ac_ext >&5
7908
7909         ac_cv_lib_intl_dcgettext=no
7910 fi
7911
7912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7913       conftest$ac_exeext conftest.$ac_ext
7914 LIBS=$ac_check_lib_save_LIBS
7915 fi
7916 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
7917 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
7918 if test $ac_cv_lib_intl_dcgettext = yes; then
7919   gt_cv_func_dgettext_libintl=yes
7920                         libintl_extra_libs=-liconv
7921 else
7922   :
7923 fi
7924
7925 else
7926   :
7927 fi
7928
7929         fi
7930
7931         #
7932         # If we found libintl, then check in it for bind_textdomain_codeset();
7933         # we'll prefer libc if neither have bind_textdomain_codeset(),
7934         # and both have dgettext and ngettext
7935         #
7936         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
7937           glib_save_LIBS="$LIBS"
7938           LIBS="$LIBS -lintl $libintl_extra_libs"
7939           unset ac_cv_func_bind_textdomain_codeset
7940
7941 for ac_func in bind_textdomain_codeset
7942 do
7943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   cat >conftest.$ac_ext <<_ACEOF
7950 /* confdefs.h.  */
7951 _ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h.  */
7955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7957 #define $ac_func innocuous_$ac_func
7958
7959 /* System header to define __stub macros and hopefully few prototypes,
7960     which can conflict with char $ac_func (); below.
7961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7962     <limits.h> exists even on freestanding compilers.  */
7963
7964 #ifdef __STDC__
7965 # include <limits.h>
7966 #else
7967 # include <assert.h>
7968 #endif
7969
7970 #undef $ac_func
7971
7972 /* Override any GCC internal prototype to avoid an error.
7973    Use char because int might match the return type of a GCC
7974    builtin and then its argument prototype would still apply.  */
7975 #ifdef __cplusplus
7976 extern "C"
7977 #endif
7978 char $ac_func ();
7979 /* The GNU C library defines this for functions which it implements
7980     to always fail with ENOSYS.  Some functions are actually named
7981     something starting with __ and the normal name is an alias.  */
7982 #if defined __stub_$ac_func || defined __stub___$ac_func
7983 choke me
7984 #endif
7985
7986 int
7987 main ()
7988 {
7989 return $ac_func ();
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext conftest$ac_exeext
7995 if { (ac_try="$ac_link"
7996 case "(($ac_try" in
7997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998   *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001   (eval "$ac_link") 2>conftest.er1
8002   ac_status=$?
8003   grep -v '^ *+' conftest.er1 >conftest.err
8004   rm -f conftest.er1
8005   cat conftest.err >&5
8006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8007   (exit $ac_status); } && {
8008          test -z "$ac_c_werror_flag" ||
8009          test ! -s conftest.err
8010        } && test -s conftest$ac_exeext &&
8011        $as_test_x conftest$ac_exeext; then
8012   eval "$as_ac_var=yes"
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017         eval "$as_ac_var=no"
8018 fi
8019
8020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8021       conftest$ac_exeext conftest.$ac_ext
8022 fi
8023 ac_res=`eval echo '${'$as_ac_var'}'`
8024                { echo "$as_me:$LINENO: result: $ac_res" >&5
8025 echo "${ECHO_T}$ac_res" >&6; }
8026 if test `eval echo '${'$as_ac_var'}'` = yes; then
8027   cat >>confdefs.h <<_ACEOF
8028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8029 _ACEOF
8030
8031 fi
8032 done
8033
8034           LIBS="$glib_save_LIBS"
8035
8036           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8037             gt_cv_func_dgettext_libc=no
8038           else
8039             if test "$gt_cv_func_dgettext_libc" = "yes" \
8040                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8041               gt_cv_func_dgettext_libintl=no
8042             fi
8043           fi
8044         fi
8045       fi
8046
8047       if test "$gt_cv_func_dgettext_libc" = "yes" \
8048         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8049         gt_cv_have_gettext=yes
8050       fi
8051
8052       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8053         INTLLIBS="-lintl $libintl_extra_libs"
8054       fi
8055
8056       if test "$gt_cv_have_gettext" = "yes"; then
8057
8058 cat >>confdefs.h <<\_ACEOF
8059 #define HAVE_GETTEXT 1
8060 _ACEOF
8061
8062         # Extract the first word of "msgfmt", so it can be a program name with args.
8063 set dummy msgfmt; ac_word=$2
8064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8066 if test "${ac_cv_path_MSGFMT+set}" = set; then
8067   echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069   case "$MSGFMT" in
8070   /*)
8071   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8072   ;;
8073   *)
8074   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8075   for ac_dir in $PATH; do
8076     test -z "$ac_dir" && ac_dir=.
8077     if test -f $ac_dir/$ac_word; then
8078       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8079         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8080         break
8081       fi
8082     fi
8083   done
8084   IFS="$ac_save_ifs"
8085   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8086   ;;
8087 esac
8088 fi
8089 MSGFMT="$ac_cv_path_MSGFMT"
8090 if test "$MSGFMT" != "no"; then
8091   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
8092 echo "${ECHO_T}$MSGFMT" >&6; }
8093 else
8094   { echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6; }
8096 fi
8097         if test "$MSGFMT" != "no"; then
8098           glib_save_LIBS="$LIBS"
8099           LIBS="$LIBS $INTLLIBS"
8100
8101 for ac_func in dcgettext
8102 do
8103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8106 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8117 #define $ac_func innocuous_$ac_func
8118
8119 /* System header to define __stub macros and hopefully few prototypes,
8120     which can conflict with char $ac_func (); below.
8121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8122     <limits.h> exists even on freestanding compilers.  */
8123
8124 #ifdef __STDC__
8125 # include <limits.h>
8126 #else
8127 # include <assert.h>
8128 #endif
8129
8130 #undef $ac_func
8131
8132 /* Override any GCC internal prototype to avoid an error.
8133    Use char because int might match the return type of a GCC
8134    builtin and then its argument prototype would still apply.  */
8135 #ifdef __cplusplus
8136 extern "C"
8137 #endif
8138 char $ac_func ();
8139 /* The GNU C library defines this for functions which it implements
8140     to always fail with ENOSYS.  Some functions are actually named
8141     something starting with __ and the normal name is an alias.  */
8142 #if defined __stub_$ac_func || defined __stub___$ac_func
8143 choke me
8144 #endif
8145
8146 int
8147 main ()
8148 {
8149 return $ac_func ();
8150   ;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8156 case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161   (eval "$ac_link") 2>conftest.er1
8162   ac_status=$?
8163   grep -v '^ *+' conftest.er1 >conftest.err
8164   rm -f conftest.er1
8165   cat conftest.err >&5
8166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167   (exit $ac_status); } && {
8168          test -z "$ac_c_werror_flag" ||
8169          test ! -s conftest.err
8170        } && test -s conftest$ac_exeext &&
8171        $as_test_x conftest$ac_exeext; then
8172   eval "$as_ac_var=yes"
8173 else
8174   echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177         eval "$as_ac_var=no"
8178 fi
8179
8180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8181       conftest$ac_exeext conftest.$ac_ext
8182 fi
8183 ac_res=`eval echo '${'$as_ac_var'}'`
8184                { echo "$as_me:$LINENO: result: $ac_res" >&5
8185 echo "${ECHO_T}$ac_res" >&6; }
8186 if test `eval echo '${'$as_ac_var'}'` = yes; then
8187   cat >>confdefs.h <<_ACEOF
8188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8189 _ACEOF
8190
8191 fi
8192 done
8193
8194           MSGFMT_OPTS=
8195           { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
8196 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
8197           cat >conftest.foo <<_ACEOF
8198
8199 msgid ""
8200 msgstr ""
8201 "Content-Type: text/plain; charset=UTF-8\n"
8202 "Project-Id-Version: test 1.0\n"
8203 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8204 "Last-Translator: test <foo@bar.xx>\n"
8205 "Language-Team: C <LL@li.org>\n"
8206 "MIME-Version: 1.0\n"
8207 "Content-Transfer-Encoding: 8bit\n"
8208
8209 _ACEOF
8210 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
8211   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8212   ac_status=$?
8213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214   (exit $ac_status); }; then
8215   MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
8216 echo "${ECHO_T}yes" >&6; }
8217 else { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8219 echo "$as_me: failed input was:" >&5
8220 sed 's/^/| /' conftest.foo >&5
8221 fi
8222
8223           # Extract the first word of "gmsgfmt", so it can be a program name with args.
8224 set dummy gmsgfmt; ac_word=$2
8225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227 if test "${ac_cv_path_GMSGFMT+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   case $GMSGFMT in
8231   [\\/]* | ?:[\\/]*)
8232   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8233   ;;
8234   *)
8235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240   for ac_exec_ext in '' $ac_executable_extensions; do
8241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8251   ;;
8252 esac
8253 fi
8254 GMSGFMT=$ac_cv_path_GMSGFMT
8255 if test -n "$GMSGFMT"; then
8256   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8257 echo "${ECHO_T}$GMSGFMT" >&6; }
8258 else
8259   { echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6; }
8261 fi
8262
8263
8264           # Extract the first word of "xgettext", so it can be a program name with args.
8265 set dummy xgettext; ac_word=$2
8266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8268 if test "${ac_cv_path_XGETTEXT+set}" = set; then
8269   echo $ECHO_N "(cached) $ECHO_C" >&6
8270 else
8271   case "$XGETTEXT" in
8272   /*)
8273   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8274   ;;
8275   *)
8276   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8277   for ac_dir in $PATH; do
8278     test -z "$ac_dir" && ac_dir=.
8279     if test -f $ac_dir/$ac_word; then
8280       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8281         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8282         break
8283       fi
8284     fi
8285   done
8286   IFS="$ac_save_ifs"
8287   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8288   ;;
8289 esac
8290 fi
8291 XGETTEXT="$ac_cv_path_XGETTEXT"
8292 if test "$XGETTEXT" != ":"; then
8293   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8294 echo "${ECHO_T}$XGETTEXT" >&6; }
8295 else
8296   { echo "$as_me:$LINENO: result: no" >&5
8297 echo "${ECHO_T}no" >&6; }
8298 fi
8299
8300           cat >conftest.$ac_ext <<_ACEOF
8301 /* confdefs.h.  */
8302 _ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h.  */
8306
8307 int
8308 main ()
8309 {
8310 extern int _nl_msg_cat_cntr;
8311                          return _nl_msg_cat_cntr
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (ac_try="$ac_link"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_link") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } && {
8330          test -z "$ac_c_werror_flag" ||
8331          test ! -s conftest.err
8332        } && test -s conftest$ac_exeext &&
8333        $as_test_x conftest$ac_exeext; then
8334   CATOBJEXT=.gmo
8335              DATADIRNAME=share
8336 else
8337   echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340         case $host in
8341             *-*-solaris*)
8342                                                                 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
8343 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
8344 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
8345   echo $ECHO_N "(cached) $ECHO_C" >&6
8346 else
8347   cat >conftest.$ac_ext <<_ACEOF
8348 /* confdefs.h.  */
8349 _ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h.  */
8353 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
8354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8355 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
8356
8357 /* System header to define __stub macros and hopefully few prototypes,
8358     which can conflict with char bind_textdomain_codeset (); below.
8359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8360     <limits.h> exists even on freestanding compilers.  */
8361
8362 #ifdef __STDC__
8363 # include <limits.h>
8364 #else
8365 # include <assert.h>
8366 #endif
8367
8368 #undef bind_textdomain_codeset
8369
8370 /* Override any GCC internal prototype to avoid an error.
8371    Use char because int might match the return type of a GCC
8372    builtin and then its argument prototype would still apply.  */
8373 #ifdef __cplusplus
8374 extern "C"
8375 #endif
8376 char bind_textdomain_codeset ();
8377 /* The GNU C library defines this for functions which it implements
8378     to always fail with ENOSYS.  Some functions are actually named
8379     something starting with __ and the normal name is an alias.  */
8380 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
8381 choke me
8382 #endif
8383
8384 int
8385 main ()
8386 {
8387 return bind_textdomain_codeset ();
8388   ;
8389   return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (ac_try="$ac_link"
8394 case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_link") 2>conftest.er1
8400   ac_status=$?
8401   grep -v '^ *+' conftest.er1 >conftest.err
8402   rm -f conftest.er1
8403   cat conftest.err >&5
8404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405   (exit $ac_status); } && {
8406          test -z "$ac_c_werror_flag" ||
8407          test ! -s conftest.err
8408        } && test -s conftest$ac_exeext &&
8409        $as_test_x conftest$ac_exeext; then
8410   ac_cv_func_bind_textdomain_codeset=yes
8411 else
8412   echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415         ac_cv_func_bind_textdomain_codeset=no
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8419       conftest$ac_exeext conftest.$ac_ext
8420 fi
8421 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
8422 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
8423 if test $ac_cv_func_bind_textdomain_codeset = yes; then
8424   CATOBJEXT=.gmo
8425                DATADIRNAME=share
8426 else
8427   CATOBJEXT=.mo
8428                DATADIRNAME=lib
8429 fi
8430
8431             ;;
8432             *)
8433             CATOBJEXT=.mo
8434             DATADIRNAME=lib
8435             ;;
8436             esac
8437 fi
8438
8439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8440       conftest$ac_exeext conftest.$ac_ext
8441           LIBS="$glib_save_LIBS"
8442           INSTOBJEXT=.mo
8443         else
8444           gt_cv_have_gettext=no
8445         fi
8446       fi
8447
8448 fi
8449
8450
8451
8452     if test "$gt_cv_have_gettext" = "yes" ; then
8453
8454 cat >>confdefs.h <<\_ACEOF
8455 #define ENABLE_NLS 1
8456 _ACEOF
8457
8458     fi
8459
8460         if test "$XGETTEXT" != ":"; then
8461                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8462         : ;
8463       else
8464         { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8465 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
8466         XGETTEXT=":"
8467       fi
8468     fi
8469
8470     # We need to process the po/ directory.
8471     POSUB=po
8472
8473     ac_config_commands="$ac_config_commands default-1"
8474
8475
8476                 for lang in $ALL_LINGUAS; do
8477       GMOFILES="$GMOFILES $lang.gmo"
8478       POFILES="$POFILES $lang.po"
8479     done
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493    if test "$gt_cv_have_gettext" = "yes"; then
8494      if test "x$ALL_LINGUAS" = "x"; then
8495        LINGUAS=
8496      else
8497        { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8498 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
8499        NEW_LINGUAS=
8500        for presentlang in $ALL_LINGUAS; do
8501          useit=no
8502          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8503            desiredlanguages="$LINGUAS"
8504          else
8505            desiredlanguages="$ALL_LINGUAS"
8506          fi
8507          for desiredlang in $desiredlanguages; do
8508            # Use the presentlang catalog if desiredlang is
8509            #   a. equal to presentlang, or
8510            #   b. a variant of presentlang (because in this case,
8511            #      presentlang can be used as a fallback for messages
8512            #      which are not translated in the desiredlang catalog).
8513            case "$desiredlang" in
8514              "$presentlang"*) useit=yes;;
8515            esac
8516          done
8517          if test $useit = yes; then
8518            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8519          fi
8520        done
8521        LINGUAS=$NEW_LINGUAS
8522        { echo "$as_me:$LINENO: result: $LINGUAS" >&5
8523 echo "${ECHO_T}$LINGUAS" >&6; }
8524      fi
8525
8526           if test -n "$LINGUAS"; then
8527        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8528      fi
8529    fi
8530
8531             MKINSTALLDIRS=
8532    if test -n "$ac_aux_dir"; then
8533      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8534    fi
8535    if test -z "$MKINSTALLDIRS"; then
8536      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8537    fi
8538
8539
8540          test -d po || mkdir po
8541    if test "x$srcdir" != "x."; then
8542      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8543        posrcprefix="$srcdir/"
8544      else
8545        posrcprefix="../$srcdir/"
8546      fi
8547    else
8548      posrcprefix="../"
8549    fi
8550    rm -f po/POTFILES
8551    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8552         < $srcdir/po/POTFILES.in > po/POTFILES
8553
8554     SYNCEVOLUTION_LOCALEDIR=${datadir}/locale
8555 else
8556     INTLTOOL_UPDATE="true"
8557     USE_NLS="no"
8558 fi
8559
8560
8561
8562
8563
8564
8565
8566
8567 # Boost headers: boost/foreach.hpp is needed (1.33/Debian Etch
8568 # doesn't have it, 1.34/Ubuntu 8.10 Hardy does). 1.35 is available
8569 # as Debian Etch backport.
8570 ac_ext=cpp
8571 ac_cpp='$CXXCPP $CPPFLAGS'
8572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8575 if test -z "$CXX"; then
8576   if test -n "$CCC"; then
8577     CXX=$CCC
8578   else
8579     if test -n "$ac_tool_prefix"; then
8580   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8581   do
8582     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8586 if test "${ac_cv_prog_CXX+set}" = set; then
8587   echo $ECHO_N "(cached) $ECHO_C" >&6
8588 else
8589   if test -n "$CXX"; then
8590   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8591 else
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595   IFS=$as_save_IFS
8596   test -z "$as_dir" && as_dir=.
8597   for ac_exec_ext in '' $ac_executable_extensions; do
8598   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8601     break 2
8602   fi
8603 done
8604 done
8605 IFS=$as_save_IFS
8606
8607 fi
8608 fi
8609 CXX=$ac_cv_prog_CXX
8610 if test -n "$CXX"; then
8611   { echo "$as_me:$LINENO: result: $CXX" >&5
8612 echo "${ECHO_T}$CXX" >&6; }
8613 else
8614   { echo "$as_me:$LINENO: result: no" >&5
8615 echo "${ECHO_T}no" >&6; }
8616 fi
8617
8618
8619     test -n "$CXX" && break
8620   done
8621 fi
8622 if test -z "$CXX"; then
8623   ac_ct_CXX=$CXX
8624   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8625 do
8626   # Extract the first word of "$ac_prog", so it can be a program name with args.
8627 set dummy $ac_prog; ac_word=$2
8628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8630 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8631   echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633   if test -n "$ac_ct_CXX"; then
8634   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8635 else
8636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639   IFS=$as_save_IFS
8640   test -z "$as_dir" && as_dir=.
8641   for ac_exec_ext in '' $ac_executable_extensions; do
8642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8643     ac_cv_prog_ac_ct_CXX="$ac_prog"
8644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8645     break 2
8646   fi
8647 done
8648 done
8649 IFS=$as_save_IFS
8650
8651 fi
8652 fi
8653 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8654 if test -n "$ac_ct_CXX"; then
8655   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8656 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8657 else
8658   { echo "$as_me:$LINENO: result: no" >&5
8659 echo "${ECHO_T}no" >&6; }
8660 fi
8661
8662
8663   test -n "$ac_ct_CXX" && break
8664 done
8665
8666   if test "x$ac_ct_CXX" = x; then
8667     CXX="g++"
8668   else
8669     case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8672 whose name does not start with the host triplet.  If you think this
8673 configuration is useful to you, please write to autoconf@gnu.org." >&5
8674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8675 whose name does not start with the host triplet.  If you think this
8676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8677 ac_tool_warned=yes ;;
8678 esac
8679     CXX=$ac_ct_CXX
8680   fi
8681 fi
8682
8683   fi
8684 fi
8685 # Provide some information about the compiler.
8686 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8687 ac_compiler=`set X $ac_compile; echo $2`
8688 { (ac_try="$ac_compiler --version >&5"
8689 case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694   (eval "$ac_compiler --version >&5") 2>&5
8695   ac_status=$?
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); }
8698 { (ac_try="$ac_compiler -v >&5"
8699 case "(($ac_try" in
8700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701   *) ac_try_echo=$ac_try;;
8702 esac
8703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704   (eval "$ac_compiler -v >&5") 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }
8708 { (ac_try="$ac_compiler -V >&5"
8709 case "(($ac_try" in
8710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711   *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714   (eval "$ac_compiler -V >&5") 2>&5
8715   ac_status=$?
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); }
8718
8719 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8720 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8721 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730
8731 int
8732 main ()
8733 {
8734 #ifndef __GNUC__
8735        choke me
8736 #endif
8737
8738   ;
8739   return 0;
8740 }
8741 _ACEOF
8742 rm -f conftest.$ac_objext
8743 if { (ac_try="$ac_compile"
8744 case "(($ac_try" in
8745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746   *) ac_try_echo=$ac_try;;
8747 esac
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749   (eval "$ac_compile") 2>conftest.er1
8750   ac_status=$?
8751   grep -v '^ *+' conftest.er1 >conftest.err
8752   rm -f conftest.er1
8753   cat conftest.err >&5
8754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755   (exit $ac_status); } && {
8756          test -z "$ac_cxx_werror_flag" ||
8757          test ! -s conftest.err
8758        } && test -s conftest.$ac_objext; then
8759   ac_compiler_gnu=yes
8760 else
8761   echo "$as_me: failed program was:" >&5
8762 sed 's/^/| /' conftest.$ac_ext >&5
8763
8764         ac_compiler_gnu=no
8765 fi
8766
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8769
8770 fi
8771 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8772 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8773 GXX=`test $ac_compiler_gnu = yes && echo yes`
8774 ac_test_CXXFLAGS=${CXXFLAGS+set}
8775 ac_save_CXXFLAGS=$CXXFLAGS
8776 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8777 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8778 if test "${ac_cv_prog_cxx_g+set}" = set; then
8779   echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8782    ac_cxx_werror_flag=yes
8783    ac_cv_prog_cxx_g=no
8784    CXXFLAGS="-g"
8785    cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h.  */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h.  */
8791
8792 int
8793 main ()
8794 {
8795
8796   ;
8797   return 0;
8798 }
8799 _ACEOF
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8802 case "(($ac_try" in
8803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804   *) ac_try_echo=$ac_try;;
8805 esac
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807   (eval "$ac_compile") 2>conftest.er1
8808   ac_status=$?
8809   grep -v '^ *+' conftest.er1 >conftest.err
8810   rm -f conftest.er1
8811   cat conftest.err >&5
8812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813   (exit $ac_status); } && {
8814          test -z "$ac_cxx_werror_flag" ||
8815          test ! -s conftest.err
8816        } && test -s conftest.$ac_objext; then
8817   ac_cv_prog_cxx_g=yes
8818 else
8819   echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8821
8822         CXXFLAGS=""
8823       cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829
8830 int
8831 main ()
8832 {
8833
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8840 case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_compile") 2>conftest.er1
8846   ac_status=$?
8847   grep -v '^ *+' conftest.er1 >conftest.err
8848   rm -f conftest.er1
8849   cat conftest.err >&5
8850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851   (exit $ac_status); } && {
8852          test -z "$ac_cxx_werror_flag" ||
8853          test ! -s conftest.err
8854        } && test -s conftest.$ac_objext; then
8855   :
8856 else
8857   echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8859
8860         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8861          CXXFLAGS="-g"
8862          cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868
8869 int
8870 main ()
8871 {
8872
8873   ;
8874   return 0;
8875 }
8876 _ACEOF
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8879 case "(($ac_try" in
8880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881   *) ac_try_echo=$ac_try;;
8882 esac
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884   (eval "$ac_compile") 2>conftest.er1
8885   ac_status=$?
8886   grep -v '^ *+' conftest.er1 >conftest.err
8887   rm -f conftest.er1
8888   cat conftest.err >&5
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); } && {
8891          test -z "$ac_cxx_werror_flag" ||
8892          test ! -s conftest.err
8893        } && test -s conftest.$ac_objext; then
8894   ac_cv_prog_cxx_g=yes
8895 else
8896   echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.$ac_ext >&5
8898
8899
8900 fi
8901
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 fi
8904
8905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906 fi
8907
8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8909    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8910 fi
8911 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8912 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8913 if test "$ac_test_CXXFLAGS" = set; then
8914   CXXFLAGS=$ac_save_CXXFLAGS
8915 elif test $ac_cv_prog_cxx_g = yes; then
8916   if test "$GXX" = yes; then
8917     CXXFLAGS="-g -O2"
8918   else
8919     CXXFLAGS="-g"
8920   fi
8921 else
8922   if test "$GXX" = yes; then
8923     CXXFLAGS="-O2"
8924   else
8925     CXXFLAGS=
8926   fi
8927 fi
8928 ac_ext=cpp
8929 ac_cpp='$CXXCPP $CPPFLAGS'
8930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8933
8934 depcc="$CXX"  am_compiler_list=
8935
8936 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8937 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8938 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8942   # We make a subdir and do the tests there.  Otherwise we can end up
8943   # making bogus files that we don't know about and never remove.  For
8944   # instance it was reported that on HP-UX the gcc test will end up
8945   # making a dummy file named `D' -- because `-MD' means `put the output
8946   # in D'.
8947   mkdir conftest.dir
8948   # Copy depcomp to subdir because otherwise we won't find it if we're
8949   # using a relative directory.
8950   cp "$am_depcomp" conftest.dir
8951   cd conftest.dir
8952   # We will build objects and dependencies in a subdirectory because
8953   # it helps to detect inapplicable dependency modes.  For instance
8954   # both Tru64's cc and ICC support -MD to output dependencies as a
8955   # side effect of compilation, but ICC will put the dependencies in
8956   # the current directory while Tru64 will put them in the object
8957   # directory.
8958   mkdir sub
8959
8960   am_cv_CXX_dependencies_compiler_type=none
8961   if test "$am_compiler_list" = ""; then
8962      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8963   fi
8964   for depmode in $am_compiler_list; do
8965     # Setup a source with many dependencies, because some compilers
8966     # like to wrap large dependency lists on column 80 (with \), and
8967     # we should not choose a depcomp mode which is confused by this.
8968     #
8969     # We need to recreate these files for each test, as the compiler may
8970     # overwrite some of them when testing with obscure command lines.
8971     # This happens at least with the AIX C compiler.
8972     : > sub/conftest.c
8973     for i in 1 2 3 4 5 6; do
8974       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8975       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8976       # Solaris 8's {/usr,}/bin/sh.
8977       touch sub/conftst$i.h
8978     done
8979     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8980
8981     case $depmode in
8982     nosideeffect)
8983       # after this tag, mechanisms are not by side-effect, so they'll
8984       # only be used when explicitly requested
8985       if test "x$enable_dependency_tracking" = xyes; then
8986         continue
8987       else
8988         break
8989       fi
8990       ;;
8991     none) break ;;
8992     esac
8993     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8994     # mode.  It turns out that the SunPro C++ compiler does not properly
8995     # handle `-M -o', and we need to detect this.
8996     if depmode=$depmode \
8997        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8998        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8999        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9000          >/dev/null 2>conftest.err &&
9001        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9002        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9003        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9004        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9005       # icc doesn't choke on unknown options, it will just issue warnings
9006       # or remarks (even with -Werror).  So we grep stderr for any message
9007       # that says an option was ignored or not supported.
9008       # When given -MP, icc 7.0 and 7.1 complain thusly:
9009       #   icc: Command line warning: ignoring option '-M'; no argument required
9010       # The diagnosis changed in icc 8.0:
9011       #   icc: Command line remark: option '-MP' not supported
9012       if (grep 'ignoring option' conftest.err ||
9013           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9014         am_cv_CXX_dependencies_compiler_type=$depmode
9015         break
9016       fi
9017     fi
9018   done
9019
9020   cd ..
9021   rm -rf conftest.dir
9022 else
9023   am_cv_CXX_dependencies_compiler_type=none
9024 fi
9025
9026 fi
9027 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
9028 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
9029 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9030
9031  if
9032   test "x$enable_dependency_tracking" != xno \
9033   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9034   am__fastdepCXX_TRUE=
9035   am__fastdepCXX_FALSE='#'
9036 else
9037   am__fastdepCXX_TRUE='#'
9038   am__fastdepCXX_FALSE=
9039 fi
9040
9041
9042
9043
9044
9045 # Check whether --with-boost was given.
9046 if test "${with_boost+set}" = set; then
9047   withval=$with_boost;
9048     if test "$withval" = "no"; then
9049                 want_boost="no"
9050     elif test "$withval" = "yes"; then
9051         want_boost="yes"
9052         ac_boost_path=""
9053     else
9054             want_boost="yes"
9055         ac_boost_path="$withval"
9056         fi
9057
9058 else
9059   want_boost="yes"
9060 fi
9061
9062
9063
9064
9065 # Check whether --with-boost-libdir was given.
9066 if test "${with_boost_libdir+set}" = set; then
9067   withval=$with_boost_libdir;
9068         if test -d $withval
9069         then
9070                 ac_boost_lib_path="$withval"
9071         else
9072                 { { echo "$as_me:$LINENO: error: --with-boost-libdir expected directory name" >&5
9073 echo "$as_me: error: --with-boost-libdir expected directory name" >&2;}
9074    { (exit 1); exit 1; }; }
9075         fi
9076
9077 else
9078   ac_boost_lib_path=""
9079
9080 fi
9081
9082
9083 if test "x$want_boost" = "xyes"; then
9084         boost_lib_version_req=1.34
9085         boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
9086         boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
9087         boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
9088         boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
9089         if test "x$boost_lib_version_req_sub_minor" = "x" ; then
9090                 boost_lib_version_req_sub_minor="0"
9091         fi
9092         WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
9093         { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
9094 echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
9095         succeeded=no
9096
9097                                 if test "$ac_boost_path" != ""; then
9098                 BOOST_LDFLAGS="-L$ac_boost_path/lib"
9099                 BOOST_CPPFLAGS="-I$ac_boost_path/include"
9100         else
9101                 for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
9102                         if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
9103                                 BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
9104                                 BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
9105                                 break;
9106                         fi
9107                 done
9108         fi
9109
9110             if test "$ac_boost_lib_path" != ""; then
9111        BOOST_LDFLAGS="-L$ac_boost_lib_path"
9112     fi
9113
9114         CPPFLAGS_SAVED="$CPPFLAGS"
9115         CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9116         export CPPFLAGS
9117
9118         LDFLAGS_SAVED="$LDFLAGS"
9119         LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9120         export LDFLAGS
9121
9122         ac_ext=cpp
9123 ac_cpp='$CXXCPP $CPPFLAGS'
9124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9127
9128         cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h.  */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h.  */
9134
9135         #include <boost/version.hpp>
9136
9137 int
9138 main ()
9139 {
9140
9141         #if BOOST_VERSION >= $WANT_BOOST_VERSION
9142         // Everything is okay
9143         #else
9144         #  error Boost version is too old
9145         #endif
9146
9147   ;
9148   return 0;
9149 }
9150 _ACEOF
9151 rm -f conftest.$ac_objext
9152 if { (ac_try="$ac_compile"
9153 case "(($ac_try" in
9154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155   *) ac_try_echo=$ac_try;;
9156 esac
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158   (eval "$ac_compile") 2>conftest.er1
9159   ac_status=$?
9160   grep -v '^ *+' conftest.er1 >conftest.err
9161   rm -f conftest.er1
9162   cat conftest.err >&5
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); } && {
9165          test -z "$ac_cxx_werror_flag" ||
9166          test ! -s conftest.err
9167        } && test -s conftest.$ac_objext; then
9168
9169         { echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6; }
9171         succeeded=yes
9172         found_system=yes
9173
9174 else
9175   echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178
9179
9180 fi
9181
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183         ac_ext=c
9184 ac_cpp='$CPP $CPPFLAGS'
9185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9188
9189
9190
9191
9192                         if test "x$succeeded" != "xyes"; then
9193                 _version=0
9194                 if test "$ac_boost_path" != ""; then
9195                         if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9196                                 for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9197                                         _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9198                                         V_CHECK=`expr $_version_tmp \> $_version`
9199                                         if test "$V_CHECK" = "1" ; then
9200                                                 _version=$_version_tmp
9201                                         fi
9202                                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9203                                         BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
9204                                 done
9205                         fi
9206                 else
9207                         for ac_boost_path in /usr /usr/local /opt /opt/local ; do
9208                                 if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
9209                                         for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
9210                                                 _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
9211                                                 V_CHECK=`expr $_version_tmp \> $_version`
9212                                                 if test "$V_CHECK" = "1" ; then
9213                                                         _version=$_version_tmp
9214                                                         best_path=$ac_boost_path
9215                                                 fi
9216                                         done
9217                                 fi
9218                         done
9219
9220                         VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
9221                         BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
9222             if test "$ac_boost_lib_path" = ""
9223             then
9224                BOOST_LDFLAGS="-L$best_path/lib"
9225             fi
9226
9227                         if test "x$BOOST_ROOT" != "x"; then
9228                                 if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
9229                                         version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
9230                                         stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
9231                                         stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
9232                                         V_CHECK=`expr $stage_version_shorten \>\= $_version`
9233                     if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
9234                                                 { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
9235 echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
9236                                                 BOOST_CPPFLAGS="-I$BOOST_ROOT"
9237                                                 BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
9238                                         fi
9239                                 fi
9240                         fi
9241                 fi
9242
9243                 CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
9244                 export CPPFLAGS
9245                 LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
9246                 export LDFLAGS
9247
9248                 ac_ext=cpp
9249 ac_cpp='$CXXCPP $CPPFLAGS'
9250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9253
9254                 cat >conftest.$ac_ext <<_ACEOF
9255 /* confdefs.h.  */
9256 _ACEOF
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h.  */
9260
9261                 #include <boost/version.hpp>
9262
9263 int
9264 main ()
9265 {
9266
9267                 #if BOOST_VERSION >= $WANT_BOOST_VERSION
9268                 // Everything is okay
9269                 #else
9270                 #  error Boost version is too old
9271                 #endif
9272
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 rm -f conftest.$ac_objext
9278 if { (ac_try="$ac_compile"
9279 case "(($ac_try" in
9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281   *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284   (eval "$ac_compile") 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && {
9291          test -z "$ac_cxx_werror_flag" ||
9292          test ! -s conftest.err
9293        } && test -s conftest.$ac_objext; then
9294
9295                 { echo "$as_me:$LINENO: result: yes" >&5
9296 echo "${ECHO_T}yes" >&6; }
9297                 succeeded=yes
9298                 found_system=yes
9299
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304
9305
9306 fi
9307
9308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309                 ac_ext=c
9310 ac_cpp='$CPP $CPPFLAGS'
9311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9314
9315         fi
9316
9317         if test "$succeeded" != "yes" ; then
9318                 if test "$_version" = "0" ; then
9319                         { { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
9320 echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
9321    { (exit 1); exit 1; }; }
9322                 else
9323                         { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
9324 echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
9325                 fi
9326         else
9327
9328
9329
9330 cat >>confdefs.h <<\_ACEOF
9331 #define HAVE_BOOST
9332 _ACEOF
9333
9334         fi
9335
9336         CPPFLAGS="$CPPFLAGS_SAVED"
9337         LDFLAGS="$LDFLAGS_SAVED"
9338 fi
9339
9340
9341
9342 # absolute patch to source of Synthesis client library
9343 SYNTHESIS_SRC=no-synthesis-source
9344
9345 if test "$SYNTHESISSRC" && test "$SYNTHESISSRC" != "none"; then
9346     # default: checkout a copy of the sources, remove it during maintainer-clean and distclean
9347     CLEAN_CLIENT_SRC=synthesis-workdir
9348     SYNTHESIS_SRC=$PWD/src/synthesis-workdir
9349
9350     { echo "$as_me:$LINENO: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&5
9351 echo "$as_me: updating the content of $SYNTHESIS_SRC from $SYNTHESISSRC " >&6;}
9352     case "$SYNTHESISSRC" in
9353         *.git) protocol=git;;
9354         *://*) protocol="`echo $SYNTHESISSRC | sed -e 's;://.*;;'`";;
9355         *) protocol="file";;
9356     esac
9357
9358     mkdir -p src
9359     case $protocol in
9360         file)
9361             # use existing copy of the sources
9362             CLEAN_CLIENT_SRC=
9363             case "$SYNTHESISSRC" in
9364                  /*) SYNTHESIS_SRC="$SYNTHESISSRC";;
9365                  *) SYNTHESIS_SRC="$PWD/$SYNTHESISSRC";;
9366             esac
9367             ;;
9368         *svn*|*http*)
9369             SYNTHESISSRCREV="$SYNTHESISSRC"
9370             if test "$REVISION"; then
9371                 revarg="-r $REVISION "
9372                 if `echo $SYNTHESISSRC | grep '@0123456789*'` >/dev/null; then
9373                     :
9374                 else
9375                     SYNTHESISSRCREV="$SYNTHESISSRC@$REVISION"
9376                 fi
9377             fi
9378             if test -d $SYNTHESIS_SRC ; then
9379                 ( set -x; cd $SYNTHESIS_SRC && svn --username=$USERNAME switch $revarg "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
9380 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
9381    { (exit 1); exit 1; }; }
9382             else
9383                 (set -x; svn --username=$USERNAME checkout $revarg "$SYNTHESISSRCREV" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
9384 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
9385    { (exit 1); exit 1; }; }
9386             fi
9387             ;;
9388         *)
9389             if test -d $SYNTHESIS_SRC ; then
9390                 ( set -x; cd $SYNTHESIS_SRC && git fetch "$SYNTHESISSRC" ) || { { echo "$as_me:$LINENO: error: updating from $SYNTHESISSRC failed" >&5
9391 echo "$as_me: error: updating from $SYNTHESISSRC failed" >&2;}
9392    { (exit 1); exit 1; }; }
9393             else
9394                 ( set -x; git clone "$SYNTHESISSRC" $SYNTHESIS_SRC ) || { { echo "$as_me:$LINENO: error: cloning $SYNTHESISSRC failed" >&5
9395 echo "$as_me: error: cloning $SYNTHESISSRC failed" >&2;}
9396    { (exit 1); exit 1; }; }
9397             fi
9398             if test "$REVISION"; then
9399                 # git 1.6 finds tags and branches without explicit prefix, 1.4.4.4 doesn't
9400                 ( set -x; cd $SYNTHESIS_SRC &&
9401                   (git checkout "$REVISION" ||
9402                    git checkout "tags/$REVISION" ||
9403                    git checkout "origin/$REVISION") ) || { { echo "$as_me:$LINENO: error: checking out $SYNTHESISSRC failed" >&5
9404 echo "$as_me: error: checking out $SYNTHESISSRC failed" >&2;}
9405    { (exit 1); exit 1; }; }
9406             fi
9407             ;;
9408     esac
9409 elif test "$SYNTHESISSRC" != "none" && test -d $srcdir/src/synthesis; then
9410     # use existing copy of the sources; beware of
9411     # out-of-tree compilation
9412     case $srcdir in
9413          /*) SYNTHESIS_SRC="$srcdir/src/synthesis";;
9414          *) SYNTHESIS_SRC="$PWD/$srcdir/src/synthesis";;
9415     esac
9416 elif test "$enable_shared" = "no"; then
9417     # link against engine
9418
9419 pkg_failed=no
9420 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
9421 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
9422
9423 if test -n "$PKG_CONFIG"; then
9424     if test -n "$SYNTHESIS_CFLAGS"; then
9425         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
9426     else
9427         if test -n "$PKG_CONFIG" && \
9428     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9429   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; then
9433   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
9434 else
9435   pkg_failed=yes
9436 fi
9437     fi
9438 else
9439         pkg_failed=untried
9440 fi
9441 if test -n "$PKG_CONFIG"; then
9442     if test -n "$SYNTHESIS_LIBS"; then
9443         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
9444     else
9445         if test -n "$PKG_CONFIG" && \
9446     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9447   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9448   ac_status=$?
9449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); }; then
9451   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
9452 else
9453   pkg_failed=yes
9454 fi
9455     fi
9456 else
9457         pkg_failed=untried
9458 fi
9459
9460
9461
9462 if test $pkg_failed = yes; then
9463
9464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9465         _pkg_short_errors_supported=yes
9466 else
9467         _pkg_short_errors_supported=no
9468 fi
9469         if test $_pkg_short_errors_supported = yes; then
9470                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
9471         else
9472                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
9473         fi
9474         # Put the nasty error message in config.log where it belongs
9475         echo "$SYNTHESIS_PKG_ERRORS" >&5
9476
9477         { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
9478
9479 $SYNTHESIS_PKG_ERRORS
9480
9481 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9482 installed software in a non-standard prefix.
9483
9484 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9485 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9486 See the pkg-config man page for more details.
9487 " >&5
9488 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
9489
9490 $SYNTHESIS_PKG_ERRORS
9491
9492 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9493 installed software in a non-standard prefix.
9494
9495 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9496 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9497 See the pkg-config man page for more details.
9498 " >&2;}
9499    { (exit 1); exit 1; }; }
9500 elif test $pkg_failed = untried; then
9501         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
9502 is in your PATH or set the PKG_CONFIG environment variable to the full
9503 path to pkg-config.
9504
9505 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9506 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9507 See the pkg-config man page for more details.
9508
9509 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9510 See \`config.log' for more details." >&5
9511 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
9512 is in your PATH or set the PKG_CONFIG environment variable to the full
9513 path to pkg-config.
9514
9515 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9516 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9517 See the pkg-config man page for more details.
9518
9519 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9520 See \`config.log' for more details." >&2;}
9521    { (exit 1); exit 1; }; }
9522 else
9523         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
9524         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
9525         { echo "$as_me:$LINENO: result: yes" >&5
9526 echo "${ECHO_T}yes" >&6; }
9527         :
9528 fi
9529     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS -lsynthesis"
9530 else
9531     # link against SDK alone, except in client-test
9532     #PKG_CHECK_MODULES(SYNTHESIS, "synthesis-sdk")
9533     #SYNTHESIS_ENGINE="`echo $SYNTHESIS_LIBS | sed -e 's/-lsynthesisstubs/-lsynthesis/'`"
9534
9535     # can't use the SDK alone because of sysync::SySyncDebugPuts()
9536
9537 pkg_failed=no
9538 { echo "$as_me:$LINENO: checking for SYNTHESIS" >&5
9539 echo $ECHO_N "checking for SYNTHESIS... $ECHO_C" >&6; }
9540
9541 if test -n "$PKG_CONFIG"; then
9542     if test -n "$SYNTHESIS_CFLAGS"; then
9543         pkg_cv_SYNTHESIS_CFLAGS="$SYNTHESIS_CFLAGS"
9544     else
9545         if test -n "$PKG_CONFIG" && \
9546     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9547   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9548   ac_status=$?
9549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550   (exit $ac_status); }; then
9551   pkg_cv_SYNTHESIS_CFLAGS=`$PKG_CONFIG --cflags ""synthesis"" 2>/dev/null`
9552 else
9553   pkg_failed=yes
9554 fi
9555     fi
9556 else
9557         pkg_failed=untried
9558 fi
9559 if test -n "$PKG_CONFIG"; then
9560     if test -n "$SYNTHESIS_LIBS"; then
9561         pkg_cv_SYNTHESIS_LIBS="$SYNTHESIS_LIBS"
9562     else
9563         if test -n "$PKG_CONFIG" && \
9564     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"synthesis\"\"") >&5
9565   ($PKG_CONFIG --exists --print-errors ""synthesis"") 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; then
9569   pkg_cv_SYNTHESIS_LIBS=`$PKG_CONFIG --libs ""synthesis"" 2>/dev/null`
9570 else
9571   pkg_failed=yes
9572 fi
9573     fi
9574 else
9575         pkg_failed=untried
9576 fi
9577
9578
9579
9580 if test $pkg_failed = yes; then
9581
9582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9583         _pkg_short_errors_supported=yes
9584 else
9585         _pkg_short_errors_supported=no
9586 fi
9587         if test $_pkg_short_errors_supported = yes; then
9588                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""synthesis""`
9589         else
9590                 SYNTHESIS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""synthesis""`
9591         fi
9592         # Put the nasty error message in config.log where it belongs
9593         echo "$SYNTHESIS_PKG_ERRORS" >&5
9594
9595         { { echo "$as_me:$LINENO: error: Package requirements (\"synthesis\") were not met:
9596
9597 $SYNTHESIS_PKG_ERRORS
9598
9599 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9600 installed software in a non-standard prefix.
9601
9602 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9603 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9604 See the pkg-config man page for more details.
9605 " >&5
9606 echo "$as_me: error: Package requirements (\"synthesis\") were not met:
9607
9608 $SYNTHESIS_PKG_ERRORS
9609
9610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
9611 installed software in a non-standard prefix.
9612
9613 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9614 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9615 See the pkg-config man page for more details.
9616 " >&2;}
9617    { (exit 1); exit 1; }; }
9618 elif test $pkg_failed = untried; then
9619         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
9620 is in your PATH or set the PKG_CONFIG environment variable to the full
9621 path to pkg-config.
9622
9623 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9624 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9625 See the pkg-config man page for more details.
9626
9627 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9628 See \`config.log' for more details." >&5
9629 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
9630 is in your PATH or set the PKG_CONFIG environment variable to the full
9631 path to pkg-config.
9632
9633 Alternatively, you may set the environment variables SYNTHESIS_CFLAGS
9634 and SYNTHESIS_LIBS to avoid the need to call pkg-config.
9635 See the pkg-config man page for more details.
9636
9637 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
9638 See \`config.log' for more details." >&2;}
9639    { (exit 1); exit 1; }; }
9640 else
9641         SYNTHESIS_CFLAGS=$pkg_cv_SYNTHESIS_CFLAGS
9642         SYNTHESIS_LIBS=$pkg_cv_SYNTHESIS_LIBS
9643         { echo "$as_me:$LINENO: result: yes" >&5
9644 echo "${ECHO_T}yes" >&6; }
9645         :
9646 fi
9647     SYNTHESIS_ENGINE="$SYNTHESIS_LIBS"
9648 fi
9649
9650 if test $SYNTHESIS_SRC != "no-synthesis-source"; then
9651     ( cd $SYNTHESIS_SRC && ( test -f configure || sh autogen.sh ) ) || { { echo "$as_me:$LINENO: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&5
9652 echo "$as_me: error: --with-synthesis-src=$SYNTHESIS_SRC: no Synthesis configure script found in that directory" >&2;}
9653    { (exit 1); exit 1; }; }
9654
9655     SYNTHESIS_CONFIGURE="$SYNTHESIS_SRC/configure"
9656     chmod u+x $SYNTHESIS_SRC/configure $SYNTHESIS_SRC/config.sub $SYNTHESIS_SRC/config.guess
9657
9658     # use local copy of the sources, with dependencies
9659     # to trigger building the synthesis library
9660     SYNTHESIS_SUBDIR=$PWD/src/build-synthesis
9661     SYNTHESIS_CFLAGS="-I$SYNTHESIS_SUBDIR/src"
9662     SYNTHESIS_LIBS="$SYNTHESIS_SUBDIR/src/libsynthesissdk.la"
9663
9664     if test "$enable_shared" = "no"; then
9665         # link against the engines that were enabled
9666         case $SYNCML_ENGINES in both|client|server) SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la";; esac
9667
9668 cat >>confdefs.h <<\_ACEOF
9669 #define ENABLE_SYNCML_LINKED 1
9670 _ACEOF
9671
9672     else
9673         # It would be nice if we could avoid linking against libsynthesis.la here.
9674         # This doesn't work at the moment because sysync::SySyncDebugPuts()
9675         # is called directly by the libsynthesissdk instead of going through
9676         # the normal C function pointer lookup.
9677         SYNTHESIS_LIBS="$SYNTHESIS_LIBS $SYNTHESIS_SUBDIR/src/libsynthesis.la"
9678     fi
9679     SYNTHESIS_DEP=$SYNTHESIS_LIBS
9680
9681     # for linking client-test
9682     SYNTHESIS_ENGINE="$SYNTHESIS_SUBDIR/src/libsynthesis.la"
9683
9684     { echo "$as_me:$LINENO: configuring the Synthesis library " >&5
9685 echo "$as_me: configuring the Synthesis library " >&6;}
9686     if (set -x; mkdir -p $SYNTHESIS_SUBDIR && cd $SYNTHESIS_SUBDIR && eval "\$SHELL \"\$SYNTHESIS_CONFIGURE\" $ac_configure_args \"--srcdir=\$SYNTHESIS_SRC\" " ); then true; else
9687         { { echo "$as_me:$LINENO: error: configuring Synthesis library failed " >&5
9688 echo "$as_me: error: configuring Synthesis library failed " >&2;}
9689    { (exit 1); exit 1; }; }
9690     fi
9691 fi
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702 BACKENDS=""
9703
9704 # AC_ARG_ENABLE_BACKEND(BACKEND, DIR, HELP-STRING, [ACTION-IF-GIVEN],
9705 #                       [ACTION-IF-NOT-GIVEN])
9706 #
9707 # Same as AC_ARG_ENABLE(), but also tells configure that the
9708 # backend exists.
9709 #
9710 # BACKEND = name of modules built in that dir as .la files without the
9711 #           obligatory sync prefix, e.g. "ebook"
9712 # DIR = name of the directory inside src/backends, e.g., "evolution"
9713
9714
9715
9716
9717 BACKEND_CPPFLAGS="$SYNTHESIS_CFLAGS $EPACKAGE_CFLAGS $EBOOK_CFLAGS $ECAL_CFLAGS $GLIB_CFLAGS $BOOST_CPPFLAGS"
9718
9719
9720 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
9721
9722 ADDRESSBOOK_CFLAGS=
9723
9724 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
9725
9726
9727 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
9728
9729
9730         # Check whether --enable-addressbook was given.
9731 if test "${enable_addressbook+set}" = set; then
9732   enableval=$enable_addressbook; enable_addressbook="$enableval"
9733 else
9734   enable_addressbook="no"
9735 fi
9736
9737         BACKENDS="$BACKENDS addressbook"
9738         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo addressbook | tr a-z A-Z`"
9739         for source in addressbook; do
9740             SYNCSOURCES="$SYNCSOURCES backends/addressbook/syncaddressbook.la"
9741         done
9742
9743
9744 if test "$enable_addressbook" = "yes"; then
9745
9746 cat >>confdefs.h <<\_ACEOF
9747 #define ENABLE_ADDRESSBOOK 1
9748 _ACEOF
9749
9750         DEVICE_TYPE=MacOS_X
9751         enable_any="yes"
9752 else
9753         ADDRESSBOOK_LIBS=
9754 fi
9755
9756 ac_config_files="$ac_config_files src/backends/addressbook/Makefile"
9757
9758 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
9759
9760 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
9761
9762 pkg_emodules_10="libedataserver-1.0"
9763 pkg_emodules_11="libedataserver-1.1"
9764 pkg_emodules_12="libedataserver-1.2"
9765 pkg_ebook_10="libebook-1.0"
9766 pkg_ebook_11="libebook-1.1"
9767 pkg_ebook_12="libebook-1.2"
9768 pkg_ecal_10="libecal-1.0"
9769 pkg_ecal_11="libecal-1.1"
9770 pkg_ecal_12="libecal-1.2"
9771
9772 anymissing="
9773 Please install the development packages of Evolution and/or
9774 set the PKG_CONFIG_PATH variable so that it points towards
9775 the .pc files of libedataserver, libecal and libebook (the
9776 latter two are optional).
9777
9778 You can check that these packages are available by running
9779 pkg-config --list-all."
9780
9781 evomissing="No compatible evolution-data-server was found.
9782 $anymissing"
9783
9784
9785 pkg_failed=no
9786 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
9787 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
9788
9789 if test -n "$PKG_CONFIG"; then
9790     if test -n "$EPACKAGE_CFLAGS"; then
9791         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
9792     else
9793         if test -n "$PKG_CONFIG" && \
9794     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
9795   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; then
9799   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_12" 2>/dev/null`
9800 else
9801   pkg_failed=yes
9802 fi
9803     fi
9804 else
9805         pkg_failed=untried
9806 fi
9807 if test -n "$PKG_CONFIG"; then
9808     if test -n "$EPACKAGE_LIBS"; then
9809         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
9810     else
9811         if test -n "$PKG_CONFIG" && \
9812     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
9813   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
9814   ac_status=$?
9815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816   (exit $ac_status); }; then
9817   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_12" 2>/dev/null`
9818 else
9819   pkg_failed=yes
9820 fi
9821     fi
9822 else
9823         pkg_failed=untried
9824 fi
9825
9826
9827
9828 if test $pkg_failed = yes; then
9829
9830 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9831         _pkg_short_errors_supported=yes
9832 else
9833         _pkg_short_errors_supported=no
9834 fi
9835         if test $_pkg_short_errors_supported = yes; then
9836                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_12"`
9837         else
9838                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_12"`
9839         fi
9840         # Put the nasty error message in config.log where it belongs
9841         echo "$EPACKAGE_PKG_ERRORS" >&5
9842
9843         { echo "$as_me:$LINENO: result: no" >&5
9844 echo "${ECHO_T}no" >&6; }
9845                 EDSFOUND=no
9846 elif test $pkg_failed = untried; then
9847         EDSFOUND=no
9848 else
9849         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
9850         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
9851         { echo "$as_me:$LINENO: result: yes" >&5
9852 echo "${ECHO_T}yes" >&6; }
9853         EDSFOUND=yes
9854 fi
9855 if test "x${EDSFOUND}" = "xno"; then
9856
9857 pkg_failed=no
9858 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
9859 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
9860
9861 if test -n "$PKG_CONFIG"; then
9862     if test -n "$EPACKAGE_CFLAGS"; then
9863         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
9864     else
9865         if test -n "$PKG_CONFIG" && \
9866     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
9867   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; then
9871   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_11" 2>/dev/null`
9872 else
9873   pkg_failed=yes
9874 fi
9875     fi
9876 else
9877         pkg_failed=untried
9878 fi
9879 if test -n "$PKG_CONFIG"; then
9880     if test -n "$EPACKAGE_LIBS"; then
9881         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
9882     else
9883         if test -n "$PKG_CONFIG" && \
9884     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
9885   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; then
9889   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_11" 2>/dev/null`
9890 else
9891   pkg_failed=yes
9892 fi
9893     fi
9894 else
9895         pkg_failed=untried
9896 fi
9897
9898
9899
9900 if test $pkg_failed = yes; then
9901
9902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9903         _pkg_short_errors_supported=yes
9904 else
9905         _pkg_short_errors_supported=no
9906 fi
9907         if test $_pkg_short_errors_supported = yes; then
9908                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_11"`
9909         else
9910                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_11"`
9911         fi
9912         # Put the nasty error message in config.log where it belongs
9913         echo "$EPACKAGE_PKG_ERRORS" >&5
9914
9915         { echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6; }
9917                 EDSFOUND=no
9918 elif test $pkg_failed = untried; then
9919         EDSFOUND=no
9920 else
9921         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
9922         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
9923         { echo "$as_me:$LINENO: result: yes" >&5
9924 echo "${ECHO_T}yes" >&6; }
9925         EDSFOUND=yes
9926 fi
9927       if test "x${EDSFOUND}" = "xno"; then
9928
9929 pkg_failed=no
9930 { echo "$as_me:$LINENO: checking for EPACKAGE" >&5
9931 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6; }
9932
9933 if test -n "$PKG_CONFIG"; then
9934     if test -n "$EPACKAGE_CFLAGS"; then
9935         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
9936     else
9937         if test -n "$PKG_CONFIG" && \
9938     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
9939   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
9940   ac_status=$?
9941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942   (exit $ac_status); }; then
9943   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_10" 2>/dev/null`
9944 else
9945   pkg_failed=yes
9946 fi
9947     fi
9948 else
9949         pkg_failed=untried
9950 fi
9951 if test -n "$PKG_CONFIG"; then
9952     if test -n "$EPACKAGE_LIBS"; then
9953         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
9954     else
9955         if test -n "$PKG_CONFIG" && \
9956     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
9957   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
9958   ac_status=$?
9959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960   (exit $ac_status); }; then
9961   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_10" 2>/dev/null`
9962 else
9963   pkg_failed=yes
9964 fi
9965     fi
9966 else
9967         pkg_failed=untried
9968 fi
9969
9970
9971
9972 if test $pkg_failed = yes; then
9973
9974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9975         _pkg_short_errors_supported=yes
9976 else
9977         _pkg_short_errors_supported=no
9978 fi
9979         if test $_pkg_short_errors_supported = yes; then
9980                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_10"`
9981         else
9982                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_10"`
9983         fi
9984         # Put the nasty error message in config.log where it belongs
9985         echo "$EPACKAGE_PKG_ERRORS" >&5
9986
9987         { echo "$as_me:$LINENO: result: no" >&5
9988 echo "${ECHO_T}no" >&6; }
9989                 EDSFOUND=no
9990 elif test $pkg_failed = untried; then
9991         EDSFOUND=no
9992 else
9993         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
9994         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
9995         { echo "$as_me:$LINENO: result: yes" >&5
9996 echo "${ECHO_T}yes" >&6; }
9997         EDSFOUND=yes
9998 fi
9999       fi
10000 fi
10001
10002
10003 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS"
10004
10005
10006 pkg_failed=no
10007 { echo "$as_me:$LINENO: checking for ECAL" >&5
10008 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10009
10010 if test -n "$PKG_CONFIG"; then
10011     if test -n "$ECAL_CFLAGS"; then
10012         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10013     else
10014         if test -n "$PKG_CONFIG" && \
10015     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10016   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10017   ac_status=$?
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); }; then
10020   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_12" 2>/dev/null`
10021 else
10022   pkg_failed=yes
10023 fi
10024     fi
10025 else
10026         pkg_failed=untried
10027 fi
10028 if test -n "$PKG_CONFIG"; then
10029     if test -n "$ECAL_LIBS"; then
10030         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10031     else
10032         if test -n "$PKG_CONFIG" && \
10033     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
10034   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; then
10038   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_12" 2>/dev/null`
10039 else
10040   pkg_failed=yes
10041 fi
10042     fi
10043 else
10044         pkg_failed=untried
10045 fi
10046
10047
10048
10049 if test $pkg_failed = yes; then
10050
10051 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10052         _pkg_short_errors_supported=yes
10053 else
10054         _pkg_short_errors_supported=no
10055 fi
10056         if test $_pkg_short_errors_supported = yes; then
10057                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_12"`
10058         else
10059                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_12"`
10060         fi
10061         # Put the nasty error message in config.log where it belongs
10062         echo "$ECAL_PKG_ERRORS" >&5
10063
10064         { echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6; }
10066                 ECALFOUND=no
10067 elif test $pkg_failed = untried; then
10068         ECALFOUND=no
10069 else
10070         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10071         ECAL_LIBS=$pkg_cv_ECAL_LIBS
10072         { echo "$as_me:$LINENO: result: yes" >&5
10073 echo "${ECHO_T}yes" >&6; }
10074         ECALFOUND=yes
10075 fi
10076 if test "x${ECALFOUND}" = "xno"; then
10077
10078 pkg_failed=no
10079 { echo "$as_me:$LINENO: checking for ECAL" >&5
10080 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10081
10082 if test -n "$PKG_CONFIG"; then
10083     if test -n "$ECAL_CFLAGS"; then
10084         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10085     else
10086         if test -n "$PKG_CONFIG" && \
10087     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
10088   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); }; then
10092   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_11" 2>/dev/null`
10093 else
10094   pkg_failed=yes
10095 fi
10096     fi
10097 else
10098         pkg_failed=untried
10099 fi
10100 if test -n "$PKG_CONFIG"; then
10101     if test -n "$ECAL_LIBS"; then
10102         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10103     else
10104         if test -n "$PKG_CONFIG" && \
10105     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
10106   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; then
10110   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_11" 2>/dev/null`
10111 else
10112   pkg_failed=yes
10113 fi
10114     fi
10115 else
10116         pkg_failed=untried
10117 fi
10118
10119
10120
10121 if test $pkg_failed = yes; then
10122
10123 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10124         _pkg_short_errors_supported=yes
10125 else
10126         _pkg_short_errors_supported=no
10127 fi
10128         if test $_pkg_short_errors_supported = yes; then
10129                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_11"`
10130         else
10131                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_11"`
10132         fi
10133         # Put the nasty error message in config.log where it belongs
10134         echo "$ECAL_PKG_ERRORS" >&5
10135
10136         { echo "$as_me:$LINENO: result: no" >&5
10137 echo "${ECHO_T}no" >&6; }
10138                 ECALFOUND=no
10139 elif test $pkg_failed = untried; then
10140         ECALFOUND=no
10141 else
10142         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10143         ECAL_LIBS=$pkg_cv_ECAL_LIBS
10144         { echo "$as_me:$LINENO: result: yes" >&5
10145 echo "${ECHO_T}yes" >&6; }
10146         ECALFOUND=yes
10147 fi
10148         if test "x${ECALFOUND}" = "xno"; then
10149
10150 pkg_failed=no
10151 { echo "$as_me:$LINENO: checking for ECAL" >&5
10152 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6; }
10153
10154 if test -n "$PKG_CONFIG"; then
10155     if test -n "$ECAL_CFLAGS"; then
10156         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
10157     else
10158         if test -n "$PKG_CONFIG" && \
10159     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
10160   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; then
10164   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_10" 2>/dev/null`
10165 else
10166   pkg_failed=yes
10167 fi
10168     fi
10169 else
10170         pkg_failed=untried
10171 fi
10172 if test -n "$PKG_CONFIG"; then
10173     if test -n "$ECAL_LIBS"; then
10174         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
10175     else
10176         if test -n "$PKG_CONFIG" && \
10177     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
10178   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
10179   ac_status=$?
10180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); }; then
10182   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_10" 2>/dev/null`
10183 else
10184   pkg_failed=yes
10185 fi
10186     fi
10187 else
10188         pkg_failed=untried
10189 fi
10190
10191
10192
10193 if test $pkg_failed = yes; then
10194
10195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10196         _pkg_short_errors_supported=yes
10197 else
10198         _pkg_short_errors_supported=no
10199 fi
10200         if test $_pkg_short_errors_supported = yes; then
10201                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_10"`
10202         else
10203                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_10"`
10204         fi
10205         # Put the nasty error message in config.log where it belongs
10206         echo "$ECAL_PKG_ERRORS" >&5
10207
10208         { echo "$as_me:$LINENO: result: no" >&5
10209 echo "${ECHO_T}no" >&6; }
10210                 ECALFOUND=no
10211 elif test $pkg_failed = untried; then
10212         ECALFOUND=no
10213 else
10214         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
10215         ECAL_LIBS=$pkg_cv_ECAL_LIBS
10216         { echo "$as_me:$LINENO: result: yes" >&5
10217 echo "${ECHO_T}yes" >&6; }
10218         ECALFOUND=yes
10219 fi
10220         fi
10221 fi
10222
10223
10224 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ECAL_CFLAGS"
10225
10226
10227 pkg_failed=no
10228 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10229 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10230
10231 if test -n "$PKG_CONFIG"; then
10232     if test -n "$EBOOK_CFLAGS"; then
10233         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10234     else
10235         if test -n "$PKG_CONFIG" && \
10236     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
10237   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; then
10241   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_12" 2>/dev/null`
10242 else
10243   pkg_failed=yes
10244 fi
10245     fi
10246 else
10247         pkg_failed=untried
10248 fi
10249 if test -n "$PKG_CONFIG"; then
10250     if test -n "$EBOOK_LIBS"; then
10251         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10252     else
10253         if test -n "$PKG_CONFIG" && \
10254     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
10255   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
10256   ac_status=$?
10257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258   (exit $ac_status); }; then
10259   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_12" 2>/dev/null`
10260 else
10261   pkg_failed=yes
10262 fi
10263     fi
10264 else
10265         pkg_failed=untried
10266 fi
10267
10268
10269
10270 if test $pkg_failed = yes; then
10271
10272 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10273         _pkg_short_errors_supported=yes
10274 else
10275         _pkg_short_errors_supported=no
10276 fi
10277         if test $_pkg_short_errors_supported = yes; then
10278                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_12"`
10279         else
10280                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_12"`
10281         fi
10282         # Put the nasty error message in config.log where it belongs
10283         echo "$EBOOK_PKG_ERRORS" >&5
10284
10285         { echo "$as_me:$LINENO: result: no" >&5
10286 echo "${ECHO_T}no" >&6; }
10287                 EBOOKFOUND=no
10288 elif test $pkg_failed = untried; then
10289         EBOOKFOUND=no
10290 else
10291         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10292         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10293         { echo "$as_me:$LINENO: result: yes" >&5
10294 echo "${ECHO_T}yes" >&6; }
10295         EBOOKFOUND=yes
10296 fi
10297 if test "x${EBOOKFOUND}" = "xno"; then
10298
10299 pkg_failed=no
10300 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10301 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10302
10303 if test -n "$PKG_CONFIG"; then
10304     if test -n "$EBOOK_CFLAGS"; then
10305         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10306     else
10307         if test -n "$PKG_CONFIG" && \
10308     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
10309   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; then
10313   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_11" 2>/dev/null`
10314 else
10315   pkg_failed=yes
10316 fi
10317     fi
10318 else
10319         pkg_failed=untried
10320 fi
10321 if test -n "$PKG_CONFIG"; then
10322     if test -n "$EBOOK_LIBS"; then
10323         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10324     else
10325         if test -n "$PKG_CONFIG" && \
10326     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
10327   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; then
10331   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_11" 2>/dev/null`
10332 else
10333   pkg_failed=yes
10334 fi
10335     fi
10336 else
10337         pkg_failed=untried
10338 fi
10339
10340
10341
10342 if test $pkg_failed = yes; then
10343
10344 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10345         _pkg_short_errors_supported=yes
10346 else
10347         _pkg_short_errors_supported=no
10348 fi
10349         if test $_pkg_short_errors_supported = yes; then
10350                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_11"`
10351         else
10352                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_11"`
10353         fi
10354         # Put the nasty error message in config.log where it belongs
10355         echo "$EBOOK_PKG_ERRORS" >&5
10356
10357         { echo "$as_me:$LINENO: result: no" >&5
10358 echo "${ECHO_T}no" >&6; }
10359                 EBOOKFOUND=no
10360 elif test $pkg_failed = untried; then
10361         EBOOKFOUND=no
10362 else
10363         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10364         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10365         { echo "$as_me:$LINENO: result: yes" >&5
10366 echo "${ECHO_T}yes" >&6; }
10367         EBOOKFOUND=yes
10368 fi
10369         if test "x${EBOOKFOUND}" = "xno"; then
10370
10371 pkg_failed=no
10372 { echo "$as_me:$LINENO: checking for EBOOK" >&5
10373 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6; }
10374
10375 if test -n "$PKG_CONFIG"; then
10376     if test -n "$EBOOK_CFLAGS"; then
10377         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
10378     else
10379         if test -n "$PKG_CONFIG" && \
10380     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
10381   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; then
10385   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_10" 2>/dev/null`
10386 else
10387   pkg_failed=yes
10388 fi
10389     fi
10390 else
10391         pkg_failed=untried
10392 fi
10393 if test -n "$PKG_CONFIG"; then
10394     if test -n "$EBOOK_LIBS"; then
10395         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
10396     else
10397         if test -n "$PKG_CONFIG" && \
10398     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
10399   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
10400   ac_status=$?
10401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; then
10403   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_10" 2>/dev/null`
10404 else
10405   pkg_failed=yes
10406 fi
10407     fi
10408 else
10409         pkg_failed=untried
10410 fi
10411
10412
10413
10414 if test $pkg_failed = yes; then
10415
10416 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10417         _pkg_short_errors_supported=yes
10418 else
10419         _pkg_short_errors_supported=no
10420 fi
10421         if test $_pkg_short_errors_supported = yes; then
10422                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_10"`
10423         else
10424                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_10"`
10425         fi
10426         # Put the nasty error message in config.log where it belongs
10427         echo "$EBOOK_PKG_ERRORS" >&5
10428
10429         { echo "$as_me:$LINENO: result: no" >&5
10430 echo "${ECHO_T}no" >&6; }
10431                 EBOOKFOUND=no
10432 elif test $pkg_failed = untried; then
10433         EBOOKFOUND=no
10434 else
10435         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
10436         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
10437         { echo "$as_me:$LINENO: result: yes" >&5
10438 echo "${ECHO_T}yes" >&6; }
10439         EBOOKFOUND=yes
10440 fi
10441         fi
10442 fi
10443
10444
10445 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EBOOK_CFLAGS"
10446
10447
10448         # Check whether --enable-ebook was given.
10449 if test "${enable_ebook+set}" = set; then
10450   enableval=$enable_ebook; enable_ebook="$enableval"
10451 else
10452   test "$EBOOKFOUND" = "yes" && enable_ebook="yes" ||
10453                        { { echo "$as_me:$LINENO: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&5
10454 echo "$as_me: error: libebook not found. Use --disable-ebook to compile without or install the necessary development files." >&2;}
10455    { (exit 1); exit 1; }; }
10456 fi
10457
10458         BACKENDS="$BACKENDS ebook"
10459         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ebook | tr a-z A-Z`"
10460         for source in evolution; do
10461             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncebook.la"
10462         done
10463
10464
10465         # Check whether --enable-ecal was given.
10466 if test "${enable_ecal+set}" = set; then
10467   enableval=$enable_ecal; enable_ecal="$enableval"
10468 else
10469   test "$ECALFOUND" = "yes" && enable_ecal="yes" ||
10470                        { { echo "$as_me:$LINENO: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&5
10471 echo "$as_me: error: libecal not found. Use --disable-ecal to compile without or install the necessary development files." >&2;}
10472    { (exit 1); exit 1; }; }
10473 fi
10474
10475         BACKENDS="$BACKENDS ecal"
10476         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ecal | tr a-z A-Z`"
10477         for source in evolution; do
10478             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncecal.la"
10479         done
10480
10481
10482 enable_evo="no"
10483 if test "$enable_ebook" = "yes"; then
10484         test "x${EBOOKFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&5
10485 echo "$as_me: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&2;}
10486    { (exit 1); exit 1; }; }
10487
10488 cat >>confdefs.h <<\_ACEOF
10489 #define ENABLE_EBOOK 1
10490 _ACEOF
10491
10492         enable_evo="yes"
10493 fi
10494
10495  if test "$enable_ecal" == "yes"; then
10496   ENABLE_ECAL_TRUE=
10497   ENABLE_ECAL_FALSE='#'
10498 else
10499   ENABLE_ECAL_TRUE='#'
10500   ENABLE_ECAL_FALSE=
10501 fi
10502
10503 if test "$enable_ecal" = "yes"; then
10504         test "x${ECALFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&5
10505 echo "$as_me: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&2;}
10506    { (exit 1); exit 1; }; }
10507
10508 cat >>confdefs.h <<\_ACEOF
10509 #define ENABLE_ECAL 1
10510 _ACEOF
10511
10512         enable_evo="yes"
10513 fi
10514
10515 need_glib="yes"
10516
10517 if test "$enable_evo" = "yes"; then
10518         if test "$EDSFOUND" = "yes"; then
10519
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_EDS 1
10522 _ACEOF
10523
10524         else
10525                 { { echo "$as_me:$LINENO: error: $evomissing" >&5
10526 echo "$as_me: error: $evomissing" >&2;}
10527    { (exit 1); exit 1; }; }
10528         fi
10529 else
10530         EPACKAGE_CFLAGS=
10531         EPACKAGE_LIBS=
10532 fi
10533 ac_config_files="$ac_config_files src/backends/evolution/Makefile"
10534
10535 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
10536
10537 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
10538
10539
10540 FILE_CFLAGS=
10541 FILE_LIBS=
10542
10543
10544
10545 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
10546
10547
10548         # Check whether --enable-file was given.
10549 if test "${enable_file+set}" = set; then
10550   enableval=$enable_file; enable_file="$enableval"
10551 else
10552   enable_file="yes"
10553
10554 fi
10555
10556         BACKENDS="$BACKENDS file"
10557         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo file | tr a-z A-Z`"
10558         for source in file; do
10559             SYNCSOURCES="$SYNCSOURCES backends/file/syncfile.la"
10560         done
10561
10562
10563 if test "$enable_file" = "yes"; then
10564
10565 cat >>confdefs.h <<\_ACEOF
10566 #define ENABLE_FILE 1
10567 _ACEOF
10568
10569 fi
10570 ac_config_files="$ac_config_files src/backends/file/Makefile"
10571
10572 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
10573
10574 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
10575
10576
10577 pkg_failed=no
10578 { echo "$as_me:$LINENO: checking for SQLITE" >&5
10579 echo $ECHO_N "checking for SQLITE... $ECHO_C" >&6; }
10580
10581 if test -n "$PKG_CONFIG"; then
10582     if test -n "$SQLITE_CFLAGS"; then
10583         pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
10584     else
10585         if test -n "$PKG_CONFIG" && \
10586     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
10587   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
10588   ac_status=$?
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); }; then
10591   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
10592 else
10593   pkg_failed=yes
10594 fi
10595     fi
10596 else
10597         pkg_failed=untried
10598 fi
10599 if test -n "$PKG_CONFIG"; then
10600     if test -n "$SQLITE_LIBS"; then
10601         pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
10602     else
10603         if test -n "$PKG_CONFIG" && \
10604     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
10605   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; then
10609   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
10610 else
10611   pkg_failed=yes
10612 fi
10613     fi
10614 else
10615         pkg_failed=untried
10616 fi
10617
10618
10619
10620 if test $pkg_failed = yes; then
10621
10622 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10623         _pkg_short_errors_supported=yes
10624 else
10625         _pkg_short_errors_supported=no
10626 fi
10627         if test $_pkg_short_errors_supported = yes; then
10628                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
10629         else
10630                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
10631         fi
10632         # Put the nasty error message in config.log where it belongs
10633         echo "$SQLITE_PKG_ERRORS" >&5
10634
10635         { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10637                 SQLITEFOUND=no
10638 elif test $pkg_failed = untried; then
10639         SQLITEFOUND=no
10640 else
10641         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
10642         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
10643         { echo "$as_me:$LINENO: result: yes" >&5
10644 echo "${ECHO_T}yes" >&6; }
10645         SQLITEFOUND=yes
10646 fi
10647
10648
10649 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
10650
10651
10652         # Check whether --enable-sqlite was given.
10653 if test "${enable_sqlite+set}" = set; then
10654   enableval=$enable_sqlite; enable_sqlite="$enableval"
10655 else
10656   enable_sqlite="no"
10657 fi
10658
10659         BACKENDS="$BACKENDS sqlite"
10660         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo sqlite | tr a-z A-Z`"
10661         for source in sqlite; do
10662             SYNCSOURCES="$SYNCSOURCES backends/sqlite/syncsqlite.la"
10663         done
10664
10665
10666 if test "$enable_sqlite" = "yes"; then
10667         test "x${SQLITEFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&5
10668 echo "$as_me: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&2;}
10669    { (exit 1); exit 1; }; }
10670
10671 cat >>confdefs.h <<\_ACEOF
10672 #define ENABLE_SQLITE 1
10673 _ACEOF
10674
10675 else
10676         # avoid linking against it if not needed
10677         SQLITE_CFLAGS=
10678         SQLITE_LIBS=
10679 fi
10680 ac_config_files="$ac_config_files src/backends/sqlite/Makefile"
10681
10682 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
10683
10684
10685
10686
10687 enable_any="no"
10688 backend_is_enabled () {
10689     eval echo \${enable_${1}}
10690 }
10691 for backend in $BACKENDS; do
10692     if test `backend_is_enabled $backend` == "yes"; then
10693        enable_any="yes"
10694        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
10695     fi
10696 done
10697
10698 if test "$enable_any" = "no"; then
10699         { { echo "$as_me:$LINENO: error: no backend enabled - refusing to continue: $anymissing" >&5
10700 echo "$as_me: error: no backend enabled - refusing to continue: $anymissing" >&2;}
10701    { (exit 1); exit 1; }; }
10702 fi
10703
10704
10705 pkg_failed=no
10706 { echo "$as_me:$LINENO: checking for GLIB" >&5
10707 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10708
10709 if test -n "$PKG_CONFIG"; then
10710     if test -n "$GLIB_CFLAGS"; then
10711         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10712     else
10713         if test -n "$PKG_CONFIG" && \
10714     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
10715   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; then
10719   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
10720 else
10721   pkg_failed=yes
10722 fi
10723     fi
10724 else
10725         pkg_failed=untried
10726 fi
10727 if test -n "$PKG_CONFIG"; then
10728     if test -n "$GLIB_LIBS"; then
10729         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10730     else
10731         if test -n "$PKG_CONFIG" && \
10732     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
10733   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
10734   ac_status=$?
10735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736   (exit $ac_status); }; then
10737   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
10738 else
10739   pkg_failed=yes
10740 fi
10741     fi
10742 else
10743         pkg_failed=untried
10744 fi
10745
10746
10747
10748 if test $pkg_failed = yes; then
10749
10750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10751         _pkg_short_errors_supported=yes
10752 else
10753         _pkg_short_errors_supported=no
10754 fi
10755         if test $_pkg_short_errors_supported = yes; then
10756                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
10757         else
10758                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
10759         fi
10760         # Put the nasty error message in config.log where it belongs
10761         echo "$GLIB_PKG_ERRORS" >&5
10762
10763         { echo "$as_me:$LINENO: result: no" >&5
10764 echo "${ECHO_T}no" >&6; }
10765                 GLIBFOUND=no
10766 elif test $pkg_failed = untried; then
10767         GLIBFOUND=no
10768 else
10769         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10770         GLIB_LIBS=$pkg_cv_GLIB_LIBS
10771         { echo "$as_me:$LINENO: result: yes" >&5
10772 echo "${ECHO_T}yes" >&6; }
10773         GLIBFOUND=yes
10774 fi
10775 # This check here is broken on Ubuntu 8.04: it calls glib-config,
10776 # which isn't found, but the error is not detected by configure.
10777 #if test "x${GLIBFOUND}" = "xno"; then
10778 #       PKG_CHECK_MODULES(GLIB, "glib", GLIBFOUND=yes, GLIBFOUND=no)
10779 #fi
10780
10781
10782
10783 ac_ext=cpp
10784 ac_cpp='$CXXCPP $CPPFLAGS'
10785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10788 if test -z "$CXX"; then
10789   if test -n "$CCC"; then
10790     CXX=$CCC
10791   else
10792     if test -n "$ac_tool_prefix"; then
10793   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10794   do
10795     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10796 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10799 if test "${ac_cv_prog_CXX+set}" = set; then
10800   echo $ECHO_N "(cached) $ECHO_C" >&6
10801 else
10802   if test -n "$CXX"; then
10803   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10804 else
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10807 do
10808   IFS=$as_save_IFS
10809   test -z "$as_dir" && as_dir=.
10810   for ac_exec_ext in '' $ac_executable_extensions; do
10811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10812     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10814     break 2
10815   fi
10816 done
10817 done
10818 IFS=$as_save_IFS
10819
10820 fi
10821 fi
10822 CXX=$ac_cv_prog_CXX
10823 if test -n "$CXX"; then
10824   { echo "$as_me:$LINENO: result: $CXX" >&5
10825 echo "${ECHO_T}$CXX" >&6; }
10826 else
10827   { echo "$as_me:$LINENO: result: no" >&5
10828 echo "${ECHO_T}no" >&6; }
10829 fi
10830
10831
10832     test -n "$CXX" && break
10833   done
10834 fi
10835 if test -z "$CXX"; then
10836   ac_ct_CXX=$CXX
10837   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10838 do
10839   # Extract the first word of "$ac_prog", so it can be a program name with args.
10840 set dummy $ac_prog; ac_word=$2
10841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10843 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   if test -n "$ac_ct_CXX"; then
10847   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10848 else
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10851 do
10852   IFS=$as_save_IFS
10853   test -z "$as_dir" && as_dir=.
10854   for ac_exec_ext in '' $ac_executable_extensions; do
10855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10856     ac_cv_prog_ac_ct_CXX="$ac_prog"
10857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10858     break 2
10859   fi
10860 done
10861 done
10862 IFS=$as_save_IFS
10863
10864 fi
10865 fi
10866 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10867 if test -n "$ac_ct_CXX"; then
10868   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10869 echo "${ECHO_T}$ac_ct_CXX" >&6; }
10870 else
10871   { echo "$as_me:$LINENO: result: no" >&5
10872 echo "${ECHO_T}no" >&6; }
10873 fi
10874
10875
10876   test -n "$ac_ct_CXX" && break
10877 done
10878
10879   if test "x$ac_ct_CXX" = x; then
10880     CXX="g++"
10881   else
10882     case $cross_compiling:$ac_tool_warned in
10883 yes:)
10884 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10885 whose name does not start with the host triplet.  If you think this
10886 configuration is useful to you, please write to autoconf@gnu.org." >&5
10887 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10888 whose name does not start with the host triplet.  If you think this
10889 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10890 ac_tool_warned=yes ;;
10891 esac
10892     CXX=$ac_ct_CXX
10893   fi
10894 fi
10895
10896   fi
10897 fi
10898 # Provide some information about the compiler.
10899 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10900 ac_compiler=`set X $ac_compile; echo $2`
10901 { (ac_try="$ac_compiler --version >&5"
10902 case "(($ac_try" in
10903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904   *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907   (eval "$ac_compiler --version >&5") 2>&5
10908   ac_status=$?
10909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910   (exit $ac_status); }
10911 { (ac_try="$ac_compiler -v >&5"
10912 case "(($ac_try" in
10913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914   *) ac_try_echo=$ac_try;;
10915 esac
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917   (eval "$ac_compiler -v >&5") 2>&5
10918   ac_status=$?
10919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920   (exit $ac_status); }
10921 { (ac_try="$ac_compiler -V >&5"
10922 case "(($ac_try" in
10923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924   *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927   (eval "$ac_compiler -V >&5") 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); }
10931
10932 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10933 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
10934 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10935   echo $ECHO_N "(cached) $ECHO_C" >&6
10936 else
10937   cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h.  */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h.  */
10943
10944 int
10945 main ()
10946 {
10947 #ifndef __GNUC__
10948        choke me
10949 #endif
10950
10951   ;
10952   return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext
10956 if { (ac_try="$ac_compile"
10957 case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_compile") 2>conftest.er1
10963   ac_status=$?
10964   grep -v '^ *+' conftest.er1 >conftest.err
10965   rm -f conftest.er1
10966   cat conftest.err >&5
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); } && {
10969          test -z "$ac_cxx_werror_flag" ||
10970          test ! -s conftest.err
10971        } && test -s conftest.$ac_objext; then
10972   ac_compiler_gnu=yes
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977         ac_compiler_gnu=no
10978 fi
10979
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10982
10983 fi
10984 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10985 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
10986 GXX=`test $ac_compiler_gnu = yes && echo yes`
10987 ac_test_CXXFLAGS=${CXXFLAGS+set}
10988 ac_save_CXXFLAGS=$CXXFLAGS
10989 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10990 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
10991 if test "${ac_cv_prog_cxx_g+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10995    ac_cxx_werror_flag=yes
10996    ac_cv_prog_cxx_g=no
10997    CXXFLAGS="-g"
10998    cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h.  */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h.  */
11004
11005 int
11006 main ()
11007 {
11008
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (ac_try="$ac_compile"
11015 case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020   (eval "$ac_compile") 2>conftest.er1
11021   ac_status=$?
11022   grep -v '^ *+' conftest.er1 >conftest.err
11023   rm -f conftest.er1
11024   cat conftest.err >&5
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); } && {
11027          test -z "$ac_cxx_werror_flag" ||
11028          test ! -s conftest.err
11029        } && test -s conftest.$ac_objext; then
11030   ac_cv_prog_cxx_g=yes
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035         CXXFLAGS=""
11036       cat >conftest.$ac_ext <<_ACEOF
11037 /* confdefs.h.  */
11038 _ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h.  */
11042
11043 int
11044 main ()
11045 {
11046
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext
11052 if { (ac_try="$ac_compile"
11053 case "(($ac_try" in
11054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055   *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058   (eval "$ac_compile") 2>conftest.er1
11059   ac_status=$?
11060   grep -v '^ *+' conftest.er1 >conftest.err
11061   rm -f conftest.er1
11062   cat conftest.err >&5
11063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064   (exit $ac_status); } && {
11065          test -z "$ac_cxx_werror_flag" ||
11066          test ! -s conftest.err
11067        } && test -s conftest.$ac_objext; then
11068   :
11069 else
11070   echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11072
11073         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11074          CXXFLAGS="-g"
11075          cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081
11082 int
11083 main ()
11084 {
11085
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_compile") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && {
11104          test -z "$ac_cxx_werror_flag" ||
11105          test ! -s conftest.err
11106        } && test -s conftest.$ac_objext; then
11107   ac_cv_prog_cxx_g=yes
11108 else
11109   echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112
11113 fi
11114
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11116 fi
11117
11118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11119 fi
11120
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11123 fi
11124 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11125 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
11126 if test "$ac_test_CXXFLAGS" = set; then
11127   CXXFLAGS=$ac_save_CXXFLAGS
11128 elif test $ac_cv_prog_cxx_g = yes; then
11129   if test "$GXX" = yes; then
11130     CXXFLAGS="-g -O2"
11131   else
11132     CXXFLAGS="-g"
11133   fi
11134 else
11135   if test "$GXX" = yes; then
11136     CXXFLAGS="-O2"
11137   else
11138     CXXFLAGS=
11139   fi
11140 fi
11141 ac_ext=c
11142 ac_cpp='$CPP $CPPFLAGS'
11143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11146
11147 depcc="$CXX"  am_compiler_list=
11148
11149 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11150 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11151 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11152   echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11155   # We make a subdir and do the tests there.  Otherwise we can end up
11156   # making bogus files that we don't know about and never remove.  For
11157   # instance it was reported that on HP-UX the gcc test will end up
11158   # making a dummy file named `D' -- because `-MD' means `put the output
11159   # in D'.
11160   mkdir conftest.dir
11161   # Copy depcomp to subdir because otherwise we won't find it if we're
11162   # using a relative directory.
11163   cp "$am_depcomp" conftest.dir
11164   cd conftest.dir
11165   # We will build objects and dependencies in a subdirectory because
11166   # it helps to detect inapplicable dependency modes.  For instance
11167   # both Tru64's cc and ICC support -MD to output dependencies as a
11168   # side effect of compilation, but ICC will put the dependencies in
11169   # the current directory while Tru64 will put them in the object
11170   # directory.
11171   mkdir sub
11172
11173   am_cv_CXX_dependencies_compiler_type=none
11174   if test "$am_compiler_list" = ""; then
11175      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11176   fi
11177   for depmode in $am_compiler_list; do
11178     # Setup a source with many dependencies, because some compilers
11179     # like to wrap large dependency lists on column 80 (with \), and
11180     # we should not choose a depcomp mode which is confused by this.
11181     #
11182     # We need to recreate these files for each test, as the compiler may
11183     # overwrite some of them when testing with obscure command lines.
11184     # This happens at least with the AIX C compiler.
11185     : > sub/conftest.c
11186     for i in 1 2 3 4 5 6; do
11187       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11188       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11189       # Solaris 8's {/usr,}/bin/sh.
11190       touch sub/conftst$i.h
11191     done
11192     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11193
11194     case $depmode in
11195     nosideeffect)
11196       # after this tag, mechanisms are not by side-effect, so they'll
11197       # only be used when explicitly requested
11198       if test "x$enable_dependency_tracking" = xyes; then
11199         continue
11200       else
11201         break
11202       fi
11203       ;;
11204     none) break ;;
11205     esac
11206     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11207     # mode.  It turns out that the SunPro C++ compiler does not properly
11208     # handle `-M -o', and we need to detect this.
11209     if depmode=$depmode \
11210        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11211        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11212        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11213          >/dev/null 2>conftest.err &&
11214        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11215        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11216        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11217        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11218       # icc doesn't choke on unknown options, it will just issue warnings
11219       # or remarks (even with -Werror).  So we grep stderr for any message
11220       # that says an option was ignored or not supported.
11221       # When given -MP, icc 7.0 and 7.1 complain thusly:
11222       #   icc: Command line warning: ignoring option '-M'; no argument required
11223       # The diagnosis changed in icc 8.0:
11224       #   icc: Command line remark: option '-MP' not supported
11225       if (grep 'ignoring option' conftest.err ||
11226           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11227         am_cv_CXX_dependencies_compiler_type=$depmode
11228         break
11229       fi
11230     fi
11231   done
11232
11233   cd ..
11234   rm -rf conftest.dir
11235 else
11236   am_cv_CXX_dependencies_compiler_type=none
11237 fi
11238
11239 fi
11240 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11241 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
11242 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11243
11244  if
11245   test "x$enable_dependency_tracking" != xno \
11246   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11247   am__fastdepCXX_TRUE=
11248   am__fastdepCXX_FALSE='#'
11249 else
11250   am__fastdepCXX_TRUE='#'
11251   am__fastdepCXX_FALSE=
11252 fi
11253
11254
11255 # Check whether --enable-shared was given.
11256 if test "${enable_shared+set}" = set; then
11257   enableval=$enable_shared; p=${PACKAGE-default}
11258     case $enableval in
11259     yes) enable_shared=yes ;;
11260     no) enable_shared=no ;;
11261     *)
11262       enable_shared=no
11263       # Look at the argument we got.  We use all the common list separators.
11264       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11265       for pkg in $enableval; do
11266         IFS="$lt_save_ifs"
11267         if test "X$pkg" = "X$p"; then
11268           enable_shared=yes
11269         fi
11270       done
11271       IFS="$lt_save_ifs"
11272       ;;
11273     esac
11274 else
11275   enable_shared=yes
11276 fi
11277
11278
11279 # Check whether --enable-static was given.
11280 if test "${enable_static+set}" = set; then
11281   enableval=$enable_static; p=${PACKAGE-default}
11282     case $enableval in
11283     yes) enable_static=yes ;;
11284     no) enable_static=no ;;
11285     *)
11286      enable_static=no
11287       # Look at the argument we got.  We use all the common list separators.
11288       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11289       for pkg in $enableval; do
11290         IFS="$lt_save_ifs"
11291         if test "X$pkg" = "X$p"; then
11292           enable_static=yes
11293         fi
11294       done
11295       IFS="$lt_save_ifs"
11296       ;;
11297     esac
11298 else
11299   enable_static=yes
11300 fi
11301
11302
11303 # Check whether --enable-fast-install was given.
11304 if test "${enable_fast_install+set}" = set; then
11305   enableval=$enable_fast_install; p=${PACKAGE-default}
11306     case $enableval in
11307     yes) enable_fast_install=yes ;;
11308     no) enable_fast_install=no ;;
11309     *)
11310       enable_fast_install=no
11311       # Look at the argument we got.  We use all the common list separators.
11312       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11313       for pkg in $enableval; do
11314         IFS="$lt_save_ifs"
11315         if test "X$pkg" = "X$p"; then
11316           enable_fast_install=yes
11317         fi
11318       done
11319       IFS="$lt_save_ifs"
11320       ;;
11321     esac
11322 else
11323   enable_fast_install=yes
11324 fi
11325
11326
11327 # Make sure we can run config.sub.
11328 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11329   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11330 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11331    { (exit 1); exit 1; }; }
11332
11333 { echo "$as_me:$LINENO: checking build system type" >&5
11334 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
11335 if test "${ac_cv_build+set}" = set; then
11336   echo $ECHO_N "(cached) $ECHO_C" >&6
11337 else
11338   ac_build_alias=$build_alias
11339 test "x$ac_build_alias" = x &&
11340   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11341 test "x$ac_build_alias" = x &&
11342   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11343 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11344    { (exit 1); exit 1; }; }
11345 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11346   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11347 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11348    { (exit 1); exit 1; }; }
11349
11350 fi
11351 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11352 echo "${ECHO_T}$ac_cv_build" >&6; }
11353 case $ac_cv_build in
11354 *-*-*) ;;
11355 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11356 echo "$as_me: error: invalid value of canonical build" >&2;}
11357    { (exit 1); exit 1; }; };;
11358 esac
11359 build=$ac_cv_build
11360 ac_save_IFS=$IFS; IFS='-'
11361 set x $ac_cv_build
11362 shift
11363 build_cpu=$1
11364 build_vendor=$2
11365 shift; shift
11366 # Remember, the first character of IFS is used to create $*,
11367 # except with old shells:
11368 build_os=$*
11369 IFS=$ac_save_IFS
11370 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11371
11372
11373 { echo "$as_me:$LINENO: checking host system type" >&5
11374 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
11375 if test "${ac_cv_host+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 else
11378   if test "x$host_alias" = x; then
11379   ac_cv_host=$ac_cv_build
11380 else
11381   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11382     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11383 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11384    { (exit 1); exit 1; }; }
11385 fi
11386
11387 fi
11388 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11389 echo "${ECHO_T}$ac_cv_host" >&6; }
11390 case $ac_cv_host in
11391 *-*-*) ;;
11392 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11393 echo "$as_me: error: invalid value of canonical host" >&2;}
11394    { (exit 1); exit 1; }; };;
11395 esac
11396 host=$ac_cv_host
11397 ac_save_IFS=$IFS; IFS='-'
11398 set x $ac_cv_host
11399 shift
11400 host_cpu=$1
11401 host_vendor=$2
11402 shift; shift
11403 # Remember, the first character of IFS is used to create $*,
11404 # except with old shells:
11405 host_os=$*
11406 IFS=$ac_save_IFS
11407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11408
11409
11410 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11411 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11412 if test "${lt_cv_path_SED+set}" = set; then
11413   echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415   # Loop through the user's path and test for sed and gsed.
11416 # Then use that list of sed's as ones to test for truncation.
11417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11419 do
11420   IFS=$as_save_IFS
11421   test -z "$as_dir" && as_dir=.
11422   for lt_ac_prog in sed gsed; do
11423     for ac_exec_ext in '' $ac_executable_extensions; do
11424       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
11425         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11426       fi
11427     done
11428   done
11429 done
11430 IFS=$as_save_IFS
11431 lt_ac_max=0
11432 lt_ac_count=0
11433 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11434 # along with /bin/sed that truncates output.
11435 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11436   test ! -f $lt_ac_sed && continue
11437   cat /dev/null > conftest.in
11438   lt_ac_count=0
11439   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11440   # Check for GNU sed and select it if it is found.
11441   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11442     lt_cv_path_SED=$lt_ac_sed
11443     break
11444   fi
11445   while true; do
11446     cat conftest.in conftest.in >conftest.tmp
11447     mv conftest.tmp conftest.in
11448     cp conftest.in conftest.nl
11449     echo >>conftest.nl
11450     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11451     cmp -s conftest.out conftest.nl || break
11452     # 10000 chars as input seems more than enough
11453     test $lt_ac_count -gt 10 && break
11454     lt_ac_count=`expr $lt_ac_count + 1`
11455     if test $lt_ac_count -gt $lt_ac_max; then
11456       lt_ac_max=$lt_ac_count
11457       lt_cv_path_SED=$lt_ac_sed
11458     fi
11459   done
11460 done
11461
11462 fi
11463
11464 SED=$lt_cv_path_SED
11465
11466 { echo "$as_me:$LINENO: result: $SED" >&5
11467 echo "${ECHO_T}$SED" >&6; }
11468
11469
11470 # Check whether --with-gnu-ld was given.
11471 if test "${with_gnu_ld+set}" = set; then
11472   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11473 else
11474   with_gnu_ld=no
11475 fi
11476
11477 ac_prog=ld
11478 if test "$GCC" = yes; then
11479   # Check if gcc -print-prog-name=ld gives a path.
11480   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11481 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11482   case $host in
11483   *-*-mingw*)
11484     # gcc leaves a trailing carriage return which upsets mingw
11485     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11486   *)
11487     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11488   esac
11489   case $ac_prog in
11490     # Accept absolute paths.
11491     [\\/]* | ?:[\\/]*)
11492       re_direlt='/[^/][^/]*/\.\./'
11493       # Canonicalize the pathname of ld
11494       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11495       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11496         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11497       done
11498       test -z "$LD" && LD="$ac_prog"
11499       ;;
11500   "")
11501     # If it fails, then pretend we aren't using GCC.
11502     ac_prog=ld
11503     ;;
11504   *)
11505     # If it is relative, then search for the first ld in PATH.
11506     with_gnu_ld=unknown
11507     ;;
11508   esac
11509 elif test "$with_gnu_ld" = yes; then
11510   { echo "$as_me:$LINENO: checking for GNU ld" >&5
11511 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11512 else
11513   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11514 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11515 fi
11516 if test "${lt_cv_path_LD+set}" = set; then
11517   echo $ECHO_N "(cached) $ECHO_C" >&6
11518 else
11519   if test -z "$LD"; then
11520   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11521   for ac_dir in $PATH; do
11522     IFS="$lt_save_ifs"
11523     test -z "$ac_dir" && ac_dir=.
11524     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11525       lt_cv_path_LD="$ac_dir/$ac_prog"
11526       # Check to see if the program is GNU ld.  I'd rather use --version,
11527       # but apparently some variants of GNU ld only accept -v.
11528       # Break only if it was the GNU/non-GNU ld that we prefer.
11529       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11530       *GNU* | *'with BFD'*)
11531         test "$with_gnu_ld" != no && break
11532         ;;
11533       *)
11534         test "$with_gnu_ld" != yes && break
11535         ;;
11536       esac
11537     fi
11538   done
11539   IFS="$lt_save_ifs"
11540 else
11541   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11542 fi
11543 fi
11544
11545 LD="$lt_cv_path_LD"
11546 if test -n "$LD"; then
11547   { echo "$as_me:$LINENO: result: $LD" >&5
11548 echo "${ECHO_T}$LD" >&6; }
11549 else
11550   { echo "$as_me:$LINENO: result: no" >&5
11551 echo "${ECHO_T}no" >&6; }
11552 fi
11553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11555    { (exit 1); exit 1; }; }
11556 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11558 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11559   echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11562 case `$LD -v 2>&1 </dev/null` in
11563 *GNU* | *'with BFD'*)
11564   lt_cv_prog_gnu_ld=yes
11565   ;;
11566 *)
11567   lt_cv_prog_gnu_ld=no
11568   ;;
11569 esac
11570 fi
11571 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11572 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11573 with_gnu_ld=$lt_cv_prog_gnu_ld
11574
11575
11576 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11577 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11578 if test "${lt_cv_ld_reload_flag+set}" = set; then
11579   echo $ECHO_N "(cached) $ECHO_C" >&6
11580 else
11581   lt_cv_ld_reload_flag='-r'
11582 fi
11583 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11584 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11585 reload_flag=$lt_cv_ld_reload_flag
11586 case $reload_flag in
11587 "" | " "*) ;;
11588 *) reload_flag=" $reload_flag" ;;
11589 esac
11590 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11591 case $host_os in
11592   darwin*)
11593     if test "$GCC" = yes; then
11594       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11595     else
11596       reload_cmds='$LD$reload_flag -o $output$reload_objs'
11597     fi
11598     ;;
11599 esac
11600
11601 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
11602 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
11603 if test "${lt_cv_path_NM+set}" = set; then
11604   echo $ECHO_N "(cached) $ECHO_C" >&6
11605 else
11606   if test -n "$NM"; then
11607   # Let the user override the test.
11608   lt_cv_path_NM="$NM"
11609 else
11610   lt_nm_to_check="${ac_tool_prefix}nm"
11611   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11612     lt_nm_to_check="$lt_nm_to_check nm"
11613   fi
11614   for lt_tmp_nm in $lt_nm_to_check; do
11615     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11616     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11617       IFS="$lt_save_ifs"
11618       test -z "$ac_dir" && ac_dir=.
11619       tmp_nm="$ac_dir/$lt_tmp_nm"
11620       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11621         # Check to see if the nm accepts a BSD-compat flag.
11622         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11623         #   nm: unknown option "B" ignored
11624         # Tru64's nm complains that /dev/null is an invalid object file
11625         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11626         */dev/null* | *'Invalid file or object type'*)
11627           lt_cv_path_NM="$tmp_nm -B"
11628           break
11629           ;;
11630         *)
11631           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11632           */dev/null*)
11633             lt_cv_path_NM="$tmp_nm -p"
11634             break
11635             ;;
11636           *)
11637             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11638             continue # so that we can try to find one that supports BSD flags
11639             ;;
11640           esac
11641           ;;
11642         esac
11643       fi
11644     done
11645     IFS="$lt_save_ifs"
11646   done
11647   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
11648 fi
11649 fi
11650 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
11651 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
11652 NM="$lt_cv_path_NM"
11653
11654 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
11655 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
11656 LN_S=$as_ln_s
11657 if test "$LN_S" = "ln -s"; then
11658   { echo "$as_me:$LINENO: result: yes" >&5
11659 echo "${ECHO_T}yes" >&6; }
11660 else
11661   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11662 echo "${ECHO_T}no, using $LN_S" >&6; }
11663 fi
11664
11665 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
11666 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
11667 if test "${lt_cv_deplibs_check_method+set}" = set; then
11668   echo $ECHO_N "(cached) $ECHO_C" >&6
11669 else
11670   lt_cv_file_magic_cmd='$MAGIC_CMD'
11671 lt_cv_file_magic_test_file=
11672 lt_cv_deplibs_check_method='unknown'
11673 # Need to set the preceding variable on all platforms that support
11674 # interlibrary dependencies.
11675 # 'none' -- dependencies not supported.
11676 # `unknown' -- same as none, but documents that we really don't know.
11677 # 'pass_all' -- all dependencies passed with no checks.
11678 # 'test_compile' -- check by making test program.
11679 # 'file_magic [[regex]]' -- check by looking for files in library path
11680 # which responds to the $file_magic_cmd with a given extended regex.
11681 # If you have `file' or equivalent on your system and you're not sure
11682 # whether `pass_all' will *always* work, you probably want this one.
11683
11684 case $host_os in
11685 aix[4-9]*)
11686   lt_cv_deplibs_check_method=pass_all
11687   ;;
11688
11689 beos*)
11690   lt_cv_deplibs_check_method=pass_all
11691   ;;
11692
11693 bsdi[45]*)
11694   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11695   lt_cv_file_magic_cmd='/usr/bin/file -L'
11696   lt_cv_file_magic_test_file=/shlib/libc.so
11697   ;;
11698
11699 cygwin*)
11700   # func_win32_libid is a shell function defined in ltmain.sh
11701   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11702   lt_cv_file_magic_cmd='func_win32_libid'
11703   ;;
11704
11705 mingw* | pw32*)
11706   # Base MSYS/MinGW do not provide the 'file' command needed by
11707   # func_win32_libid shell function, so use a weaker test based on 'objdump',
11708   # unless we find 'file', for example because we are cross-compiling.
11709   if ( file / ) >/dev/null 2>&1; then
11710     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11711     lt_cv_file_magic_cmd='func_win32_libid'
11712   else
11713     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11714     lt_cv_file_magic_cmd='$OBJDUMP -f'
11715   fi
11716   ;;
11717
11718 darwin* | rhapsody*)
11719   lt_cv_deplibs_check_method=pass_all
11720   ;;
11721
11722 freebsd* | dragonfly*)
11723   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11724     case $host_cpu in
11725     i*86 )
11726       # Not sure whether the presence of OpenBSD here was a mistake.
11727       # Let's accept both of them until this is cleared up.
11728       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11729       lt_cv_file_magic_cmd=/usr/bin/file
11730       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11731       ;;
11732     esac
11733   else
11734     lt_cv_deplibs_check_method=pass_all
11735   fi
11736   ;;
11737
11738 gnu*)
11739   lt_cv_deplibs_check_method=pass_all
11740   ;;
11741
11742 hpux10.20* | hpux11*)
11743   lt_cv_file_magic_cmd=/usr/bin/file
11744   case $host_cpu in
11745   ia64*)
11746     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11747     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11748     ;;
11749   hppa*64*)
11750     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]'
11751     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11752     ;;
11753   *)
11754     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11755     lt_cv_file_magic_test_file=/usr/lib/libc.sl
11756     ;;
11757   esac
11758   ;;
11759
11760 interix[3-9]*)
11761   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11762   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11763   ;;
11764
11765 irix5* | irix6* | nonstopux*)
11766   case $LD in
11767   *-32|*"-32 ") libmagic=32-bit;;
11768   *-n32|*"-n32 ") libmagic=N32;;
11769   *-64|*"-64 ") libmagic=64-bit;;
11770   *) libmagic=never-match;;
11771   esac
11772   lt_cv_deplibs_check_method=pass_all
11773   ;;
11774
11775 # This must be Linux ELF.
11776 linux* | k*bsd*-gnu)
11777   lt_cv_deplibs_check_method=pass_all
11778   ;;
11779
11780 netbsd* | netbsdelf*-gnu)
11781   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11782     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11783   else
11784     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11785   fi
11786   ;;
11787
11788 newos6*)
11789   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11790   lt_cv_file_magic_cmd=/usr/bin/file
11791   lt_cv_file_magic_test_file=/usr/lib/libnls.so
11792   ;;
11793
11794 nto-qnx*)
11795   lt_cv_deplibs_check_method=unknown
11796   ;;
11797
11798 openbsd*)
11799   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11800     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11801   else
11802     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11803   fi
11804   ;;
11805
11806 osf3* | osf4* | osf5*)
11807   lt_cv_deplibs_check_method=pass_all
11808   ;;
11809
11810 rdos*)
11811   lt_cv_deplibs_check_method=pass_all
11812   ;;
11813
11814 solaris*)
11815   lt_cv_deplibs_check_method=pass_all
11816   ;;
11817
11818 sysv4 | sysv4.3*)
11819   case $host_vendor in
11820   motorola)
11821     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]'
11822     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11823     ;;
11824   ncr)
11825     lt_cv_deplibs_check_method=pass_all
11826     ;;
11827   sequent)
11828     lt_cv_file_magic_cmd='/bin/file'
11829     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11830     ;;
11831   sni)
11832     lt_cv_file_magic_cmd='/bin/file'
11833     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11834     lt_cv_file_magic_test_file=/lib/libc.so
11835     ;;
11836   siemens)
11837     lt_cv_deplibs_check_method=pass_all
11838     ;;
11839   pc)
11840     lt_cv_deplibs_check_method=pass_all
11841     ;;
11842   esac
11843   ;;
11844
11845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11846   lt_cv_deplibs_check_method=pass_all
11847   ;;
11848 esac
11849
11850 fi
11851 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11852 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11853 file_magic_cmd=$lt_cv_file_magic_cmd
11854 deplibs_check_method=$lt_cv_deplibs_check_method
11855 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11856
11857
11858
11859
11860 # If no C compiler was specified, use CC.
11861 LTCC=${LTCC-"$CC"}
11862
11863 # If no C compiler flags were specified, use CFLAGS.
11864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11865
11866 # Allow CC to be a program name with arguments.
11867 compiler=$CC
11868
11869 # Check whether --enable-libtool-lock was given.
11870 if test "${enable_libtool_lock+set}" = set; then
11871   enableval=$enable_libtool_lock;
11872 fi
11873
11874 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11875
11876 # Some flags need to be propagated to the compiler or linker for good
11877 # libtool support.
11878 case $host in
11879 ia64-*-hpux*)
11880   # Find out which ABI we are using.
11881   echo 'int i;' > conftest.$ac_ext
11882   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883   (eval $ac_compile) 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; then
11887     case `/usr/bin/file conftest.$ac_objext` in
11888     *ELF-32*)
11889       HPUX_IA64_MODE="32"
11890       ;;
11891     *ELF-64*)
11892       HPUX_IA64_MODE="64"
11893       ;;
11894     esac
11895   fi
11896   rm -rf conftest*
11897   ;;
11898 *-*-irix6*)
11899   # Find out which ABI we are using.
11900   echo '#line 11900 "configure"' > conftest.$ac_ext
11901   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902   (eval $ac_compile) 2>&5
11903   ac_status=$?
11904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905   (exit $ac_status); }; then
11906    if test "$lt_cv_prog_gnu_ld" = yes; then
11907     case `/usr/bin/file conftest.$ac_objext` in
11908     *32-bit*)
11909       LD="${LD-ld} -melf32bsmip"
11910       ;;
11911     *N32*)
11912       LD="${LD-ld} -melf32bmipn32"
11913       ;;
11914     *64-bit*)
11915       LD="${LD-ld} -melf64bmip"
11916       ;;
11917     esac
11918    else
11919     case `/usr/bin/file conftest.$ac_objext` in
11920     *32-bit*)
11921       LD="${LD-ld} -32"
11922       ;;
11923     *N32*)
11924       LD="${LD-ld} -n32"
11925       ;;
11926     *64-bit*)
11927       LD="${LD-ld} -64"
11928       ;;
11929     esac
11930    fi
11931   fi
11932   rm -rf conftest*
11933   ;;
11934
11935 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11936 s390*-*linux*|sparc*-*linux*)
11937   # Find out which ABI we are using.
11938   echo 'int i;' > conftest.$ac_ext
11939   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940   (eval $ac_compile) 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; then
11944     case `/usr/bin/file conftest.o` in
11945     *32-bit*)
11946       case $host in
11947         x86_64-*kfreebsd*-gnu)
11948           LD="${LD-ld} -m elf_i386_fbsd"
11949           ;;
11950         x86_64-*linux*)
11951           LD="${LD-ld} -m elf_i386"
11952           ;;
11953         ppc64-*linux*|powerpc64-*linux*)
11954           LD="${LD-ld} -m elf32ppclinux"
11955           ;;
11956         s390x-*linux*)
11957           LD="${LD-ld} -m elf_s390"
11958           ;;
11959         sparc64-*linux*)
11960           LD="${LD-ld} -m elf32_sparc"
11961           ;;
11962       esac
11963       ;;
11964     *64-bit*)
11965       case $host in
11966         x86_64-*kfreebsd*-gnu)
11967           LD="${LD-ld} -m elf_x86_64_fbsd"
11968           ;;
11969         x86_64-*linux*)
11970           LD="${LD-ld} -m elf_x86_64"
11971           ;;
11972         ppc*-*linux*|powerpc*-*linux*)
11973           LD="${LD-ld} -m elf64ppc"
11974           ;;
11975         s390*-*linux*)
11976           LD="${LD-ld} -m elf64_s390"
11977           ;;
11978         sparc*-*linux*)
11979           LD="${LD-ld} -m elf64_sparc"
11980           ;;
11981       esac
11982       ;;
11983     esac
11984   fi
11985   rm -rf conftest*
11986   ;;
11987
11988 *-*-sco3.2v5*)
11989   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11990   SAVE_CFLAGS="$CFLAGS"
11991   CFLAGS="$CFLAGS -belf"
11992   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11993 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11994 if test "${lt_cv_cc_needs_belf+set}" = set; then
11995   echo $ECHO_N "(cached) $ECHO_C" >&6
11996 else
11997   ac_ext=c
11998 ac_cpp='$CPP $CPPFLAGS'
11999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12002
12003      cat >conftest.$ac_ext <<_ACEOF
12004 /* confdefs.h.  */
12005 _ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h.  */
12009
12010 int
12011 main ()
12012 {
12013
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 rm -f conftest.$ac_objext conftest$ac_exeext
12019 if { (ac_try="$ac_link"
12020 case "(($ac_try" in
12021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022   *) ac_try_echo=$ac_try;;
12023 esac
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025   (eval "$ac_link") 2>conftest.er1
12026   ac_status=$?
12027   grep -v '^ *+' conftest.er1 >conftest.err
12028   rm -f conftest.er1
12029   cat conftest.err >&5
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); } && {
12032          test -z "$ac_c_werror_flag" ||
12033          test ! -s conftest.err
12034        } && test -s conftest$ac_exeext &&
12035        $as_test_x conftest$ac_exeext; then
12036   lt_cv_cc_needs_belf=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041         lt_cv_cc_needs_belf=no
12042 fi
12043
12044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12045       conftest$ac_exeext conftest.$ac_ext
12046      ac_ext=c
12047 ac_cpp='$CPP $CPPFLAGS'
12048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12051
12052 fi
12053 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12054 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12055   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12056     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12057     CFLAGS="$SAVE_CFLAGS"
12058   fi
12059   ;;
12060 sparc*-*solaris*)
12061   # Find out which ABI we are using.
12062   echo 'int i;' > conftest.$ac_ext
12063   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064   (eval $ac_compile) 2>&5
12065   ac_status=$?
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); }; then
12068     case `/usr/bin/file conftest.o` in
12069     *64-bit*)
12070       case $lt_cv_prog_gnu_ld in
12071       yes*) LD="${LD-ld} -m elf64_sparc" ;;
12072       *)
12073         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12074           LD="${LD-ld} -64"
12075         fi
12076         ;;
12077       esac
12078       ;;
12079     esac
12080   fi
12081   rm -rf conftest*
12082   ;;
12083
12084
12085 esac
12086
12087 need_locks="$enable_libtool_lock"
12088
12089
12090
12091 for ac_header in dlfcn.h
12092 do
12093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12098   echo $ECHO_N "(cached) $ECHO_C" >&6
12099 fi
12100 ac_res=`eval echo '${'$as_ac_Header'}'`
12101                { echo "$as_me:$LINENO: result: $ac_res" >&5
12102 echo "${ECHO_T}$ac_res" >&6; }
12103 else
12104   # Is the header compilable?
12105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h.  */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h.  */
12113 $ac_includes_default
12114 #include <$ac_header>
12115 _ACEOF
12116 rm -f conftest.$ac_objext
12117 if { (ac_try="$ac_compile"
12118 case "(($ac_try" in
12119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120   *) ac_try_echo=$ac_try;;
12121 esac
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123   (eval "$ac_compile") 2>conftest.er1
12124   ac_status=$?
12125   grep -v '^ *+' conftest.er1 >conftest.err
12126   rm -f conftest.er1
12127   cat conftest.err >&5
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); } && {
12130          test -z "$ac_c_werror_flag" ||
12131          test ! -s conftest.err
12132        } && test -s conftest.$ac_objext; then
12133   ac_header_compiler=yes
12134 else
12135   echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12137
12138         ac_header_compiler=no
12139 fi
12140
12141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12143 echo "${ECHO_T}$ac_header_compiler" >&6; }
12144
12145 # Is the header present?
12146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12148 cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h.  */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h.  */
12154 #include <$ac_header>
12155 _ACEOF
12156 if { (ac_try="$ac_cpp conftest.$ac_ext"
12157 case "(($ac_try" in
12158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159   *) ac_try_echo=$ac_try;;
12160 esac
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12163   ac_status=$?
12164   grep -v '^ *+' conftest.er1 >conftest.err
12165   rm -f conftest.er1
12166   cat conftest.err >&5
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); } >/dev/null && {
12169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12170          test ! -s conftest.err
12171        }; then
12172   ac_header_preproc=yes
12173 else
12174   echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12176
12177   ac_header_preproc=no
12178 fi
12179
12180 rm -f conftest.err conftest.$ac_ext
12181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12182 echo "${ECHO_T}$ac_header_preproc" >&6; }
12183
12184 # So?  What about this header?
12185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12186   yes:no: )
12187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12191     ac_header_preproc=yes
12192     ;;
12193   no:yes:* )
12194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12206
12207     ;;
12208 esac
12209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   eval "$as_ac_Header=\$ac_header_preproc"
12215 fi
12216 ac_res=`eval echo '${'$as_ac_Header'}'`
12217                { echo "$as_me:$LINENO: result: $ac_res" >&5
12218 echo "${ECHO_T}$ac_res" >&6; }
12219
12220 fi
12221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12222   cat >>confdefs.h <<_ACEOF
12223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12224 _ACEOF
12225
12226 fi
12227
12228 done
12229
12230
12231
12232 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12233     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12234     (test "X$CXX" != "Xg++"))) ; then
12235   ac_ext=cpp
12236 ac_cpp='$CXXCPP $CPPFLAGS'
12237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12240 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12241 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12242 if test -z "$CXXCPP"; then
12243   if test "${ac_cv_prog_CXXCPP+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246       # Double quotes because CXXCPP needs to be expanded
12247     for CXXCPP in "$CXX -E" "/lib/cpp"
12248     do
12249       ac_preproc_ok=false
12250 for ac_cxx_preproc_warn_flag in '' yes
12251 do
12252   # Use a header file that comes with gcc, so configuring glibc
12253   # with a fresh cross-compiler works.
12254   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12255   # <limits.h> exists even on freestanding compilers.
12256   # On the NeXT, cc -E runs the code through the compiler's parser,
12257   # not just through cpp. "Syntax error" is here to catch this case.
12258   cat >conftest.$ac_ext <<_ACEOF
12259 /* confdefs.h.  */
12260 _ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h.  */
12264 #ifdef __STDC__
12265 # include <limits.h>
12266 #else
12267 # include <assert.h>
12268 #endif
12269                      Syntax error
12270 _ACEOF
12271 if { (ac_try="$ac_cpp conftest.$ac_ext"
12272 case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12278   ac_status=$?
12279   grep -v '^ *+' conftest.er1 >conftest.err
12280   rm -f conftest.er1
12281   cat conftest.err >&5
12282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283   (exit $ac_status); } >/dev/null && {
12284          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12285          test ! -s conftest.err
12286        }; then
12287   :
12288 else
12289   echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12291
12292   # Broken: fails on valid input.
12293 continue
12294 fi
12295
12296 rm -f conftest.err conftest.$ac_ext
12297
12298   # OK, works on sane cases.  Now check whether nonexistent headers
12299   # can be detected and how.
12300   cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h.  */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h.  */
12306 #include <ac_nonexistent.h>
12307 _ACEOF
12308 if { (ac_try="$ac_cpp conftest.$ac_ext"
12309 case "(($ac_try" in
12310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12311   *) ac_try_echo=$ac_try;;
12312 esac
12313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12315   ac_status=$?
12316   grep -v '^ *+' conftest.er1 >conftest.err
12317   rm -f conftest.er1
12318   cat conftest.err >&5
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); } >/dev/null && {
12321          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12322          test ! -s conftest.err
12323        }; then
12324   # Broken: success on invalid input.
12325 continue
12326 else
12327   echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12329
12330   # Passes both tests.
12331 ac_preproc_ok=:
12332 break
12333 fi
12334
12335 rm -f conftest.err conftest.$ac_ext
12336
12337 done
12338 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12339 rm -f conftest.err conftest.$ac_ext
12340 if $ac_preproc_ok; then
12341   break
12342 fi
12343
12344     done
12345     ac_cv_prog_CXXCPP=$CXXCPP
12346
12347 fi
12348   CXXCPP=$ac_cv_prog_CXXCPP
12349 else
12350   ac_cv_prog_CXXCPP=$CXXCPP
12351 fi
12352 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12353 echo "${ECHO_T}$CXXCPP" >&6; }
12354 ac_preproc_ok=false
12355 for ac_cxx_preproc_warn_flag in '' yes
12356 do
12357   # Use a header file that comes with gcc, so configuring glibc
12358   # with a fresh cross-compiler works.
12359   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12360   # <limits.h> exists even on freestanding compilers.
12361   # On the NeXT, cc -E runs the code through the compiler's parser,
12362   # not just through cpp. "Syntax error" is here to catch this case.
12363   cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369 #ifdef __STDC__
12370 # include <limits.h>
12371 #else
12372 # include <assert.h>
12373 #endif
12374                      Syntax error
12375 _ACEOF
12376 if { (ac_try="$ac_cpp conftest.$ac_ext"
12377 case "(($ac_try" in
12378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379   *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12383   ac_status=$?
12384   grep -v '^ *+' conftest.er1 >conftest.err
12385   rm -f conftest.er1
12386   cat conftest.err >&5
12387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388   (exit $ac_status); } >/dev/null && {
12389          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12390          test ! -s conftest.err
12391        }; then
12392   :
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397   # Broken: fails on valid input.
12398 continue
12399 fi
12400
12401 rm -f conftest.err conftest.$ac_ext
12402
12403   # OK, works on sane cases.  Now check whether nonexistent headers
12404   # can be detected and how.
12405   cat >conftest.$ac_ext <<_ACEOF
12406 /* confdefs.h.  */
12407 _ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h.  */
12411 #include <ac_nonexistent.h>
12412 _ACEOF
12413 if { (ac_try="$ac_cpp conftest.$ac_ext"
12414 case "(($ac_try" in
12415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416   *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12420   ac_status=$?
12421   grep -v '^ *+' conftest.er1 >conftest.err
12422   rm -f conftest.er1
12423   cat conftest.err >&5
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } >/dev/null && {
12426          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12427          test ! -s conftest.err
12428        }; then
12429   # Broken: success on invalid input.
12430 continue
12431 else
12432   echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435   # Passes both tests.
12436 ac_preproc_ok=:
12437 break
12438 fi
12439
12440 rm -f conftest.err conftest.$ac_ext
12441
12442 done
12443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12444 rm -f conftest.err conftest.$ac_ext
12445 if $ac_preproc_ok; then
12446   :
12447 else
12448   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12449 See \`config.log' for more details." >&5
12450 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12451 See \`config.log' for more details." >&2;}
12452    { (exit 1); exit 1; }; }
12453 fi
12454
12455 ac_ext=cpp
12456 ac_cpp='$CXXCPP $CPPFLAGS'
12457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12460
12461 fi
12462
12463 ac_ext=f
12464 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12465 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12466 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12467 if test -n "$ac_tool_prefix"; then
12468   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
12469   do
12470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_prog_F77+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   if test -n "$F77"; then
12478   ac_cv_prog_F77="$F77" # Let the user override the test.
12479 else
12480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481 for as_dir in $PATH
12482 do
12483   IFS=$as_save_IFS
12484   test -z "$as_dir" && as_dir=.
12485   for ac_exec_ext in '' $ac_executable_extensions; do
12486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12487     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12489     break 2
12490   fi
12491 done
12492 done
12493 IFS=$as_save_IFS
12494
12495 fi
12496 fi
12497 F77=$ac_cv_prog_F77
12498 if test -n "$F77"; then
12499   { echo "$as_me:$LINENO: result: $F77" >&5
12500 echo "${ECHO_T}$F77" >&6; }
12501 else
12502   { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12504 fi
12505
12506
12507     test -n "$F77" && break
12508   done
12509 fi
12510 if test -z "$F77"; then
12511   ac_ct_F77=$F77
12512   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
12513 do
12514   # Extract the first word of "$ac_prog", so it can be a program name with args.
12515 set dummy $ac_prog; ac_word=$2
12516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12518 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12519   echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521   if test -n "$ac_ct_F77"; then
12522   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12523 else
12524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527   IFS=$as_save_IFS
12528   test -z "$as_dir" && as_dir=.
12529   for ac_exec_ext in '' $ac_executable_extensions; do
12530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12531     ac_cv_prog_ac_ct_F77="$ac_prog"
12532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12533     break 2
12534   fi
12535 done
12536 done
12537 IFS=$as_save_IFS
12538
12539 fi
12540 fi
12541 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12542 if test -n "$ac_ct_F77"; then
12543   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12544 echo "${ECHO_T}$ac_ct_F77" >&6; }
12545 else
12546   { echo "$as_me:$LINENO: result: no" >&5
12547 echo "${ECHO_T}no" >&6; }
12548 fi
12549
12550
12551   test -n "$ac_ct_F77" && break
12552 done
12553
12554   if test "x$ac_ct_F77" = x; then
12555     F77=""
12556   else
12557     case $cross_compiling:$ac_tool_warned in
12558 yes:)
12559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12560 whose name does not start with the host triplet.  If you think this
12561 configuration is useful to you, please write to autoconf@gnu.org." >&5
12562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12563 whose name does not start with the host triplet.  If you think this
12564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12565 ac_tool_warned=yes ;;
12566 esac
12567     F77=$ac_ct_F77
12568   fi
12569 fi
12570
12571
12572 # Provide some information about the compiler.
12573 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12574 ac_compiler=`set X $ac_compile; echo $2`
12575 { (ac_try="$ac_compiler --version >&5"
12576 case "(($ac_try" in
12577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578   *) ac_try_echo=$ac_try;;
12579 esac
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581   (eval "$ac_compiler --version >&5") 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }
12585 { (ac_try="$ac_compiler -v >&5"
12586 case "(($ac_try" in
12587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12588   *) ac_try_echo=$ac_try;;
12589 esac
12590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12591   (eval "$ac_compiler -v >&5") 2>&5
12592   ac_status=$?
12593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594   (exit $ac_status); }
12595 { (ac_try="$ac_compiler -V >&5"
12596 case "(($ac_try" in
12597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598   *) ac_try_echo=$ac_try;;
12599 esac
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601   (eval "$ac_compiler -V >&5") 2>&5
12602   ac_status=$?
12603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604   (exit $ac_status); }
12605 rm -f a.out
12606
12607 # If we don't use `.F' as extension, the preprocessor is not run on the
12608 # input file.  (Note that this only needs to work for GNU compilers.)
12609 ac_save_ext=$ac_ext
12610 ac_ext=F
12611 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12612 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12613 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   cat >conftest.$ac_ext <<_ACEOF
12617       program main
12618 #ifndef __GNUC__
12619        choke me
12620 #endif
12621
12622       end
12623 _ACEOF
12624 rm -f conftest.$ac_objext
12625 if { (ac_try="$ac_compile"
12626 case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_compile") 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } && {
12638          test -z "$ac_f77_werror_flag" ||
12639          test ! -s conftest.err
12640        } && test -s conftest.$ac_objext; then
12641   ac_compiler_gnu=yes
12642 else
12643   echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12645
12646         ac_compiler_gnu=no
12647 fi
12648
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12651
12652 fi
12653 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12654 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12655 ac_ext=$ac_save_ext
12656 ac_test_FFLAGS=${FFLAGS+set}
12657 ac_save_FFLAGS=$FFLAGS
12658 FFLAGS=
12659 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12660 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12661 if test "${ac_cv_prog_f77_g+set}" = set; then
12662   echo $ECHO_N "(cached) $ECHO_C" >&6
12663 else
12664   FFLAGS=-g
12665 cat >conftest.$ac_ext <<_ACEOF
12666       program main
12667
12668       end
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (ac_try="$ac_compile"
12672 case "(($ac_try" in
12673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674   *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677   (eval "$ac_compile") 2>conftest.er1
12678   ac_status=$?
12679   grep -v '^ *+' conftest.er1 >conftest.err
12680   rm -f conftest.er1
12681   cat conftest.err >&5
12682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683   (exit $ac_status); } && {
12684          test -z "$ac_f77_werror_flag" ||
12685          test ! -s conftest.err
12686        } && test -s conftest.$ac_objext; then
12687   ac_cv_prog_f77_g=yes
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692         ac_cv_prog_f77_g=no
12693 fi
12694
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696
12697 fi
12698 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12699 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12700 if test "$ac_test_FFLAGS" = set; then
12701   FFLAGS=$ac_save_FFLAGS
12702 elif test $ac_cv_prog_f77_g = yes; then
12703   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12704     FFLAGS="-g -O2"
12705   else
12706     FFLAGS="-g"
12707   fi
12708 else
12709   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12710     FFLAGS="-O2"
12711   else
12712     FFLAGS=
12713   fi
12714 fi
12715
12716 G77=`test $ac_compiler_gnu = yes && echo yes`
12717 ac_ext=c
12718 ac_cpp='$CPP $CPPFLAGS'
12719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12722
12723
12724
12725 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12726 # find the maximum length of command line arguments
12727 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12728 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12729 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732     i=0
12733   teststring="ABCD"
12734
12735   case $build_os in
12736   msdosdjgpp*)
12737     # On DJGPP, this test can blow up pretty badly due to problems in libc
12738     # (any single argument exceeding 2000 bytes causes a buffer overrun
12739     # during glob expansion).  Even if it were fixed, the result of this
12740     # check would be larger than it should be.
12741     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12742     ;;
12743
12744   gnu*)
12745     # Under GNU Hurd, this test is not required because there is
12746     # no limit to the length of command line arguments.
12747     # Libtool will interpret -1 as no limit whatsoever
12748     lt_cv_sys_max_cmd_len=-1;
12749     ;;
12750
12751   cygwin* | mingw*)
12752     # On Win9x/ME, this test blows up -- it succeeds, but takes
12753     # about 5 minutes as the teststring grows exponentially.
12754     # Worse, since 9x/ME are not pre-emptively multitasking,
12755     # you end up with a "frozen" computer, even though with patience
12756     # the test eventually succeeds (with a max line length of 256k).
12757     # Instead, let's just punt: use the minimum linelength reported by
12758     # all of the supported platforms: 8192 (on NT/2K/XP).
12759     lt_cv_sys_max_cmd_len=8192;
12760     ;;
12761
12762   amigaos*)
12763     # On AmigaOS with pdksh, this test takes hours, literally.
12764     # So we just punt and use a minimum line length of 8192.
12765     lt_cv_sys_max_cmd_len=8192;
12766     ;;
12767
12768   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12769     # This has been around since 386BSD, at least.  Likely further.
12770     if test -x /sbin/sysctl; then
12771       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12772     elif test -x /usr/sbin/sysctl; then
12773       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12774     else
12775       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
12776     fi
12777     # And add a safety zone
12778     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12779     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12780     ;;
12781
12782   interix*)
12783     # We know the value 262144 and hardcode it with a safety zone (like BSD)
12784     lt_cv_sys_max_cmd_len=196608
12785     ;;
12786
12787   osf*)
12788     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12789     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12790     # nice to cause kernel panics so lets avoid the loop below.
12791     # First set a reasonable default.
12792     lt_cv_sys_max_cmd_len=16384
12793     #
12794     if test -x /sbin/sysconfig; then
12795       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12796         *1*) lt_cv_sys_max_cmd_len=-1 ;;
12797       esac
12798     fi
12799     ;;
12800   sco3.2v5*)
12801     lt_cv_sys_max_cmd_len=102400
12802     ;;
12803   sysv5* | sco5v6* | sysv4.2uw2*)
12804     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12805     if test -n "$kargmax"; then
12806       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
12807     else
12808       lt_cv_sys_max_cmd_len=32768
12809     fi
12810     ;;
12811   *)
12812     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12813     if test -n "$lt_cv_sys_max_cmd_len"; then
12814       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12815       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12816     else
12817       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12818       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12819                = "XX$teststring") >/dev/null 2>&1 &&
12820               new_result=`expr "X$teststring" : ".*" 2>&1` &&
12821               lt_cv_sys_max_cmd_len=$new_result &&
12822               test $i != 17 # 1/2 MB should be enough
12823       do
12824         i=`expr $i + 1`
12825         teststring=$teststring$teststring
12826       done
12827       teststring=
12828       # Add a significant safety factor because C++ compilers can tack on massive
12829       # amounts of additional arguments before passing them to the linker.
12830       # It appears as though 1/2 is a usable value.
12831       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12832     fi
12833     ;;
12834   esac
12835
12836 fi
12837
12838 if test -n $lt_cv_sys_max_cmd_len ; then
12839   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12840 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12841 else
12842   { echo "$as_me:$LINENO: result: none" >&5
12843 echo "${ECHO_T}none" >&6; }
12844 fi
12845
12846
12847
12848
12849
12850 # Check for command to grab the raw symbol name followed by C symbol from nm.
12851 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12852 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12853 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856
12857 # These are sane defaults that work on at least a few old systems.
12858 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12859
12860 # Character class describing NM global symbol codes.
12861 symcode='[BCDEGRST]'
12862
12863 # Regexp to match symbols that can be accessed directly from C.
12864 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12865
12866 # Transform an extracted symbol line into a proper C declaration
12867 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12868
12869 # Transform an extracted symbol line into symbol name and symbol address
12870 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'"
12871
12872 # Define system-specific variables.
12873 case $host_os in
12874 aix*)
12875   symcode='[BCDT]'
12876   ;;
12877 cygwin* | mingw* | pw32*)
12878   symcode='[ABCDGISTW]'
12879   ;;
12880 hpux*) # Its linker distinguishes data from code symbols
12881   if test "$host_cpu" = ia64; then
12882     symcode='[ABCDEGRST]'
12883   fi
12884   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12885   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'"
12886   ;;
12887 linux* | k*bsd*-gnu)
12888   if test "$host_cpu" = ia64; then
12889     symcode='[ABCDGIRSTW]'
12890     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12891     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'"
12892   fi
12893   ;;
12894 irix* | nonstopux*)
12895   symcode='[BCDEGRST]'
12896   ;;
12897 osf*)
12898   symcode='[BCDEGQRST]'
12899   ;;
12900 solaris*)
12901   symcode='[BDRT]'
12902   ;;
12903 sco3.2v5*)
12904   symcode='[DT]'
12905   ;;
12906 sysv4.2uw2*)
12907   symcode='[DT]'
12908   ;;
12909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12910   symcode='[ABDT]'
12911   ;;
12912 sysv4)
12913   symcode='[DFNSTU]'
12914   ;;
12915 esac
12916
12917 # Handle CRLF in mingw tool chain
12918 opt_cr=
12919 case $build_os in
12920 mingw*)
12921   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12922   ;;
12923 esac
12924
12925 # If we're using GNU nm, then use its standard symbol codes.
12926 case `$NM -V 2>&1` in
12927 *GNU* | *'with BFD'*)
12928   symcode='[ABCDGIRSTW]' ;;
12929 esac
12930
12931 # Try without a prefix undercore, then with it.
12932 for ac_symprfx in "" "_"; do
12933
12934   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12935   symxfrm="\\1 $ac_symprfx\\2 \\2"
12936
12937   # Write the raw and C identifiers.
12938   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12939
12940   # Check to see that the pipe works correctly.
12941   pipe_works=no
12942
12943   rm -f conftest*
12944   cat > conftest.$ac_ext <<EOF
12945 #ifdef __cplusplus
12946 extern "C" {
12947 #endif
12948 char nm_test_var;
12949 void nm_test_func(){}
12950 #ifdef __cplusplus
12951 }
12952 #endif
12953 int main(){nm_test_var='a';nm_test_func();return(0);}
12954 EOF
12955
12956   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); }; then
12961     # Now try to grab the symbols.
12962     nlist=conftest.nm
12963     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12964   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } && test -s "$nlist"; then
12968       # Try sorting and uniquifying the output.
12969       if sort "$nlist" | uniq > "$nlist"T; then
12970         mv -f "$nlist"T "$nlist"
12971       else
12972         rm -f "$nlist"T
12973       fi
12974
12975       # Make sure that we snagged all the symbols we need.
12976       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12977         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12978           cat <<EOF > conftest.$ac_ext
12979 #ifdef __cplusplus
12980 extern "C" {
12981 #endif
12982
12983 EOF
12984           # Now generate the symbol file.
12985           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12986
12987           cat <<EOF >> conftest.$ac_ext
12988 #if defined (__STDC__) && __STDC__
12989 # define lt_ptr_t void *
12990 #else
12991 # define lt_ptr_t char *
12992 # define const
12993 #endif
12994
12995 /* The mapping between symbol names and symbols. */
12996 const struct {
12997   const char *name;
12998   lt_ptr_t address;
12999 }
13000 lt_preloaded_symbols[] =
13001 {
13002 EOF
13003           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13004           cat <<\EOF >> conftest.$ac_ext
13005   {0, (lt_ptr_t) 0}
13006 };
13007
13008 #ifdef __cplusplus
13009 }
13010 #endif
13011 EOF
13012           # Now try linking the two files.
13013           mv conftest.$ac_objext conftstm.$ac_objext
13014           lt_save_LIBS="$LIBS"
13015           lt_save_CFLAGS="$CFLAGS"
13016           LIBS="conftstm.$ac_objext"
13017           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13018           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019   (eval $ac_link) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } && test -s conftest${ac_exeext}; then
13023             pipe_works=yes
13024           fi
13025           LIBS="$lt_save_LIBS"
13026           CFLAGS="$lt_save_CFLAGS"
13027         else
13028           echo "cannot find nm_test_func in $nlist" >&5
13029         fi
13030       else
13031         echo "cannot find nm_test_var in $nlist" >&5
13032       fi
13033     else
13034       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13035     fi
13036   else
13037     echo "$progname: failed program was:" >&5
13038     cat conftest.$ac_ext >&5
13039   fi
13040   rm -rf conftest* conftst*
13041
13042   # Do not use the global_symbol_pipe unless it works.
13043   if test "$pipe_works" = yes; then
13044     break
13045   else
13046     lt_cv_sys_global_symbol_pipe=
13047   fi
13048 done
13049
13050 fi
13051
13052 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13053   lt_cv_sys_global_symbol_to_cdecl=
13054 fi
13055 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13056   { echo "$as_me:$LINENO: result: failed" >&5
13057 echo "${ECHO_T}failed" >&6; }
13058 else
13059   { echo "$as_me:$LINENO: result: ok" >&5
13060 echo "${ECHO_T}ok" >&6; }
13061 fi
13062
13063 { echo "$as_me:$LINENO: checking for objdir" >&5
13064 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13065 if test "${lt_cv_objdir+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   rm -f .libs 2>/dev/null
13069 mkdir .libs 2>/dev/null
13070 if test -d .libs; then
13071   lt_cv_objdir=.libs
13072 else
13073   # MS-DOS does not allow filenames that begin with a dot.
13074   lt_cv_objdir=_libs
13075 fi
13076 rmdir .libs 2>/dev/null
13077 fi
13078 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13079 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13080 objdir=$lt_cv_objdir
13081
13082
13083
13084
13085
13086 case $host_os in
13087 aix3*)
13088   # AIX sometimes has problems with the GCC collect2 program.  For some
13089   # reason, if we set the COLLECT_NAMES environment variable, the problems
13090   # vanish in a puff of smoke.
13091   if test "X${COLLECT_NAMES+set}" != Xset; then
13092     COLLECT_NAMES=
13093     export COLLECT_NAMES
13094   fi
13095   ;;
13096 esac
13097
13098 # Sed substitution that helps us do robust quoting.  It backslashifies
13099 # metacharacters that are still active within double-quoted strings.
13100 Xsed='sed -e 1s/^X//'
13101 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13102
13103 # Same as above, but do not quote variable references.
13104 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13105
13106 # Sed substitution to delay expansion of an escaped shell variable in a
13107 # double_quote_subst'ed string.
13108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13109
13110 # Sed substitution to avoid accidental globbing in evaled expressions
13111 no_glob_subst='s/\*/\\\*/g'
13112
13113 # Constants:
13114 rm="rm -f"
13115
13116 # Global variables:
13117 default_ofile=libtool
13118 can_build_shared=yes
13119
13120 # All known linkers require a `.a' archive for static linking (except MSVC,
13121 # which needs '.lib').
13122 libext=a
13123 ltmain="$ac_aux_dir/ltmain.sh"
13124 ofile="$default_ofile"
13125 with_gnu_ld="$lt_cv_prog_gnu_ld"
13126
13127 if test -n "$ac_tool_prefix"; then
13128   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then
13133   echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135   if test -n "$AR"; then
13136   ac_cv_prog_AR="$AR" # Let the user override the test.
13137 else
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13140 do
13141   IFS=$as_save_IFS
13142   test -z "$as_dir" && as_dir=.
13143   for ac_exec_ext in '' $ac_executable_extensions; do
13144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145     ac_cv_prog_AR="${ac_tool_prefix}ar"
13146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13147     break 2
13148   fi
13149 done
13150 done
13151 IFS=$as_save_IFS
13152
13153 fi
13154 fi
13155 AR=$ac_cv_prog_AR
13156 if test -n "$AR"; then
13157   { echo "$as_me:$LINENO: result: $AR" >&5
13158 echo "${ECHO_T}$AR" >&6; }
13159 else
13160   { echo "$as_me:$LINENO: result: no" >&5
13161 echo "${ECHO_T}no" >&6; }
13162 fi
13163
13164
13165 fi
13166 if test -z "$ac_cv_prog_AR"; then
13167   ac_ct_AR=$AR
13168   # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13173   echo $ECHO_N "(cached) $ECHO_C" >&6
13174 else
13175   if test -n "$ac_ct_AR"; then
13176   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13177 else
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13180 do
13181   IFS=$as_save_IFS
13182   test -z "$as_dir" && as_dir=.
13183   for ac_exec_ext in '' $ac_executable_extensions; do
13184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185     ac_cv_prog_ac_ct_AR="ar"
13186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13187     break 2
13188   fi
13189 done
13190 done
13191 IFS=$as_save_IFS
13192
13193 fi
13194 fi
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13198 echo "${ECHO_T}$ac_ct_AR" >&6; }
13199 else
13200   { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13202 fi
13203
13204   if test "x$ac_ct_AR" = x; then
13205     AR="false"
13206   else
13207     case $cross_compiling:$ac_tool_warned in
13208 yes:)
13209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13210 whose name does not start with the host triplet.  If you think this
13211 configuration is useful to you, please write to autoconf@gnu.org." >&5
13212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13213 whose name does not start with the host triplet.  If you think this
13214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13215 ac_tool_warned=yes ;;
13216 esac
13217     AR=$ac_ct_AR
13218   fi
13219 else
13220   AR="$ac_cv_prog_AR"
13221 fi
13222
13223 if test -n "$ac_tool_prefix"; then
13224   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13228 if test "${ac_cv_prog_RANLIB+set}" = set; then
13229   echo $ECHO_N "(cached) $ECHO_C" >&6
13230 else
13231   if test -n "$RANLIB"; then
13232   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13233 else
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13236 do
13237   IFS=$as_save_IFS
13238   test -z "$as_dir" && as_dir=.
13239   for ac_exec_ext in '' $ac_executable_extensions; do
13240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13243     break 2
13244   fi
13245 done
13246 done
13247 IFS=$as_save_IFS
13248
13249 fi
13250 fi
13251 RANLIB=$ac_cv_prog_RANLIB
13252 if test -n "$RANLIB"; then
13253   { echo "$as_me:$LINENO: result: $RANLIB" >&5
13254 echo "${ECHO_T}$RANLIB" >&6; }
13255 else
13256   { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13258 fi
13259
13260
13261 fi
13262 if test -z "$ac_cv_prog_RANLIB"; then
13263   ac_ct_RANLIB=$RANLIB
13264   # Extract the first word of "ranlib", so it can be a program name with args.
13265 set dummy ranlib; ac_word=$2
13266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   if test -n "$ac_ct_RANLIB"; then
13272   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13273 else
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13276 do
13277   IFS=$as_save_IFS
13278   test -z "$as_dir" && as_dir=.
13279   for ac_exec_ext in '' $ac_executable_extensions; do
13280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281     ac_cv_prog_ac_ct_RANLIB="ranlib"
13282     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283     break 2
13284   fi
13285 done
13286 done
13287 IFS=$as_save_IFS
13288
13289 fi
13290 fi
13291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13292 if test -n "$ac_ct_RANLIB"; then
13293   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13294 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13295 else
13296   { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13298 fi
13299
13300   if test "x$ac_ct_RANLIB" = x; then
13301     RANLIB=":"
13302   else
13303     case $cross_compiling:$ac_tool_warned in
13304 yes:)
13305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13306 whose name does not start with the host triplet.  If you think this
13307 configuration is useful to you, please write to autoconf@gnu.org." >&5
13308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13309 whose name does not start with the host triplet.  If you think this
13310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13311 ac_tool_warned=yes ;;
13312 esac
13313     RANLIB=$ac_ct_RANLIB
13314   fi
13315 else
13316   RANLIB="$ac_cv_prog_RANLIB"
13317 fi
13318
13319 if test -n "$ac_tool_prefix"; then
13320   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13321 set dummy ${ac_tool_prefix}strip; ac_word=$2
13322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13324 if test "${ac_cv_prog_STRIP+set}" = set; then
13325   echo $ECHO_N "(cached) $ECHO_C" >&6
13326 else
13327   if test -n "$STRIP"; then
13328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13329 else
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13332 do
13333   IFS=$as_save_IFS
13334   test -z "$as_dir" && as_dir=.
13335   for ac_exec_ext in '' $ac_executable_extensions; do
13336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13339     break 2
13340   fi
13341 done
13342 done
13343 IFS=$as_save_IFS
13344
13345 fi
13346 fi
13347 STRIP=$ac_cv_prog_STRIP
13348 if test -n "$STRIP"; then
13349   { echo "$as_me:$LINENO: result: $STRIP" >&5
13350 echo "${ECHO_T}$STRIP" >&6; }
13351 else
13352   { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13354 fi
13355
13356
13357 fi
13358 if test -z "$ac_cv_prog_STRIP"; then
13359   ac_ct_STRIP=$STRIP
13360   # Extract the first word of "strip", so it can be a program name with args.
13361 set dummy strip; ac_word=$2
13362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   if test -n "$ac_ct_STRIP"; then
13368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13369 else
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13372 do
13373   IFS=$as_save_IFS
13374   test -z "$as_dir" && as_dir=.
13375   for ac_exec_ext in '' $ac_executable_extensions; do
13376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377     ac_cv_prog_ac_ct_STRIP="strip"
13378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13379     break 2
13380   fi
13381 done
13382 done
13383 IFS=$as_save_IFS
13384
13385 fi
13386 fi
13387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13388 if test -n "$ac_ct_STRIP"; then
13389   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13391 else
13392   { echo "$as_me:$LINENO: result: no" >&5
13393 echo "${ECHO_T}no" >&6; }
13394 fi
13395
13396   if test "x$ac_ct_STRIP" = x; then
13397     STRIP=":"
13398   else
13399     case $cross_compiling:$ac_tool_warned in
13400 yes:)
13401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13402 whose name does not start with the host triplet.  If you think this
13403 configuration is useful to you, please write to autoconf@gnu.org." >&5
13404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13405 whose name does not start with the host triplet.  If you think this
13406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13407 ac_tool_warned=yes ;;
13408 esac
13409     STRIP=$ac_ct_STRIP
13410   fi
13411 else
13412   STRIP="$ac_cv_prog_STRIP"
13413 fi
13414
13415
13416 old_CC="$CC"
13417 old_CFLAGS="$CFLAGS"
13418
13419 # Set sane defaults for various variables
13420 test -z "$AR" && AR=ar
13421 test -z "$AR_FLAGS" && AR_FLAGS=cru
13422 test -z "$AS" && AS=as
13423 test -z "$CC" && CC=cc
13424 test -z "$LTCC" && LTCC=$CC
13425 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13426 test -z "$DLLTOOL" && DLLTOOL=dlltool
13427 test -z "$LD" && LD=ld
13428 test -z "$LN_S" && LN_S="ln -s"
13429 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13430 test -z "$NM" && NM=nm
13431 test -z "$SED" && SED=sed
13432 test -z "$OBJDUMP" && OBJDUMP=objdump
13433 test -z "$RANLIB" && RANLIB=:
13434 test -z "$STRIP" && STRIP=:
13435 test -z "$ac_objext" && ac_objext=o
13436
13437 # Determine commands to create old-style static archives.
13438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13439 old_postinstall_cmds='chmod 644 $oldlib'
13440 old_postuninstall_cmds=
13441
13442 if test -n "$RANLIB"; then
13443   case $host_os in
13444   openbsd*)
13445     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13446     ;;
13447   *)
13448     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13449     ;;
13450   esac
13451   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13452 fi
13453
13454 for cc_temp in $compiler""; do
13455   case $cc_temp in
13456     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13457     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13458     \-*) ;;
13459     *) break;;
13460   esac
13461 done
13462 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13463
13464
13465 # Only perform the check for file, if the check method requires it
13466 case $deplibs_check_method in
13467 file_magic*)
13468   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13469     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13470 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13472   echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474   case $MAGIC_CMD in
13475 [\\/*] |  ?:[\\/]*)
13476   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13477   ;;
13478 *)
13479   lt_save_MAGIC_CMD="$MAGIC_CMD"
13480   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13481   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13482   for ac_dir in $ac_dummy; do
13483     IFS="$lt_save_ifs"
13484     test -z "$ac_dir" && ac_dir=.
13485     if test -f $ac_dir/${ac_tool_prefix}file; then
13486       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13487       if test -n "$file_magic_test_file"; then
13488         case $deplibs_check_method in
13489         "file_magic "*)
13490           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13491           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13492           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13493             $EGREP "$file_magic_regex" > /dev/null; then
13494             :
13495           else
13496             cat <<EOF 1>&2
13497
13498 *** Warning: the command libtool uses to detect shared libraries,
13499 *** $file_magic_cmd, produces output that libtool cannot recognize.
13500 *** The result is that libtool may fail to recognize shared libraries
13501 *** as such.  This will affect the creation of libtool libraries that
13502 *** depend on shared libraries, but programs linked with such libtool
13503 *** libraries will work regardless of this problem.  Nevertheless, you
13504 *** may want to report the problem to your system manager and/or to
13505 *** bug-libtool@gnu.org
13506
13507 EOF
13508           fi ;;
13509         esac
13510       fi
13511       break
13512     fi
13513   done
13514   IFS="$lt_save_ifs"
13515   MAGIC_CMD="$lt_save_MAGIC_CMD"
13516   ;;
13517 esac
13518 fi
13519
13520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13521 if test -n "$MAGIC_CMD"; then
13522   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13523 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13524 else
13525   { echo "$as_me:$LINENO: result: no" >&5
13526 echo "${ECHO_T}no" >&6; }
13527 fi
13528
13529 if test -z "$lt_cv_path_MAGIC_CMD"; then
13530   if test -n "$ac_tool_prefix"; then
13531     { echo "$as_me:$LINENO: checking for file" >&5
13532 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13534   echo $ECHO_N "(cached) $ECHO_C" >&6
13535 else
13536   case $MAGIC_CMD in
13537 [\\/*] |  ?:[\\/]*)
13538   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13539   ;;
13540 *)
13541   lt_save_MAGIC_CMD="$MAGIC_CMD"
13542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13543   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13544   for ac_dir in $ac_dummy; do
13545     IFS="$lt_save_ifs"
13546     test -z "$ac_dir" && ac_dir=.
13547     if test -f $ac_dir/file; then
13548       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13549       if test -n "$file_magic_test_file"; then
13550         case $deplibs_check_method in
13551         "file_magic "*)
13552           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13553           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13554           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13555             $EGREP "$file_magic_regex" > /dev/null; then
13556             :
13557           else
13558             cat <<EOF 1>&2
13559
13560 *** Warning: the command libtool uses to detect shared libraries,
13561 *** $file_magic_cmd, produces output that libtool cannot recognize.
13562 *** The result is that libtool may fail to recognize shared libraries
13563 *** as such.  This will affect the creation of libtool libraries that
13564 *** depend on shared libraries, but programs linked with such libtool
13565 *** libraries will work regardless of this problem.  Nevertheless, you
13566 *** may want to report the problem to your system manager and/or to
13567 *** bug-libtool@gnu.org
13568
13569 EOF
13570           fi ;;
13571         esac
13572       fi
13573       break
13574     fi
13575   done
13576   IFS="$lt_save_ifs"
13577   MAGIC_CMD="$lt_save_MAGIC_CMD"
13578   ;;
13579 esac
13580 fi
13581
13582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13583 if test -n "$MAGIC_CMD"; then
13584   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13585 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13586 else
13587   { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13589 fi
13590
13591   else
13592     MAGIC_CMD=:
13593   fi
13594 fi
13595
13596   fi
13597   ;;
13598 esac
13599
13600
13601   case $host_os in
13602     rhapsody* | darwin*)
13603     if test -n "$ac_tool_prefix"; then
13604   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13605 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13608 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
13609   echo $ECHO_N "(cached) $ECHO_C" >&6
13610 else
13611   if test -n "$DSYMUTIL"; then
13612   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13613 else
13614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13615 for as_dir in $PATH
13616 do
13617   IFS=$as_save_IFS
13618   test -z "$as_dir" && as_dir=.
13619   for ac_exec_ext in '' $ac_executable_extensions; do
13620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13621     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13623     break 2
13624   fi
13625 done
13626 done
13627 IFS=$as_save_IFS
13628
13629 fi
13630 fi
13631 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13632 if test -n "$DSYMUTIL"; then
13633   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
13634 echo "${ECHO_T}$DSYMUTIL" >&6; }
13635 else
13636   { echo "$as_me:$LINENO: result: no" >&5
13637 echo "${ECHO_T}no" >&6; }
13638 fi
13639
13640
13641 fi
13642 if test -z "$ac_cv_prog_DSYMUTIL"; then
13643   ac_ct_DSYMUTIL=$DSYMUTIL
13644   # Extract the first word of "dsymutil", so it can be a program name with args.
13645 set dummy dsymutil; ac_word=$2
13646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13648 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
13649   echo $ECHO_N "(cached) $ECHO_C" >&6
13650 else
13651   if test -n "$ac_ct_DSYMUTIL"; then
13652   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13653 else
13654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655 for as_dir in $PATH
13656 do
13657   IFS=$as_save_IFS
13658   test -z "$as_dir" && as_dir=.
13659   for ac_exec_ext in '' $ac_executable_extensions; do
13660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13661     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13663     break 2
13664   fi
13665 done
13666 done
13667 IFS=$as_save_IFS
13668
13669 fi
13670 fi
13671 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13672 if test -n "$ac_ct_DSYMUTIL"; then
13673   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
13674 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
13675 else
13676   { echo "$as_me:$LINENO: result: no" >&5
13677 echo "${ECHO_T}no" >&6; }
13678 fi
13679
13680   if test "x$ac_ct_DSYMUTIL" = x; then
13681     DSYMUTIL=":"
13682   else
13683     case $cross_compiling:$ac_tool_warned in
13684 yes:)
13685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13686 whose name does not start with the host triplet.  If you think this
13687 configuration is useful to you, please write to autoconf@gnu.org." >&5
13688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13689 whose name does not start with the host triplet.  If you think this
13690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13691 ac_tool_warned=yes ;;
13692 esac
13693     DSYMUTIL=$ac_ct_DSYMUTIL
13694   fi
13695 else
13696   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13697 fi
13698
13699     if test -n "$ac_tool_prefix"; then
13700   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13701 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13704 if test "${ac_cv_prog_NMEDIT+set}" = set; then
13705   echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707   if test -n "$NMEDIT"; then
13708   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13709 else
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13712 do
13713   IFS=$as_save_IFS
13714   test -z "$as_dir" && as_dir=.
13715   for ac_exec_ext in '' $ac_executable_extensions; do
13716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13719     break 2
13720   fi
13721 done
13722 done
13723 IFS=$as_save_IFS
13724
13725 fi
13726 fi
13727 NMEDIT=$ac_cv_prog_NMEDIT
13728 if test -n "$NMEDIT"; then
13729   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
13730 echo "${ECHO_T}$NMEDIT" >&6; }
13731 else
13732   { echo "$as_me:$LINENO: result: no" >&5
13733 echo "${ECHO_T}no" >&6; }
13734 fi
13735
13736
13737 fi
13738 if test -z "$ac_cv_prog_NMEDIT"; then
13739   ac_ct_NMEDIT=$NMEDIT
13740   # Extract the first word of "nmedit", so it can be a program name with args.
13741 set dummy nmedit; ac_word=$2
13742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13744 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
13745   echo $ECHO_N "(cached) $ECHO_C" >&6
13746 else
13747   if test -n "$ac_ct_NMEDIT"; then
13748   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13749 else
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13752 do
13753   IFS=$as_save_IFS
13754   test -z "$as_dir" && as_dir=.
13755   for ac_exec_ext in '' $ac_executable_extensions; do
13756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13757     ac_cv_prog_ac_ct_NMEDIT="nmedit"
13758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13759     break 2
13760   fi
13761 done
13762 done
13763 IFS=$as_save_IFS
13764
13765 fi
13766 fi
13767 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13768 if test -n "$ac_ct_NMEDIT"; then
13769   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
13770 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
13771 else
13772   { echo "$as_me:$LINENO: result: no" >&5
13773 echo "${ECHO_T}no" >&6; }
13774 fi
13775
13776   if test "x$ac_ct_NMEDIT" = x; then
13777     NMEDIT=":"
13778   else
13779     case $cross_compiling:$ac_tool_warned in
13780 yes:)
13781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13782 whose name does not start with the host triplet.  If you think this
13783 configuration is useful to you, please write to autoconf@gnu.org." >&5
13784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13785 whose name does not start with the host triplet.  If you think this
13786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13787 ac_tool_warned=yes ;;
13788 esac
13789     NMEDIT=$ac_ct_NMEDIT
13790   fi
13791 else
13792   NMEDIT="$ac_cv_prog_NMEDIT"
13793 fi
13794
13795
13796     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
13797 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
13798 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
13799   echo $ECHO_N "(cached) $ECHO_C" >&6
13800 else
13801   lt_cv_apple_cc_single_mod=no
13802       if test -z "${LT_MULTI_MODULE}"; then
13803    # By default we will add the -single_module flag. You can override
13804    # by either setting the environment variable LT_MULTI_MODULE
13805    # non-empty at configure time, or by adding -multi_module to the
13806    # link flags.
13807    echo "int foo(void){return 1;}" > conftest.c
13808    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13809      -dynamiclib ${wl}-single_module conftest.c
13810    if test -f libconftest.dylib; then
13811      lt_cv_apple_cc_single_mod=yes
13812      rm -rf libconftest.dylib*
13813    fi
13814    rm conftest.c
13815       fi
13816 fi
13817 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
13818 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
13819     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
13820 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
13821 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 else
13824   lt_cv_ld_exported_symbols_list=no
13825       save_LDFLAGS=$LDFLAGS
13826       echo "_main" > conftest.sym
13827       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13828       cat >conftest.$ac_ext <<_ACEOF
13829 /* confdefs.h.  */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h.  */
13834
13835 int
13836 main ()
13837 {
13838
13839   ;
13840   return 0;
13841 }
13842 _ACEOF
13843 rm -f conftest.$ac_objext conftest$ac_exeext
13844 if { (ac_try="$ac_link"
13845 case "(($ac_try" in
13846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847   *) ac_try_echo=$ac_try;;
13848 esac
13849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850   (eval "$ac_link") 2>conftest.er1
13851   ac_status=$?
13852   grep -v '^ *+' conftest.er1 >conftest.err
13853   rm -f conftest.er1
13854   cat conftest.err >&5
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); } && {
13857          test -z "$ac_c_werror_flag" ||
13858          test ! -s conftest.err
13859        } && test -s conftest$ac_exeext &&
13860        $as_test_x conftest$ac_exeext; then
13861   lt_cv_ld_exported_symbols_list=yes
13862 else
13863   echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866         lt_cv_ld_exported_symbols_list=no
13867 fi
13868
13869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13870       conftest$ac_exeext conftest.$ac_ext
13871    LDFLAGS="$save_LDFLAGS"
13872
13873 fi
13874 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
13875 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
13876     case $host_os in
13877     rhapsody* | darwin1.[0123])
13878       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13879     darwin1.*)
13880      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13881     darwin*)
13882       # if running on 10.5 or later, the deployment target defaults
13883       # to the OS version, if on x86, and 10.4, the deployment
13884       # target defaults to 10.4. Don't you love it?
13885       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13886    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13887      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13888    10.[012]*)
13889      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13890    10.*)
13891      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13892       esac
13893     ;;
13894   esac
13895     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13896       _lt_dar_single_mod='$single_module'
13897     fi
13898     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13899       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13900     else
13901       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
13902     fi
13903     if test "$DSYMUTIL" != ":"; then
13904       _lt_dsymutil="~$DSYMUTIL \$lib || :"
13905     else
13906       _lt_dsymutil=
13907     fi
13908     ;;
13909   esac
13910
13911
13912 enable_dlopen=yes
13913 enable_win32_dll=no
13914
13915 # Check whether --enable-libtool-lock was given.
13916 if test "${enable_libtool_lock+set}" = set; then
13917   enableval=$enable_libtool_lock;
13918 fi
13919
13920 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13921
13922
13923 # Check whether --with-pic was given.
13924 if test "${with_pic+set}" = set; then
13925   withval=$with_pic; pic_mode="$withval"
13926 else
13927   pic_mode=default
13928 fi
13929
13930 test -z "$pic_mode" && pic_mode=default
13931
13932 # Use C for the default configuration in the libtool script
13933 tagname=
13934 lt_save_CC="$CC"
13935 ac_ext=c
13936 ac_cpp='$CPP $CPPFLAGS'
13937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13940
13941
13942 # Source file extension for C test sources.
13943 ac_ext=c
13944
13945 # Object file extension for compiled C test sources.
13946 objext=o
13947 objext=$objext
13948
13949 # Code to be used in simple compile tests
13950 lt_simple_compile_test_code="int some_variable = 0;"
13951
13952 # Code to be used in simple link tests
13953 lt_simple_link_test_code='int main(){return(0);}'
13954
13955
13956 # If no C compiler was specified, use CC.
13957 LTCC=${LTCC-"$CC"}
13958
13959 # If no C compiler flags were specified, use CFLAGS.
13960 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13961
13962 # Allow CC to be a program name with arguments.
13963 compiler=$CC
13964
13965
13966 # save warnings/boilerplate of simple test code
13967 ac_outfile=conftest.$ac_objext
13968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13970 _lt_compiler_boilerplate=`cat conftest.err`
13971 $rm conftest*
13972
13973 ac_outfile=conftest.$ac_objext
13974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13976 _lt_linker_boilerplate=`cat conftest.err`
13977 $rm -r conftest*
13978
13979
13980
13981 lt_prog_compiler_no_builtin_flag=
13982
13983 if test "$GCC" = yes; then
13984   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13985
13986
13987 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13988 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13989 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992   lt_cv_prog_compiler_rtti_exceptions=no
13993   ac_outfile=conftest.$ac_objext
13994    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13995    lt_compiler_flag="-fno-rtti -fno-exceptions"
13996    # Insert the option either (1) after the last *FLAGS variable, or
13997    # (2) before a word containing "conftest.", or (3) at the end.
13998    # Note that $ac_compile itself does not contain backslashes and begins
13999    # with a dollar sign (not a hyphen), so the echo should work correctly.
14000    # The option is referenced via a variable to avoid confusing sed.
14001    lt_compile=`echo "$ac_compile" | $SED \
14002    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14004    -e 's:$: $lt_compiler_flag:'`
14005    (eval echo "\"\$as_me:14005: $lt_compile\"" >&5)
14006    (eval "$lt_compile" 2>conftest.err)
14007    ac_status=$?
14008    cat conftest.err >&5
14009    echo "$as_me:14009: \$? = $ac_status" >&5
14010    if (exit $ac_status) && test -s "$ac_outfile"; then
14011      # The compiler can only warn and ignore the option if not recognized
14012      # So say no if there are warnings other than the usual output.
14013      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14014      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14016        lt_cv_prog_compiler_rtti_exceptions=yes
14017      fi
14018    fi
14019    $rm conftest*
14020
14021 fi
14022 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14023 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14024
14025 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14026     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14027 else
14028     :
14029 fi
14030
14031 fi
14032
14033 lt_prog_compiler_wl=
14034 lt_prog_compiler_pic=
14035 lt_prog_compiler_static=
14036
14037 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14038 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14039
14040   if test "$GCC" = yes; then
14041     lt_prog_compiler_wl='-Wl,'
14042     lt_prog_compiler_static='-static'
14043
14044     case $host_os in
14045       aix*)
14046       # All AIX code is PIC.
14047       if test "$host_cpu" = ia64; then
14048         # AIX 5 now supports IA64 processor
14049         lt_prog_compiler_static='-Bstatic'
14050       fi
14051       ;;
14052
14053     amigaos*)
14054       # FIXME: we need at least 68020 code to build shared libraries, but
14055       # adding the `-m68020' flag to GCC prevents building anything better,
14056       # like `-m68040'.
14057       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14058       ;;
14059
14060     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14061       # PIC is the default for these OSes.
14062       ;;
14063
14064     mingw* | cygwin* | pw32* | os2*)
14065       # This hack is so that the source file can tell whether it is being
14066       # built for inclusion in a dll (and should export symbols for example).
14067       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14068       # (--disable-auto-import) libraries
14069       lt_prog_compiler_pic='-DDLL_EXPORT'
14070       ;;
14071
14072     darwin* | rhapsody*)
14073       # PIC is the default on this platform
14074       # Common symbols not allowed in MH_DYLIB files
14075       lt_prog_compiler_pic='-fno-common'
14076       ;;
14077
14078     interix[3-9]*)
14079       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14080       # Instead, we relocate shared libraries at runtime.
14081       ;;
14082
14083     msdosdjgpp*)
14084       # Just because we use GCC doesn't mean we suddenly get shared libraries
14085       # on systems that don't support them.
14086       lt_prog_compiler_can_build_shared=no
14087       enable_shared=no
14088       ;;
14089
14090     sysv4*MP*)
14091       if test -d /usr/nec; then
14092         lt_prog_compiler_pic=-Kconform_pic
14093       fi
14094       ;;
14095
14096     hpux*)
14097       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14098       # not for PA HP-UX.
14099       case $host_cpu in
14100       hppa*64*|ia64*)
14101         # +Z the default
14102         ;;
14103       *)
14104         lt_prog_compiler_pic='-fPIC'
14105         ;;
14106       esac
14107       ;;
14108
14109     *)
14110       lt_prog_compiler_pic='-fPIC'
14111       ;;
14112     esac
14113   else
14114     # PORTME Check for flag to pass linker flags through the system compiler.
14115     case $host_os in
14116     aix*)
14117       lt_prog_compiler_wl='-Wl,'
14118       if test "$host_cpu" = ia64; then
14119         # AIX 5 now supports IA64 processor
14120         lt_prog_compiler_static='-Bstatic'
14121       else
14122         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14123       fi
14124       ;;
14125       darwin*)
14126         # PIC is the default on this platform
14127         # Common symbols not allowed in MH_DYLIB files
14128        case $cc_basename in
14129          xlc*)
14130          lt_prog_compiler_pic='-qnocommon'
14131          lt_prog_compiler_wl='-Wl,'
14132          ;;
14133        esac
14134        ;;
14135
14136     mingw* | cygwin* | pw32* | os2*)
14137       # This hack is so that the source file can tell whether it is being
14138       # built for inclusion in a dll (and should export symbols for example).
14139       lt_prog_compiler_pic='-DDLL_EXPORT'
14140       ;;
14141
14142     hpux9* | hpux10* | hpux11*)
14143       lt_prog_compiler_wl='-Wl,'
14144       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14145       # not for PA HP-UX.
14146       case $host_cpu in
14147       hppa*64*|ia64*)
14148         # +Z the default
14149         ;;
14150       *)
14151         lt_prog_compiler_pic='+Z'
14152         ;;
14153       esac
14154       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14155       lt_prog_compiler_static='${wl}-a ${wl}archive'
14156       ;;
14157
14158     irix5* | irix6* | nonstopux*)
14159       lt_prog_compiler_wl='-Wl,'
14160       # PIC (with -KPIC) is the default.
14161       lt_prog_compiler_static='-non_shared'
14162       ;;
14163
14164     newsos6)
14165       lt_prog_compiler_pic='-KPIC'
14166       lt_prog_compiler_static='-Bstatic'
14167       ;;
14168
14169     linux* | k*bsd*-gnu)
14170       case $cc_basename in
14171       icc* | ecc*)
14172         lt_prog_compiler_wl='-Wl,'
14173         lt_prog_compiler_pic='-KPIC'
14174         lt_prog_compiler_static='-static'
14175         ;;
14176       pgcc* | pgf77* | pgf90* | pgf95*)
14177         # Portland Group compilers (*not* the Pentium gcc compiler,
14178         # which looks to be a dead project)
14179         lt_prog_compiler_wl='-Wl,'
14180         lt_prog_compiler_pic='-fpic'
14181         lt_prog_compiler_static='-Bstatic'
14182         ;;
14183       ccc*)
14184         lt_prog_compiler_wl='-Wl,'
14185         # All Alpha code is PIC.
14186         lt_prog_compiler_static='-non_shared'
14187         ;;
14188       *)
14189         case `$CC -V 2>&1 | sed 5q` in
14190         *Sun\ C*)
14191           # Sun C 5.9
14192           lt_prog_compiler_pic='-KPIC'
14193           lt_prog_compiler_static='-Bstatic'
14194           lt_prog_compiler_wl='-Wl,'
14195           ;;
14196         *Sun\ F*)
14197           # Sun Fortran 8.3 passes all unrecognized flags to the linker
14198           lt_prog_compiler_pic='-KPIC'
14199           lt_prog_compiler_static='-Bstatic'
14200           lt_prog_compiler_wl=''
14201           ;;
14202         esac
14203         ;;
14204       esac
14205       ;;
14206
14207     osf3* | osf4* | osf5*)
14208       lt_prog_compiler_wl='-Wl,'
14209       # All OSF/1 code is PIC.
14210       lt_prog_compiler_static='-non_shared'
14211       ;;
14212
14213     rdos*)
14214       lt_prog_compiler_static='-non_shared'
14215       ;;
14216
14217     solaris*)
14218       lt_prog_compiler_pic='-KPIC'
14219       lt_prog_compiler_static='-Bstatic'
14220       case $cc_basename in
14221       f77* | f90* | f95*)
14222         lt_prog_compiler_wl='-Qoption ld ';;
14223       *)
14224         lt_prog_compiler_wl='-Wl,';;
14225       esac
14226       ;;
14227
14228     sunos4*)
14229       lt_prog_compiler_wl='-Qoption ld '
14230       lt_prog_compiler_pic='-PIC'
14231       lt_prog_compiler_static='-Bstatic'
14232       ;;
14233
14234     sysv4 | sysv4.2uw2* | sysv4.3*)
14235       lt_prog_compiler_wl='-Wl,'
14236       lt_prog_compiler_pic='-KPIC'
14237       lt_prog_compiler_static='-Bstatic'
14238       ;;
14239
14240     sysv4*MP*)
14241       if test -d /usr/nec ;then
14242         lt_prog_compiler_pic='-Kconform_pic'
14243         lt_prog_compiler_static='-Bstatic'
14244       fi
14245       ;;
14246
14247     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14248       lt_prog_compiler_wl='-Wl,'
14249       lt_prog_compiler_pic='-KPIC'
14250       lt_prog_compiler_static='-Bstatic'
14251       ;;
14252
14253     unicos*)
14254       lt_prog_compiler_wl='-Wl,'
14255       lt_prog_compiler_can_build_shared=no
14256       ;;
14257
14258     uts4*)
14259       lt_prog_compiler_pic='-pic'
14260       lt_prog_compiler_static='-Bstatic'
14261       ;;
14262
14263     *)
14264       lt_prog_compiler_can_build_shared=no
14265       ;;
14266     esac
14267   fi
14268
14269 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14270 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
14271
14272 #
14273 # Check to make sure the PIC flag actually works.
14274 #
14275 if test -n "$lt_prog_compiler_pic"; then
14276
14277 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14278 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
14279 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
14280   echo $ECHO_N "(cached) $ECHO_C" >&6
14281 else
14282   lt_cv_prog_compiler_pic_works=no
14283   ac_outfile=conftest.$ac_objext
14284    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14285    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14286    # Insert the option either (1) after the last *FLAGS variable, or
14287    # (2) before a word containing "conftest.", or (3) at the end.
14288    # Note that $ac_compile itself does not contain backslashes and begins
14289    # with a dollar sign (not a hyphen), so the echo should work correctly.
14290    # The option is referenced via a variable to avoid confusing sed.
14291    lt_compile=`echo "$ac_compile" | $SED \
14292    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14293    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14294    -e 's:$: $lt_compiler_flag:'`
14295    (eval echo "\"\$as_me:14295: $lt_compile\"" >&5)
14296    (eval "$lt_compile" 2>conftest.err)
14297    ac_status=$?
14298    cat conftest.err >&5
14299    echo "$as_me:14299: \$? = $ac_status" >&5
14300    if (exit $ac_status) && test -s "$ac_outfile"; then
14301      # The compiler can only warn and ignore the option if not recognized
14302      # So say no if there are warnings other than the usual output.
14303      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14304      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14305      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14306        lt_cv_prog_compiler_pic_works=yes
14307      fi
14308    fi
14309    $rm conftest*
14310
14311 fi
14312 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
14313 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
14314
14315 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14316     case $lt_prog_compiler_pic in
14317      "" | " "*) ;;
14318      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14319      esac
14320 else
14321     lt_prog_compiler_pic=
14322      lt_prog_compiler_can_build_shared=no
14323 fi
14324
14325 fi
14326 case $host_os in
14327   # For platforms which do not support PIC, -DPIC is meaningless:
14328   *djgpp*)
14329     lt_prog_compiler_pic=
14330     ;;
14331   *)
14332     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14333     ;;
14334 esac
14335
14336 #
14337 # Check to make sure the static flag actually works.
14338 #
14339 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14340 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14341 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14342 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
14343   echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345   lt_cv_prog_compiler_static_works=no
14346    save_LDFLAGS="$LDFLAGS"
14347    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14348    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14349    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14350      # The linker can only warn and ignore the option if not recognized
14351      # So say no if there are warnings
14352      if test -s conftest.err; then
14353        # Append any errors to the config.log.
14354        cat conftest.err 1>&5
14355        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14356        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14357        if diff conftest.exp conftest.er2 >/dev/null; then
14358          lt_cv_prog_compiler_static_works=yes
14359        fi
14360      else
14361        lt_cv_prog_compiler_static_works=yes
14362      fi
14363    fi
14364    $rm -r conftest*
14365    LDFLAGS="$save_LDFLAGS"
14366
14367 fi
14368 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
14369 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
14370
14371 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14372     :
14373 else
14374     lt_prog_compiler_static=
14375 fi
14376
14377
14378 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14379 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14380 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   lt_cv_prog_compiler_c_o=no
14384    $rm -r conftest 2>/dev/null
14385    mkdir conftest
14386    cd conftest
14387    mkdir out
14388    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14389
14390    lt_compiler_flag="-o out/conftest2.$ac_objext"
14391    # Insert the option either (1) after the last *FLAGS variable, or
14392    # (2) before a word containing "conftest.", or (3) at the end.
14393    # Note that $ac_compile itself does not contain backslashes and begins
14394    # with a dollar sign (not a hyphen), so the echo should work correctly.
14395    lt_compile=`echo "$ac_compile" | $SED \
14396    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14397    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14398    -e 's:$: $lt_compiler_flag:'`
14399    (eval echo "\"\$as_me:14399: $lt_compile\"" >&5)
14400    (eval "$lt_compile" 2>out/conftest.err)
14401    ac_status=$?
14402    cat out/conftest.err >&5
14403    echo "$as_me:14403: \$? = $ac_status" >&5
14404    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14405    then
14406      # The compiler can only warn and ignore the option if not recognized
14407      # So say no if there are warnings
14408      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14409      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14410      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14411        lt_cv_prog_compiler_c_o=yes
14412      fi
14413    fi
14414    chmod u+w . 2>&5
14415    $rm conftest*
14416    # SGI C++ compiler will create directory out/ii_files/ for
14417    # template instantiation
14418    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14419    $rm out/* && rmdir out
14420    cd ..
14421    rmdir conftest
14422    $rm conftest*
14423
14424 fi
14425 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14426 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14427
14428
14429 hard_links="nottested"
14430 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14431   # do not overwrite the value of need_locks provided by the user
14432   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14433 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14434   hard_links=yes
14435   $rm conftest*
14436   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14437   touch conftest.a
14438   ln conftest.a conftest.b 2>&5 || hard_links=no
14439   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14440   { echo "$as_me:$LINENO: result: $hard_links" >&5
14441 echo "${ECHO_T}$hard_links" >&6; }
14442   if test "$hard_links" = no; then
14443     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14444 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14445     need_locks=warn
14446   fi
14447 else
14448   need_locks=no
14449 fi
14450
14451 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14452 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14453
14454   runpath_var=
14455   allow_undefined_flag=
14456   enable_shared_with_static_runtimes=no
14457   archive_cmds=
14458   archive_expsym_cmds=
14459   old_archive_From_new_cmds=
14460   old_archive_from_expsyms_cmds=
14461   export_dynamic_flag_spec=
14462   whole_archive_flag_spec=
14463   thread_safe_flag_spec=
14464   hardcode_libdir_flag_spec=
14465   hardcode_libdir_flag_spec_ld=
14466   hardcode_libdir_separator=
14467   hardcode_direct=no
14468   hardcode_minus_L=no
14469   hardcode_shlibpath_var=unsupported
14470   link_all_deplibs=unknown
14471   hardcode_automatic=no
14472   module_cmds=
14473   module_expsym_cmds=
14474   always_export_symbols=no
14475   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14476   # include_expsyms should be a list of space-separated symbols to be *always*
14477   # included in the symbol list
14478   include_expsyms=
14479   # exclude_expsyms can be an extended regexp of symbols to exclude
14480   # it will be wrapped by ` (' and `)$', so one must not match beginning or
14481   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14482   # as well as any symbol that contains `d'.
14483   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14484   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14485   # platforms (ab)use it in PIC code, but their linkers get confused if
14486   # the symbol is explicitly referenced.  Since portable code cannot
14487   # rely on this symbol name, it's probably fine to never include it in
14488   # preloaded symbol tables.
14489   # Exclude shared library initialization/finalization symbols.
14490   extract_expsyms_cmds=
14491   # Just being paranoid about ensuring that cc_basename is set.
14492   for cc_temp in $compiler""; do
14493   case $cc_temp in
14494     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14495     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14496     \-*) ;;
14497     *) break;;
14498   esac
14499 done
14500 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14501
14502   case $host_os in
14503   cygwin* | mingw* | pw32*)
14504     # FIXME: the MSVC++ port hasn't been tested in a loooong time
14505     # When not using gcc, we currently assume that we are using
14506     # Microsoft Visual C++.
14507     if test "$GCC" != yes; then
14508       with_gnu_ld=no
14509     fi
14510     ;;
14511   interix*)
14512     # we just hope/assume this is gcc and not c89 (= MSVC++)
14513     with_gnu_ld=yes
14514     ;;
14515   openbsd*)
14516     with_gnu_ld=no
14517     ;;
14518   esac
14519
14520   ld_shlibs=yes
14521   if test "$with_gnu_ld" = yes; then
14522     # If archive_cmds runs LD, not CC, wlarc should be empty
14523     wlarc='${wl}'
14524
14525     # Set some defaults for GNU ld with shared library support. These
14526     # are reset later if shared libraries are not supported. Putting them
14527     # here allows them to be overridden if necessary.
14528     runpath_var=LD_RUN_PATH
14529     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14530     export_dynamic_flag_spec='${wl}--export-dynamic'
14531     # ancient GNU ld didn't support --whole-archive et. al.
14532     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14533         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14534       else
14535         whole_archive_flag_spec=
14536     fi
14537     supports_anon_versioning=no
14538     case `$LD -v 2>/dev/null` in
14539       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14540       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14541       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14542       *\ 2.11.*) ;; # other 2.11 versions
14543       *) supports_anon_versioning=yes ;;
14544     esac
14545
14546     # See if GNU ld supports shared libraries.
14547     case $host_os in
14548     aix[3-9]*)
14549       # On AIX/PPC, the GNU linker is very broken
14550       if test "$host_cpu" != ia64; then
14551         ld_shlibs=no
14552         cat <<EOF 1>&2
14553
14554 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14555 *** to be unable to reliably create shared libraries on AIX.
14556 *** Therefore, libtool is disabling shared libraries support.  If you
14557 *** really care for shared libraries, you may want to modify your PATH
14558 *** so that a non-GNU linker is found, and then restart.
14559
14560 EOF
14561       fi
14562       ;;
14563
14564     amigaos*)
14565       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)'
14566       hardcode_libdir_flag_spec='-L$libdir'
14567       hardcode_minus_L=yes
14568
14569       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14570       # that the semantics of dynamic libraries on AmigaOS, at least up
14571       # to version 4, is to share data among multiple programs linked
14572       # with the same dynamic library.  Since this doesn't match the
14573       # behavior of shared libraries on other platforms, we can't use
14574       # them.
14575       ld_shlibs=no
14576       ;;
14577
14578     beos*)
14579       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14580         allow_undefined_flag=unsupported
14581         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14582         # support --undefined.  This deserves some investigation.  FIXME
14583         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14584       else
14585         ld_shlibs=no
14586       fi
14587       ;;
14588
14589     cygwin* | mingw* | pw32*)
14590       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14591       # as there is no search path for DLLs.
14592       hardcode_libdir_flag_spec='-L$libdir'
14593       allow_undefined_flag=unsupported
14594       always_export_symbols=no
14595       enable_shared_with_static_runtimes=yes
14596       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14597
14598       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14599         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14600         # If the export-symbols file already is a .def file (1st line
14601         # is EXPORTS), use it as is; otherwise, prepend...
14602         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14603           cp $export_symbols $output_objdir/$soname.def;
14604         else
14605           echo EXPORTS > $output_objdir/$soname.def;
14606           cat $export_symbols >> $output_objdir/$soname.def;
14607         fi~
14608         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14609       else
14610         ld_shlibs=no
14611       fi
14612       ;;
14613
14614     interix[3-9]*)
14615       hardcode_direct=no
14616       hardcode_shlibpath_var=no
14617       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14618       export_dynamic_flag_spec='${wl}-E'
14619       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14620       # Instead, shared libraries are loaded at an image base (0x10000000 by
14621       # default) and relocated if they conflict, which is a slow very memory
14622       # consuming and fragmenting process.  To avoid this, we pick a random,
14623       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14624       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14625       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14626       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'
14627       ;;
14628
14629     gnu* | linux* | k*bsd*-gnu)
14630       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14631         tmp_addflag=
14632         case $cc_basename,$host_cpu in
14633         pgcc*)                          # Portland Group C compiler
14634           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'
14635           tmp_addflag=' $pic_flag'
14636           ;;
14637         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14638           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'
14639           tmp_addflag=' $pic_flag -Mnomain' ;;
14640         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14641           tmp_addflag=' -i_dynamic' ;;
14642         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14643           tmp_addflag=' -i_dynamic -nofor_main' ;;
14644         ifc* | ifort*)                  # Intel Fortran compiler
14645           tmp_addflag=' -nofor_main' ;;
14646         esac
14647         case `$CC -V 2>&1 | sed 5q` in
14648         *Sun\ C*)                       # Sun C 5.9
14649           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'
14650           tmp_sharedflag='-G' ;;
14651         *Sun\ F*)                       # Sun Fortran 8.3
14652           tmp_sharedflag='-G' ;;
14653         *)
14654           tmp_sharedflag='-shared' ;;
14655         esac
14656         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657
14658         if test $supports_anon_versioning = yes; then
14659           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14660   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14661   $echo "local: *; };" >> $output_objdir/$libname.ver~
14662           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14663         fi
14664         link_all_deplibs=no
14665       else
14666         ld_shlibs=no
14667       fi
14668       ;;
14669
14670     netbsd* | netbsdelf*-gnu)
14671       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14672         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14673         wlarc=
14674       else
14675         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14676         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14677       fi
14678       ;;
14679
14680     solaris*)
14681       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14682         ld_shlibs=no
14683         cat <<EOF 1>&2
14684
14685 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14686 *** create shared libraries on Solaris systems.  Therefore, libtool
14687 *** is disabling shared libraries support.  We urge you to upgrade GNU
14688 *** binutils to release 2.9.1 or newer.  Another option is to modify
14689 *** your PATH or compiler configuration so that the native linker is
14690 *** used, and then restart.
14691
14692 EOF
14693       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14694         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14695         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14696       else
14697         ld_shlibs=no
14698       fi
14699       ;;
14700
14701     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14702       case `$LD -v 2>&1` in
14703         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14704         ld_shlibs=no
14705         cat <<_LT_EOF 1>&2
14706
14707 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14708 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14709 *** is disabling shared libraries support.  We urge you to upgrade GNU
14710 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14711 *** your PATH or compiler configuration so that the native linker is
14712 *** used, and then restart.
14713
14714 _LT_EOF
14715         ;;
14716         *)
14717           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14718             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14719             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14720             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14721           else
14722             ld_shlibs=no
14723           fi
14724         ;;
14725       esac
14726       ;;
14727
14728     sunos4*)
14729       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14730       wlarc=
14731       hardcode_direct=yes
14732       hardcode_shlibpath_var=no
14733       ;;
14734
14735     *)
14736       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14737         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14738         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14739       else
14740         ld_shlibs=no
14741       fi
14742       ;;
14743     esac
14744
14745     if test "$ld_shlibs" = no; then
14746       runpath_var=
14747       hardcode_libdir_flag_spec=
14748       export_dynamic_flag_spec=
14749       whole_archive_flag_spec=
14750     fi
14751   else
14752     # PORTME fill in a description of your system's linker (not GNU ld)
14753     case $host_os in
14754     aix3*)
14755       allow_undefined_flag=unsupported
14756       always_export_symbols=yes
14757       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'
14758       # Note: this linker hardcodes the directories in LIBPATH if there
14759       # are no directories specified by -L.
14760       hardcode_minus_L=yes
14761       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14762         # Neither direct hardcoding nor static linking is supported with a
14763         # broken collect2.
14764         hardcode_direct=unsupported
14765       fi
14766       ;;
14767
14768     aix[4-9]*)
14769       if test "$host_cpu" = ia64; then
14770         # On IA64, the linker does run time linking by default, so we don't
14771         # have to do anything special.
14772         aix_use_runtimelinking=no
14773         exp_sym_flag='-Bexport'
14774         no_entry_flag=""
14775       else
14776         # If we're using GNU nm, then we don't want the "-C" option.
14777         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14778         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14779           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'
14780         else
14781           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'
14782         fi
14783         aix_use_runtimelinking=no
14784
14785         # Test if we are trying to use run time linking or normal
14786         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14787         # need to do runtime linking.
14788         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14789           for ld_flag in $LDFLAGS; do
14790           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14791             aix_use_runtimelinking=yes
14792             break
14793           fi
14794           done
14795           ;;
14796         esac
14797
14798         exp_sym_flag='-bexport'
14799         no_entry_flag='-bnoentry'
14800       fi
14801
14802       # When large executables or shared objects are built, AIX ld can
14803       # have problems creating the table of contents.  If linking a library
14804       # or program results in "error TOC overflow" add -mminimal-toc to
14805       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14806       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14807
14808       archive_cmds=''
14809       hardcode_direct=yes
14810       hardcode_libdir_separator=':'
14811       link_all_deplibs=yes
14812
14813       if test "$GCC" = yes; then
14814         case $host_os in aix4.[012]|aix4.[012].*)
14815         # We only want to do this on AIX 4.2 and lower, the check
14816         # below for broken collect2 doesn't work under 4.3+
14817           collect2name=`${CC} -print-prog-name=collect2`
14818           if test -f "$collect2name" && \
14819            strings "$collect2name" | grep resolve_lib_name >/dev/null
14820           then
14821           # We have reworked collect2
14822           :
14823           else
14824           # We have old collect2
14825           hardcode_direct=unsupported
14826           # It fails to find uninstalled libraries when the uninstalled
14827           # path is not listed in the libpath.  Setting hardcode_minus_L
14828           # to unsupported forces relinking
14829           hardcode_minus_L=yes
14830           hardcode_libdir_flag_spec='-L$libdir'
14831           hardcode_libdir_separator=
14832           fi
14833           ;;
14834         esac
14835         shared_flag='-shared'
14836         if test "$aix_use_runtimelinking" = yes; then
14837           shared_flag="$shared_flag "'${wl}-G'
14838         fi
14839       else
14840         # not using gcc
14841         if test "$host_cpu" = ia64; then
14842         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14843         # chokes on -Wl,-G. The following line is correct:
14844           shared_flag='-G'
14845         else
14846           if test "$aix_use_runtimelinking" = yes; then
14847             shared_flag='${wl}-G'
14848           else
14849             shared_flag='${wl}-bM:SRE'
14850           fi
14851         fi
14852       fi
14853
14854       # It seems that -bexpall does not export symbols beginning with
14855       # underscore (_), so it is better to generate a list of symbols to export.
14856       always_export_symbols=yes
14857       if test "$aix_use_runtimelinking" = yes; then
14858         # Warning - without using the other runtime loading flags (-brtl),
14859         # -berok will link without error, but may produce a broken library.
14860         allow_undefined_flag='-berok'
14861        # Determine the default libpath from the value encoded in an empty executable.
14862        cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h.  */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h.  */
14868
14869 int
14870 main ()
14871 {
14872
14873   ;
14874   return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext conftest$ac_exeext
14878 if { (ac_try="$ac_link"
14879 case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_link") 2>conftest.er1
14885   ac_status=$?
14886   grep -v '^ *+' conftest.er1 >conftest.err
14887   rm -f conftest.er1
14888   cat conftest.err >&5
14889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890   (exit $ac_status); } && {
14891          test -z "$ac_c_werror_flag" ||
14892          test ! -s conftest.err
14893        } && test -s conftest$ac_exeext &&
14894        $as_test_x conftest$ac_exeext; then
14895
14896 lt_aix_libpath_sed='
14897     /Import File Strings/,/^$/ {
14898         /^0/ {
14899             s/^0  *\(.*\)$/\1/
14900             p
14901         }
14902     }'
14903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14904 # Check for a 64-bit object if we didn't find anything.
14905 if test -z "$aix_libpath"; then
14906   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14907 fi
14908 else
14909   echo "$as_me: failed program was:" >&5
14910 sed 's/^/| /' conftest.$ac_ext >&5
14911
14912
14913 fi
14914
14915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14916       conftest$ac_exeext conftest.$ac_ext
14917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14918
14919        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14920         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"
14921        else
14922         if test "$host_cpu" = ia64; then
14923           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14924           allow_undefined_flag="-z nodefs"
14925           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"
14926         else
14927          # Determine the default libpath from the value encoded in an empty executable.
14928          cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934
14935 int
14936 main ()
14937 {
14938
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 rm -f conftest.$ac_objext conftest$ac_exeext
14944 if { (ac_try="$ac_link"
14945 case "(($ac_try" in
14946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947   *) ac_try_echo=$ac_try;;
14948 esac
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950   (eval "$ac_link") 2>conftest.er1
14951   ac_status=$?
14952   grep -v '^ *+' conftest.er1 >conftest.err
14953   rm -f conftest.er1
14954   cat conftest.err >&5
14955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956   (exit $ac_status); } && {
14957          test -z "$ac_c_werror_flag" ||
14958          test ! -s conftest.err
14959        } && test -s conftest$ac_exeext &&
14960        $as_test_x conftest$ac_exeext; then
14961
14962 lt_aix_libpath_sed='
14963     /Import File Strings/,/^$/ {
14964         /^0/ {
14965             s/^0  *\(.*\)$/\1/
14966             p
14967         }
14968     }'
14969 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14970 # Check for a 64-bit object if we didn't find anything.
14971 if test -z "$aix_libpath"; then
14972   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14973 fi
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978
14979 fi
14980
14981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14982       conftest$ac_exeext conftest.$ac_ext
14983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14984
14985          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14986           # Warning - without using the other run time loading flags,
14987           # -berok will link without error, but may produce a broken library.
14988           no_undefined_flag=' ${wl}-bernotok'
14989           allow_undefined_flag=' ${wl}-berok'
14990           # Exported symbols can be pulled into shared objects from archives
14991           whole_archive_flag_spec='$convenience'
14992           archive_cmds_need_lc=yes
14993           # This is similar to how AIX traditionally builds its shared libraries.
14994           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'
14995         fi
14996       fi
14997       ;;
14998
14999     amigaos*)
15000       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)'
15001       hardcode_libdir_flag_spec='-L$libdir'
15002       hardcode_minus_L=yes
15003       # see comment about different semantics on the GNU ld section
15004       ld_shlibs=no
15005       ;;
15006
15007     bsdi[45]*)
15008       export_dynamic_flag_spec=-rdynamic
15009       ;;
15010
15011     cygwin* | mingw* | pw32*)
15012       # When not using gcc, we currently assume that we are using
15013       # Microsoft Visual C++.
15014       # hardcode_libdir_flag_spec is actually meaningless, as there is
15015       # no search path for DLLs.
15016       hardcode_libdir_flag_spec=' '
15017       allow_undefined_flag=unsupported
15018       # Tell ltmain to make .lib files, not .a files.
15019       libext=lib
15020       # Tell ltmain to make .dll files, not .so files.
15021       shrext_cmds=".dll"
15022       # FIXME: Setting linknames here is a bad hack.
15023       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15024       # The linker will automatically build a .lib file if we build a DLL.
15025       old_archive_From_new_cmds='true'
15026       # FIXME: Should let the user specify the lib program.
15027       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15028       fix_srcfile_path='`cygpath -w "$srcfile"`'
15029       enable_shared_with_static_runtimes=yes
15030       ;;
15031
15032     darwin* | rhapsody*)
15033       case $host_os in
15034         rhapsody* | darwin1.[012])
15035          allow_undefined_flag='${wl}-undefined ${wl}suppress'
15036          ;;
15037        *) # Darwin 1.3 on
15038          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15039            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15040          else
15041            case ${MACOSX_DEPLOYMENT_TARGET} in
15042              10.[012])
15043                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15044                ;;
15045              10.*)
15046                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15047                ;;
15048            esac
15049          fi
15050          ;;
15051       esac
15052       archive_cmds_need_lc=no
15053       hardcode_direct=no
15054       hardcode_automatic=yes
15055       hardcode_shlibpath_var=unsupported
15056       whole_archive_flag_spec=''
15057       link_all_deplibs=yes
15058     if test "$GCC" = yes ; then
15059         output_verbose_link_cmd='echo'
15060         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15061         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15062         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}"
15063         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}"
15064     else
15065       case $cc_basename in
15066         xlc*)
15067          output_verbose_link_cmd='echo'
15068          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15069          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15070           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15071          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}'
15072           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}'
15073           ;;
15074        *)
15075          ld_shlibs=no
15076           ;;
15077       esac
15078     fi
15079       ;;
15080
15081     dgux*)
15082       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15083       hardcode_libdir_flag_spec='-L$libdir'
15084       hardcode_shlibpath_var=no
15085       ;;
15086
15087     freebsd1*)
15088       ld_shlibs=no
15089       ;;
15090
15091     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15092     # support.  Future versions do this automatically, but an explicit c++rt0.o
15093     # does not break anything, and helps significantly (at the cost of a little
15094     # extra space).
15095     freebsd2.2*)
15096       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15097       hardcode_libdir_flag_spec='-R$libdir'
15098       hardcode_direct=yes
15099       hardcode_shlibpath_var=no
15100       ;;
15101
15102     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15103     freebsd2*)
15104       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15105       hardcode_direct=yes
15106       hardcode_minus_L=yes
15107       hardcode_shlibpath_var=no
15108       ;;
15109
15110     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15111     freebsd* | dragonfly*)
15112       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15113       hardcode_libdir_flag_spec='-R$libdir'
15114       hardcode_direct=yes
15115       hardcode_shlibpath_var=no
15116       ;;
15117
15118     hpux9*)
15119       if test "$GCC" = yes; then
15120         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'
15121       else
15122         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'
15123       fi
15124       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15125       hardcode_libdir_separator=:
15126       hardcode_direct=yes
15127
15128       # hardcode_minus_L: Not really in the search PATH,
15129       # but as the default location of the library.
15130       hardcode_minus_L=yes
15131       export_dynamic_flag_spec='${wl}-E'
15132       ;;
15133
15134     hpux10*)
15135       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15136         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15137       else
15138         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15139       fi
15140       if test "$with_gnu_ld" = no; then
15141         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15142         hardcode_libdir_separator=:
15143
15144         hardcode_direct=yes
15145         export_dynamic_flag_spec='${wl}-E'
15146
15147         # hardcode_minus_L: Not really in the search PATH,
15148         # but as the default location of the library.
15149         hardcode_minus_L=yes
15150       fi
15151       ;;
15152
15153     hpux11*)
15154       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15155         case $host_cpu in
15156         hppa*64*)
15157           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15158           ;;
15159         ia64*)
15160           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15161           ;;
15162         *)
15163           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15164           ;;
15165         esac
15166       else
15167         case $host_cpu in
15168         hppa*64*)
15169           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15170           ;;
15171         ia64*)
15172           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15173           ;;
15174         *)
15175           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15176           ;;
15177         esac
15178       fi
15179       if test "$with_gnu_ld" = no; then
15180         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15181         hardcode_libdir_separator=:
15182
15183         case $host_cpu in
15184         hppa*64*|ia64*)
15185           hardcode_libdir_flag_spec_ld='+b $libdir'
15186           hardcode_direct=no
15187           hardcode_shlibpath_var=no
15188           ;;
15189         *)
15190           hardcode_direct=yes
15191           export_dynamic_flag_spec='${wl}-E'
15192
15193           # hardcode_minus_L: Not really in the search PATH,
15194           # but as the default location of the library.
15195           hardcode_minus_L=yes
15196           ;;
15197         esac
15198       fi
15199       ;;
15200
15201     irix5* | irix6* | nonstopux*)
15202       if test "$GCC" = yes; then
15203         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'
15204       else
15205         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'
15206         hardcode_libdir_flag_spec_ld='-rpath $libdir'
15207       fi
15208       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15209       hardcode_libdir_separator=:
15210       link_all_deplibs=yes
15211       ;;
15212
15213     netbsd* | netbsdelf*-gnu)
15214       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15215         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15216       else
15217         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15218       fi
15219       hardcode_libdir_flag_spec='-R$libdir'
15220       hardcode_direct=yes
15221       hardcode_shlibpath_var=no
15222       ;;
15223
15224     newsos6)
15225       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15226       hardcode_direct=yes
15227       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15228       hardcode_libdir_separator=:
15229       hardcode_shlibpath_var=no
15230       ;;
15231
15232     openbsd*)
15233       if test -f /usr/libexec/ld.so; then
15234         hardcode_direct=yes
15235         hardcode_shlibpath_var=no
15236         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15237           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15238           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15239           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15240           export_dynamic_flag_spec='${wl}-E'
15241         else
15242           case $host_os in
15243            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15244              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15245              hardcode_libdir_flag_spec='-R$libdir'
15246              ;;
15247            *)
15248              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15249              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15250              ;;
15251           esac
15252         fi
15253       else
15254         ld_shlibs=no
15255       fi
15256       ;;
15257
15258     os2*)
15259       hardcode_libdir_flag_spec='-L$libdir'
15260       hardcode_minus_L=yes
15261       allow_undefined_flag=unsupported
15262       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'
15263       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15264       ;;
15265
15266     osf3*)
15267       if test "$GCC" = yes; then
15268         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15269         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'
15270       else
15271         allow_undefined_flag=' -expect_unresolved \*'
15272         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'
15273       fi
15274       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15275       hardcode_libdir_separator=:
15276       ;;
15277
15278     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15279       if test "$GCC" = yes; then
15280         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15281         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'
15282         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15283       else
15284         allow_undefined_flag=' -expect_unresolved \*'
15285         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'
15286         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15287         $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'
15288
15289         # Both c and cxx compiler support -rpath directly
15290         hardcode_libdir_flag_spec='-rpath $libdir'
15291       fi
15292       hardcode_libdir_separator=:
15293       ;;
15294
15295     solaris*)
15296       no_undefined_flag=' -z text'
15297       if test "$GCC" = yes; then
15298         wlarc='${wl}'
15299         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15300         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15301           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15302       else
15303         wlarc=''
15304         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15305         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15306         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15307       fi
15308       hardcode_libdir_flag_spec='-R$libdir'
15309       hardcode_shlibpath_var=no
15310       case $host_os in
15311       solaris2.[0-5] | solaris2.[0-5].*) ;;
15312       *)
15313         # The compiler driver will combine and reorder linker options,
15314         # but understands `-z linker_flag'.  GCC discards it without `$wl',
15315         # but is careful enough not to reorder.
15316         # Supported since Solaris 2.6 (maybe 2.5.1?)
15317         if test "$GCC" = yes; then
15318           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15319         else
15320           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15321         fi
15322         ;;
15323       esac
15324       link_all_deplibs=yes
15325       ;;
15326
15327     sunos4*)
15328       if test "x$host_vendor" = xsequent; then
15329         # Use $CC to link under sequent, because it throws in some extra .o
15330         # files that make .init and .fini sections work.
15331         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15332       else
15333         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15334       fi
15335       hardcode_libdir_flag_spec='-L$libdir'
15336       hardcode_direct=yes
15337       hardcode_minus_L=yes
15338       hardcode_shlibpath_var=no
15339       ;;
15340
15341     sysv4)
15342       case $host_vendor in
15343         sni)
15344           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15345           hardcode_direct=yes # is this really true???
15346         ;;
15347         siemens)
15348           ## LD is ld it makes a PLAMLIB
15349           ## CC just makes a GrossModule.
15350           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15351           reload_cmds='$CC -r -o $output$reload_objs'
15352           hardcode_direct=no
15353         ;;
15354         motorola)
15355           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15356           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15357         ;;
15358       esac
15359       runpath_var='LD_RUN_PATH'
15360       hardcode_shlibpath_var=no
15361       ;;
15362
15363     sysv4.3*)
15364       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15365       hardcode_shlibpath_var=no
15366       export_dynamic_flag_spec='-Bexport'
15367       ;;
15368
15369     sysv4*MP*)
15370       if test -d /usr/nec; then
15371         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15372         hardcode_shlibpath_var=no
15373         runpath_var=LD_RUN_PATH
15374         hardcode_runpath_var=yes
15375         ld_shlibs=yes
15376       fi
15377       ;;
15378
15379     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15380       no_undefined_flag='${wl}-z,text'
15381       archive_cmds_need_lc=no
15382       hardcode_shlibpath_var=no
15383       runpath_var='LD_RUN_PATH'
15384
15385       if test "$GCC" = yes; then
15386         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15387         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15388       else
15389         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15390         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15391       fi
15392       ;;
15393
15394     sysv5* | sco3.2v5* | sco5v6*)
15395       # Note: We can NOT use -z defs as we might desire, because we do not
15396       # link with -lc, and that would cause any symbols used from libc to
15397       # always be unresolved, which means just about no library would
15398       # ever link correctly.  If we're not using GNU ld we use -z text
15399       # though, which does catch some bad symbols but isn't as heavy-handed
15400       # as -z defs.
15401       no_undefined_flag='${wl}-z,text'
15402       allow_undefined_flag='${wl}-z,nodefs'
15403       archive_cmds_need_lc=no
15404       hardcode_shlibpath_var=no
15405       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15406       hardcode_libdir_separator=':'
15407       link_all_deplibs=yes
15408       export_dynamic_flag_spec='${wl}-Bexport'
15409       runpath_var='LD_RUN_PATH'
15410
15411       if test "$GCC" = yes; then
15412         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15413         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15414       else
15415         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15416         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15417       fi
15418       ;;
15419
15420     uts4*)
15421       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15422       hardcode_libdir_flag_spec='-L$libdir'
15423       hardcode_shlibpath_var=no
15424       ;;
15425
15426     *)
15427       ld_shlibs=no
15428       ;;
15429     esac
15430   fi
15431
15432 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15433 echo "${ECHO_T}$ld_shlibs" >&6; }
15434 test "$ld_shlibs" = no && can_build_shared=no
15435
15436 #
15437 # Do we need to explicitly link libc?
15438 #
15439 case "x$archive_cmds_need_lc" in
15440 x|xyes)
15441   # Assume -lc should be added
15442   archive_cmds_need_lc=yes
15443
15444   if test "$enable_shared" = yes && test "$GCC" = yes; then
15445     case $archive_cmds in
15446     *'~'*)
15447       # FIXME: we may have to deal with multi-command sequences.
15448       ;;
15449     '$CC '*)
15450       # Test whether the compiler implicitly links with -lc since on some
15451       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15452       # to ld, don't add -lc before -lgcc.
15453       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15454 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15455       $rm conftest*
15456       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15457
15458       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459   (eval $ac_compile) 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); } 2>conftest.err; then
15463         soname=conftest
15464         lib=conftest
15465         libobjs=conftest.$ac_objext
15466         deplibs=
15467         wl=$lt_prog_compiler_wl
15468         pic_flag=$lt_prog_compiler_pic
15469         compiler_flags=-v
15470         linker_flags=-v
15471         verstring=
15472         output_objdir=.
15473         libname=conftest
15474         lt_save_allow_undefined_flag=$allow_undefined_flag
15475         allow_undefined_flag=
15476         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15477   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }
15481         then
15482           archive_cmds_need_lc=no
15483         else
15484           archive_cmds_need_lc=yes
15485         fi
15486         allow_undefined_flag=$lt_save_allow_undefined_flag
15487       else
15488         cat conftest.err 1>&5
15489       fi
15490       $rm conftest*
15491       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15492 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15493       ;;
15494     esac
15495   fi
15496   ;;
15497 esac
15498
15499 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15500 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15501 library_names_spec=
15502 libname_spec='lib$name'
15503 soname_spec=
15504 shrext_cmds=".so"
15505 postinstall_cmds=
15506 postuninstall_cmds=
15507 finish_cmds=
15508 finish_eval=
15509 shlibpath_var=
15510 shlibpath_overrides_runpath=unknown
15511 version_type=none
15512 dynamic_linker="$host_os ld.so"
15513 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15514
15515 if test "$GCC" = yes; then
15516   case $host_os in
15517     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15518     *) lt_awk_arg="/^libraries:/" ;;
15519   esac
15520   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15521   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
15522     # if the path contains ";" then we assume it to be the separator
15523     # otherwise default to the standard path separator (i.e. ":") - it is
15524     # assumed that no part of a normal pathname contains ";" but that should
15525     # okay in the real world where ";" in dirpaths is itself problematic.
15526     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15527   else
15528     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15529   fi
15530   # Ok, now we have the path, separated by spaces, we can step through it
15531   # and add multilib dir if necessary.
15532   lt_tmp_lt_search_path_spec=
15533   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15534   for lt_sys_path in $lt_search_path_spec; do
15535     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15536       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15537     else
15538       test -d "$lt_sys_path" && \
15539         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15540     fi
15541   done
15542   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
15543 BEGIN {RS=" "; FS="/|\n";} {
15544   lt_foo="";
15545   lt_count=0;
15546   for (lt_i = NF; lt_i > 0; lt_i--) {
15547     if ($lt_i != "" && $lt_i != ".") {
15548       if ($lt_i == "..") {
15549         lt_count++;
15550       } else {
15551         if (lt_count == 0) {
15552           lt_foo="/" $lt_i lt_foo;
15553         } else {
15554           lt_count--;
15555         }
15556       }
15557     }
15558   }
15559   if (lt_foo != "") { lt_freq[lt_foo]++; }
15560   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15561 }'`
15562   sys_lib_search_path_spec=`echo $lt_search_path_spec`
15563 else
15564   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15565 fi
15566 need_lib_prefix=unknown
15567 hardcode_into_libs=no
15568
15569 # when you set need_version to no, make sure it does not cause -set_version
15570 # flags to be left without arguments
15571 need_version=unknown
15572
15573 case $host_os in
15574 aix3*)
15575   version_type=linux
15576   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15577   shlibpath_var=LIBPATH
15578
15579   # AIX 3 has no versioning support, so we append a major version to the name.
15580   soname_spec='${libname}${release}${shared_ext}$major'
15581   ;;
15582
15583 aix[4-9]*)
15584   version_type=linux
15585   need_lib_prefix=no
15586   need_version=no
15587   hardcode_into_libs=yes
15588   if test "$host_cpu" = ia64; then
15589     # AIX 5 supports IA64
15590     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15591     shlibpath_var=LD_LIBRARY_PATH
15592   else
15593     # With GCC up to 2.95.x, collect2 would create an import file
15594     # for dependence libraries.  The import file would start with
15595     # the line `#! .'.  This would cause the generated library to
15596     # depend on `.', always an invalid library.  This was fixed in
15597     # development snapshots of GCC prior to 3.0.
15598     case $host_os in
15599       aix4 | aix4.[01] | aix4.[01].*)
15600       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15601            echo ' yes '
15602            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15603         :
15604       else
15605         can_build_shared=no
15606       fi
15607       ;;
15608     esac
15609     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15610     # soname into executable. Probably we can add versioning support to
15611     # collect2, so additional links can be useful in future.
15612     if test "$aix_use_runtimelinking" = yes; then
15613       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15614       # instead of lib<name>.a to let people know that these are not
15615       # typical AIX shared libraries.
15616       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617     else
15618       # We preserve .a as extension for shared libraries through AIX4.2
15619       # and later when we are not doing run time linking.
15620       library_names_spec='${libname}${release}.a $libname.a'
15621       soname_spec='${libname}${release}${shared_ext}$major'
15622     fi
15623     shlibpath_var=LIBPATH
15624   fi
15625   ;;
15626
15627 amigaos*)
15628   library_names_spec='$libname.ixlibrary $libname.a'
15629   # Create ${libname}_ixlibrary.a entries in /sys/libs.
15630   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'
15631   ;;
15632
15633 beos*)
15634   library_names_spec='${libname}${shared_ext}'
15635   dynamic_linker="$host_os ld.so"
15636   shlibpath_var=LIBRARY_PATH
15637   ;;
15638
15639 bsdi[45]*)
15640   version_type=linux
15641   need_version=no
15642   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643   soname_spec='${libname}${release}${shared_ext}$major'
15644   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15645   shlibpath_var=LD_LIBRARY_PATH
15646   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15647   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15648   # the default ld.so.conf also contains /usr/contrib/lib and
15649   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15650   # libtool to hard-code these into programs
15651   ;;
15652
15653 cygwin* | mingw* | pw32*)
15654   version_type=windows
15655   shrext_cmds=".dll"
15656   need_version=no
15657   need_lib_prefix=no
15658
15659   case $GCC,$host_os in
15660   yes,cygwin* | yes,mingw* | yes,pw32*)
15661     library_names_spec='$libname.dll.a'
15662     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15663     postinstall_cmds='base_file=`basename \${file}`~
15664       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15665       dldir=$destdir/`dirname \$dlpath`~
15666       test -d \$dldir || mkdir -p \$dldir~
15667       $install_prog $dir/$dlname \$dldir/$dlname~
15668       chmod a+x \$dldir/$dlname'
15669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15670       dlpath=$dir/\$dldll~
15671        $rm \$dlpath'
15672     shlibpath_overrides_runpath=yes
15673
15674     case $host_os in
15675     cygwin*)
15676       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15677       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15678       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15679       ;;
15680     mingw*)
15681       # MinGW DLLs use traditional 'lib' prefix
15682       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15683       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15684       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15685         # It is most probably a Windows format PATH printed by
15686         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15687         # path with ; separators, and with drive letters. We can handle the
15688         # drive letters (cygwin fileutils understands them), so leave them,
15689         # especially as we might pass files found there to a mingw objdump,
15690         # which wouldn't understand a cygwinified path. Ahh.
15691         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15692       else
15693         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15694       fi
15695       ;;
15696     pw32*)
15697       # pw32 DLLs use 'pw' prefix rather than 'lib'
15698       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15699       ;;
15700     esac
15701     ;;
15702
15703   *)
15704     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15705     ;;
15706   esac
15707   dynamic_linker='Win32 ld.exe'
15708   # FIXME: first we should search . and the directory the executable is in
15709   shlibpath_var=PATH
15710   ;;
15711
15712 darwin* | rhapsody*)
15713   dynamic_linker="$host_os dyld"
15714   version_type=darwin
15715   need_lib_prefix=no
15716   need_version=no
15717   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15718   soname_spec='${libname}${release}${major}$shared_ext'
15719   shlibpath_overrides_runpath=yes
15720   shlibpath_var=DYLD_LIBRARY_PATH
15721   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15722
15723   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15724   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15725   ;;
15726
15727 dgux*)
15728   version_type=linux
15729   need_lib_prefix=no
15730   need_version=no
15731   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15732   soname_spec='${libname}${release}${shared_ext}$major'
15733   shlibpath_var=LD_LIBRARY_PATH
15734   ;;
15735
15736 freebsd1*)
15737   dynamic_linker=no
15738   ;;
15739
15740 freebsd* | dragonfly*)
15741   # DragonFly does not have aout.  When/if they implement a new
15742   # versioning mechanism, adjust this.
15743   if test -x /usr/bin/objformat; then
15744     objformat=`/usr/bin/objformat`
15745   else
15746     case $host_os in
15747     freebsd[123]*) objformat=aout ;;
15748     *) objformat=elf ;;
15749     esac
15750   fi
15751   version_type=freebsd-$objformat
15752   case $version_type in
15753     freebsd-elf*)
15754       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15755       need_version=no
15756       need_lib_prefix=no
15757       ;;
15758     freebsd-*)
15759       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15760       need_version=yes
15761       ;;
15762   esac
15763   shlibpath_var=LD_LIBRARY_PATH
15764   case $host_os in
15765   freebsd2*)
15766     shlibpath_overrides_runpath=yes
15767     ;;
15768   freebsd3.[01]* | freebsdelf3.[01]*)
15769     shlibpath_overrides_runpath=yes
15770     hardcode_into_libs=yes
15771     ;;
15772   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15773   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15774     shlibpath_overrides_runpath=no
15775     hardcode_into_libs=yes
15776     ;;
15777   *) # from 4.6 on, and DragonFly
15778     shlibpath_overrides_runpath=yes
15779     hardcode_into_libs=yes
15780     ;;
15781   esac
15782   ;;
15783
15784 gnu*)
15785   version_type=linux
15786   need_lib_prefix=no
15787   need_version=no
15788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15789   soname_spec='${libname}${release}${shared_ext}$major'
15790   shlibpath_var=LD_LIBRARY_PATH
15791   hardcode_into_libs=yes
15792   ;;
15793
15794 hpux9* | hpux10* | hpux11*)
15795   # Give a soname corresponding to the major version so that dld.sl refuses to
15796   # link against other versions.
15797   version_type=sunos
15798   need_lib_prefix=no
15799   need_version=no
15800   case $host_cpu in
15801   ia64*)
15802     shrext_cmds='.so'
15803     hardcode_into_libs=yes
15804     dynamic_linker="$host_os dld.so"
15805     shlibpath_var=LD_LIBRARY_PATH
15806     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15807     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15808     soname_spec='${libname}${release}${shared_ext}$major'
15809     if test "X$HPUX_IA64_MODE" = X32; then
15810       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15811     else
15812       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15813     fi
15814     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15815     ;;
15816    hppa*64*)
15817      shrext_cmds='.sl'
15818      hardcode_into_libs=yes
15819      dynamic_linker="$host_os dld.sl"
15820      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15821      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15822      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15823      soname_spec='${libname}${release}${shared_ext}$major'
15824      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15825      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15826      ;;
15827    *)
15828     shrext_cmds='.sl'
15829     dynamic_linker="$host_os dld.sl"
15830     shlibpath_var=SHLIB_PATH
15831     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15833     soname_spec='${libname}${release}${shared_ext}$major'
15834     ;;
15835   esac
15836   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15837   postinstall_cmds='chmod 555 $lib'
15838   ;;
15839
15840 interix[3-9]*)
15841   version_type=linux
15842   need_lib_prefix=no
15843   need_version=no
15844   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15845   soname_spec='${libname}${release}${shared_ext}$major'
15846   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15847   shlibpath_var=LD_LIBRARY_PATH
15848   shlibpath_overrides_runpath=no
15849   hardcode_into_libs=yes
15850   ;;
15851
15852 irix5* | irix6* | nonstopux*)
15853   case $host_os in
15854     nonstopux*) version_type=nonstopux ;;
15855     *)
15856         if test "$lt_cv_prog_gnu_ld" = yes; then
15857                 version_type=linux
15858         else
15859                 version_type=irix
15860         fi ;;
15861   esac
15862   need_lib_prefix=no
15863   need_version=no
15864   soname_spec='${libname}${release}${shared_ext}$major'
15865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15866   case $host_os in
15867   irix5* | nonstopux*)
15868     libsuff= shlibsuff=
15869     ;;
15870   *)
15871     case $LD in # libtool.m4 will add one of these switches to LD
15872     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15873       libsuff= shlibsuff= libmagic=32-bit;;
15874     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15875       libsuff=32 shlibsuff=N32 libmagic=N32;;
15876     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15877       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15878     *) libsuff= shlibsuff= libmagic=never-match;;
15879     esac
15880     ;;
15881   esac
15882   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15883   shlibpath_overrides_runpath=no
15884   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15885   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15886   hardcode_into_libs=yes
15887   ;;
15888
15889 # No shared lib support for Linux oldld, aout, or coff.
15890 linux*oldld* | linux*aout* | linux*coff*)
15891   dynamic_linker=no
15892   ;;
15893
15894 # This must be Linux ELF.
15895 linux* | k*bsd*-gnu)
15896   version_type=linux
15897   need_lib_prefix=no
15898   need_version=no
15899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900   soname_spec='${libname}${release}${shared_ext}$major'
15901   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15902   shlibpath_var=LD_LIBRARY_PATH
15903   shlibpath_overrides_runpath=no
15904   # This implies no fast_install, which is unacceptable.
15905   # Some rework will be needed to allow for fast_install
15906   # before this can be enabled.
15907   hardcode_into_libs=yes
15908
15909   # Append ld.so.conf contents to the search path
15910   if test -f /etc/ld.so.conf; then
15911     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' ' '`
15912     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15913   fi
15914
15915   # We used to test for /lib/ld.so.1 and disable shared libraries on
15916   # powerpc, because MkLinux only supported shared libraries with the
15917   # GNU dynamic linker.  Since this was broken with cross compilers,
15918   # most powerpc-linux boxes support dynamic linking these days and
15919   # people can always --disable-shared, the test was removed, and we
15920   # assume the GNU/Linux dynamic linker is in use.
15921   dynamic_linker='GNU/Linux ld.so'
15922   ;;
15923
15924 netbsdelf*-gnu)
15925   version_type=linux
15926   need_lib_prefix=no
15927   need_version=no
15928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15929   soname_spec='${libname}${release}${shared_ext}$major'
15930   shlibpath_var=LD_LIBRARY_PATH
15931   shlibpath_overrides_runpath=no
15932   hardcode_into_libs=yes
15933   dynamic_linker='NetBSD ld.elf_so'
15934   ;;
15935
15936 netbsd*)
15937   version_type=sunos
15938   need_lib_prefix=no
15939   need_version=no
15940   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15942     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15943     dynamic_linker='NetBSD (a.out) ld.so'
15944   else
15945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15946     soname_spec='${libname}${release}${shared_ext}$major'
15947     dynamic_linker='NetBSD ld.elf_so'
15948   fi
15949   shlibpath_var=LD_LIBRARY_PATH
15950   shlibpath_overrides_runpath=yes
15951   hardcode_into_libs=yes
15952   ;;
15953
15954 newsos6)
15955   version_type=linux
15956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15957   shlibpath_var=LD_LIBRARY_PATH
15958   shlibpath_overrides_runpath=yes
15959   ;;
15960
15961 nto-qnx*)
15962   version_type=linux
15963   need_lib_prefix=no
15964   need_version=no
15965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15966   soname_spec='${libname}${release}${shared_ext}$major'
15967   shlibpath_var=LD_LIBRARY_PATH
15968   shlibpath_overrides_runpath=yes
15969   ;;
15970
15971 openbsd*)
15972   version_type=sunos
15973   sys_lib_dlsearch_path_spec="/usr/lib"
15974   need_lib_prefix=no
15975   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15976   case $host_os in
15977     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15978     *)                         need_version=no  ;;
15979   esac
15980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15981   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15982   shlibpath_var=LD_LIBRARY_PATH
15983   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15984     case $host_os in
15985       openbsd2.[89] | openbsd2.[89].*)
15986         shlibpath_overrides_runpath=no
15987         ;;
15988       *)
15989         shlibpath_overrides_runpath=yes
15990         ;;
15991       esac
15992   else
15993     shlibpath_overrides_runpath=yes
15994   fi
15995   ;;
15996
15997 os2*)
15998   libname_spec='$name'
15999   shrext_cmds=".dll"
16000   need_lib_prefix=no
16001   library_names_spec='$libname${shared_ext} $libname.a'
16002   dynamic_linker='OS/2 ld.exe'
16003   shlibpath_var=LIBPATH
16004   ;;
16005
16006 osf3* | osf4* | osf5*)
16007   version_type=osf
16008   need_lib_prefix=no
16009   need_version=no
16010   soname_spec='${libname}${release}${shared_ext}$major'
16011   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16012   shlibpath_var=LD_LIBRARY_PATH
16013   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16014   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16015   ;;
16016
16017 rdos*)
16018   dynamic_linker=no
16019   ;;
16020
16021 solaris*)
16022   version_type=linux
16023   need_lib_prefix=no
16024   need_version=no
16025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16026   soname_spec='${libname}${release}${shared_ext}$major'
16027   shlibpath_var=LD_LIBRARY_PATH
16028   shlibpath_overrides_runpath=yes
16029   hardcode_into_libs=yes
16030   # ldd complains unless libraries are executable
16031   postinstall_cmds='chmod +x $lib'
16032   ;;
16033
16034 sunos4*)
16035   version_type=sunos
16036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16037   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16038   shlibpath_var=LD_LIBRARY_PATH
16039   shlibpath_overrides_runpath=yes
16040   if test "$with_gnu_ld" = yes; then
16041     need_lib_prefix=no
16042   fi
16043   need_version=yes
16044   ;;
16045
16046 sysv4 | sysv4.3*)
16047   version_type=linux
16048   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16049   soname_spec='${libname}${release}${shared_ext}$major'
16050   shlibpath_var=LD_LIBRARY_PATH
16051   case $host_vendor in
16052     sni)
16053       shlibpath_overrides_runpath=no
16054       need_lib_prefix=no
16055       export_dynamic_flag_spec='${wl}-Blargedynsym'
16056       runpath_var=LD_RUN_PATH
16057       ;;
16058     siemens)
16059       need_lib_prefix=no
16060       ;;
16061     motorola)
16062       need_lib_prefix=no
16063       need_version=no
16064       shlibpath_overrides_runpath=no
16065       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16066       ;;
16067   esac
16068   ;;
16069
16070 sysv4*MP*)
16071   if test -d /usr/nec ;then
16072     version_type=linux
16073     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16074     soname_spec='$libname${shared_ext}.$major'
16075     shlibpath_var=LD_LIBRARY_PATH
16076   fi
16077   ;;
16078
16079 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16080   version_type=freebsd-elf
16081   need_lib_prefix=no
16082   need_version=no
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16084   soname_spec='${libname}${release}${shared_ext}$major'
16085   shlibpath_var=LD_LIBRARY_PATH
16086   hardcode_into_libs=yes
16087   if test "$with_gnu_ld" = yes; then
16088     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16089     shlibpath_overrides_runpath=no
16090   else
16091     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16092     shlibpath_overrides_runpath=yes
16093     case $host_os in
16094       sco3.2v5*)
16095         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16096         ;;
16097     esac
16098   fi
16099   sys_lib_dlsearch_path_spec='/usr/lib'
16100   ;;
16101
16102 uts4*)
16103   version_type=linux
16104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105   soname_spec='${libname}${release}${shared_ext}$major'
16106   shlibpath_var=LD_LIBRARY_PATH
16107   ;;
16108
16109 *)
16110   dynamic_linker=no
16111   ;;
16112 esac
16113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16114 echo "${ECHO_T}$dynamic_linker" >&6; }
16115 test "$dynamic_linker" = no && can_build_shared=no
16116
16117 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16118   echo $ECHO_N "(cached) $ECHO_C" >&6
16119 else
16120   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16121 fi
16122
16123 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16124 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16125   echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16128 fi
16129
16130 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16131
16132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16133 if test "$GCC" = yes; then
16134   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16135 fi
16136
16137 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16139 hardcode_action=
16140 if test -n "$hardcode_libdir_flag_spec" || \
16141    test -n "$runpath_var" || \
16142    test "X$hardcode_automatic" = "Xyes" ; then
16143
16144   # We can hardcode non-existant directories.
16145   if test "$hardcode_direct" != no &&
16146      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16147      # have to relink, otherwise we might link with an installed library
16148      # when we should be linking with a yet-to-be-installed one
16149      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16150      test "$hardcode_minus_L" != no; then
16151     # Linking always hardcodes the temporary library directory.
16152     hardcode_action=relink
16153   else
16154     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16155     hardcode_action=immediate
16156   fi
16157 else
16158   # We cannot hardcode anything, or else we can only hardcode existing
16159   # directories.
16160   hardcode_action=unsupported
16161 fi
16162 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
16163 echo "${ECHO_T}$hardcode_action" >&6; }
16164
16165 if test "$hardcode_action" = relink; then
16166   # Fast installation is not supported
16167   enable_fast_install=no
16168 elif test "$shlibpath_overrides_runpath" = yes ||
16169      test "$enable_shared" = no; then
16170   # Fast installation is not necessary
16171   enable_fast_install=needless
16172 fi
16173
16174 striplib=
16175 old_striplib=
16176 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16177 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16178 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16179   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16180   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16181   { echo "$as_me:$LINENO: result: yes" >&5
16182 echo "${ECHO_T}yes" >&6; }
16183 else
16184 # FIXME - insert some real tests, host_os isn't really good enough
16185   case $host_os in
16186    darwin*)
16187        if test -n "$STRIP" ; then
16188          striplib="$STRIP -x"
16189          old_striplib="$STRIP -S"
16190          { echo "$as_me:$LINENO: result: yes" >&5
16191 echo "${ECHO_T}yes" >&6; }
16192        else
16193   { echo "$as_me:$LINENO: result: no" >&5
16194 echo "${ECHO_T}no" >&6; }
16195 fi
16196        ;;
16197    *)
16198   { echo "$as_me:$LINENO: result: no" >&5
16199 echo "${ECHO_T}no" >&6; }
16200     ;;
16201   esac
16202 fi
16203
16204 if test "x$enable_dlopen" != xyes; then
16205   enable_dlopen=unknown
16206   enable_dlopen_self=unknown
16207   enable_dlopen_self_static=unknown
16208 else
16209   lt_cv_dlopen=no
16210   lt_cv_dlopen_libs=
16211
16212   case $host_os in
16213   beos*)
16214     lt_cv_dlopen="load_add_on"
16215     lt_cv_dlopen_libs=
16216     lt_cv_dlopen_self=yes
16217     ;;
16218
16219   mingw* | pw32*)
16220     lt_cv_dlopen="LoadLibrary"
16221     lt_cv_dlopen_libs=
16222    ;;
16223
16224   cygwin*)
16225     lt_cv_dlopen="dlopen"
16226     lt_cv_dlopen_libs=
16227    ;;
16228
16229   darwin*)
16230   # if libdl is installed we need to link against it
16231     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16232 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16233 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16234   echo $ECHO_N "(cached) $ECHO_C" >&6
16235 else
16236   ac_check_lib_save_LIBS=$LIBS
16237 LIBS="-ldl  $LIBS"
16238 cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h.  */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h.  */
16244
16245 /* Override any GCC internal prototype to avoid an error.
16246    Use char because int might match the return type of a GCC
16247    builtin and then its argument prototype would still apply.  */
16248 #ifdef __cplusplus
16249 extern "C"
16250 #endif
16251 char dlopen ();
16252 int
16253 main ()
16254 {
16255 return dlopen ();
16256   ;
16257   return 0;
16258 }
16259 _ACEOF
16260 rm -f conftest.$ac_objext conftest$ac_exeext
16261 if { (ac_try="$ac_link"
16262 case "(($ac_try" in
16263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264   *) ac_try_echo=$ac_try;;
16265 esac
16266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16267   (eval "$ac_link") 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } && {
16274          test -z "$ac_c_werror_flag" ||
16275          test ! -s conftest.err
16276        } && test -s conftest$ac_exeext &&
16277        $as_test_x conftest$ac_exeext; then
16278   ac_cv_lib_dl_dlopen=yes
16279 else
16280   echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16282
16283         ac_cv_lib_dl_dlopen=no
16284 fi
16285
16286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16287       conftest$ac_exeext conftest.$ac_ext
16288 LIBS=$ac_check_lib_save_LIBS
16289 fi
16290 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16291 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16292 if test $ac_cv_lib_dl_dlopen = yes; then
16293   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16294 else
16295
16296     lt_cv_dlopen="dyld"
16297     lt_cv_dlopen_libs=
16298     lt_cv_dlopen_self=yes
16299
16300 fi
16301
16302    ;;
16303
16304   *)
16305     { echo "$as_me:$LINENO: checking for shl_load" >&5
16306 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
16307 if test "${ac_cv_func_shl_load+set}" = set; then
16308   echo $ECHO_N "(cached) $ECHO_C" >&6
16309 else
16310   cat >conftest.$ac_ext <<_ACEOF
16311 /* confdefs.h.  */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h.  */
16316 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16318 #define shl_load innocuous_shl_load
16319
16320 /* System header to define __stub macros and hopefully few prototypes,
16321     which can conflict with char shl_load (); below.
16322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16323     <limits.h> exists even on freestanding compilers.  */
16324
16325 #ifdef __STDC__
16326 # include <limits.h>
16327 #else
16328 # include <assert.h>
16329 #endif
16330
16331 #undef shl_load
16332
16333 /* Override any GCC internal prototype to avoid an error.
16334    Use char because int might match the return type of a GCC
16335    builtin and then its argument prototype would still apply.  */
16336 #ifdef __cplusplus
16337 extern "C"
16338 #endif
16339 char shl_load ();
16340 /* The GNU C library defines this for functions which it implements
16341     to always fail with ENOSYS.  Some functions are actually named
16342     something starting with __ and the normal name is an alias.  */
16343 #if defined __stub_shl_load || defined __stub___shl_load
16344 choke me
16345 #endif
16346
16347 int
16348 main ()
16349 {
16350 return shl_load ();
16351   ;
16352   return 0;
16353 }
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359   *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362   (eval "$ac_link") 2>conftest.er1
16363   ac_status=$?
16364   grep -v '^ *+' conftest.er1 >conftest.err
16365   rm -f conftest.er1
16366   cat conftest.err >&5
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } && {
16369          test -z "$ac_c_werror_flag" ||
16370          test ! -s conftest.err
16371        } && test -s conftest$ac_exeext &&
16372        $as_test_x conftest$ac_exeext; then
16373   ac_cv_func_shl_load=yes
16374 else
16375   echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378         ac_cv_func_shl_load=no
16379 fi
16380
16381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16382       conftest$ac_exeext conftest.$ac_ext
16383 fi
16384 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16385 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
16386 if test $ac_cv_func_shl_load = yes; then
16387   lt_cv_dlopen="shl_load"
16388 else
16389   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16390 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
16391 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16392   echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394   ac_check_lib_save_LIBS=$LIBS
16395 LIBS="-ldld  $LIBS"
16396 cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402
16403 /* Override any GCC internal prototype to avoid an error.
16404    Use char because int might match the return type of a GCC
16405    builtin and then its argument prototype would still apply.  */
16406 #ifdef __cplusplus
16407 extern "C"
16408 #endif
16409 char shl_load ();
16410 int
16411 main ()
16412 {
16413 return shl_load ();
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 rm -f conftest.$ac_objext conftest$ac_exeext
16419 if { (ac_try="$ac_link"
16420 case "(($ac_try" in
16421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422   *) ac_try_echo=$ac_try;;
16423 esac
16424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16425   (eval "$ac_link") 2>conftest.er1
16426   ac_status=$?
16427   grep -v '^ *+' conftest.er1 >conftest.err
16428   rm -f conftest.er1
16429   cat conftest.err >&5
16430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } && {
16432          test -z "$ac_c_werror_flag" ||
16433          test ! -s conftest.err
16434        } && test -s conftest$ac_exeext &&
16435        $as_test_x conftest$ac_exeext; then
16436   ac_cv_lib_dld_shl_load=yes
16437 else
16438   echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441         ac_cv_lib_dld_shl_load=no
16442 fi
16443
16444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16445       conftest$ac_exeext conftest.$ac_ext
16446 LIBS=$ac_check_lib_save_LIBS
16447 fi
16448 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16449 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16450 if test $ac_cv_lib_dld_shl_load = yes; then
16451   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16452 else
16453   { echo "$as_me:$LINENO: checking for dlopen" >&5
16454 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16455 if test "${ac_cv_func_dlopen+set}" = set; then
16456   echo $ECHO_N "(cached) $ECHO_C" >&6
16457 else
16458   cat >conftest.$ac_ext <<_ACEOF
16459 /* confdefs.h.  */
16460 _ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h.  */
16464 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16466 #define dlopen innocuous_dlopen
16467
16468 /* System header to define __stub macros and hopefully few prototypes,
16469     which can conflict with char dlopen (); below.
16470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16471     <limits.h> exists even on freestanding compilers.  */
16472
16473 #ifdef __STDC__
16474 # include <limits.h>
16475 #else
16476 # include <assert.h>
16477 #endif
16478
16479 #undef dlopen
16480
16481 /* Override any GCC internal prototype to avoid an error.
16482    Use char because int might match the return type of a GCC
16483    builtin and then its argument prototype would still apply.  */
16484 #ifdef __cplusplus
16485 extern "C"
16486 #endif
16487 char dlopen ();
16488 /* The GNU C library defines this for functions which it implements
16489     to always fail with ENOSYS.  Some functions are actually named
16490     something starting with __ and the normal name is an alias.  */
16491 #if defined __stub_dlopen || defined __stub___dlopen
16492 choke me
16493 #endif
16494
16495 int
16496 main ()
16497 {
16498 return dlopen ();
16499   ;
16500   return 0;
16501 }
16502 _ACEOF
16503 rm -f conftest.$ac_objext conftest$ac_exeext
16504 if { (ac_try="$ac_link"
16505 case "(($ac_try" in
16506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507   *) ac_try_echo=$ac_try;;
16508 esac
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510   (eval "$ac_link") 2>conftest.er1
16511   ac_status=$?
16512   grep -v '^ *+' conftest.er1 >conftest.err
16513   rm -f conftest.er1
16514   cat conftest.err >&5
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); } && {
16517          test -z "$ac_c_werror_flag" ||
16518          test ! -s conftest.err
16519        } && test -s conftest$ac_exeext &&
16520        $as_test_x conftest$ac_exeext; then
16521   ac_cv_func_dlopen=yes
16522 else
16523   echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526         ac_cv_func_dlopen=no
16527 fi
16528
16529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16530       conftest$ac_exeext conftest.$ac_ext
16531 fi
16532 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16533 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16534 if test $ac_cv_func_dlopen = yes; then
16535   lt_cv_dlopen="dlopen"
16536 else
16537   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16540   echo $ECHO_N "(cached) $ECHO_C" >&6
16541 else
16542   ac_check_lib_save_LIBS=$LIBS
16543 LIBS="-ldl  $LIBS"
16544 cat >conftest.$ac_ext <<_ACEOF
16545 /* confdefs.h.  */
16546 _ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h.  */
16550
16551 /* Override any GCC internal prototype to avoid an error.
16552    Use char because int might match the return type of a GCC
16553    builtin and then its argument prototype would still apply.  */
16554 #ifdef __cplusplus
16555 extern "C"
16556 #endif
16557 char dlopen ();
16558 int
16559 main ()
16560 {
16561 return dlopen ();
16562   ;
16563   return 0;
16564 }
16565 _ACEOF
16566 rm -f conftest.$ac_objext conftest$ac_exeext
16567 if { (ac_try="$ac_link"
16568 case "(($ac_try" in
16569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570   *) ac_try_echo=$ac_try;;
16571 esac
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573   (eval "$ac_link") 2>conftest.er1
16574   ac_status=$?
16575   grep -v '^ *+' conftest.er1 >conftest.err
16576   rm -f conftest.er1
16577   cat conftest.err >&5
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); } && {
16580          test -z "$ac_c_werror_flag" ||
16581          test ! -s conftest.err
16582        } && test -s conftest$ac_exeext &&
16583        $as_test_x conftest$ac_exeext; then
16584   ac_cv_lib_dl_dlopen=yes
16585 else
16586   echo "$as_me: failed program was:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16588
16589         ac_cv_lib_dl_dlopen=no
16590 fi
16591
16592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16593       conftest$ac_exeext conftest.$ac_ext
16594 LIBS=$ac_check_lib_save_LIBS
16595 fi
16596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16598 if test $ac_cv_lib_dl_dlopen = yes; then
16599   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16600 else
16601   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16604   echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606   ac_check_lib_save_LIBS=$LIBS
16607 LIBS="-lsvld  $LIBS"
16608 cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h.  */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h.  */
16614
16615 /* Override any GCC internal prototype to avoid an error.
16616    Use char because int might match the return type of a GCC
16617    builtin and then its argument prototype would still apply.  */
16618 #ifdef __cplusplus
16619 extern "C"
16620 #endif
16621 char dlopen ();
16622 int
16623 main ()
16624 {
16625 return dlopen ();
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 rm -f conftest.$ac_objext conftest$ac_exeext
16631 if { (ac_try="$ac_link"
16632 case "(($ac_try" in
16633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16634   *) ac_try_echo=$ac_try;;
16635 esac
16636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16637   (eval "$ac_link") 2>conftest.er1
16638   ac_status=$?
16639   grep -v '^ *+' conftest.er1 >conftest.err
16640   rm -f conftest.er1
16641   cat conftest.err >&5
16642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643   (exit $ac_status); } && {
16644          test -z "$ac_c_werror_flag" ||
16645          test ! -s conftest.err
16646        } && test -s conftest$ac_exeext &&
16647        $as_test_x conftest$ac_exeext; then
16648   ac_cv_lib_svld_dlopen=yes
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653         ac_cv_lib_svld_dlopen=no
16654 fi
16655
16656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16657       conftest$ac_exeext conftest.$ac_ext
16658 LIBS=$ac_check_lib_save_LIBS
16659 fi
16660 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16661 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16662 if test $ac_cv_lib_svld_dlopen = yes; then
16663   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16664 else
16665   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16666 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16667 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   ac_check_lib_save_LIBS=$LIBS
16671 LIBS="-ldld  $LIBS"
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678
16679 /* Override any GCC internal prototype to avoid an error.
16680    Use char because int might match the return type of a GCC
16681    builtin and then its argument prototype would still apply.  */
16682 #ifdef __cplusplus
16683 extern "C"
16684 #endif
16685 char dld_link ();
16686 int
16687 main ()
16688 {
16689 return dld_link ();
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698   *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701   (eval "$ac_link") 2>conftest.er1
16702   ac_status=$?
16703   grep -v '^ *+' conftest.er1 >conftest.err
16704   rm -f conftest.er1
16705   cat conftest.err >&5
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } && {
16708          test -z "$ac_c_werror_flag" ||
16709          test ! -s conftest.err
16710        } && test -s conftest$ac_exeext &&
16711        $as_test_x conftest$ac_exeext; then
16712   ac_cv_lib_dld_dld_link=yes
16713 else
16714   echo "$as_me: failed program was:" >&5
16715 sed 's/^/| /' conftest.$ac_ext >&5
16716
16717         ac_cv_lib_dld_dld_link=no
16718 fi
16719
16720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16721       conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16723 fi
16724 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16725 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16726 if test $ac_cv_lib_dld_dld_link = yes; then
16727   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16728 fi
16729
16730
16731 fi
16732
16733
16734 fi
16735
16736
16737 fi
16738
16739
16740 fi
16741
16742
16743 fi
16744
16745     ;;
16746   esac
16747
16748   if test "x$lt_cv_dlopen" != xno; then
16749     enable_dlopen=yes
16750   else
16751     enable_dlopen=no
16752   fi
16753
16754   case $lt_cv_dlopen in
16755   dlopen)
16756     save_CPPFLAGS="$CPPFLAGS"
16757     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16758
16759     save_LDFLAGS="$LDFLAGS"
16760     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16761
16762     save_LIBS="$LIBS"
16763     LIBS="$lt_cv_dlopen_libs $LIBS"
16764
16765     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16766 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16767 if test "${lt_cv_dlopen_self+set}" = set; then
16768   echo $ECHO_N "(cached) $ECHO_C" >&6
16769 else
16770           if test "$cross_compiling" = yes; then :
16771   lt_cv_dlopen_self=cross
16772 else
16773   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16774   lt_status=$lt_dlunknown
16775   cat > conftest.$ac_ext <<EOF
16776 #line 16776 "configure"
16777 #include "confdefs.h"
16778
16779 #if HAVE_DLFCN_H
16780 #include <dlfcn.h>
16781 #endif
16782
16783 #include <stdio.h>
16784
16785 #ifdef RTLD_GLOBAL
16786 #  define LT_DLGLOBAL           RTLD_GLOBAL
16787 #else
16788 #  ifdef DL_GLOBAL
16789 #    define LT_DLGLOBAL         DL_GLOBAL
16790 #  else
16791 #    define LT_DLGLOBAL         0
16792 #  endif
16793 #endif
16794
16795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16796    find out it does not work in some platform. */
16797 #ifndef LT_DLLAZY_OR_NOW
16798 #  ifdef RTLD_LAZY
16799 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16800 #  else
16801 #    ifdef DL_LAZY
16802 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16803 #    else
16804 #      ifdef RTLD_NOW
16805 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16806 #      else
16807 #        ifdef DL_NOW
16808 #          define LT_DLLAZY_OR_NOW      DL_NOW
16809 #        else
16810 #          define LT_DLLAZY_OR_NOW      0
16811 #        endif
16812 #      endif
16813 #    endif
16814 #  endif
16815 #endif
16816
16817 #ifdef __cplusplus
16818 extern "C" void exit (int);
16819 #endif
16820
16821 void fnord() { int i=42;}
16822 int main ()
16823 {
16824   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16825   int status = $lt_dlunknown;
16826
16827   if (self)
16828     {
16829       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16830       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16831       /* dlclose (self); */
16832     }
16833   else
16834     puts (dlerror ());
16835
16836     exit (status);
16837 }
16838 EOF
16839   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16840   (eval $ac_link) 2>&5
16841   ac_status=$?
16842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16844     (./conftest; exit; ) >&5 2>/dev/null
16845     lt_status=$?
16846     case x$lt_status in
16847       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16848       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16849       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16850     esac
16851   else :
16852     # compilation failed
16853     lt_cv_dlopen_self=no
16854   fi
16855 fi
16856 rm -fr conftest*
16857
16858
16859 fi
16860 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16861 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16862
16863     if test "x$lt_cv_dlopen_self" = xyes; then
16864       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16865       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16866 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16867 if test "${lt_cv_dlopen_self_static+set}" = set; then
16868   echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870           if test "$cross_compiling" = yes; then :
16871   lt_cv_dlopen_self_static=cross
16872 else
16873   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16874   lt_status=$lt_dlunknown
16875   cat > conftest.$ac_ext <<EOF
16876 #line 16876 "configure"
16877 #include "confdefs.h"
16878
16879 #if HAVE_DLFCN_H
16880 #include <dlfcn.h>
16881 #endif
16882
16883 #include <stdio.h>
16884
16885 #ifdef RTLD_GLOBAL
16886 #  define LT_DLGLOBAL           RTLD_GLOBAL
16887 #else
16888 #  ifdef DL_GLOBAL
16889 #    define LT_DLGLOBAL         DL_GLOBAL
16890 #  else
16891 #    define LT_DLGLOBAL         0
16892 #  endif
16893 #endif
16894
16895 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16896    find out it does not work in some platform. */
16897 #ifndef LT_DLLAZY_OR_NOW
16898 #  ifdef RTLD_LAZY
16899 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16900 #  else
16901 #    ifdef DL_LAZY
16902 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16903 #    else
16904 #      ifdef RTLD_NOW
16905 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16906 #      else
16907 #        ifdef DL_NOW
16908 #          define LT_DLLAZY_OR_NOW      DL_NOW
16909 #        else
16910 #          define LT_DLLAZY_OR_NOW      0
16911 #        endif
16912 #      endif
16913 #    endif
16914 #  endif
16915 #endif
16916
16917 #ifdef __cplusplus
16918 extern "C" void exit (int);
16919 #endif
16920
16921 void fnord() { int i=42;}
16922 int main ()
16923 {
16924   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16925   int status = $lt_dlunknown;
16926
16927   if (self)
16928     {
16929       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16930       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16931       /* dlclose (self); */
16932     }
16933   else
16934     puts (dlerror ());
16935
16936     exit (status);
16937 }
16938 EOF
16939   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16940   (eval $ac_link) 2>&5
16941   ac_status=$?
16942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16944     (./conftest; exit; ) >&5 2>/dev/null
16945     lt_status=$?
16946     case x$lt_status in
16947       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16948       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16949       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16950     esac
16951   else :
16952     # compilation failed
16953     lt_cv_dlopen_self_static=no
16954   fi
16955 fi
16956 rm -fr conftest*
16957
16958
16959 fi
16960 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16961 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16962     fi
16963
16964     CPPFLAGS="$save_CPPFLAGS"
16965     LDFLAGS="$save_LDFLAGS"
16966     LIBS="$save_LIBS"
16967     ;;
16968   esac
16969
16970   case $lt_cv_dlopen_self in
16971   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16972   *) enable_dlopen_self=unknown ;;
16973   esac
16974
16975   case $lt_cv_dlopen_self_static in
16976   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16977   *) enable_dlopen_self_static=unknown ;;
16978   esac
16979 fi
16980
16981
16982 # Report which library types will actually be built
16983 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16984 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16985 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16986 echo "${ECHO_T}$can_build_shared" >&6; }
16987
16988 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16989 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16990 test "$can_build_shared" = "no" && enable_shared=no
16991
16992 # On AIX, shared libraries and static libraries use the same namespace, and
16993 # are all built from PIC.
16994 case $host_os in
16995 aix3*)
16996   test "$enable_shared" = yes && enable_static=no
16997   if test -n "$RANLIB"; then
16998     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16999     postinstall_cmds='$RANLIB $lib'
17000   fi
17001   ;;
17002
17003 aix[4-9]*)
17004   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17005     test "$enable_shared" = yes && enable_static=no
17006   fi
17007     ;;
17008 esac
17009 { echo "$as_me:$LINENO: result: $enable_shared" >&5
17010 echo "${ECHO_T}$enable_shared" >&6; }
17011
17012 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17013 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
17014 # Make sure either enable_shared or enable_static is yes.
17015 test "$enable_shared" = yes || enable_static=yes
17016 { echo "$as_me:$LINENO: result: $enable_static" >&5
17017 echo "${ECHO_T}$enable_static" >&6; }
17018
17019 # The else clause should only fire when bootstrapping the
17020 # libtool distribution, otherwise you forgot to ship ltmain.sh
17021 # with your package, and you will get complaints that there are
17022 # no rules to generate ltmain.sh.
17023 if test -f "$ltmain"; then
17024   # See if we are running on zsh, and set the options which allow our commands through
17025   # without removal of \ escapes.
17026   if test -n "${ZSH_VERSION+set}" ; then
17027     setopt NO_GLOB_SUBST
17028   fi
17029   # Now quote all the things that may contain metacharacters while being
17030   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17031   # variables and quote the copies for generation of the libtool script.
17032   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17033     SED SHELL STRIP \
17034     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17035     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17036     deplibs_check_method reload_flag reload_cmds need_locks \
17037     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17038     lt_cv_sys_global_symbol_to_c_name_address \
17039     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17040     old_postinstall_cmds old_postuninstall_cmds \
17041     compiler \
17042     CC \
17043     LD \
17044     lt_prog_compiler_wl \
17045     lt_prog_compiler_pic \
17046     lt_prog_compiler_static \
17047     lt_prog_compiler_no_builtin_flag \
17048     export_dynamic_flag_spec \
17049     thread_safe_flag_spec \
17050     whole_archive_flag_spec \
17051     enable_shared_with_static_runtimes \
17052     old_archive_cmds \
17053     old_archive_from_new_cmds \
17054     predep_objects \
17055     postdep_objects \
17056     predeps \
17057     postdeps \
17058     compiler_lib_search_path \
17059     compiler_lib_search_dirs \
17060     archive_cmds \
17061     archive_expsym_cmds \
17062     postinstall_cmds \
17063     postuninstall_cmds \
17064     old_archive_from_expsyms_cmds \
17065     allow_undefined_flag \
17066     no_undefined_flag \
17067     export_symbols_cmds \
17068     hardcode_libdir_flag_spec \
17069     hardcode_libdir_flag_spec_ld \
17070     hardcode_libdir_separator \
17071     hardcode_automatic \
17072     module_cmds \
17073     module_expsym_cmds \
17074     lt_cv_prog_compiler_c_o \
17075     fix_srcfile_path \
17076     exclude_expsyms \
17077     include_expsyms; do
17078
17079     case $var in
17080     old_archive_cmds | \
17081     old_archive_from_new_cmds | \
17082     archive_cmds | \
17083     archive_expsym_cmds | \
17084     module_cmds | \
17085     module_expsym_cmds | \
17086     old_archive_from_expsyms_cmds | \
17087     export_symbols_cmds | \
17088     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17089     postinstall_cmds | postuninstall_cmds | \
17090     old_postinstall_cmds | old_postuninstall_cmds | \
17091     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17092       # Double-quote double-evaled strings.
17093       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17094       ;;
17095     *)
17096       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17097       ;;
17098     esac
17099   done
17100
17101   case $lt_echo in
17102   *'\$0 --fallback-echo"')
17103     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17104     ;;
17105   esac
17106
17107 cfgfile="${ofile}T"
17108   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17109   $rm -f "$cfgfile"
17110   { echo "$as_me:$LINENO: creating $ofile" >&5
17111 echo "$as_me: creating $ofile" >&6;}
17112
17113   cat <<__EOF__ >> "$cfgfile"
17114 #! $SHELL
17115
17116 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17117 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17118 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17119 #
17120 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
17121 # Free Software Foundation, Inc.
17122 #
17123 # This file is part of GNU Libtool:
17124 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17125 #
17126 # This program is free software; you can redistribute it and/or modify
17127 # it under the terms of the GNU General Public License as published by
17128 # the Free Software Foundation; either version 2 of the License, or
17129 # (at your option) any later version.
17130 #
17131 # This program is distributed in the hope that it will be useful, but
17132 # WITHOUT ANY WARRANTY; without even the implied warranty of
17133 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17134 # General Public License for more details.
17135 #
17136 # You should have received a copy of the GNU General Public License
17137 # along with this program; if not, write to the Free Software
17138 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17139 #
17140 # As a special exception to the GNU General Public License, if you
17141 # distribute this file as part of a program that contains a
17142 # configuration script generated by Autoconf, you may include it under
17143 # the same distribution terms that you use for the rest of that program.
17144
17145 # A sed program that does not truncate output.
17146 SED=$lt_SED
17147
17148 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17149 Xsed="$SED -e 1s/^X//"
17150
17151 # The HP-UX ksh and POSIX shell print the target directory to stdout
17152 # if CDPATH is set.
17153 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17154
17155 # The names of the tagged configurations supported by this script.
17156 available_tags=
17157
17158 # ### BEGIN LIBTOOL CONFIG
17159
17160 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17161
17162 # Shell to use when invoking shell scripts.
17163 SHELL=$lt_SHELL
17164
17165 # Whether or not to build shared libraries.
17166 build_libtool_libs=$enable_shared
17167
17168 # Whether or not to build static libraries.
17169 build_old_libs=$enable_static
17170
17171 # Whether or not to add -lc for building shared libraries.
17172 build_libtool_need_lc=$archive_cmds_need_lc
17173
17174 # Whether or not to disallow shared libs when runtime libs are static
17175 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17176
17177 # Whether or not to optimize for fast installation.
17178 fast_install=$enable_fast_install
17179
17180 # The host system.
17181 host_alias=$host_alias
17182 host=$host
17183 host_os=$host_os
17184
17185 # The build system.
17186 build_alias=$build_alias
17187 build=$build
17188 build_os=$build_os
17189
17190 # An echo program that does not interpret backslashes.
17191 echo=$lt_echo
17192
17193 # The archiver.
17194 AR=$lt_AR
17195 AR_FLAGS=$lt_AR_FLAGS
17196
17197 # A C compiler.
17198 LTCC=$lt_LTCC
17199
17200 # LTCC compiler flags.
17201 LTCFLAGS=$lt_LTCFLAGS
17202
17203 # A language-specific compiler.
17204 CC=$lt_compiler
17205
17206 # Is the compiler the GNU C compiler?
17207 with_gcc=$GCC
17208
17209 # An ERE matcher.
17210 EGREP=$lt_EGREP
17211
17212 # The linker used to build libraries.
17213 LD=$lt_LD
17214
17215 # Whether we need hard or soft links.
17216 LN_S=$lt_LN_S
17217
17218 # A BSD-compatible nm program.
17219 NM=$lt_NM
17220
17221 # A symbol stripping program
17222 STRIP=$lt_STRIP
17223
17224 # Used to examine libraries when file_magic_cmd begins "file"
17225 MAGIC_CMD=$MAGIC_CMD
17226
17227 # Used on cygwin: DLL creation program.
17228 DLLTOOL="$DLLTOOL"
17229
17230 # Used on cygwin: object dumper.
17231 OBJDUMP="$OBJDUMP"
17232
17233 # Used on cygwin: assembler.
17234 AS="$AS"
17235
17236 # The name of the directory that contains temporary libtool files.
17237 objdir=$objdir
17238
17239 # How to create reloadable object files.
17240 reload_flag=$lt_reload_flag
17241 reload_cmds=$lt_reload_cmds
17242
17243 # How to pass a linker flag through the compiler.
17244 wl=$lt_lt_prog_compiler_wl
17245
17246 # Object file suffix (normally "o").
17247 objext="$ac_objext"
17248
17249 # Old archive suffix (normally "a").
17250 libext="$libext"
17251
17252 # Shared library suffix (normally ".so").
17253 shrext_cmds='$shrext_cmds'
17254
17255 # Executable file suffix (normally "").
17256 exeext="$exeext"
17257
17258 # Additional compiler flags for building library objects.
17259 pic_flag=$lt_lt_prog_compiler_pic
17260 pic_mode=$pic_mode
17261
17262 # What is the maximum length of a command?
17263 max_cmd_len=$lt_cv_sys_max_cmd_len
17264
17265 # Does compiler simultaneously support -c and -o options?
17266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17267
17268 # Must we lock files when doing compilation?
17269 need_locks=$lt_need_locks
17270
17271 # Do we need the lib prefix for modules?
17272 need_lib_prefix=$need_lib_prefix
17273
17274 # Do we need a version for libraries?
17275 need_version=$need_version
17276
17277 # Whether dlopen is supported.
17278 dlopen_support=$enable_dlopen
17279
17280 # Whether dlopen of programs is supported.
17281 dlopen_self=$enable_dlopen_self
17282
17283 # Whether dlopen of statically linked programs is supported.
17284 dlopen_self_static=$enable_dlopen_self_static
17285
17286 # Compiler flag to prevent dynamic linking.
17287 link_static_flag=$lt_lt_prog_compiler_static
17288
17289 # Compiler flag to turn off builtin functions.
17290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17291
17292 # Compiler flag to allow reflexive dlopens.
17293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17294
17295 # Compiler flag to generate shared objects directly from archives.
17296 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17297
17298 # Compiler flag to generate thread-safe objects.
17299 thread_safe_flag_spec=$lt_thread_safe_flag_spec
17300
17301 # Library versioning type.
17302 version_type=$version_type
17303
17304 # Format of library name prefix.
17305 libname_spec=$lt_libname_spec
17306
17307 # List of archive names.  First name is the real one, the rest are links.
17308 # The last name is the one that the linker finds with -lNAME.
17309 library_names_spec=$lt_library_names_spec
17310
17311 # The coded name of the library, if different from the real name.
17312 soname_spec=$lt_soname_spec
17313
17314 # Commands used to build and install an old-style archive.
17315 RANLIB=$lt_RANLIB
17316 old_archive_cmds=$lt_old_archive_cmds
17317 old_postinstall_cmds=$lt_old_postinstall_cmds
17318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17319
17320 # Create an old-style archive from a shared archive.
17321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17322
17323 # Create a temporary old-style archive to link instead of a shared archive.
17324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17325
17326 # Commands used to build and install a shared archive.
17327 archive_cmds=$lt_archive_cmds
17328 archive_expsym_cmds=$lt_archive_expsym_cmds
17329 postinstall_cmds=$lt_postinstall_cmds
17330 postuninstall_cmds=$lt_postuninstall_cmds
17331
17332 # Commands used to build a loadable module (assumed same as above if empty)
17333 module_cmds=$lt_module_cmds
17334 module_expsym_cmds=$lt_module_expsym_cmds
17335
17336 # Commands to strip libraries.
17337 old_striplib=$lt_old_striplib
17338 striplib=$lt_striplib
17339
17340 # Dependencies to place before the objects being linked to create a
17341 # shared library.
17342 predep_objects=$lt_predep_objects
17343
17344 # Dependencies to place after the objects being linked to create a
17345 # shared library.
17346 postdep_objects=$lt_postdep_objects
17347
17348 # Dependencies to place before the objects being linked to create a
17349 # shared library.
17350 predeps=$lt_predeps
17351
17352 # Dependencies to place after the objects being linked to create a
17353 # shared library.
17354 postdeps=$lt_postdeps
17355
17356 # The directories searched by this compiler when creating a shared
17357 # library
17358 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17359
17360 # The library search path used internally by the compiler when linking
17361 # a shared library.
17362 compiler_lib_search_path=$lt_compiler_lib_search_path
17363
17364 # Method to check whether dependent libraries are shared objects.
17365 deplibs_check_method=$lt_deplibs_check_method
17366
17367 # Command to use when deplibs_check_method == file_magic.
17368 file_magic_cmd=$lt_file_magic_cmd
17369
17370 # Flag that allows shared libraries with undefined symbols to be built.
17371 allow_undefined_flag=$lt_allow_undefined_flag
17372
17373 # Flag that forces no undefined symbols.
17374 no_undefined_flag=$lt_no_undefined_flag
17375
17376 # Commands used to finish a libtool library installation in a directory.
17377 finish_cmds=$lt_finish_cmds
17378
17379 # Same as above, but a single script fragment to be evaled but not shown.
17380 finish_eval=$lt_finish_eval
17381
17382 # Take the output of nm and produce a listing of raw symbols and C names.
17383 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17384
17385 # Transform the output of nm in a proper C declaration
17386 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17387
17388 # Transform the output of nm in a C name address pair
17389 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17390
17391 # This is the shared library runtime path variable.
17392 runpath_var=$runpath_var
17393
17394 # This is the shared library path variable.
17395 shlibpath_var=$shlibpath_var
17396
17397 # Is shlibpath searched before the hard-coded library search path?
17398 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17399
17400 # How to hardcode a shared library path into an executable.
17401 hardcode_action=$hardcode_action
17402
17403 # Whether we should hardcode library paths into libraries.
17404 hardcode_into_libs=$hardcode_into_libs
17405
17406 # Flag to hardcode \$libdir into a binary during linking.
17407 # This must work even if \$libdir does not exist.
17408 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17409
17410 # If ld is used when linking, flag to hardcode \$libdir into
17411 # a binary during linking. This must work even if \$libdir does
17412 # not exist.
17413 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17414
17415 # Whether we need a single -rpath flag with a separated argument.
17416 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17417
17418 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17419 # resulting binary.
17420 hardcode_direct=$hardcode_direct
17421
17422 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17423 # resulting binary.
17424 hardcode_minus_L=$hardcode_minus_L
17425
17426 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17427 # the resulting binary.
17428 hardcode_shlibpath_var=$hardcode_shlibpath_var
17429
17430 # Set to yes if building a shared library automatically hardcodes DIR into the library
17431 # and all subsequent libraries and executables linked against it.
17432 hardcode_automatic=$hardcode_automatic
17433
17434 # Variables whose values should be saved in libtool wrapper scripts and
17435 # restored at relink time.
17436 variables_saved_for_relink="$variables_saved_for_relink"
17437
17438 # Whether libtool must link a program against all its dependency libraries.
17439 link_all_deplibs=$link_all_deplibs
17440
17441 # Compile-time system search path for libraries
17442 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17443
17444 # Run-time system search path for libraries
17445 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17446
17447 # Fix the shell variable \$srcfile for the compiler.
17448 fix_srcfile_path=$lt_fix_srcfile_path
17449
17450 # Set to yes if exported symbols are required.
17451 always_export_symbols=$always_export_symbols
17452
17453 # The commands to list exported symbols.
17454 export_symbols_cmds=$lt_export_symbols_cmds
17455
17456 # The commands to extract the exported symbol list from a shared archive.
17457 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17458
17459 # Symbols that should not be listed in the preloaded symbols.
17460 exclude_expsyms=$lt_exclude_expsyms
17461
17462 # Symbols that must always be exported.
17463 include_expsyms=$lt_include_expsyms
17464
17465 # ### END LIBTOOL CONFIG
17466
17467 __EOF__
17468
17469
17470   case $host_os in
17471   aix3*)
17472     cat <<\EOF >> "$cfgfile"
17473
17474 # AIX sometimes has problems with the GCC collect2 program.  For some
17475 # reason, if we set the COLLECT_NAMES environment variable, the problems
17476 # vanish in a puff of smoke.
17477 if test "X${COLLECT_NAMES+set}" != Xset; then
17478   COLLECT_NAMES=
17479   export COLLECT_NAMES
17480 fi
17481 EOF
17482     ;;
17483   esac
17484
17485   # We use sed instead of cat because bash on DJGPP gets confused if
17486   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17487   # text mode, it properly converts lines to CR/LF.  This bash problem
17488   # is reportedly fixed, but why not run on old versions too?
17489   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17490
17491   mv -f "$cfgfile" "$ofile" || \
17492     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17493   chmod +x "$ofile"
17494
17495 else
17496   # If there is no Makefile yet, we rely on a make rule to execute
17497   # `config.status --recheck' to rerun these tests and create the
17498   # libtool script then.
17499   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17500   if test -f "$ltmain_in"; then
17501     test -f Makefile && make "$ltmain"
17502   fi
17503 fi
17504
17505
17506 ac_ext=c
17507 ac_cpp='$CPP $CPPFLAGS'
17508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17511
17512 CC="$lt_save_CC"
17513
17514
17515 # Check whether --with-tags was given.
17516 if test "${with_tags+set}" = set; then
17517   withval=$with_tags; tagnames="$withval"
17518 fi
17519
17520
17521 if test -f "$ltmain" && test -n "$tagnames"; then
17522   if test ! -f "${ofile}"; then
17523     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17524 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17525   fi
17526
17527   if test -z "$LTCC"; then
17528     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17529     if test -z "$LTCC"; then
17530       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17531 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17532     else
17533       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17534 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17535     fi
17536   fi
17537   if test -z "$LTCFLAGS"; then
17538     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17539   fi
17540
17541   # Extract list of available tagged configurations in $ofile.
17542   # Note that this assumes the entire list is on one line.
17543   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17544
17545   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17546   for tagname in $tagnames; do
17547     IFS="$lt_save_ifs"
17548     # Check whether tagname contains only valid characters
17549     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17550     "") ;;
17551     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17552 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17553    { (exit 1); exit 1; }; }
17554         ;;
17555     esac
17556
17557     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17558     then
17559       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17560 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17561    { (exit 1); exit 1; }; }
17562     fi
17563
17564     # Update the list of available tags.
17565     if test -n "$tagname"; then
17566       echo appending configuration tag \"$tagname\" to $ofile
17567
17568       case $tagname in
17569       CXX)
17570         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17571             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17572             (test "X$CXX" != "Xg++"))) ; then
17573           ac_ext=cpp
17574 ac_cpp='$CXXCPP $CPPFLAGS'
17575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17578
17579
17580
17581
17582 archive_cmds_need_lc_CXX=no
17583 allow_undefined_flag_CXX=
17584 always_export_symbols_CXX=no
17585 archive_expsym_cmds_CXX=
17586 export_dynamic_flag_spec_CXX=
17587 hardcode_direct_CXX=no
17588 hardcode_libdir_flag_spec_CXX=
17589 hardcode_libdir_flag_spec_ld_CXX=
17590 hardcode_libdir_separator_CXX=
17591 hardcode_minus_L_CXX=no
17592 hardcode_shlibpath_var_CXX=unsupported
17593 hardcode_automatic_CXX=no
17594 module_cmds_CXX=
17595 module_expsym_cmds_CXX=
17596 link_all_deplibs_CXX=unknown
17597 old_archive_cmds_CXX=$old_archive_cmds
17598 no_undefined_flag_CXX=
17599 whole_archive_flag_spec_CXX=
17600 enable_shared_with_static_runtimes_CXX=no
17601
17602 # Dependencies to place before and after the object being linked:
17603 predep_objects_CXX=
17604 postdep_objects_CXX=
17605 predeps_CXX=
17606 postdeps_CXX=
17607 compiler_lib_search_path_CXX=
17608 compiler_lib_search_dirs_CXX=
17609
17610 # Source file extension for C++ test sources.
17611 ac_ext=cpp
17612
17613 # Object file extension for compiled C++ test sources.
17614 objext=o
17615 objext_CXX=$objext
17616
17617 # Code to be used in simple compile tests
17618 lt_simple_compile_test_code="int some_variable = 0;"
17619
17620 # Code to be used in simple link tests
17621 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17622
17623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17624
17625 # If no C compiler was specified, use CC.
17626 LTCC=${LTCC-"$CC"}
17627
17628 # If no C compiler flags were specified, use CFLAGS.
17629 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17630
17631 # Allow CC to be a program name with arguments.
17632 compiler=$CC
17633
17634
17635 # save warnings/boilerplate of simple test code
17636 ac_outfile=conftest.$ac_objext
17637 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17638 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17639 _lt_compiler_boilerplate=`cat conftest.err`
17640 $rm conftest*
17641
17642 ac_outfile=conftest.$ac_objext
17643 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17644 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17645 _lt_linker_boilerplate=`cat conftest.err`
17646 $rm -r conftest*
17647
17648
17649 # Allow CC to be a program name with arguments.
17650 lt_save_CC=$CC
17651 lt_save_LD=$LD
17652 lt_save_GCC=$GCC
17653 GCC=$GXX
17654 lt_save_with_gnu_ld=$with_gnu_ld
17655 lt_save_path_LD=$lt_cv_path_LD
17656 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17657   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17658 else
17659   $as_unset lt_cv_prog_gnu_ld
17660 fi
17661 if test -n "${lt_cv_path_LDCXX+set}"; then
17662   lt_cv_path_LD=$lt_cv_path_LDCXX
17663 else
17664   $as_unset lt_cv_path_LD
17665 fi
17666 test -z "${LDCXX+set}" || LD=$LDCXX
17667 CC=${CXX-"c++"}
17668 compiler=$CC
17669 compiler_CXX=$CC
17670 for cc_temp in $compiler""; do
17671   case $cc_temp in
17672     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17673     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17674     \-*) ;;
17675     *) break;;
17676   esac
17677 done
17678 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17679
17680
17681 # We don't want -fno-exception wen compiling C++ code, so set the
17682 # no_builtin_flag separately
17683 if test "$GXX" = yes; then
17684   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17685 else
17686   lt_prog_compiler_no_builtin_flag_CXX=
17687 fi
17688
17689 if test "$GXX" = yes; then
17690   # Set up default GNU C++ configuration
17691
17692
17693 # Check whether --with-gnu-ld was given.
17694 if test "${with_gnu_ld+set}" = set; then
17695   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17696 else
17697   with_gnu_ld=no
17698 fi
17699
17700 ac_prog=ld
17701 if test "$GCC" = yes; then
17702   # Check if gcc -print-prog-name=ld gives a path.
17703   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17704 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17705   case $host in
17706   *-*-mingw*)
17707     # gcc leaves a trailing carriage return which upsets mingw
17708     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17709   *)
17710     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17711   esac
17712   case $ac_prog in
17713     # Accept absolute paths.
17714     [\\/]* | ?:[\\/]*)
17715       re_direlt='/[^/][^/]*/\.\./'
17716       # Canonicalize the pathname of ld
17717       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17718       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17719         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17720       done
17721       test -z "$LD" && LD="$ac_prog"
17722       ;;
17723   "")
17724     # If it fails, then pretend we aren't using GCC.
17725     ac_prog=ld
17726     ;;
17727   *)
17728     # If it is relative, then search for the first ld in PATH.
17729     with_gnu_ld=unknown
17730     ;;
17731   esac
17732 elif test "$with_gnu_ld" = yes; then
17733   { echo "$as_me:$LINENO: checking for GNU ld" >&5
17734 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17735 else
17736   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17737 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17738 fi
17739 if test "${lt_cv_path_LD+set}" = set; then
17740   echo $ECHO_N "(cached) $ECHO_C" >&6
17741 else
17742   if test -z "$LD"; then
17743   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17744   for ac_dir in $PATH; do
17745     IFS="$lt_save_ifs"
17746     test -z "$ac_dir" && ac_dir=.
17747     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17748       lt_cv_path_LD="$ac_dir/$ac_prog"
17749       # Check to see if the program is GNU ld.  I'd rather use --version,
17750       # but apparently some variants of GNU ld only accept -v.
17751       # Break only if it was the GNU/non-GNU ld that we prefer.
17752       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17753       *GNU* | *'with BFD'*)
17754         test "$with_gnu_ld" != no && break
17755         ;;
17756       *)
17757         test "$with_gnu_ld" != yes && break
17758         ;;
17759       esac
17760     fi
17761   done
17762   IFS="$lt_save_ifs"
17763 else
17764   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17765 fi
17766 fi
17767
17768 LD="$lt_cv_path_LD"
17769 if test -n "$LD"; then
17770   { echo "$as_me:$LINENO: result: $LD" >&5
17771 echo "${ECHO_T}$LD" >&6; }
17772 else
17773   { echo "$as_me:$LINENO: result: no" >&5
17774 echo "${ECHO_T}no" >&6; }
17775 fi
17776 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17777 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17778    { (exit 1); exit 1; }; }
17779 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17780 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17781 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17782   echo $ECHO_N "(cached) $ECHO_C" >&6
17783 else
17784   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17785 case `$LD -v 2>&1 </dev/null` in
17786 *GNU* | *'with BFD'*)
17787   lt_cv_prog_gnu_ld=yes
17788   ;;
17789 *)
17790   lt_cv_prog_gnu_ld=no
17791   ;;
17792 esac
17793 fi
17794 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17795 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17796 with_gnu_ld=$lt_cv_prog_gnu_ld
17797
17798
17799
17800   # Check if GNU C++ uses GNU ld as the underlying linker, since the
17801   # archiving commands below assume that GNU ld is being used.
17802   if test "$with_gnu_ld" = yes; then
17803     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17804     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'
17805
17806     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17807     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17808
17809     # If archive_cmds runs LD, not CC, wlarc should be empty
17810     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17811     #     investigate it a little bit more. (MM)
17812     wlarc='${wl}'
17813
17814     # ancient GNU ld didn't support --whole-archive et. al.
17815     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17816         grep 'no-whole-archive' > /dev/null; then
17817       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17818     else
17819       whole_archive_flag_spec_CXX=
17820     fi
17821   else
17822     with_gnu_ld=no
17823     wlarc=
17824
17825     # A generic and very simple default shared library creation
17826     # command for GNU C++ for the case where it uses the native
17827     # linker, instead of GNU ld.  If possible, this setting should
17828     # overridden to take advantage of the native linker features on
17829     # the platform it is being used on.
17830     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17831   fi
17832
17833   # Commands to make compiler produce verbose output that lists
17834   # what "hidden" libraries, object files and flags are used when
17835   # linking a shared library.
17836   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17837
17838 else
17839   GXX=no
17840   with_gnu_ld=no
17841   wlarc=
17842 fi
17843
17844 # PORTME: fill in a description of your system's C++ link characteristics
17845 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17846 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17847 ld_shlibs_CXX=yes
17848 case $host_os in
17849   aix3*)
17850     # FIXME: insert proper C++ library support
17851     ld_shlibs_CXX=no
17852     ;;
17853   aix[4-9]*)
17854     if test "$host_cpu" = ia64; then
17855       # On IA64, the linker does run time linking by default, so we don't
17856       # have to do anything special.
17857       aix_use_runtimelinking=no
17858       exp_sym_flag='-Bexport'
17859       no_entry_flag=""
17860     else
17861       aix_use_runtimelinking=no
17862
17863       # Test if we are trying to use run time linking or normal
17864       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17865       # need to do runtime linking.
17866       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17867         for ld_flag in $LDFLAGS; do
17868           case $ld_flag in
17869           *-brtl*)
17870             aix_use_runtimelinking=yes
17871             break
17872             ;;
17873           esac
17874         done
17875         ;;
17876       esac
17877
17878       exp_sym_flag='-bexport'
17879       no_entry_flag='-bnoentry'
17880     fi
17881
17882     # When large executables or shared objects are built, AIX ld can
17883     # have problems creating the table of contents.  If linking a library
17884     # or program results in "error TOC overflow" add -mminimal-toc to
17885     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17886     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17887
17888     archive_cmds_CXX=''
17889     hardcode_direct_CXX=yes
17890     hardcode_libdir_separator_CXX=':'
17891     link_all_deplibs_CXX=yes
17892
17893     if test "$GXX" = yes; then
17894       case $host_os in aix4.[012]|aix4.[012].*)
17895       # We only want to do this on AIX 4.2 and lower, the check
17896       # below for broken collect2 doesn't work under 4.3+
17897         collect2name=`${CC} -print-prog-name=collect2`
17898         if test -f "$collect2name" && \
17899            strings "$collect2name" | grep resolve_lib_name >/dev/null
17900         then
17901           # We have reworked collect2
17902           :
17903         else
17904           # We have old collect2
17905           hardcode_direct_CXX=unsupported
17906           # It fails to find uninstalled libraries when the uninstalled
17907           # path is not listed in the libpath.  Setting hardcode_minus_L
17908           # to unsupported forces relinking
17909           hardcode_minus_L_CXX=yes
17910           hardcode_libdir_flag_spec_CXX='-L$libdir'
17911           hardcode_libdir_separator_CXX=
17912         fi
17913         ;;
17914       esac
17915       shared_flag='-shared'
17916       if test "$aix_use_runtimelinking" = yes; then
17917         shared_flag="$shared_flag "'${wl}-G'
17918       fi
17919     else
17920       # not using gcc
17921       if test "$host_cpu" = ia64; then
17922         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17923         # chokes on -Wl,-G. The following line is correct:
17924         shared_flag='-G'
17925       else
17926         if test "$aix_use_runtimelinking" = yes; then
17927           shared_flag='${wl}-G'
17928         else
17929           shared_flag='${wl}-bM:SRE'
17930         fi
17931       fi
17932     fi
17933
17934     # It seems that -bexpall does not export symbols beginning with
17935     # underscore (_), so it is better to generate a list of symbols to export.
17936     always_export_symbols_CXX=yes
17937     if test "$aix_use_runtimelinking" = yes; then
17938       # Warning - without using the other runtime loading flags (-brtl),
17939       # -berok will link without error, but may produce a broken library.
17940       allow_undefined_flag_CXX='-berok'
17941       # Determine the default libpath from the value encoded in an empty executable.
17942       cat >conftest.$ac_ext <<_ACEOF
17943 /* confdefs.h.  */
17944 _ACEOF
17945 cat confdefs.h >>conftest.$ac_ext
17946 cat >>conftest.$ac_ext <<_ACEOF
17947 /* end confdefs.h.  */
17948
17949 int
17950 main ()
17951 {
17952
17953   ;
17954   return 0;
17955 }
17956 _ACEOF
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (ac_try="$ac_link"
17959 case "(($ac_try" in
17960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961   *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964   (eval "$ac_link") 2>conftest.er1
17965   ac_status=$?
17966   grep -v '^ *+' conftest.er1 >conftest.err
17967   rm -f conftest.er1
17968   cat conftest.err >&5
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); } && {
17971          test -z "$ac_cxx_werror_flag" ||
17972          test ! -s conftest.err
17973        } && test -s conftest$ac_exeext &&
17974        $as_test_x conftest$ac_exeext; then
17975
17976 lt_aix_libpath_sed='
17977     /Import File Strings/,/^$/ {
17978         /^0/ {
17979             s/^0  *\(.*\)$/\1/
17980             p
17981         }
17982     }'
17983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17984 # Check for a 64-bit object if we didn't find anything.
17985 if test -z "$aix_libpath"; then
17986   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17987 fi
17988 else
17989   echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992
17993 fi
17994
17995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17996       conftest$ac_exeext conftest.$ac_ext
17997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17998
17999       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18000
18001       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"
18002      else
18003       if test "$host_cpu" = ia64; then
18004         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18005         allow_undefined_flag_CXX="-z nodefs"
18006         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"
18007       else
18008         # Determine the default libpath from the value encoded in an empty executable.
18009         cat >conftest.$ac_ext <<_ACEOF
18010 /* confdefs.h.  */
18011 _ACEOF
18012 cat confdefs.h >>conftest.$ac_ext
18013 cat >>conftest.$ac_ext <<_ACEOF
18014 /* end confdefs.h.  */
18015
18016 int
18017 main ()
18018 {
18019
18020   ;
18021   return 0;
18022 }
18023 _ACEOF
18024 rm -f conftest.$ac_objext conftest$ac_exeext
18025 if { (ac_try="$ac_link"
18026 case "(($ac_try" in
18027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028   *) ac_try_echo=$ac_try;;
18029 esac
18030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031   (eval "$ac_link") 2>conftest.er1
18032   ac_status=$?
18033   grep -v '^ *+' conftest.er1 >conftest.err
18034   rm -f conftest.er1
18035   cat conftest.err >&5
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); } && {
18038          test -z "$ac_cxx_werror_flag" ||
18039          test ! -s conftest.err
18040        } && test -s conftest$ac_exeext &&
18041        $as_test_x conftest$ac_exeext; then
18042
18043 lt_aix_libpath_sed='
18044     /Import File Strings/,/^$/ {
18045         /^0/ {
18046             s/^0  *\(.*\)$/\1/
18047             p
18048         }
18049     }'
18050 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18051 # Check for a 64-bit object if we didn't find anything.
18052 if test -z "$aix_libpath"; then
18053   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18054 fi
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059
18060 fi
18061
18062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18063       conftest$ac_exeext conftest.$ac_ext
18064 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18065
18066         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18067         # Warning - without using the other run time loading flags,
18068         # -berok will link without error, but may produce a broken library.
18069         no_undefined_flag_CXX=' ${wl}-bernotok'
18070         allow_undefined_flag_CXX=' ${wl}-berok'
18071         # Exported symbols can be pulled into shared objects from archives
18072         whole_archive_flag_spec_CXX='$convenience'
18073         archive_cmds_need_lc_CXX=yes
18074         # This is similar to how AIX traditionally builds its shared libraries.
18075         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'
18076       fi
18077     fi
18078     ;;
18079
18080   beos*)
18081     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18082       allow_undefined_flag_CXX=unsupported
18083       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18084       # support --undefined.  This deserves some investigation.  FIXME
18085       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18086     else
18087       ld_shlibs_CXX=no
18088     fi
18089     ;;
18090
18091   chorus*)
18092     case $cc_basename in
18093       *)
18094         # FIXME: insert proper C++ library support
18095         ld_shlibs_CXX=no
18096         ;;
18097     esac
18098     ;;
18099
18100   cygwin* | mingw* | pw32*)
18101     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18102     # as there is no search path for DLLs.
18103     hardcode_libdir_flag_spec_CXX='-L$libdir'
18104     allow_undefined_flag_CXX=unsupported
18105     always_export_symbols_CXX=no
18106     enable_shared_with_static_runtimes_CXX=yes
18107
18108     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18109       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'
18110       # If the export-symbols file already is a .def file (1st line
18111       # is EXPORTS), use it as is; otherwise, prepend...
18112       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18113         cp $export_symbols $output_objdir/$soname.def;
18114       else
18115         echo EXPORTS > $output_objdir/$soname.def;
18116         cat $export_symbols >> $output_objdir/$soname.def;
18117       fi~
18118       $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'
18119     else
18120       ld_shlibs_CXX=no
18121     fi
18122   ;;
18123       darwin* | rhapsody*)
18124       archive_cmds_need_lc_CXX=no
18125       hardcode_direct_CXX=no
18126       hardcode_automatic_CXX=yes
18127       hardcode_shlibpath_var_CXX=unsupported
18128       whole_archive_flag_spec_CXX=''
18129       link_all_deplibs_CXX=yes
18130       allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18131       if test "$GXX" = yes ; then
18132       output_verbose_link_cmd='echo'
18133       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}"
18134       module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18135       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}"
18136       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}"
18137       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18138         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}"
18139         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}"
18140       fi
18141       else
18142       case $cc_basename in
18143         xlc*)
18144          output_verbose_link_cmd='echo'
18145           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'
18146           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18147           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18148           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}'
18149           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}'
18150           ;;
18151        *)
18152          ld_shlibs_CXX=no
18153           ;;
18154       esac
18155       fi
18156         ;;
18157
18158   dgux*)
18159     case $cc_basename in
18160       ec++*)
18161         # FIXME: insert proper C++ library support
18162         ld_shlibs_CXX=no
18163         ;;
18164       ghcx*)
18165         # Green Hills C++ Compiler
18166         # FIXME: insert proper C++ library support
18167         ld_shlibs_CXX=no
18168         ;;
18169       *)
18170         # FIXME: insert proper C++ library support
18171         ld_shlibs_CXX=no
18172         ;;
18173     esac
18174     ;;
18175   freebsd[12]*)
18176     # C++ shared libraries reported to be fairly broken before switch to ELF
18177     ld_shlibs_CXX=no
18178     ;;
18179   freebsd-elf*)
18180     archive_cmds_need_lc_CXX=no
18181     ;;
18182   freebsd* | dragonfly*)
18183     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18184     # conventions
18185     ld_shlibs_CXX=yes
18186     ;;
18187   gnu*)
18188     ;;
18189   hpux9*)
18190     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18191     hardcode_libdir_separator_CXX=:
18192     export_dynamic_flag_spec_CXX='${wl}-E'
18193     hardcode_direct_CXX=yes
18194     hardcode_minus_L_CXX=yes # Not in the search PATH,
18195                                 # but as the default
18196                                 # location of the library.
18197
18198     case $cc_basename in
18199     CC*)
18200       # FIXME: insert proper C++ library support
18201       ld_shlibs_CXX=no
18202       ;;
18203     aCC*)
18204       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'
18205       # Commands to make compiler produce verbose output that lists
18206       # what "hidden" libraries, object files and flags are used when
18207       # linking a shared library.
18208       #
18209       # There doesn't appear to be a way to prevent this compiler from
18210       # explicitly linking system object files so we need to strip them
18211       # from the output so that they don't get included in the library
18212       # dependencies.
18213       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'
18214       ;;
18215     *)
18216       if test "$GXX" = yes; then
18217         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'
18218       else
18219         # FIXME: insert proper C++ library support
18220         ld_shlibs_CXX=no
18221       fi
18222       ;;
18223     esac
18224     ;;
18225   hpux10*|hpux11*)
18226     if test $with_gnu_ld = no; then
18227       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18228       hardcode_libdir_separator_CXX=:
18229
18230       case $host_cpu in
18231       hppa*64*|ia64*) ;;
18232       *)
18233         export_dynamic_flag_spec_CXX='${wl}-E'
18234         ;;
18235       esac
18236     fi
18237     case $host_cpu in
18238     hppa*64*|ia64*)
18239       hardcode_direct_CXX=no
18240       hardcode_shlibpath_var_CXX=no
18241       ;;
18242     *)
18243       hardcode_direct_CXX=yes
18244       hardcode_minus_L_CXX=yes # Not in the search PATH,
18245                                               # but as the default
18246                                               # location of the library.
18247       ;;
18248     esac
18249
18250     case $cc_basename in
18251       CC*)
18252         # FIXME: insert proper C++ library support
18253         ld_shlibs_CXX=no
18254         ;;
18255       aCC*)
18256         case $host_cpu in
18257         hppa*64*)
18258           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18259           ;;
18260         ia64*)
18261           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18262           ;;
18263         *)
18264           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18265           ;;
18266         esac
18267         # Commands to make compiler produce verbose output that lists
18268         # what "hidden" libraries, object files and flags are used when
18269         # linking a shared library.
18270         #
18271         # There doesn't appear to be a way to prevent this compiler from
18272         # explicitly linking system object files so we need to strip them
18273         # from the output so that they don't get included in the library
18274         # dependencies.
18275         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'
18276         ;;
18277       *)
18278         if test "$GXX" = yes; then
18279           if test $with_gnu_ld = no; then
18280             case $host_cpu in
18281             hppa*64*)
18282               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18283               ;;
18284             ia64*)
18285               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18286               ;;
18287             *)
18288               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'
18289               ;;
18290             esac
18291           fi
18292         else
18293           # FIXME: insert proper C++ library support
18294           ld_shlibs_CXX=no
18295         fi
18296         ;;
18297     esac
18298     ;;
18299   interix[3-9]*)
18300     hardcode_direct_CXX=no
18301     hardcode_shlibpath_var_CXX=no
18302     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18303     export_dynamic_flag_spec_CXX='${wl}-E'
18304     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18305     # Instead, shared libraries are loaded at an image base (0x10000000 by
18306     # default) and relocated if they conflict, which is a slow very memory
18307     # consuming and fragmenting process.  To avoid this, we pick a random,
18308     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18309     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18310     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'
18311     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'
18312     ;;
18313   irix5* | irix6*)
18314     case $cc_basename in
18315       CC*)
18316         # SGI C++
18317         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'
18318
18319         # Archives containing C++ object files must be created using
18320         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18321         # necessary to make sure instantiated templates are included
18322         # in the archive.
18323         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18324         ;;
18325       *)
18326         if test "$GXX" = yes; then
18327           if test "$with_gnu_ld" = no; then
18328             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'
18329           else
18330             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'
18331           fi
18332         fi
18333         link_all_deplibs_CXX=yes
18334         ;;
18335     esac
18336     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18337     hardcode_libdir_separator_CXX=:
18338     ;;
18339   linux* | k*bsd*-gnu)
18340     case $cc_basename in
18341       KCC*)
18342         # Kuck and Associates, Inc. (KAI) C++ Compiler
18343
18344         # KCC will only create a shared library if the output file
18345         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18346         # to its proper name (with version) after linking.
18347         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'
18348         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'
18349         # Commands to make compiler produce verbose output that lists
18350         # what "hidden" libraries, object files and flags are used when
18351         # linking a shared library.
18352         #
18353         # There doesn't appear to be a way to prevent this compiler from
18354         # explicitly linking system object files so we need to strip them
18355         # from the output so that they don't get included in the library
18356         # dependencies.
18357         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'
18358
18359         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18360         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18361
18362         # Archives containing C++ object files must be created using
18363         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18364         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18365         ;;
18366       icpc*)
18367         # Intel C++
18368         with_gnu_ld=yes
18369         # version 8.0 and above of icpc choke on multiply defined symbols
18370         # if we add $predep_objects and $postdep_objects, however 7.1 and
18371         # earlier do not add the objects themselves.
18372         case `$CC -V 2>&1` in
18373         *"Version 7."*)
18374           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18375           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'
18376           ;;
18377         *)  # Version 8.0 or newer
18378           tmp_idyn=
18379           case $host_cpu in
18380             ia64*) tmp_idyn=' -i_dynamic';;
18381           esac
18382           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18383           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'
18384           ;;
18385         esac
18386         archive_cmds_need_lc_CXX=no
18387         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18388         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18389         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18390         ;;
18391       pgCC* | pgcpp*)
18392         # Portland Group C++ compiler
18393         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18394         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'
18395
18396         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18397         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18398         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'
18399         ;;
18400       cxx*)
18401         # Compaq C++
18402         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18403         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'
18404
18405         runpath_var=LD_RUN_PATH
18406         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18407         hardcode_libdir_separator_CXX=:
18408
18409         # Commands to make compiler produce verbose output that lists
18410         # what "hidden" libraries, object files and flags are used when
18411         # linking a shared library.
18412         #
18413         # There doesn't appear to be a way to prevent this compiler from
18414         # explicitly linking system object files so we need to strip them
18415         # from the output so that they don't get included in the library
18416         # dependencies.
18417         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'
18418         ;;
18419       *)
18420         case `$CC -V 2>&1 | sed 5q` in
18421         *Sun\ C*)
18422           # Sun C++ 5.9
18423           no_undefined_flag_CXX=' -zdefs'
18424           archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18425           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'
18426           hardcode_libdir_flag_spec_CXX='-R$libdir'
18427           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'
18428
18429           # Not sure whether something based on
18430           # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18431           # would be better.
18432           output_verbose_link_cmd='echo'
18433
18434           # Archives containing C++ object files must be created using
18435           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18436           # necessary to make sure instantiated templates are included
18437           # in the archive.
18438           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18439           ;;
18440         esac
18441         ;;
18442     esac
18443     ;;
18444   lynxos*)
18445     # FIXME: insert proper C++ library support
18446     ld_shlibs_CXX=no
18447     ;;
18448   m88k*)
18449     # FIXME: insert proper C++ library support
18450     ld_shlibs_CXX=no
18451     ;;
18452   mvs*)
18453     case $cc_basename in
18454       cxx*)
18455         # FIXME: insert proper C++ library support
18456         ld_shlibs_CXX=no
18457         ;;
18458       *)
18459         # FIXME: insert proper C++ library support
18460         ld_shlibs_CXX=no
18461         ;;
18462     esac
18463     ;;
18464   netbsd* | netbsdelf*-gnu)
18465     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18466       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18467       wlarc=
18468       hardcode_libdir_flag_spec_CXX='-R$libdir'
18469       hardcode_direct_CXX=yes
18470       hardcode_shlibpath_var_CXX=no
18471     fi
18472     # Workaround some broken pre-1.5 toolchains
18473     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18474     ;;
18475   openbsd2*)
18476     # C++ shared libraries are fairly broken
18477     ld_shlibs_CXX=no
18478     ;;
18479   openbsd*)
18480     if test -f /usr/libexec/ld.so; then
18481       hardcode_direct_CXX=yes
18482       hardcode_shlibpath_var_CXX=no
18483       archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18484       hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18485       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18486         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18487         export_dynamic_flag_spec_CXX='${wl}-E'
18488         whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18489       fi
18490       output_verbose_link_cmd='echo'
18491     else
18492       ld_shlibs_CXX=no
18493     fi
18494     ;;
18495   osf3*)
18496     case $cc_basename in
18497       KCC*)
18498         # Kuck and Associates, Inc. (KAI) C++ Compiler
18499
18500         # KCC will only create a shared library if the output file
18501         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18502         # to its proper name (with version) after linking.
18503         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'
18504
18505         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18506         hardcode_libdir_separator_CXX=:
18507
18508         # Archives containing C++ object files must be created using
18509         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18510         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18511
18512         ;;
18513       RCC*)
18514         # Rational C++ 2.4.1
18515         # FIXME: insert proper C++ library support
18516         ld_shlibs_CXX=no
18517         ;;
18518       cxx*)
18519         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18520         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'
18521
18522         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18523         hardcode_libdir_separator_CXX=:
18524
18525         # Commands to make compiler produce verbose output that lists
18526         # what "hidden" libraries, object files and flags are used when
18527         # linking a shared library.
18528         #
18529         # There doesn't appear to be a way to prevent this compiler from
18530         # explicitly linking system object files so we need to strip them
18531         # from the output so that they don't get included in the library
18532         # dependencies.
18533         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'
18534         ;;
18535       *)
18536         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18537           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18538           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'
18539
18540           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18541           hardcode_libdir_separator_CXX=:
18542
18543           # Commands to make compiler produce verbose output that lists
18544           # what "hidden" libraries, object files and flags are used when
18545           # linking a shared library.
18546           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18547
18548         else
18549           # FIXME: insert proper C++ library support
18550           ld_shlibs_CXX=no
18551         fi
18552         ;;
18553     esac
18554     ;;
18555   osf4* | osf5*)
18556     case $cc_basename in
18557       KCC*)
18558         # Kuck and Associates, Inc. (KAI) C++ Compiler
18559
18560         # KCC will only create a shared library if the output file
18561         # ends with ".so" (or ".sl" for HP-UX), so rename the library
18562         # to its proper name (with version) after linking.
18563         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'
18564
18565         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18566         hardcode_libdir_separator_CXX=:
18567
18568         # Archives containing C++ object files must be created using
18569         # the KAI C++ compiler.
18570         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18571         ;;
18572       RCC*)
18573         # Rational C++ 2.4.1
18574         # FIXME: insert proper C++ library support
18575         ld_shlibs_CXX=no
18576         ;;
18577       cxx*)
18578         allow_undefined_flag_CXX=' -expect_unresolved \*'
18579         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'
18580         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18581           echo "-hidden">> $lib.exp~
18582           $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~
18583           $rm $lib.exp'
18584
18585         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18586         hardcode_libdir_separator_CXX=:
18587
18588         # Commands to make compiler produce verbose output that lists
18589         # what "hidden" libraries, object files and flags are used when
18590         # linking a shared library.
18591         #
18592         # There doesn't appear to be a way to prevent this compiler from
18593         # explicitly linking system object files so we need to strip them
18594         # from the output so that they don't get included in the library
18595         # dependencies.
18596         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'
18597         ;;
18598       *)
18599         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18600           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18601          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'
18602
18603           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18604           hardcode_libdir_separator_CXX=:
18605
18606           # Commands to make compiler produce verbose output that lists
18607           # what "hidden" libraries, object files and flags are used when
18608           # linking a shared library.
18609           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18610
18611         else
18612           # FIXME: insert proper C++ library support
18613           ld_shlibs_CXX=no
18614         fi
18615         ;;
18616     esac
18617     ;;
18618   psos*)
18619     # FIXME: insert proper C++ library support
18620     ld_shlibs_CXX=no
18621     ;;
18622   sunos4*)
18623     case $cc_basename in
18624       CC*)
18625         # Sun C++ 4.x
18626         # FIXME: insert proper C++ library support
18627         ld_shlibs_CXX=no
18628         ;;
18629       lcc*)
18630         # Lucid
18631         # FIXME: insert proper C++ library support
18632         ld_shlibs_CXX=no
18633         ;;
18634       *)
18635         # FIXME: insert proper C++ library support
18636         ld_shlibs_CXX=no
18637         ;;
18638     esac
18639     ;;
18640   solaris*)
18641     case $cc_basename in
18642       CC*)
18643         # Sun C++ 4.2, 5.x and Centerline C++
18644         archive_cmds_need_lc_CXX=yes
18645         no_undefined_flag_CXX=' -zdefs'
18646         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18647         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18648         $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'
18649
18650         hardcode_libdir_flag_spec_CXX='-R$libdir'
18651         hardcode_shlibpath_var_CXX=no
18652         case $host_os in
18653           solaris2.[0-5] | solaris2.[0-5].*) ;;
18654           *)
18655             # The compiler driver will combine and reorder linker options,
18656             # but understands `-z linker_flag'.
18657             # Supported since Solaris 2.6 (maybe 2.5.1?)
18658             whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18659             ;;
18660         esac
18661         link_all_deplibs_CXX=yes
18662
18663         output_verbose_link_cmd='echo'
18664
18665         # Archives containing C++ object files must be created using
18666         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18667         # necessary to make sure instantiated templates are included
18668         # in the archive.
18669         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18670         ;;
18671       gcx*)
18672         # Green Hills C++ Compiler
18673         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18674
18675         # The C++ compiler must be used to create the archive.
18676         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18677         ;;
18678       *)
18679         # GNU C++ compiler with Solaris linker
18680         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18681           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18682           if $CC --version | grep -v '^2\.7' > /dev/null; then
18683             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18684             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18685                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18686
18687             # Commands to make compiler produce verbose output that lists
18688             # what "hidden" libraries, object files and flags are used when
18689             # linking a shared library.
18690             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18691           else
18692             # g++ 2.7 appears to require `-G' NOT `-shared' on this
18693             # platform.
18694             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18695             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18696                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18697
18698             # Commands to make compiler produce verbose output that lists
18699             # what "hidden" libraries, object files and flags are used when
18700             # linking a shared library.
18701             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18702           fi
18703
18704           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18705           case $host_os in
18706           solaris2.[0-5] | solaris2.[0-5].*) ;;
18707           *)
18708             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18709             ;;
18710           esac
18711         fi
18712         ;;
18713     esac
18714     ;;
18715   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18716     no_undefined_flag_CXX='${wl}-z,text'
18717     archive_cmds_need_lc_CXX=no
18718     hardcode_shlibpath_var_CXX=no
18719     runpath_var='LD_RUN_PATH'
18720
18721     case $cc_basename in
18722       CC*)
18723         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18724         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18725         ;;
18726       *)
18727         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18728         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18729         ;;
18730     esac
18731     ;;
18732   sysv5* | sco3.2v5* | sco5v6*)
18733     # Note: We can NOT use -z defs as we might desire, because we do not
18734     # link with -lc, and that would cause any symbols used from libc to
18735     # always be unresolved, which means just about no library would
18736     # ever link correctly.  If we're not using GNU ld we use -z text
18737     # though, which does catch some bad symbols but isn't as heavy-handed
18738     # as -z defs.
18739     # For security reasons, it is highly recommended that you always
18740     # use absolute paths for naming shared libraries, and exclude the
18741     # DT_RUNPATH tag from executables and libraries.  But doing so
18742     # requires that you compile everything twice, which is a pain.
18743     # So that behaviour is only enabled if SCOABSPATH is set to a
18744     # non-empty value in the environment.  Most likely only useful for
18745     # creating official distributions of packages.
18746     # This is a hack until libtool officially supports absolute path
18747     # names for shared libraries.
18748     no_undefined_flag_CXX='${wl}-z,text'
18749     allow_undefined_flag_CXX='${wl}-z,nodefs'
18750     archive_cmds_need_lc_CXX=no
18751     hardcode_shlibpath_var_CXX=no
18752     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18753     hardcode_libdir_separator_CXX=':'
18754     link_all_deplibs_CXX=yes
18755     export_dynamic_flag_spec_CXX='${wl}-Bexport'
18756     runpath_var='LD_RUN_PATH'
18757
18758     case $cc_basename in
18759       CC*)
18760         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18761         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18762         ;;
18763       *)
18764         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18765         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18766         ;;
18767     esac
18768     ;;
18769   tandem*)
18770     case $cc_basename in
18771       NCC*)
18772         # NonStop-UX NCC 3.20
18773         # FIXME: insert proper C++ library support
18774         ld_shlibs_CXX=no
18775         ;;
18776       *)
18777         # FIXME: insert proper C++ library support
18778         ld_shlibs_CXX=no
18779         ;;
18780     esac
18781     ;;
18782   vxworks*)
18783     # FIXME: insert proper C++ library support
18784     ld_shlibs_CXX=no
18785     ;;
18786   *)
18787     # FIXME: insert proper C++ library support
18788     ld_shlibs_CXX=no
18789     ;;
18790 esac
18791 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18792 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18793 test "$ld_shlibs_CXX" = no && can_build_shared=no
18794
18795 GCC_CXX="$GXX"
18796 LD_CXX="$LD"
18797
18798 cat > conftest.$ac_ext <<EOF
18799 class Foo
18800 {
18801 public:
18802   Foo (void) { a = 0; }
18803 private:
18804   int a;
18805 };
18806 EOF
18807
18808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18809   (eval $ac_compile) 2>&5
18810   ac_status=$?
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); }; then
18813   # Parse the compiler output and extract the necessary
18814   # objects, libraries and library flags.
18815
18816   # Sentinel used to keep track of whether or not we are before
18817   # the conftest object file.
18818   pre_test_object_deps_done=no
18819
18820   # The `*' in the case matches for architectures that use `case' in
18821   # $output_verbose_cmd can trigger glob expansion during the loop
18822   # eval without this substitution.
18823   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18824
18825   for p in `eval $output_verbose_link_cmd`; do
18826     case $p in
18827
18828     -L* | -R* | -l*)
18829        # Some compilers place space between "-{L,R}" and the path.
18830        # Remove the space.
18831        if test $p = "-L" \
18832           || test $p = "-R"; then
18833          prev=$p
18834          continue
18835        else
18836          prev=
18837        fi
18838
18839        if test "$pre_test_object_deps_done" = no; then
18840          case $p in
18841          -L* | -R*)
18842            # Internal compiler library paths should come after those
18843            # provided the user.  The postdeps already come after the
18844            # user supplied libs so there is no need to process them.
18845            if test -z "$compiler_lib_search_path_CXX"; then
18846              compiler_lib_search_path_CXX="${prev}${p}"
18847            else
18848              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18849            fi
18850            ;;
18851          # The "-l" case would never come before the object being
18852          # linked, so don't bother handling this case.
18853          esac
18854        else
18855          if test -z "$postdeps_CXX"; then
18856            postdeps_CXX="${prev}${p}"
18857          else
18858            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18859          fi
18860        fi
18861        ;;
18862
18863     *.$objext)
18864        # This assumes that the test object file only shows up
18865        # once in the compiler output.
18866        if test "$p" = "conftest.$objext"; then
18867          pre_test_object_deps_done=yes
18868          continue
18869        fi
18870
18871        if test "$pre_test_object_deps_done" = no; then
18872          if test -z "$predep_objects_CXX"; then
18873            predep_objects_CXX="$p"
18874          else
18875            predep_objects_CXX="$predep_objects_CXX $p"
18876          fi
18877        else
18878          if test -z "$postdep_objects_CXX"; then
18879            postdep_objects_CXX="$p"
18880          else
18881            postdep_objects_CXX="$postdep_objects_CXX $p"
18882          fi
18883        fi
18884        ;;
18885
18886     *) ;; # Ignore the rest.
18887
18888     esac
18889   done
18890
18891   # Clean up.
18892   rm -f a.out a.exe
18893 else
18894   echo "libtool.m4: error: problem compiling CXX test program"
18895 fi
18896
18897 $rm -f confest.$objext
18898
18899 compiler_lib_search_dirs_CXX=
18900 if test -n "$compiler_lib_search_path_CXX"; then
18901   compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18902 fi
18903
18904 # PORTME: override above test on systems where it is broken
18905 case $host_os in
18906 interix[3-9]*)
18907   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18908   # hack all around it, let's just trust "g++" to DTRT.
18909   predep_objects_CXX=
18910   postdep_objects_CXX=
18911   postdeps_CXX=
18912   ;;
18913
18914 linux*)
18915   case `$CC -V 2>&1 | sed 5q` in
18916   *Sun\ C*)
18917     # Sun C++ 5.9
18918     #
18919     # The more standards-conforming stlport4 library is
18920     # incompatible with the Cstd library. Avoid specifying
18921     # it if it's in CXXFLAGS. Ignore libCrun as
18922     # -library=stlport4 depends on it.
18923     case " $CXX $CXXFLAGS " in
18924     *" -library=stlport4 "*)
18925       solaris_use_stlport4=yes
18926       ;;
18927     esac
18928     if test "$solaris_use_stlport4" != yes; then
18929       postdeps_CXX='-library=Cstd -library=Crun'
18930     fi
18931     ;;
18932   esac
18933   ;;
18934
18935 solaris*)
18936   case $cc_basename in
18937   CC*)
18938     # The more standards-conforming stlport4 library is
18939     # incompatible with the Cstd library. Avoid specifying
18940     # it if it's in CXXFLAGS. Ignore libCrun as
18941     # -library=stlport4 depends on it.
18942     case " $CXX $CXXFLAGS " in
18943     *" -library=stlport4 "*)
18944       solaris_use_stlport4=yes
18945       ;;
18946     esac
18947
18948     # Adding this requires a known-good setup of shared libraries for
18949     # Sun compiler versions before 5.6, else PIC objects from an old
18950     # archive will be linked into the output, leading to subtle bugs.
18951     if test "$solaris_use_stlport4" != yes; then
18952       postdeps_CXX='-library=Cstd -library=Crun'
18953     fi
18954     ;;
18955   esac
18956   ;;
18957 esac
18958
18959 case " $postdeps_CXX " in
18960 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18961 esac
18962
18963 lt_prog_compiler_wl_CXX=
18964 lt_prog_compiler_pic_CXX=
18965 lt_prog_compiler_static_CXX=
18966
18967 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18968 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18969
18970   # C++ specific cases for pic, static, wl, etc.
18971   if test "$GXX" = yes; then
18972     lt_prog_compiler_wl_CXX='-Wl,'
18973     lt_prog_compiler_static_CXX='-static'
18974
18975     case $host_os in
18976     aix*)
18977       # All AIX code is PIC.
18978       if test "$host_cpu" = ia64; then
18979         # AIX 5 now supports IA64 processor
18980         lt_prog_compiler_static_CXX='-Bstatic'
18981       fi
18982       ;;
18983     amigaos*)
18984       # FIXME: we need at least 68020 code to build shared libraries, but
18985       # adding the `-m68020' flag to GCC prevents building anything better,
18986       # like `-m68040'.
18987       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18988       ;;
18989     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18990       # PIC is the default for these OSes.
18991       ;;
18992     mingw* | cygwin* | os2* | pw32*)
18993       # This hack is so that the source file can tell whether it is being
18994       # built for inclusion in a dll (and should export symbols for example).
18995       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18996       # (--disable-auto-import) libraries
18997       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18998       ;;
18999     darwin* | rhapsody*)
19000       # PIC is the default on this platform
19001       # Common symbols not allowed in MH_DYLIB files
19002       lt_prog_compiler_pic_CXX='-fno-common'
19003       ;;
19004     *djgpp*)
19005       # DJGPP does not support shared libraries at all
19006       lt_prog_compiler_pic_CXX=
19007       ;;
19008     interix[3-9]*)
19009       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19010       # Instead, we relocate shared libraries at runtime.
19011       ;;
19012     sysv4*MP*)
19013       if test -d /usr/nec; then
19014         lt_prog_compiler_pic_CXX=-Kconform_pic
19015       fi
19016       ;;
19017     hpux*)
19018       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19019       # not for PA HP-UX.
19020       case $host_cpu in
19021       hppa*64*|ia64*)
19022         ;;
19023       *)
19024         lt_prog_compiler_pic_CXX='-fPIC'
19025         ;;
19026       esac
19027       ;;
19028     *)
19029       lt_prog_compiler_pic_CXX='-fPIC'
19030       ;;
19031     esac
19032   else
19033     case $host_os in
19034       aix[4-9]*)
19035         # All AIX code is PIC.
19036         if test "$host_cpu" = ia64; then
19037           # AIX 5 now supports IA64 processor
19038           lt_prog_compiler_static_CXX='-Bstatic'
19039         else
19040           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19041         fi
19042         ;;
19043       chorus*)
19044         case $cc_basename in
19045         cxch68*)
19046           # Green Hills C++ Compiler
19047           # _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"
19048           ;;
19049         esac
19050         ;;
19051        darwin*)
19052          # PIC is the default on this platform
19053          # Common symbols not allowed in MH_DYLIB files
19054          case $cc_basename in
19055            xlc*)
19056            lt_prog_compiler_pic_CXX='-qnocommon'
19057            lt_prog_compiler_wl_CXX='-Wl,'
19058            ;;
19059          esac
19060        ;;
19061       dgux*)
19062         case $cc_basename in
19063           ec++*)
19064             lt_prog_compiler_pic_CXX='-KPIC'
19065             ;;
19066           ghcx*)
19067             # Green Hills C++ Compiler
19068             lt_prog_compiler_pic_CXX='-pic'
19069             ;;
19070           *)
19071             ;;
19072         esac
19073         ;;
19074       freebsd* | dragonfly*)
19075         # FreeBSD uses GNU C++
19076         ;;
19077       hpux9* | hpux10* | hpux11*)
19078         case $cc_basename in
19079           CC*)
19080             lt_prog_compiler_wl_CXX='-Wl,'
19081             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19082             if test "$host_cpu" != ia64; then
19083               lt_prog_compiler_pic_CXX='+Z'
19084             fi
19085             ;;
19086           aCC*)
19087             lt_prog_compiler_wl_CXX='-Wl,'
19088             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19089             case $host_cpu in
19090             hppa*64*|ia64*)
19091               # +Z the default
19092               ;;
19093             *)
19094               lt_prog_compiler_pic_CXX='+Z'
19095               ;;
19096             esac
19097             ;;
19098           *)
19099             ;;
19100         esac
19101         ;;
19102       interix*)
19103         # This is c89, which is MS Visual C++ (no shared libs)
19104         # Anyone wants to do a port?
19105         ;;
19106       irix5* | irix6* | nonstopux*)
19107         case $cc_basename in
19108           CC*)
19109             lt_prog_compiler_wl_CXX='-Wl,'
19110             lt_prog_compiler_static_CXX='-non_shared'
19111             # CC pic flag -KPIC is the default.
19112             ;;
19113           *)
19114             ;;
19115         esac
19116         ;;
19117       linux* | k*bsd*-gnu)
19118         case $cc_basename in
19119           KCC*)
19120             # KAI C++ Compiler
19121             lt_prog_compiler_wl_CXX='--backend -Wl,'
19122             lt_prog_compiler_pic_CXX='-fPIC'
19123             ;;
19124           icpc* | ecpc*)
19125             # Intel C++
19126             lt_prog_compiler_wl_CXX='-Wl,'
19127             lt_prog_compiler_pic_CXX='-KPIC'
19128             lt_prog_compiler_static_CXX='-static'
19129             ;;
19130           pgCC* | pgcpp*)
19131             # Portland Group C++ compiler.
19132             lt_prog_compiler_wl_CXX='-Wl,'
19133             lt_prog_compiler_pic_CXX='-fpic'
19134             lt_prog_compiler_static_CXX='-Bstatic'
19135             ;;
19136           cxx*)
19137             # Compaq C++
19138             # Make sure the PIC flag is empty.  It appears that all Alpha
19139             # Linux and Compaq Tru64 Unix objects are PIC.
19140             lt_prog_compiler_pic_CXX=
19141             lt_prog_compiler_static_CXX='-non_shared'
19142             ;;
19143           *)
19144             case `$CC -V 2>&1 | sed 5q` in
19145             *Sun\ C*)
19146               # Sun C++ 5.9
19147               lt_prog_compiler_pic_CXX='-KPIC'
19148               lt_prog_compiler_static_CXX='-Bstatic'
19149               lt_prog_compiler_wl_CXX='-Qoption ld '
19150               ;;
19151             esac
19152             ;;
19153         esac
19154         ;;
19155       lynxos*)
19156         ;;
19157       m88k*)
19158         ;;
19159       mvs*)
19160         case $cc_basename in
19161           cxx*)
19162             lt_prog_compiler_pic_CXX='-W c,exportall'
19163             ;;
19164           *)
19165             ;;
19166         esac
19167         ;;
19168       netbsd* | netbsdelf*-gnu)
19169         ;;
19170       osf3* | osf4* | osf5*)
19171         case $cc_basename in
19172           KCC*)
19173             lt_prog_compiler_wl_CXX='--backend -Wl,'
19174             ;;
19175           RCC*)
19176             # Rational C++ 2.4.1
19177             lt_prog_compiler_pic_CXX='-pic'
19178             ;;
19179           cxx*)
19180             # Digital/Compaq C++
19181             lt_prog_compiler_wl_CXX='-Wl,'
19182             # Make sure the PIC flag is empty.  It appears that all Alpha
19183             # Linux and Compaq Tru64 Unix objects are PIC.
19184             lt_prog_compiler_pic_CXX=
19185             lt_prog_compiler_static_CXX='-non_shared'
19186             ;;
19187           *)
19188             ;;
19189         esac
19190         ;;
19191       psos*)
19192         ;;
19193       solaris*)
19194         case $cc_basename in
19195           CC*)
19196             # Sun C++ 4.2, 5.x and Centerline C++
19197             lt_prog_compiler_pic_CXX='-KPIC'
19198             lt_prog_compiler_static_CXX='-Bstatic'
19199             lt_prog_compiler_wl_CXX='-Qoption ld '
19200             ;;
19201           gcx*)
19202             # Green Hills C++ Compiler
19203             lt_prog_compiler_pic_CXX='-PIC'
19204             ;;
19205           *)
19206             ;;
19207         esac
19208         ;;
19209       sunos4*)
19210         case $cc_basename in
19211           CC*)
19212             # Sun C++ 4.x
19213             lt_prog_compiler_pic_CXX='-pic'
19214             lt_prog_compiler_static_CXX='-Bstatic'
19215             ;;
19216           lcc*)
19217             # Lucid
19218             lt_prog_compiler_pic_CXX='-pic'
19219             ;;
19220           *)
19221             ;;
19222         esac
19223         ;;
19224       tandem*)
19225         case $cc_basename in
19226           NCC*)
19227             # NonStop-UX NCC 3.20
19228             lt_prog_compiler_pic_CXX='-KPIC'
19229             ;;
19230           *)
19231             ;;
19232         esac
19233         ;;
19234       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19235         case $cc_basename in
19236           CC*)
19237             lt_prog_compiler_wl_CXX='-Wl,'
19238             lt_prog_compiler_pic_CXX='-KPIC'
19239             lt_prog_compiler_static_CXX='-Bstatic'
19240             ;;
19241         esac
19242         ;;
19243       vxworks*)
19244         ;;
19245       *)
19246         lt_prog_compiler_can_build_shared_CXX=no
19247         ;;
19248     esac
19249   fi
19250
19251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19252 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
19253
19254 #
19255 # Check to make sure the PIC flag actually works.
19256 #
19257 if test -n "$lt_prog_compiler_pic_CXX"; then
19258
19259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
19261 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   lt_cv_prog_compiler_pic_works_CXX=no
19265   ac_outfile=conftest.$ac_objext
19266    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19267    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19268    # Insert the option either (1) after the last *FLAGS variable, or
19269    # (2) before a word containing "conftest.", or (3) at the end.
19270    # Note that $ac_compile itself does not contain backslashes and begins
19271    # with a dollar sign (not a hyphen), so the echo should work correctly.
19272    # The option is referenced via a variable to avoid confusing sed.
19273    lt_compile=`echo "$ac_compile" | $SED \
19274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19276    -e 's:$: $lt_compiler_flag:'`
19277    (eval echo "\"\$as_me:19277: $lt_compile\"" >&5)
19278    (eval "$lt_compile" 2>conftest.err)
19279    ac_status=$?
19280    cat conftest.err >&5
19281    echo "$as_me:19281: \$? = $ac_status" >&5
19282    if (exit $ac_status) && test -s "$ac_outfile"; then
19283      # The compiler can only warn and ignore the option if not recognized
19284      # So say no if there are warnings other than the usual output.
19285      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19286      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19287      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19288        lt_cv_prog_compiler_pic_works_CXX=yes
19289      fi
19290    fi
19291    $rm conftest*
19292
19293 fi
19294 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19295 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19296
19297 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19298     case $lt_prog_compiler_pic_CXX in
19299      "" | " "*) ;;
19300      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19301      esac
19302 else
19303     lt_prog_compiler_pic_CXX=
19304      lt_prog_compiler_can_build_shared_CXX=no
19305 fi
19306
19307 fi
19308 case $host_os in
19309   # For platforms which do not support PIC, -DPIC is meaningless:
19310   *djgpp*)
19311     lt_prog_compiler_pic_CXX=
19312     ;;
19313   *)
19314     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19315     ;;
19316 esac
19317
19318 #
19319 # Check to make sure the static flag actually works.
19320 #
19321 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19322 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19323 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19324 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
19325   echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327   lt_cv_prog_compiler_static_works_CXX=no
19328    save_LDFLAGS="$LDFLAGS"
19329    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19330    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19331    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19332      # The linker can only warn and ignore the option if not recognized
19333      # So say no if there are warnings
19334      if test -s conftest.err; then
19335        # Append any errors to the config.log.
19336        cat conftest.err 1>&5
19337        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19338        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19339        if diff conftest.exp conftest.er2 >/dev/null; then
19340          lt_cv_prog_compiler_static_works_CXX=yes
19341        fi
19342      else
19343        lt_cv_prog_compiler_static_works_CXX=yes
19344      fi
19345    fi
19346    $rm -r conftest*
19347    LDFLAGS="$save_LDFLAGS"
19348
19349 fi
19350 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19351 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
19352
19353 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19354     :
19355 else
19356     lt_prog_compiler_static_CXX=
19357 fi
19358
19359
19360 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19361 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19362 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19363   echo $ECHO_N "(cached) $ECHO_C" >&6
19364 else
19365   lt_cv_prog_compiler_c_o_CXX=no
19366    $rm -r conftest 2>/dev/null
19367    mkdir conftest
19368    cd conftest
19369    mkdir out
19370    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19371
19372    lt_compiler_flag="-o out/conftest2.$ac_objext"
19373    # Insert the option either (1) after the last *FLAGS variable, or
19374    # (2) before a word containing "conftest.", or (3) at the end.
19375    # Note that $ac_compile itself does not contain backslashes and begins
19376    # with a dollar sign (not a hyphen), so the echo should work correctly.
19377    lt_compile=`echo "$ac_compile" | $SED \
19378    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19379    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19380    -e 's:$: $lt_compiler_flag:'`
19381    (eval echo "\"\$as_me:19381: $lt_compile\"" >&5)
19382    (eval "$lt_compile" 2>out/conftest.err)
19383    ac_status=$?
19384    cat out/conftest.err >&5
19385    echo "$as_me:19385: \$? = $ac_status" >&5
19386    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19387    then
19388      # The compiler can only warn and ignore the option if not recognized
19389      # So say no if there are warnings
19390      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19391      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19392      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19393        lt_cv_prog_compiler_c_o_CXX=yes
19394      fi
19395    fi
19396    chmod u+w . 2>&5
19397    $rm conftest*
19398    # SGI C++ compiler will create directory out/ii_files/ for
19399    # template instantiation
19400    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19401    $rm out/* && rmdir out
19402    cd ..
19403    rmdir conftest
19404    $rm conftest*
19405
19406 fi
19407 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19408 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
19409
19410
19411 hard_links="nottested"
19412 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19413   # do not overwrite the value of need_locks provided by the user
19414   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19415 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19416   hard_links=yes
19417   $rm conftest*
19418   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19419   touch conftest.a
19420   ln conftest.a conftest.b 2>&5 || hard_links=no
19421   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19422   { echo "$as_me:$LINENO: result: $hard_links" >&5
19423 echo "${ECHO_T}$hard_links" >&6; }
19424   if test "$hard_links" = no; then
19425     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19426 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19427     need_locks=warn
19428   fi
19429 else
19430   need_locks=no
19431 fi
19432
19433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19435
19436   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19437   case $host_os in
19438   aix[4-9]*)
19439     # If we're using GNU nm, then we don't want the "-C" option.
19440     # -C means demangle to AIX nm, but means don't demangle with GNU nm
19441     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19442       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'
19443     else
19444       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'
19445     fi
19446     ;;
19447   pw32*)
19448     export_symbols_cmds_CXX="$ltdll_cmds"
19449   ;;
19450   cygwin* | mingw*)
19451     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'
19452   ;;
19453   linux* | k*bsd*-gnu)
19454     link_all_deplibs_CXX=no
19455   ;;
19456   *)
19457     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19458   ;;
19459   esac
19460   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19461
19462 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19463 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19464 test "$ld_shlibs_CXX" = no && can_build_shared=no
19465
19466 #
19467 # Do we need to explicitly link libc?
19468 #
19469 case "x$archive_cmds_need_lc_CXX" in
19470 x|xyes)
19471   # Assume -lc should be added
19472   archive_cmds_need_lc_CXX=yes
19473
19474   if test "$enable_shared" = yes && test "$GCC" = yes; then
19475     case $archive_cmds_CXX in
19476     *'~'*)
19477       # FIXME: we may have to deal with multi-command sequences.
19478       ;;
19479     '$CC '*)
19480       # Test whether the compiler implicitly links with -lc since on some
19481       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19482       # to ld, don't add -lc before -lgcc.
19483       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19484 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19485       $rm conftest*
19486       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19487
19488       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19489   (eval $ac_compile) 2>&5
19490   ac_status=$?
19491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492   (exit $ac_status); } 2>conftest.err; then
19493         soname=conftest
19494         lib=conftest
19495         libobjs=conftest.$ac_objext
19496         deplibs=
19497         wl=$lt_prog_compiler_wl_CXX
19498         pic_flag=$lt_prog_compiler_pic_CXX
19499         compiler_flags=-v
19500         linker_flags=-v
19501         verstring=
19502         output_objdir=.
19503         libname=conftest
19504         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19505         allow_undefined_flag_CXX=
19506         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19507   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }
19511         then
19512           archive_cmds_need_lc_CXX=no
19513         else
19514           archive_cmds_need_lc_CXX=yes
19515         fi
19516         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19517       else
19518         cat conftest.err 1>&5
19519       fi
19520       $rm conftest*
19521       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19522 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19523       ;;
19524     esac
19525   fi
19526   ;;
19527 esac
19528
19529 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19530 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19531 library_names_spec=
19532 libname_spec='lib$name'
19533 soname_spec=
19534 shrext_cmds=".so"
19535 postinstall_cmds=
19536 postuninstall_cmds=
19537 finish_cmds=
19538 finish_eval=
19539 shlibpath_var=
19540 shlibpath_overrides_runpath=unknown
19541 version_type=none
19542 dynamic_linker="$host_os ld.so"
19543 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19544
19545 need_lib_prefix=unknown
19546 hardcode_into_libs=no
19547
19548 # when you set need_version to no, make sure it does not cause -set_version
19549 # flags to be left without arguments
19550 need_version=unknown
19551
19552 case $host_os in
19553 aix3*)
19554   version_type=linux
19555   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19556   shlibpath_var=LIBPATH
19557
19558   # AIX 3 has no versioning support, so we append a major version to the name.
19559   soname_spec='${libname}${release}${shared_ext}$major'
19560   ;;
19561
19562 aix[4-9]*)
19563   version_type=linux
19564   need_lib_prefix=no
19565   need_version=no
19566   hardcode_into_libs=yes
19567   if test "$host_cpu" = ia64; then
19568     # AIX 5 supports IA64
19569     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19570     shlibpath_var=LD_LIBRARY_PATH
19571   else
19572     # With GCC up to 2.95.x, collect2 would create an import file
19573     # for dependence libraries.  The import file would start with
19574     # the line `#! .'.  This would cause the generated library to
19575     # depend on `.', always an invalid library.  This was fixed in
19576     # development snapshots of GCC prior to 3.0.
19577     case $host_os in
19578       aix4 | aix4.[01] | aix4.[01].*)
19579       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19580            echo ' yes '
19581            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19582         :
19583       else
19584         can_build_shared=no
19585       fi
19586       ;;
19587     esac
19588     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19589     # soname into executable. Probably we can add versioning support to
19590     # collect2, so additional links can be useful in future.
19591     if test "$aix_use_runtimelinking" = yes; then
19592       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19593       # instead of lib<name>.a to let people know that these are not
19594       # typical AIX shared libraries.
19595       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19596     else
19597       # We preserve .a as extension for shared libraries through AIX4.2
19598       # and later when we are not doing run time linking.
19599       library_names_spec='${libname}${release}.a $libname.a'
19600       soname_spec='${libname}${release}${shared_ext}$major'
19601     fi
19602     shlibpath_var=LIBPATH
19603   fi
19604   ;;
19605
19606 amigaos*)
19607   library_names_spec='$libname.ixlibrary $libname.a'
19608   # Create ${libname}_ixlibrary.a entries in /sys/libs.
19609   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'
19610   ;;
19611
19612 beos*)
19613   library_names_spec='${libname}${shared_ext}'
19614   dynamic_linker="$host_os ld.so"
19615   shlibpath_var=LIBRARY_PATH
19616   ;;
19617
19618 bsdi[45]*)
19619   version_type=linux
19620   need_version=no
19621   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19622   soname_spec='${libname}${release}${shared_ext}$major'
19623   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19624   shlibpath_var=LD_LIBRARY_PATH
19625   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19626   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19627   # the default ld.so.conf also contains /usr/contrib/lib and
19628   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19629   # libtool to hard-code these into programs
19630   ;;
19631
19632 cygwin* | mingw* | pw32*)
19633   version_type=windows
19634   shrext_cmds=".dll"
19635   need_version=no
19636   need_lib_prefix=no
19637
19638   case $GCC,$host_os in
19639   yes,cygwin* | yes,mingw* | yes,pw32*)
19640     library_names_spec='$libname.dll.a'
19641     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19642     postinstall_cmds='base_file=`basename \${file}`~
19643       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19644       dldir=$destdir/`dirname \$dlpath`~
19645       test -d \$dldir || mkdir -p \$dldir~
19646       $install_prog $dir/$dlname \$dldir/$dlname~
19647       chmod a+x \$dldir/$dlname'
19648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19649       dlpath=$dir/\$dldll~
19650        $rm \$dlpath'
19651     shlibpath_overrides_runpath=yes
19652
19653     case $host_os in
19654     cygwin*)
19655       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19656       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19657       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19658       ;;
19659     mingw*)
19660       # MinGW DLLs use traditional 'lib' prefix
19661       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19662       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19663       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19664         # It is most probably a Windows format PATH printed by
19665         # mingw gcc, but we are running on Cygwin. Gcc prints its search
19666         # path with ; separators, and with drive letters. We can handle the
19667         # drive letters (cygwin fileutils understands them), so leave them,
19668         # especially as we might pass files found there to a mingw objdump,
19669         # which wouldn't understand a cygwinified path. Ahh.
19670         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19671       else
19672         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
19673       fi
19674       ;;
19675     pw32*)
19676       # pw32 DLLs use 'pw' prefix rather than 'lib'
19677       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19678       ;;
19679     esac
19680     ;;
19681
19682   *)
19683     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19684     ;;
19685   esac
19686   dynamic_linker='Win32 ld.exe'
19687   # FIXME: first we should search . and the directory the executable is in
19688   shlibpath_var=PATH
19689   ;;
19690
19691 darwin* | rhapsody*)
19692   dynamic_linker="$host_os dyld"
19693   version_type=darwin
19694   need_lib_prefix=no
19695   need_version=no
19696   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19697   soname_spec='${libname}${release}${major}$shared_ext'
19698   shlibpath_overrides_runpath=yes
19699   shlibpath_var=DYLD_LIBRARY_PATH
19700   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19701
19702   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19703   ;;
19704
19705 dgux*)
19706   version_type=linux
19707   need_lib_prefix=no
19708   need_version=no
19709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19710   soname_spec='${libname}${release}${shared_ext}$major'
19711   shlibpath_var=LD_LIBRARY_PATH
19712   ;;
19713
19714 freebsd1*)
19715   dynamic_linker=no
19716   ;;
19717
19718 freebsd* | dragonfly*)
19719   # DragonFly does not have aout.  When/if they implement a new
19720   # versioning mechanism, adjust this.
19721   if test -x /usr/bin/objformat; then
19722     objformat=`/usr/bin/objformat`
19723   else
19724     case $host_os in
19725     freebsd[123]*) objformat=aout ;;
19726     *) objformat=elf ;;
19727     esac
19728   fi
19729   version_type=freebsd-$objformat
19730   case $version_type in
19731     freebsd-elf*)
19732       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19733       need_version=no
19734       need_lib_prefix=no
19735       ;;
19736     freebsd-*)
19737       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19738       need_version=yes
19739       ;;
19740   esac
19741   shlibpath_var=LD_LIBRARY_PATH
19742   case $host_os in
19743   freebsd2*)
19744     shlibpath_overrides_runpath=yes
19745     ;;
19746   freebsd3.[01]* | freebsdelf3.[01]*)
19747     shlibpath_overrides_runpath=yes
19748     hardcode_into_libs=yes
19749     ;;
19750   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19751   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19752     shlibpath_overrides_runpath=no
19753     hardcode_into_libs=yes
19754     ;;
19755   *) # from 4.6 on, and DragonFly
19756     shlibpath_overrides_runpath=yes
19757     hardcode_into_libs=yes
19758     ;;
19759   esac
19760   ;;
19761
19762 gnu*)
19763   version_type=linux
19764   need_lib_prefix=no
19765   need_version=no
19766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19767   soname_spec='${libname}${release}${shared_ext}$major'
19768   shlibpath_var=LD_LIBRARY_PATH
19769   hardcode_into_libs=yes
19770   ;;
19771
19772 hpux9* | hpux10* | hpux11*)
19773   # Give a soname corresponding to the major version so that dld.sl refuses to
19774   # link against other versions.
19775   version_type=sunos
19776   need_lib_prefix=no
19777   need_version=no
19778   case $host_cpu in
19779   ia64*)
19780     shrext_cmds='.so'
19781     hardcode_into_libs=yes
19782     dynamic_linker="$host_os dld.so"
19783     shlibpath_var=LD_LIBRARY_PATH
19784     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19786     soname_spec='${libname}${release}${shared_ext}$major'
19787     if test "X$HPUX_IA64_MODE" = X32; then
19788       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19789     else
19790       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19791     fi
19792     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19793     ;;
19794    hppa*64*)
19795      shrext_cmds='.sl'
19796      hardcode_into_libs=yes
19797      dynamic_linker="$host_os dld.sl"
19798      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19799      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19800      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801      soname_spec='${libname}${release}${shared_ext}$major'
19802      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19803      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19804      ;;
19805    *)
19806     shrext_cmds='.sl'
19807     dynamic_linker="$host_os dld.sl"
19808     shlibpath_var=SHLIB_PATH
19809     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19810     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19811     soname_spec='${libname}${release}${shared_ext}$major'
19812     ;;
19813   esac
19814   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19815   postinstall_cmds='chmod 555 $lib'
19816   ;;
19817
19818 interix[3-9]*)
19819   version_type=linux
19820   need_lib_prefix=no
19821   need_version=no
19822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19823   soname_spec='${libname}${release}${shared_ext}$major'
19824   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19825   shlibpath_var=LD_LIBRARY_PATH
19826   shlibpath_overrides_runpath=no
19827   hardcode_into_libs=yes
19828   ;;
19829
19830 irix5* | irix6* | nonstopux*)
19831   case $host_os in
19832     nonstopux*) version_type=nonstopux ;;
19833     *)
19834         if test "$lt_cv_prog_gnu_ld" = yes; then
19835                 version_type=linux
19836         else
19837                 version_type=irix
19838         fi ;;
19839   esac
19840   need_lib_prefix=no
19841   need_version=no
19842   soname_spec='${libname}${release}${shared_ext}$major'
19843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19844   case $host_os in
19845   irix5* | nonstopux*)
19846     libsuff= shlibsuff=
19847     ;;
19848   *)
19849     case $LD in # libtool.m4 will add one of these switches to LD
19850     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19851       libsuff= shlibsuff= libmagic=32-bit;;
19852     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19853       libsuff=32 shlibsuff=N32 libmagic=N32;;
19854     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19855       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19856     *) libsuff= shlibsuff= libmagic=never-match;;
19857     esac
19858     ;;
19859   esac
19860   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19861   shlibpath_overrides_runpath=no
19862   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19863   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19864   hardcode_into_libs=yes
19865   ;;
19866
19867 # No shared lib support for Linux oldld, aout, or coff.
19868 linux*oldld* | linux*aout* | linux*coff*)
19869   dynamic_linker=no
19870   ;;
19871
19872 # This must be Linux ELF.
19873 linux* | k*bsd*-gnu)
19874   version_type=linux
19875   need_lib_prefix=no
19876   need_version=no
19877   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19878   soname_spec='${libname}${release}${shared_ext}$major'
19879   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19880   shlibpath_var=LD_LIBRARY_PATH
19881   shlibpath_overrides_runpath=no
19882   # This implies no fast_install, which is unacceptable.
19883   # Some rework will be needed to allow for fast_install
19884   # before this can be enabled.
19885   hardcode_into_libs=yes
19886
19887   # Append ld.so.conf contents to the search path
19888   if test -f /etc/ld.so.conf; then
19889     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' ' '`
19890     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19891   fi
19892
19893   # We used to test for /lib/ld.so.1 and disable shared libraries on
19894   # powerpc, because MkLinux only supported shared libraries with the
19895   # GNU dynamic linker.  Since this was broken with cross compilers,
19896   # most powerpc-linux boxes support dynamic linking these days and
19897   # people can always --disable-shared, the test was removed, and we
19898   # assume the GNU/Linux dynamic linker is in use.
19899   dynamic_linker='GNU/Linux ld.so'
19900   ;;
19901
19902 netbsdelf*-gnu)
19903   version_type=linux
19904   need_lib_prefix=no
19905   need_version=no
19906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19907   soname_spec='${libname}${release}${shared_ext}$major'
19908   shlibpath_var=LD_LIBRARY_PATH
19909   shlibpath_overrides_runpath=no
19910   hardcode_into_libs=yes
19911   dynamic_linker='NetBSD ld.elf_so'
19912   ;;
19913
19914 netbsd*)
19915   version_type=sunos
19916   need_lib_prefix=no
19917   need_version=no
19918   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19920     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19921     dynamic_linker='NetBSD (a.out) ld.so'
19922   else
19923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19924     soname_spec='${libname}${release}${shared_ext}$major'
19925     dynamic_linker='NetBSD ld.elf_so'
19926   fi
19927   shlibpath_var=LD_LIBRARY_PATH
19928   shlibpath_overrides_runpath=yes
19929   hardcode_into_libs=yes
19930   ;;
19931
19932 newsos6)
19933   version_type=linux
19934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19935   shlibpath_var=LD_LIBRARY_PATH
19936   shlibpath_overrides_runpath=yes
19937   ;;
19938
19939 nto-qnx*)
19940   version_type=linux
19941   need_lib_prefix=no
19942   need_version=no
19943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19944   soname_spec='${libname}${release}${shared_ext}$major'
19945   shlibpath_var=LD_LIBRARY_PATH
19946   shlibpath_overrides_runpath=yes
19947   ;;
19948
19949 openbsd*)
19950   version_type=sunos
19951   sys_lib_dlsearch_path_spec="/usr/lib"
19952   need_lib_prefix=no
19953   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19954   case $host_os in
19955     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19956     *)                         need_version=no  ;;
19957   esac
19958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19959   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19960   shlibpath_var=LD_LIBRARY_PATH
19961   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19962     case $host_os in
19963       openbsd2.[89] | openbsd2.[89].*)
19964         shlibpath_overrides_runpath=no
19965         ;;
19966       *)
19967         shlibpath_overrides_runpath=yes
19968         ;;
19969       esac
19970   else
19971     shlibpath_overrides_runpath=yes
19972   fi
19973   ;;
19974
19975 os2*)
19976   libname_spec='$name'
19977   shrext_cmds=".dll"
19978   need_lib_prefix=no
19979   library_names_spec='$libname${shared_ext} $libname.a'
19980   dynamic_linker='OS/2 ld.exe'
19981   shlibpath_var=LIBPATH
19982   ;;
19983
19984 osf3* | osf4* | osf5*)
19985   version_type=osf
19986   need_lib_prefix=no
19987   need_version=no
19988   soname_spec='${libname}${release}${shared_ext}$major'
19989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990   shlibpath_var=LD_LIBRARY_PATH
19991   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19992   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19993   ;;
19994
19995 rdos*)
19996   dynamic_linker=no
19997   ;;
19998
19999 solaris*)
20000   version_type=linux
20001   need_lib_prefix=no
20002   need_version=no
20003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20004   soname_spec='${libname}${release}${shared_ext}$major'
20005   shlibpath_var=LD_LIBRARY_PATH
20006   shlibpath_overrides_runpath=yes
20007   hardcode_into_libs=yes
20008   # ldd complains unless libraries are executable
20009   postinstall_cmds='chmod +x $lib'
20010   ;;
20011
20012 sunos4*)
20013   version_type=sunos
20014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20015   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20016   shlibpath_var=LD_LIBRARY_PATH
20017   shlibpath_overrides_runpath=yes
20018   if test "$with_gnu_ld" = yes; then
20019     need_lib_prefix=no
20020   fi
20021   need_version=yes
20022   ;;
20023
20024 sysv4 | sysv4.3*)
20025   version_type=linux
20026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027   soname_spec='${libname}${release}${shared_ext}$major'
20028   shlibpath_var=LD_LIBRARY_PATH
20029   case $host_vendor in
20030     sni)
20031       shlibpath_overrides_runpath=no
20032       need_lib_prefix=no
20033       export_dynamic_flag_spec='${wl}-Blargedynsym'
20034       runpath_var=LD_RUN_PATH
20035       ;;
20036     siemens)
20037       need_lib_prefix=no
20038       ;;
20039     motorola)
20040       need_lib_prefix=no
20041       need_version=no
20042       shlibpath_overrides_runpath=no
20043       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20044       ;;
20045   esac
20046   ;;
20047
20048 sysv4*MP*)
20049   if test -d /usr/nec ;then
20050     version_type=linux
20051     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20052     soname_spec='$libname${shared_ext}.$major'
20053     shlibpath_var=LD_LIBRARY_PATH
20054   fi
20055   ;;
20056
20057 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20058   version_type=freebsd-elf
20059   need_lib_prefix=no
20060   need_version=no
20061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20062   soname_spec='${libname}${release}${shared_ext}$major'
20063   shlibpath_var=LD_LIBRARY_PATH
20064   hardcode_into_libs=yes
20065   if test "$with_gnu_ld" = yes; then
20066     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20067     shlibpath_overrides_runpath=no
20068   else
20069     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20070     shlibpath_overrides_runpath=yes
20071     case $host_os in
20072       sco3.2v5*)
20073         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20074         ;;
20075     esac
20076   fi
20077   sys_lib_dlsearch_path_spec='/usr/lib'
20078   ;;
20079
20080 uts4*)
20081   version_type=linux
20082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083   soname_spec='${libname}${release}${shared_ext}$major'
20084   shlibpath_var=LD_LIBRARY_PATH
20085   ;;
20086
20087 *)
20088   dynamic_linker=no
20089   ;;
20090 esac
20091 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20092 echo "${ECHO_T}$dynamic_linker" >&6; }
20093 test "$dynamic_linker" = no && can_build_shared=no
20094
20095 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20096   echo $ECHO_N "(cached) $ECHO_C" >&6
20097 else
20098   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
20099 fi
20100
20101 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20102 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20103   echo $ECHO_N "(cached) $ECHO_C" >&6
20104 else
20105   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
20106 fi
20107
20108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20109
20110 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20111 if test "$GCC" = yes; then
20112   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20113 fi
20114
20115 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20116 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20117 hardcode_action_CXX=
20118 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20119    test -n "$runpath_var_CXX" || \
20120    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20121
20122   # We can hardcode non-existant directories.
20123   if test "$hardcode_direct_CXX" != no &&
20124      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20125      # have to relink, otherwise we might link with an installed library
20126      # when we should be linking with a yet-to-be-installed one
20127      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20128      test "$hardcode_minus_L_CXX" != no; then
20129     # Linking always hardcodes the temporary library directory.
20130     hardcode_action_CXX=relink
20131   else
20132     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20133     hardcode_action_CXX=immediate
20134   fi
20135 else
20136   # We cannot hardcode anything, or else we can only hardcode existing
20137   # directories.
20138   hardcode_action_CXX=unsupported
20139 fi
20140 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20141 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
20142
20143 if test "$hardcode_action_CXX" = relink; then
20144   # Fast installation is not supported
20145   enable_fast_install=no
20146 elif test "$shlibpath_overrides_runpath" = yes ||
20147      test "$enable_shared" = no; then
20148   # Fast installation is not necessary
20149   enable_fast_install=needless
20150 fi
20151
20152
20153 # The else clause should only fire when bootstrapping the
20154 # libtool distribution, otherwise you forgot to ship ltmain.sh
20155 # with your package, and you will get complaints that there are
20156 # no rules to generate ltmain.sh.
20157 if test -f "$ltmain"; then
20158   # See if we are running on zsh, and set the options which allow our commands through
20159   # without removal of \ escapes.
20160   if test -n "${ZSH_VERSION+set}" ; then
20161     setopt NO_GLOB_SUBST
20162   fi
20163   # Now quote all the things that may contain metacharacters while being
20164   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20165   # variables and quote the copies for generation of the libtool script.
20166   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20167     SED SHELL STRIP \
20168     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20169     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20170     deplibs_check_method reload_flag reload_cmds need_locks \
20171     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20172     lt_cv_sys_global_symbol_to_c_name_address \
20173     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20174     old_postinstall_cmds old_postuninstall_cmds \
20175     compiler_CXX \
20176     CC_CXX \
20177     LD_CXX \
20178     lt_prog_compiler_wl_CXX \
20179     lt_prog_compiler_pic_CXX \
20180     lt_prog_compiler_static_CXX \
20181     lt_prog_compiler_no_builtin_flag_CXX \
20182     export_dynamic_flag_spec_CXX \
20183     thread_safe_flag_spec_CXX \
20184     whole_archive_flag_spec_CXX \
20185     enable_shared_with_static_runtimes_CXX \
20186     old_archive_cmds_CXX \
20187     old_archive_from_new_cmds_CXX \
20188     predep_objects_CXX \
20189     postdep_objects_CXX \
20190     predeps_CXX \
20191     postdeps_CXX \
20192     compiler_lib_search_path_CXX \
20193     compiler_lib_search_dirs_CXX \
20194     archive_cmds_CXX \
20195     archive_expsym_cmds_CXX \
20196     postinstall_cmds_CXX \
20197     postuninstall_cmds_CXX \
20198     old_archive_from_expsyms_cmds_CXX \
20199     allow_undefined_flag_CXX \
20200     no_undefined_flag_CXX \
20201     export_symbols_cmds_CXX \
20202     hardcode_libdir_flag_spec_CXX \
20203     hardcode_libdir_flag_spec_ld_CXX \
20204     hardcode_libdir_separator_CXX \
20205     hardcode_automatic_CXX \
20206     module_cmds_CXX \
20207     module_expsym_cmds_CXX \
20208     lt_cv_prog_compiler_c_o_CXX \
20209     fix_srcfile_path_CXX \
20210     exclude_expsyms_CXX \
20211     include_expsyms_CXX; do
20212
20213     case $var in
20214     old_archive_cmds_CXX | \
20215     old_archive_from_new_cmds_CXX | \
20216     archive_cmds_CXX | \
20217     archive_expsym_cmds_CXX | \
20218     module_cmds_CXX | \
20219     module_expsym_cmds_CXX | \
20220     old_archive_from_expsyms_cmds_CXX | \
20221     export_symbols_cmds_CXX | \
20222     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20223     postinstall_cmds | postuninstall_cmds | \
20224     old_postinstall_cmds | old_postuninstall_cmds | \
20225     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20226       # Double-quote double-evaled strings.
20227       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20228       ;;
20229     *)
20230       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20231       ;;
20232     esac
20233   done
20234
20235   case $lt_echo in
20236   *'\$0 --fallback-echo"')
20237     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20238     ;;
20239   esac
20240
20241 cfgfile="$ofile"
20242
20243   cat <<__EOF__ >> "$cfgfile"
20244 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20245
20246 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20247
20248 # Shell to use when invoking shell scripts.
20249 SHELL=$lt_SHELL
20250
20251 # Whether or not to build shared libraries.
20252 build_libtool_libs=$enable_shared
20253
20254 # Whether or not to build static libraries.
20255 build_old_libs=$enable_static
20256
20257 # Whether or not to add -lc for building shared libraries.
20258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20259
20260 # Whether or not to disallow shared libs when runtime libs are static
20261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20262
20263 # Whether or not to optimize for fast installation.
20264 fast_install=$enable_fast_install
20265
20266 # The host system.
20267 host_alias=$host_alias
20268 host=$host
20269 host_os=$host_os
20270
20271 # The build system.
20272 build_alias=$build_alias
20273 build=$build
20274 build_os=$build_os
20275
20276 # An echo program that does not interpret backslashes.
20277 echo=$lt_echo
20278
20279 # The archiver.
20280 AR=$lt_AR
20281 AR_FLAGS=$lt_AR_FLAGS
20282
20283 # A C compiler.
20284 LTCC=$lt_LTCC
20285
20286 # LTCC compiler flags.
20287 LTCFLAGS=$lt_LTCFLAGS
20288
20289 # A language-specific compiler.
20290 CC=$lt_compiler_CXX
20291
20292 # Is the compiler the GNU C compiler?
20293 with_gcc=$GCC_CXX
20294
20295 # An ERE matcher.
20296 EGREP=$lt_EGREP
20297
20298 # The linker used to build libraries.
20299 LD=$lt_LD_CXX
20300
20301 # Whether we need hard or soft links.
20302 LN_S=$lt_LN_S
20303
20304 # A BSD-compatible nm program.
20305 NM=$lt_NM
20306
20307 # A symbol stripping program
20308 STRIP=$lt_STRIP
20309
20310 # Used to examine libraries when file_magic_cmd begins "file"
20311 MAGIC_CMD=$MAGIC_CMD
20312
20313 # Used on cygwin: DLL creation program.
20314 DLLTOOL="$DLLTOOL"
20315
20316 # Used on cygwin: object dumper.
20317 OBJDUMP="$OBJDUMP"
20318
20319 # Used on cygwin: assembler.
20320 AS="$AS"
20321
20322 # The name of the directory that contains temporary libtool files.
20323 objdir=$objdir
20324
20325 # How to create reloadable object files.
20326 reload_flag=$lt_reload_flag
20327 reload_cmds=$lt_reload_cmds
20328
20329 # How to pass a linker flag through the compiler.
20330 wl=$lt_lt_prog_compiler_wl_CXX
20331
20332 # Object file suffix (normally "o").
20333 objext="$ac_objext"
20334
20335 # Old archive suffix (normally "a").
20336 libext="$libext"
20337
20338 # Shared library suffix (normally ".so").
20339 shrext_cmds='$shrext_cmds'
20340
20341 # Executable file suffix (normally "").
20342 exeext="$exeext"
20343
20344 # Additional compiler flags for building library objects.
20345 pic_flag=$lt_lt_prog_compiler_pic_CXX
20346 pic_mode=$pic_mode
20347
20348 # What is the maximum length of a command?
20349 max_cmd_len=$lt_cv_sys_max_cmd_len
20350
20351 # Does compiler simultaneously support -c and -o options?
20352 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20353
20354 # Must we lock files when doing compilation?
20355 need_locks=$lt_need_locks
20356
20357 # Do we need the lib prefix for modules?
20358 need_lib_prefix=$need_lib_prefix
20359
20360 # Do we need a version for libraries?
20361 need_version=$need_version
20362
20363 # Whether dlopen is supported.
20364 dlopen_support=$enable_dlopen
20365
20366 # Whether dlopen of programs is supported.
20367 dlopen_self=$enable_dlopen_self
20368
20369 # Whether dlopen of statically linked programs is supported.
20370 dlopen_self_static=$enable_dlopen_self_static
20371
20372 # Compiler flag to prevent dynamic linking.
20373 link_static_flag=$lt_lt_prog_compiler_static_CXX
20374
20375 # Compiler flag to turn off builtin functions.
20376 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20377
20378 # Compiler flag to allow reflexive dlopens.
20379 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20380
20381 # Compiler flag to generate shared objects directly from archives.
20382 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20383
20384 # Compiler flag to generate thread-safe objects.
20385 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20386
20387 # Library versioning type.
20388 version_type=$version_type
20389
20390 # Format of library name prefix.
20391 libname_spec=$lt_libname_spec
20392
20393 # List of archive names.  First name is the real one, the rest are links.
20394 # The last name is the one that the linker finds with -lNAME.
20395 library_names_spec=$lt_library_names_spec
20396
20397 # The coded name of the library, if different from the real name.
20398 soname_spec=$lt_soname_spec
20399
20400 # Commands used to build and install an old-style archive.
20401 RANLIB=$lt_RANLIB
20402 old_archive_cmds=$lt_old_archive_cmds_CXX
20403 old_postinstall_cmds=$lt_old_postinstall_cmds
20404 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20405
20406 # Create an old-style archive from a shared archive.
20407 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20408
20409 # Create a temporary old-style archive to link instead of a shared archive.
20410 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20411
20412 # Commands used to build and install a shared archive.
20413 archive_cmds=$lt_archive_cmds_CXX
20414 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20415 postinstall_cmds=$lt_postinstall_cmds
20416 postuninstall_cmds=$lt_postuninstall_cmds
20417
20418 # Commands used to build a loadable module (assumed same as above if empty)
20419 module_cmds=$lt_module_cmds_CXX
20420 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20421
20422 # Commands to strip libraries.
20423 old_striplib=$lt_old_striplib
20424 striplib=$lt_striplib
20425
20426 # Dependencies to place before the objects being linked to create a
20427 # shared library.
20428 predep_objects=$lt_predep_objects_CXX
20429
20430 # Dependencies to place after the objects being linked to create a
20431 # shared library.
20432 postdep_objects=$lt_postdep_objects_CXX
20433
20434 # Dependencies to place before the objects being linked to create a
20435 # shared library.
20436 predeps=$lt_predeps_CXX
20437
20438 # Dependencies to place after the objects being linked to create a
20439 # shared library.
20440 postdeps=$lt_postdeps_CXX
20441
20442 # The directories searched by this compiler when creating a shared
20443 # library
20444 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20445
20446 # The library search path used internally by the compiler when linking
20447 # a shared library.
20448 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20449
20450 # Method to check whether dependent libraries are shared objects.
20451 deplibs_check_method=$lt_deplibs_check_method
20452
20453 # Command to use when deplibs_check_method == file_magic.
20454 file_magic_cmd=$lt_file_magic_cmd
20455
20456 # Flag that allows shared libraries with undefined symbols to be built.
20457 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20458
20459 # Flag that forces no undefined symbols.
20460 no_undefined_flag=$lt_no_undefined_flag_CXX
20461
20462 # Commands used to finish a libtool library installation in a directory.
20463 finish_cmds=$lt_finish_cmds
20464
20465 # Same as above, but a single script fragment to be evaled but not shown.
20466 finish_eval=$lt_finish_eval
20467
20468 # Take the output of nm and produce a listing of raw symbols and C names.
20469 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20470
20471 # Transform the output of nm in a proper C declaration
20472 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20473
20474 # Transform the output of nm in a C name address pair
20475 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20476
20477 # This is the shared library runtime path variable.
20478 runpath_var=$runpath_var
20479
20480 # This is the shared library path variable.
20481 shlibpath_var=$shlibpath_var
20482
20483 # Is shlibpath searched before the hard-coded library search path?
20484 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20485
20486 # How to hardcode a shared library path into an executable.
20487 hardcode_action=$hardcode_action_CXX
20488
20489 # Whether we should hardcode library paths into libraries.
20490 hardcode_into_libs=$hardcode_into_libs
20491
20492 # Flag to hardcode \$libdir into a binary during linking.
20493 # This must work even if \$libdir does not exist.
20494 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20495
20496 # If ld is used when linking, flag to hardcode \$libdir into
20497 # a binary during linking. This must work even if \$libdir does
20498 # not exist.
20499 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20500
20501 # Whether we need a single -rpath flag with a separated argument.
20502 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20503
20504 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20505 # resulting binary.
20506 hardcode_direct=$hardcode_direct_CXX
20507
20508 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20509 # resulting binary.
20510 hardcode_minus_L=$hardcode_minus_L_CXX
20511
20512 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20513 # the resulting binary.
20514 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20515
20516 # Set to yes if building a shared library automatically hardcodes DIR into the library
20517 # and all subsequent libraries and executables linked against it.
20518 hardcode_automatic=$hardcode_automatic_CXX
20519
20520 # Variables whose values should be saved in libtool wrapper scripts and
20521 # restored at relink time.
20522 variables_saved_for_relink="$variables_saved_for_relink"
20523
20524 # Whether libtool must link a program against all its dependency libraries.
20525 link_all_deplibs=$link_all_deplibs_CXX
20526
20527 # Compile-time system search path for libraries
20528 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20529
20530 # Run-time system search path for libraries
20531 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20532
20533 # Fix the shell variable \$srcfile for the compiler.
20534 fix_srcfile_path=$lt_fix_srcfile_path
20535
20536 # Set to yes if exported symbols are required.
20537 always_export_symbols=$always_export_symbols_CXX
20538
20539 # The commands to list exported symbols.
20540 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20541
20542 # The commands to extract the exported symbol list from a shared archive.
20543 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20544
20545 # Symbols that should not be listed in the preloaded symbols.
20546 exclude_expsyms=$lt_exclude_expsyms_CXX
20547
20548 # Symbols that must always be exported.
20549 include_expsyms=$lt_include_expsyms_CXX
20550
20551 # ### END LIBTOOL TAG CONFIG: $tagname
20552
20553 __EOF__
20554
20555
20556 else
20557   # If there is no Makefile yet, we rely on a make rule to execute
20558   # `config.status --recheck' to rerun these tests and create the
20559   # libtool script then.
20560   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20561   if test -f "$ltmain_in"; then
20562     test -f Makefile && make "$ltmain"
20563   fi
20564 fi
20565
20566
20567 ac_ext=c
20568 ac_cpp='$CPP $CPPFLAGS'
20569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20572
20573 CC=$lt_save_CC
20574 LDCXX=$LD
20575 LD=$lt_save_LD
20576 GCC=$lt_save_GCC
20577 with_gnu_ldcxx=$with_gnu_ld
20578 with_gnu_ld=$lt_save_with_gnu_ld
20579 lt_cv_path_LDCXX=$lt_cv_path_LD
20580 lt_cv_path_LD=$lt_save_path_LD
20581 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20582 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20583
20584         else
20585           tagname=""
20586         fi
20587         ;;
20588
20589       F77)
20590         if test -n "$F77" && test "X$F77" != "Xno"; then
20591
20592 ac_ext=f
20593 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20594 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20595 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20596
20597
20598 archive_cmds_need_lc_F77=no
20599 allow_undefined_flag_F77=
20600 always_export_symbols_F77=no
20601 archive_expsym_cmds_F77=
20602 export_dynamic_flag_spec_F77=
20603 hardcode_direct_F77=no
20604 hardcode_libdir_flag_spec_F77=
20605 hardcode_libdir_flag_spec_ld_F77=
20606 hardcode_libdir_separator_F77=
20607 hardcode_minus_L_F77=no
20608 hardcode_automatic_F77=no
20609 module_cmds_F77=
20610 module_expsym_cmds_F77=
20611 link_all_deplibs_F77=unknown
20612 old_archive_cmds_F77=$old_archive_cmds
20613 no_undefined_flag_F77=
20614 whole_archive_flag_spec_F77=
20615 enable_shared_with_static_runtimes_F77=no
20616
20617 # Source file extension for f77 test sources.
20618 ac_ext=f
20619
20620 # Object file extension for compiled f77 test sources.
20621 objext=o
20622 objext_F77=$objext
20623
20624 # Code to be used in simple compile tests
20625 lt_simple_compile_test_code="\
20626       subroutine t
20627       return
20628       end
20629 "
20630
20631 # Code to be used in simple link tests
20632 lt_simple_link_test_code="\
20633       program t
20634       end
20635 "
20636
20637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20638
20639 # If no C compiler was specified, use CC.
20640 LTCC=${LTCC-"$CC"}
20641
20642 # If no C compiler flags were specified, use CFLAGS.
20643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20644
20645 # Allow CC to be a program name with arguments.
20646 compiler=$CC
20647
20648
20649 # save warnings/boilerplate of simple test code
20650 ac_outfile=conftest.$ac_objext
20651 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20653 _lt_compiler_boilerplate=`cat conftest.err`
20654 $rm conftest*
20655
20656 ac_outfile=conftest.$ac_objext
20657 echo "$lt_simple_link_test_code" >conftest.$ac_ext
20658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20659 _lt_linker_boilerplate=`cat conftest.err`
20660 $rm -r conftest*
20661
20662
20663 # Allow CC to be a program name with arguments.
20664 lt_save_CC="$CC"
20665 CC=${F77-"f77"}
20666 compiler=$CC
20667 compiler_F77=$CC
20668 for cc_temp in $compiler""; do
20669   case $cc_temp in
20670     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20671     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20672     \-*) ;;
20673     *) break;;
20674   esac
20675 done
20676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20677
20678
20679 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20680 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20681 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20682 echo "${ECHO_T}$can_build_shared" >&6; }
20683
20684 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20685 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20686 test "$can_build_shared" = "no" && enable_shared=no
20687
20688 # On AIX, shared libraries and static libraries use the same namespace, and
20689 # are all built from PIC.
20690 case $host_os in
20691 aix3*)
20692   test "$enable_shared" = yes && enable_static=no
20693   if test -n "$RANLIB"; then
20694     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20695     postinstall_cmds='$RANLIB $lib'
20696   fi
20697   ;;
20698 aix[4-9]*)
20699   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20700     test "$enable_shared" = yes && enable_static=no
20701   fi
20702   ;;
20703 esac
20704 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20705 echo "${ECHO_T}$enable_shared" >&6; }
20706
20707 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20708 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20709 # Make sure either enable_shared or enable_static is yes.
20710 test "$enable_shared" = yes || enable_static=yes
20711 { echo "$as_me:$LINENO: result: $enable_static" >&5
20712 echo "${ECHO_T}$enable_static" >&6; }
20713
20714 GCC_F77="$G77"
20715 LD_F77="$LD"
20716
20717 lt_prog_compiler_wl_F77=
20718 lt_prog_compiler_pic_F77=
20719 lt_prog_compiler_static_F77=
20720
20721 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20722 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20723
20724   if test "$GCC" = yes; then
20725     lt_prog_compiler_wl_F77='-Wl,'
20726     lt_prog_compiler_static_F77='-static'
20727
20728     case $host_os in
20729       aix*)
20730       # All AIX code is PIC.
20731       if test "$host_cpu" = ia64; then
20732         # AIX 5 now supports IA64 processor
20733         lt_prog_compiler_static_F77='-Bstatic'
20734       fi
20735       ;;
20736
20737     amigaos*)
20738       # FIXME: we need at least 68020 code to build shared libraries, but
20739       # adding the `-m68020' flag to GCC prevents building anything better,
20740       # like `-m68040'.
20741       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20742       ;;
20743
20744     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20745       # PIC is the default for these OSes.
20746       ;;
20747
20748     mingw* | cygwin* | pw32* | os2*)
20749       # This hack is so that the source file can tell whether it is being
20750       # built for inclusion in a dll (and should export symbols for example).
20751       # Although the cygwin gcc ignores -fPIC, still need this for old-style
20752       # (--disable-auto-import) libraries
20753       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20754       ;;
20755
20756     darwin* | rhapsody*)
20757       # PIC is the default on this platform
20758       # Common symbols not allowed in MH_DYLIB files
20759       lt_prog_compiler_pic_F77='-fno-common'
20760       ;;
20761
20762     interix[3-9]*)
20763       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20764       # Instead, we relocate shared libraries at runtime.
20765       ;;
20766
20767     msdosdjgpp*)
20768       # Just because we use GCC doesn't mean we suddenly get shared libraries
20769       # on systems that don't support them.
20770       lt_prog_compiler_can_build_shared_F77=no
20771       enable_shared=no
20772       ;;
20773
20774     sysv4*MP*)
20775       if test -d /usr/nec; then
20776         lt_prog_compiler_pic_F77=-Kconform_pic
20777       fi
20778       ;;
20779
20780     hpux*)
20781       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20782       # not for PA HP-UX.
20783       case $host_cpu in
20784       hppa*64*|ia64*)
20785         # +Z the default
20786         ;;
20787       *)
20788         lt_prog_compiler_pic_F77='-fPIC'
20789         ;;
20790       esac
20791       ;;
20792
20793     *)
20794       lt_prog_compiler_pic_F77='-fPIC'
20795       ;;
20796     esac
20797   else
20798     # PORTME Check for flag to pass linker flags through the system compiler.
20799     case $host_os in
20800     aix*)
20801       lt_prog_compiler_wl_F77='-Wl,'
20802       if test "$host_cpu" = ia64; then
20803         # AIX 5 now supports IA64 processor
20804         lt_prog_compiler_static_F77='-Bstatic'
20805       else
20806         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20807       fi
20808       ;;
20809       darwin*)
20810         # PIC is the default on this platform
20811         # Common symbols not allowed in MH_DYLIB files
20812        case $cc_basename in
20813          xlc*)
20814          lt_prog_compiler_pic_F77='-qnocommon'
20815          lt_prog_compiler_wl_F77='-Wl,'
20816          ;;
20817        esac
20818        ;;
20819
20820     mingw* | cygwin* | pw32* | os2*)
20821       # This hack is so that the source file can tell whether it is being
20822       # built for inclusion in a dll (and should export symbols for example).
20823       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20824       ;;
20825
20826     hpux9* | hpux10* | hpux11*)
20827       lt_prog_compiler_wl_F77='-Wl,'
20828       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20829       # not for PA HP-UX.
20830       case $host_cpu in
20831       hppa*64*|ia64*)
20832         # +Z the default
20833         ;;
20834       *)
20835         lt_prog_compiler_pic_F77='+Z'
20836         ;;
20837       esac
20838       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20839       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20840       ;;
20841
20842     irix5* | irix6* | nonstopux*)
20843       lt_prog_compiler_wl_F77='-Wl,'
20844       # PIC (with -KPIC) is the default.
20845       lt_prog_compiler_static_F77='-non_shared'
20846       ;;
20847
20848     newsos6)
20849       lt_prog_compiler_pic_F77='-KPIC'
20850       lt_prog_compiler_static_F77='-Bstatic'
20851       ;;
20852
20853     linux* | k*bsd*-gnu)
20854       case $cc_basename in
20855       icc* | ecc*)
20856         lt_prog_compiler_wl_F77='-Wl,'
20857         lt_prog_compiler_pic_F77='-KPIC'
20858         lt_prog_compiler_static_F77='-static'
20859         ;;
20860       pgcc* | pgf77* | pgf90* | pgf95*)
20861         # Portland Group compilers (*not* the Pentium gcc compiler,
20862         # which looks to be a dead project)
20863         lt_prog_compiler_wl_F77='-Wl,'
20864         lt_prog_compiler_pic_F77='-fpic'
20865         lt_prog_compiler_static_F77='-Bstatic'
20866         ;;
20867       ccc*)
20868         lt_prog_compiler_wl_F77='-Wl,'
20869         # All Alpha code is PIC.
20870         lt_prog_compiler_static_F77='-non_shared'
20871         ;;
20872       *)
20873         case `$CC -V 2>&1 | sed 5q` in
20874         *Sun\ C*)
20875           # Sun C 5.9
20876           lt_prog_compiler_pic_F77='-KPIC'
20877           lt_prog_compiler_static_F77='-Bstatic'
20878           lt_prog_compiler_wl_F77='-Wl,'
20879           ;;
20880         *Sun\ F*)
20881           # Sun Fortran 8.3 passes all unrecognized flags to the linker
20882           lt_prog_compiler_pic_F77='-KPIC'
20883           lt_prog_compiler_static_F77='-Bstatic'
20884           lt_prog_compiler_wl_F77=''
20885           ;;
20886         esac
20887         ;;
20888       esac
20889       ;;
20890
20891     osf3* | osf4* | osf5*)
20892       lt_prog_compiler_wl_F77='-Wl,'
20893       # All OSF/1 code is PIC.
20894       lt_prog_compiler_static_F77='-non_shared'
20895       ;;
20896
20897     rdos*)
20898       lt_prog_compiler_static_F77='-non_shared'
20899       ;;
20900
20901     solaris*)
20902       lt_prog_compiler_pic_F77='-KPIC'
20903       lt_prog_compiler_static_F77='-Bstatic'
20904       case $cc_basename in
20905       f77* | f90* | f95*)
20906         lt_prog_compiler_wl_F77='-Qoption ld ';;
20907       *)
20908         lt_prog_compiler_wl_F77='-Wl,';;
20909       esac
20910       ;;
20911
20912     sunos4*)
20913       lt_prog_compiler_wl_F77='-Qoption ld '
20914       lt_prog_compiler_pic_F77='-PIC'
20915       lt_prog_compiler_static_F77='-Bstatic'
20916       ;;
20917
20918     sysv4 | sysv4.2uw2* | sysv4.3*)
20919       lt_prog_compiler_wl_F77='-Wl,'
20920       lt_prog_compiler_pic_F77='-KPIC'
20921       lt_prog_compiler_static_F77='-Bstatic'
20922       ;;
20923
20924     sysv4*MP*)
20925       if test -d /usr/nec ;then
20926         lt_prog_compiler_pic_F77='-Kconform_pic'
20927         lt_prog_compiler_static_F77='-Bstatic'
20928       fi
20929       ;;
20930
20931     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20932       lt_prog_compiler_wl_F77='-Wl,'
20933       lt_prog_compiler_pic_F77='-KPIC'
20934       lt_prog_compiler_static_F77='-Bstatic'
20935       ;;
20936
20937     unicos*)
20938       lt_prog_compiler_wl_F77='-Wl,'
20939       lt_prog_compiler_can_build_shared_F77=no
20940       ;;
20941
20942     uts4*)
20943       lt_prog_compiler_pic_F77='-pic'
20944       lt_prog_compiler_static_F77='-Bstatic'
20945       ;;
20946
20947     *)
20948       lt_prog_compiler_can_build_shared_F77=no
20949       ;;
20950     esac
20951   fi
20952
20953 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20954 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20955
20956 #
20957 # Check to make sure the PIC flag actually works.
20958 #
20959 if test -n "$lt_prog_compiler_pic_F77"; then
20960
20961 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20962 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20963 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
20964   echo $ECHO_N "(cached) $ECHO_C" >&6
20965 else
20966   lt_cv_prog_compiler_pic_works_F77=no
20967   ac_outfile=conftest.$ac_objext
20968    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20969    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20970    # Insert the option either (1) after the last *FLAGS variable, or
20971    # (2) before a word containing "conftest.", or (3) at the end.
20972    # Note that $ac_compile itself does not contain backslashes and begins
20973    # with a dollar sign (not a hyphen), so the echo should work correctly.
20974    # The option is referenced via a variable to avoid confusing sed.
20975    lt_compile=`echo "$ac_compile" | $SED \
20976    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20977    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20978    -e 's:$: $lt_compiler_flag:'`
20979    (eval echo "\"\$as_me:20979: $lt_compile\"" >&5)
20980    (eval "$lt_compile" 2>conftest.err)
20981    ac_status=$?
20982    cat conftest.err >&5
20983    echo "$as_me:20983: \$? = $ac_status" >&5
20984    if (exit $ac_status) && test -s "$ac_outfile"; then
20985      # The compiler can only warn and ignore the option if not recognized
20986      # So say no if there are warnings other than the usual output.
20987      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20988      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20989      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20990        lt_cv_prog_compiler_pic_works_F77=yes
20991      fi
20992    fi
20993    $rm conftest*
20994
20995 fi
20996 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
20997 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
20998
20999 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21000     case $lt_prog_compiler_pic_F77 in
21001      "" | " "*) ;;
21002      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21003      esac
21004 else
21005     lt_prog_compiler_pic_F77=
21006      lt_prog_compiler_can_build_shared_F77=no
21007 fi
21008
21009 fi
21010 case $host_os in
21011   # For platforms which do not support PIC, -DPIC is meaningless:
21012   *djgpp*)
21013     lt_prog_compiler_pic_F77=
21014     ;;
21015   *)
21016     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21017     ;;
21018 esac
21019
21020 #
21021 # Check to make sure the static flag actually works.
21022 #
21023 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21024 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21025 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21026 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
21027   echo $ECHO_N "(cached) $ECHO_C" >&6
21028 else
21029   lt_cv_prog_compiler_static_works_F77=no
21030    save_LDFLAGS="$LDFLAGS"
21031    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21032    echo "$lt_simple_link_test_code" > conftest.$ac_ext
21033    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21034      # The linker can only warn and ignore the option if not recognized
21035      # So say no if there are warnings
21036      if test -s conftest.err; then
21037        # Append any errors to the config.log.
21038        cat conftest.err 1>&5
21039        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21040        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21041        if diff conftest.exp conftest.er2 >/dev/null; then
21042          lt_cv_prog_compiler_static_works_F77=yes
21043        fi
21044      else
21045        lt_cv_prog_compiler_static_works_F77=yes
21046      fi
21047    fi
21048    $rm -r conftest*
21049    LDFLAGS="$save_LDFLAGS"
21050
21051 fi
21052 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
21053 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
21054
21055 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21056     :
21057 else
21058     lt_prog_compiler_static_F77=
21059 fi
21060
21061
21062 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21063 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
21064 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21065   echo $ECHO_N "(cached) $ECHO_C" >&6
21066 else
21067   lt_cv_prog_compiler_c_o_F77=no
21068    $rm -r conftest 2>/dev/null
21069    mkdir conftest
21070    cd conftest
21071    mkdir out
21072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21073
21074    lt_compiler_flag="-o out/conftest2.$ac_objext"
21075    # Insert the option either (1) after the last *FLAGS variable, or
21076    # (2) before a word containing "conftest.", or (3) at the end.
21077    # Note that $ac_compile itself does not contain backslashes and begins
21078    # with a dollar sign (not a hyphen), so the echo should work correctly.
21079    lt_compile=`echo "$ac_compile" | $SED \
21080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21082    -e 's:$: $lt_compiler_flag:'`
21083    (eval echo "\"\$as_me:21083: $lt_compile\"" >&5)
21084    (eval "$lt_compile" 2>out/conftest.err)
21085    ac_status=$?
21086    cat out/conftest.err >&5
21087    echo "$as_me:21087: \$? = $ac_status" >&5
21088    if (exit $ac_status) && test -s out/conftest2.$ac_objext
21089    then
21090      # The compiler can only warn and ignore the option if not recognized
21091      # So say no if there are warnings
21092      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21093      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21094      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21095        lt_cv_prog_compiler_c_o_F77=yes
21096      fi
21097    fi
21098    chmod u+w . 2>&5
21099    $rm conftest*
21100    # SGI C++ compiler will create directory out/ii_files/ for
21101    # template instantiation
21102    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21103    $rm out/* && rmdir out
21104    cd ..
21105    rmdir conftest
21106    $rm conftest*
21107
21108 fi
21109 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21110 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
21111
21112
21113 hard_links="nottested"
21114 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21115   # do not overwrite the value of need_locks provided by the user
21116   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21117 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
21118   hard_links=yes
21119   $rm conftest*
21120   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21121   touch conftest.a
21122   ln conftest.a conftest.b 2>&5 || hard_links=no
21123   ln conftest.a conftest.b 2>/dev/null && hard_links=no
21124   { echo "$as_me:$LINENO: result: $hard_links" >&5
21125 echo "${ECHO_T}$hard_links" >&6; }
21126   if test "$hard_links" = no; then
21127     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21128 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21129     need_locks=warn
21130   fi
21131 else
21132   need_locks=no
21133 fi
21134
21135 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21136 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
21137
21138   runpath_var=
21139   allow_undefined_flag_F77=
21140   enable_shared_with_static_runtimes_F77=no
21141   archive_cmds_F77=
21142   archive_expsym_cmds_F77=
21143   old_archive_From_new_cmds_F77=
21144   old_archive_from_expsyms_cmds_F77=
21145   export_dynamic_flag_spec_F77=
21146   whole_archive_flag_spec_F77=
21147   thread_safe_flag_spec_F77=
21148   hardcode_libdir_flag_spec_F77=
21149   hardcode_libdir_flag_spec_ld_F77=
21150   hardcode_libdir_separator_F77=
21151   hardcode_direct_F77=no
21152   hardcode_minus_L_F77=no
21153   hardcode_shlibpath_var_F77=unsupported
21154   link_all_deplibs_F77=unknown
21155   hardcode_automatic_F77=no
21156   module_cmds_F77=
21157   module_expsym_cmds_F77=
21158   always_export_symbols_F77=no
21159   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21160   # include_expsyms should be a list of space-separated symbols to be *always*
21161   # included in the symbol list
21162   include_expsyms_F77=
21163   # exclude_expsyms can be an extended regexp of symbols to exclude
21164   # it will be wrapped by ` (' and `)$', so one must not match beginning or
21165   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21166   # as well as any symbol that contains `d'.
21167   exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21168   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21169   # platforms (ab)use it in PIC code, but their linkers get confused if
21170   # the symbol is explicitly referenced.  Since portable code cannot
21171   # rely on this symbol name, it's probably fine to never include it in
21172   # preloaded symbol tables.
21173   # Exclude shared library initialization/finalization symbols.
21174   extract_expsyms_cmds=
21175   # Just being paranoid about ensuring that cc_basename is set.
21176   for cc_temp in $compiler""; do
21177   case $cc_temp in
21178     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21179     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21180     \-*) ;;
21181     *) break;;
21182   esac
21183 done
21184 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21185
21186   case $host_os in
21187   cygwin* | mingw* | pw32*)
21188     # FIXME: the MSVC++ port hasn't been tested in a loooong time
21189     # When not using gcc, we currently assume that we are using
21190     # Microsoft Visual C++.
21191     if test "$GCC" != yes; then
21192       with_gnu_ld=no
21193     fi
21194     ;;
21195   interix*)
21196     # we just hope/assume this is gcc and not c89 (= MSVC++)
21197     with_gnu_ld=yes
21198     ;;
21199   openbsd*)
21200     with_gnu_ld=no
21201     ;;
21202   esac
21203
21204   ld_shlibs_F77=yes
21205   if test "$with_gnu_ld" = yes; then
21206     # If archive_cmds runs LD, not CC, wlarc should be empty
21207     wlarc='${wl}'
21208
21209     # Set some defaults for GNU ld with shared library support. These
21210     # are reset later if shared libraries are not supported. Putting them
21211     # here allows them to be overridden if necessary.
21212     runpath_var=LD_RUN_PATH
21213     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21214     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21215     # ancient GNU ld didn't support --whole-archive et. al.
21216     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21217         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21218       else
21219         whole_archive_flag_spec_F77=
21220     fi
21221     supports_anon_versioning=no
21222     case `$LD -v 2>/dev/null` in
21223       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21224       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21225       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21226       *\ 2.11.*) ;; # other 2.11 versions
21227       *) supports_anon_versioning=yes ;;
21228     esac
21229
21230     # See if GNU ld supports shared libraries.
21231     case $host_os in
21232     aix[3-9]*)
21233       # On AIX/PPC, the GNU linker is very broken
21234       if test "$host_cpu" != ia64; then
21235         ld_shlibs_F77=no
21236         cat <<EOF 1>&2
21237
21238 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21239 *** to be unable to reliably create shared libraries on AIX.
21240 *** Therefore, libtool is disabling shared libraries support.  If you
21241 *** really care for shared libraries, you may want to modify your PATH
21242 *** so that a non-GNU linker is found, and then restart.
21243
21244 EOF
21245       fi
21246       ;;
21247
21248     amigaos*)
21249       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)'
21250       hardcode_libdir_flag_spec_F77='-L$libdir'
21251       hardcode_minus_L_F77=yes
21252
21253       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21254       # that the semantics of dynamic libraries on AmigaOS, at least up
21255       # to version 4, is to share data among multiple programs linked
21256       # with the same dynamic library.  Since this doesn't match the
21257       # behavior of shared libraries on other platforms, we can't use
21258       # them.
21259       ld_shlibs_F77=no
21260       ;;
21261
21262     beos*)
21263       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21264         allow_undefined_flag_F77=unsupported
21265         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21266         # support --undefined.  This deserves some investigation.  FIXME
21267         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21268       else
21269         ld_shlibs_F77=no
21270       fi
21271       ;;
21272
21273     cygwin* | mingw* | pw32*)
21274       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21275       # as there is no search path for DLLs.
21276       hardcode_libdir_flag_spec_F77='-L$libdir'
21277       allow_undefined_flag_F77=unsupported
21278       always_export_symbols_F77=no
21279       enable_shared_with_static_runtimes_F77=yes
21280       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21281
21282       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21283         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21284         # If the export-symbols file already is a .def file (1st line
21285         # is EXPORTS), use it as is; otherwise, prepend...
21286         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21287           cp $export_symbols $output_objdir/$soname.def;
21288         else
21289           echo EXPORTS > $output_objdir/$soname.def;
21290           cat $export_symbols >> $output_objdir/$soname.def;
21291         fi~
21292         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21293       else
21294         ld_shlibs_F77=no
21295       fi
21296       ;;
21297
21298     interix[3-9]*)
21299       hardcode_direct_F77=no
21300       hardcode_shlibpath_var_F77=no
21301       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21302       export_dynamic_flag_spec_F77='${wl}-E'
21303       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21304       # Instead, shared libraries are loaded at an image base (0x10000000 by
21305       # default) and relocated if they conflict, which is a slow very memory
21306       # consuming and fragmenting process.  To avoid this, we pick a random,
21307       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21308       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21309       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'
21310       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'
21311       ;;
21312
21313     gnu* | linux* | k*bsd*-gnu)
21314       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21315         tmp_addflag=
21316         case $cc_basename,$host_cpu in
21317         pgcc*)                          # Portland Group C compiler
21318           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'
21319           tmp_addflag=' $pic_flag'
21320           ;;
21321         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
21322           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'
21323           tmp_addflag=' $pic_flag -Mnomain' ;;
21324         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
21325           tmp_addflag=' -i_dynamic' ;;
21326         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
21327           tmp_addflag=' -i_dynamic -nofor_main' ;;
21328         ifc* | ifort*)                  # Intel Fortran compiler
21329           tmp_addflag=' -nofor_main' ;;
21330         esac
21331         case `$CC -V 2>&1 | sed 5q` in
21332         *Sun\ C*)                       # Sun C 5.9
21333           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'
21334           tmp_sharedflag='-G' ;;
21335         *Sun\ F*)                       # Sun Fortran 8.3
21336           tmp_sharedflag='-G' ;;
21337         *)
21338           tmp_sharedflag='-shared' ;;
21339         esac
21340         archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21341
21342         if test $supports_anon_versioning = yes; then
21343           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21344   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21345   $echo "local: *; };" >> $output_objdir/$libname.ver~
21346           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21347         fi
21348         link_all_deplibs_F77=no
21349       else
21350         ld_shlibs_F77=no
21351       fi
21352       ;;
21353
21354     netbsd* | netbsdelf*-gnu)
21355       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21356         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21357         wlarc=
21358       else
21359         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21360         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21361       fi
21362       ;;
21363
21364     solaris*)
21365       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21366         ld_shlibs_F77=no
21367         cat <<EOF 1>&2
21368
21369 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21370 *** create shared libraries on Solaris systems.  Therefore, libtool
21371 *** is disabling shared libraries support.  We urge you to upgrade GNU
21372 *** binutils to release 2.9.1 or newer.  Another option is to modify
21373 *** your PATH or compiler configuration so that the native linker is
21374 *** used, and then restart.
21375
21376 EOF
21377       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21378         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21379         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21380       else
21381         ld_shlibs_F77=no
21382       fi
21383       ;;
21384
21385     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21386       case `$LD -v 2>&1` in
21387         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21388         ld_shlibs_F77=no
21389         cat <<_LT_EOF 1>&2
21390
21391 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21392 *** reliably create shared libraries on SCO systems.  Therefore, libtool
21393 *** is disabling shared libraries support.  We urge you to upgrade GNU
21394 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21395 *** your PATH or compiler configuration so that the native linker is
21396 *** used, and then restart.
21397
21398 _LT_EOF
21399         ;;
21400         *)
21401           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21402             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21403             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21404             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21405           else
21406             ld_shlibs_F77=no
21407           fi
21408         ;;
21409       esac
21410       ;;
21411
21412     sunos4*)
21413       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21414       wlarc=
21415       hardcode_direct_F77=yes
21416       hardcode_shlibpath_var_F77=no
21417       ;;
21418
21419     *)
21420       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21421         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21422         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21423       else
21424         ld_shlibs_F77=no
21425       fi
21426       ;;
21427     esac
21428
21429     if test "$ld_shlibs_F77" = no; then
21430       runpath_var=
21431       hardcode_libdir_flag_spec_F77=
21432       export_dynamic_flag_spec_F77=
21433       whole_archive_flag_spec_F77=
21434     fi
21435   else
21436     # PORTME fill in a description of your system's linker (not GNU ld)
21437     case $host_os in
21438     aix3*)
21439       allow_undefined_flag_F77=unsupported
21440       always_export_symbols_F77=yes
21441       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'
21442       # Note: this linker hardcodes the directories in LIBPATH if there
21443       # are no directories specified by -L.
21444       hardcode_minus_L_F77=yes
21445       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21446         # Neither direct hardcoding nor static linking is supported with a
21447         # broken collect2.
21448         hardcode_direct_F77=unsupported
21449       fi
21450       ;;
21451
21452     aix[4-9]*)
21453       if test "$host_cpu" = ia64; then
21454         # On IA64, the linker does run time linking by default, so we don't
21455         # have to do anything special.
21456         aix_use_runtimelinking=no
21457         exp_sym_flag='-Bexport'
21458         no_entry_flag=""
21459       else
21460         # If we're using GNU nm, then we don't want the "-C" option.
21461         # -C means demangle to AIX nm, but means don't demangle with GNU nm
21462         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21463           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'
21464         else
21465           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'
21466         fi
21467         aix_use_runtimelinking=no
21468
21469         # Test if we are trying to use run time linking or normal
21470         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21471         # need to do runtime linking.
21472         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21473           for ld_flag in $LDFLAGS; do
21474           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21475             aix_use_runtimelinking=yes
21476             break
21477           fi
21478           done
21479           ;;
21480         esac
21481
21482         exp_sym_flag='-bexport'
21483         no_entry_flag='-bnoentry'
21484       fi
21485
21486       # When large executables or shared objects are built, AIX ld can
21487       # have problems creating the table of contents.  If linking a library
21488       # or program results in "error TOC overflow" add -mminimal-toc to
21489       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21490       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21491
21492       archive_cmds_F77=''
21493       hardcode_direct_F77=yes
21494       hardcode_libdir_separator_F77=':'
21495       link_all_deplibs_F77=yes
21496
21497       if test "$GCC" = yes; then
21498         case $host_os in aix4.[012]|aix4.[012].*)
21499         # We only want to do this on AIX 4.2 and lower, the check
21500         # below for broken collect2 doesn't work under 4.3+
21501           collect2name=`${CC} -print-prog-name=collect2`
21502           if test -f "$collect2name" && \
21503            strings "$collect2name" | grep resolve_lib_name >/dev/null
21504           then
21505           # We have reworked collect2
21506           :
21507           else
21508           # We have old collect2
21509           hardcode_direct_F77=unsupported
21510           # It fails to find uninstalled libraries when the uninstalled
21511           # path is not listed in the libpath.  Setting hardcode_minus_L
21512           # to unsupported forces relinking
21513           hardcode_minus_L_F77=yes
21514           hardcode_libdir_flag_spec_F77='-L$libdir'
21515           hardcode_libdir_separator_F77=
21516           fi
21517           ;;
21518         esac
21519         shared_flag='-shared'
21520         if test "$aix_use_runtimelinking" = yes; then
21521           shared_flag="$shared_flag "'${wl}-G'
21522         fi
21523       else
21524         # not using gcc
21525         if test "$host_cpu" = ia64; then
21526         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21527         # chokes on -Wl,-G. The following line is correct:
21528           shared_flag='-G'
21529         else
21530           if test "$aix_use_runtimelinking" = yes; then
21531             shared_flag='${wl}-G'
21532           else
21533             shared_flag='${wl}-bM:SRE'
21534           fi
21535         fi
21536       fi
21537
21538       # It seems that -bexpall does not export symbols beginning with
21539       # underscore (_), so it is better to generate a list of symbols to export.
21540       always_export_symbols_F77=yes
21541       if test "$aix_use_runtimelinking" = yes; then
21542         # Warning - without using the other runtime loading flags (-brtl),
21543         # -berok will link without error, but may produce a broken library.
21544         allow_undefined_flag_F77='-berok'
21545        # Determine the default libpath from the value encoded in an empty executable.
21546        cat >conftest.$ac_ext <<_ACEOF
21547       program main
21548
21549       end
21550 _ACEOF
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555   *) ac_try_echo=$ac_try;;
21556 esac
21557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21558   (eval "$ac_link") 2>conftest.er1
21559   ac_status=$?
21560   grep -v '^ *+' conftest.er1 >conftest.err
21561   rm -f conftest.er1
21562   cat conftest.err >&5
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } && {
21565          test -z "$ac_f77_werror_flag" ||
21566          test ! -s conftest.err
21567        } && test -s conftest$ac_exeext &&
21568        $as_test_x conftest$ac_exeext; then
21569
21570 lt_aix_libpath_sed='
21571     /Import File Strings/,/^$/ {
21572         /^0/ {
21573             s/^0  *\(.*\)$/\1/
21574             p
21575         }
21576     }'
21577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21578 # Check for a 64-bit object if we didn't find anything.
21579 if test -z "$aix_libpath"; then
21580   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21581 fi
21582 else
21583   echo "$as_me: failed program was:" >&5
21584 sed 's/^/| /' conftest.$ac_ext >&5
21585
21586
21587 fi
21588
21589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21590       conftest$ac_exeext conftest.$ac_ext
21591 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21592
21593        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21594         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"
21595        else
21596         if test "$host_cpu" = ia64; then
21597           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21598           allow_undefined_flag_F77="-z nodefs"
21599           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"
21600         else
21601          # Determine the default libpath from the value encoded in an empty executable.
21602          cat >conftest.$ac_ext <<_ACEOF
21603       program main
21604
21605       end
21606 _ACEOF
21607 rm -f conftest.$ac_objext conftest$ac_exeext
21608 if { (ac_try="$ac_link"
21609 case "(($ac_try" in
21610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611   *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614   (eval "$ac_link") 2>conftest.er1
21615   ac_status=$?
21616   grep -v '^ *+' conftest.er1 >conftest.err
21617   rm -f conftest.er1
21618   cat conftest.err >&5
21619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620   (exit $ac_status); } && {
21621          test -z "$ac_f77_werror_flag" ||
21622          test ! -s conftest.err
21623        } && test -s conftest$ac_exeext &&
21624        $as_test_x conftest$ac_exeext; then
21625
21626 lt_aix_libpath_sed='
21627     /Import File Strings/,/^$/ {
21628         /^0/ {
21629             s/^0  *\(.*\)$/\1/
21630             p
21631         }
21632     }'
21633 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21634 # Check for a 64-bit object if we didn't find anything.
21635 if test -z "$aix_libpath"; then
21636   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21637 fi
21638 else
21639   echo "$as_me: failed program was:" >&5
21640 sed 's/^/| /' conftest.$ac_ext >&5
21641
21642
21643 fi
21644
21645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21646       conftest$ac_exeext conftest.$ac_ext
21647 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21648
21649          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21650           # Warning - without using the other run time loading flags,
21651           # -berok will link without error, but may produce a broken library.
21652           no_undefined_flag_F77=' ${wl}-bernotok'
21653           allow_undefined_flag_F77=' ${wl}-berok'
21654           # Exported symbols can be pulled into shared objects from archives
21655           whole_archive_flag_spec_F77='$convenience'
21656           archive_cmds_need_lc_F77=yes
21657           # This is similar to how AIX traditionally builds its shared libraries.
21658           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'
21659         fi
21660       fi
21661       ;;
21662
21663     amigaos*)
21664       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)'
21665       hardcode_libdir_flag_spec_F77='-L$libdir'
21666       hardcode_minus_L_F77=yes
21667       # see comment about different semantics on the GNU ld section
21668       ld_shlibs_F77=no
21669       ;;
21670
21671     bsdi[45]*)
21672       export_dynamic_flag_spec_F77=-rdynamic
21673       ;;
21674
21675     cygwin* | mingw* | pw32*)
21676       # When not using gcc, we currently assume that we are using
21677       # Microsoft Visual C++.
21678       # hardcode_libdir_flag_spec is actually meaningless, as there is
21679       # no search path for DLLs.
21680       hardcode_libdir_flag_spec_F77=' '
21681       allow_undefined_flag_F77=unsupported
21682       # Tell ltmain to make .lib files, not .a files.
21683       libext=lib
21684       # Tell ltmain to make .dll files, not .so files.
21685       shrext_cmds=".dll"
21686       # FIXME: Setting linknames here is a bad hack.
21687       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21688       # The linker will automatically build a .lib file if we build a DLL.
21689       old_archive_From_new_cmds_F77='true'
21690       # FIXME: Should let the user specify the lib program.
21691       old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
21692       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21693       enable_shared_with_static_runtimes_F77=yes
21694       ;;
21695
21696     darwin* | rhapsody*)
21697       case $host_os in
21698         rhapsody* | darwin1.[012])
21699          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21700          ;;
21701        *) # Darwin 1.3 on
21702          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21703            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21704          else
21705            case ${MACOSX_DEPLOYMENT_TARGET} in
21706              10.[012])
21707                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21708                ;;
21709              10.*)
21710                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21711                ;;
21712            esac
21713          fi
21714          ;;
21715       esac
21716       archive_cmds_need_lc_F77=no
21717       hardcode_direct_F77=no
21718       hardcode_automatic_F77=yes
21719       hardcode_shlibpath_var_F77=unsupported
21720       whole_archive_flag_spec_F77=''
21721       link_all_deplibs_F77=yes
21722     if test "$GCC" = yes ; then
21723         output_verbose_link_cmd='echo'
21724         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}"
21725         module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
21726         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}"
21727         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}"
21728     else
21729       case $cc_basename in
21730         xlc*)
21731          output_verbose_link_cmd='echo'
21732          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
21733          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21734           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21735          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}'
21736           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}'
21737           ;;
21738        *)
21739          ld_shlibs_F77=no
21740           ;;
21741       esac
21742     fi
21743       ;;
21744
21745     dgux*)
21746       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21747       hardcode_libdir_flag_spec_F77='-L$libdir'
21748       hardcode_shlibpath_var_F77=no
21749       ;;
21750
21751     freebsd1*)
21752       ld_shlibs_F77=no
21753       ;;
21754
21755     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21756     # support.  Future versions do this automatically, but an explicit c++rt0.o
21757     # does not break anything, and helps significantly (at the cost of a little
21758     # extra space).
21759     freebsd2.2*)
21760       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21761       hardcode_libdir_flag_spec_F77='-R$libdir'
21762       hardcode_direct_F77=yes
21763       hardcode_shlibpath_var_F77=no
21764       ;;
21765
21766     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21767     freebsd2*)
21768       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21769       hardcode_direct_F77=yes
21770       hardcode_minus_L_F77=yes
21771       hardcode_shlibpath_var_F77=no
21772       ;;
21773
21774     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21775     freebsd* | dragonfly*)
21776       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21777       hardcode_libdir_flag_spec_F77='-R$libdir'
21778       hardcode_direct_F77=yes
21779       hardcode_shlibpath_var_F77=no
21780       ;;
21781
21782     hpux9*)
21783       if test "$GCC" = yes; then
21784         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'
21785       else
21786         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'
21787       fi
21788       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21789       hardcode_libdir_separator_F77=:
21790       hardcode_direct_F77=yes
21791
21792       # hardcode_minus_L: Not really in the search PATH,
21793       # but as the default location of the library.
21794       hardcode_minus_L_F77=yes
21795       export_dynamic_flag_spec_F77='${wl}-E'
21796       ;;
21797
21798     hpux10*)
21799       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21800         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21801       else
21802         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21803       fi
21804       if test "$with_gnu_ld" = no; then
21805         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21806         hardcode_libdir_separator_F77=:
21807
21808         hardcode_direct_F77=yes
21809         export_dynamic_flag_spec_F77='${wl}-E'
21810
21811         # hardcode_minus_L: Not really in the search PATH,
21812         # but as the default location of the library.
21813         hardcode_minus_L_F77=yes
21814       fi
21815       ;;
21816
21817     hpux11*)
21818       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21819         case $host_cpu in
21820         hppa*64*)
21821           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21822           ;;
21823         ia64*)
21824           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21825           ;;
21826         *)
21827           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21828           ;;
21829         esac
21830       else
21831         case $host_cpu in
21832         hppa*64*)
21833           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21834           ;;
21835         ia64*)
21836           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21837           ;;
21838         *)
21839           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21840           ;;
21841         esac
21842       fi
21843       if test "$with_gnu_ld" = no; then
21844         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21845         hardcode_libdir_separator_F77=:
21846
21847         case $host_cpu in
21848         hppa*64*|ia64*)
21849           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21850           hardcode_direct_F77=no
21851           hardcode_shlibpath_var_F77=no
21852           ;;
21853         *)
21854           hardcode_direct_F77=yes
21855           export_dynamic_flag_spec_F77='${wl}-E'
21856
21857           # hardcode_minus_L: Not really in the search PATH,
21858           # but as the default location of the library.
21859           hardcode_minus_L_F77=yes
21860           ;;
21861         esac
21862       fi
21863       ;;
21864
21865     irix5* | irix6* | nonstopux*)
21866       if test "$GCC" = yes; then
21867         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'
21868       else
21869         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'
21870         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21871       fi
21872       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21873       hardcode_libdir_separator_F77=:
21874       link_all_deplibs_F77=yes
21875       ;;
21876
21877     netbsd* | netbsdelf*-gnu)
21878       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21879         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21880       else
21881         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21882       fi
21883       hardcode_libdir_flag_spec_F77='-R$libdir'
21884       hardcode_direct_F77=yes
21885       hardcode_shlibpath_var_F77=no
21886       ;;
21887
21888     newsos6)
21889       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21890       hardcode_direct_F77=yes
21891       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21892       hardcode_libdir_separator_F77=:
21893       hardcode_shlibpath_var_F77=no
21894       ;;
21895
21896     openbsd*)
21897       if test -f /usr/libexec/ld.so; then
21898         hardcode_direct_F77=yes
21899         hardcode_shlibpath_var_F77=no
21900         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21901           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21902           archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21903           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21904           export_dynamic_flag_spec_F77='${wl}-E'
21905         else
21906           case $host_os in
21907            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21908              archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21909              hardcode_libdir_flag_spec_F77='-R$libdir'
21910              ;;
21911            *)
21912              archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21913              hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21914              ;;
21915           esac
21916         fi
21917       else
21918         ld_shlibs_F77=no
21919       fi
21920       ;;
21921
21922     os2*)
21923       hardcode_libdir_flag_spec_F77='-L$libdir'
21924       hardcode_minus_L_F77=yes
21925       allow_undefined_flag_F77=unsupported
21926       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'
21927       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21928       ;;
21929
21930     osf3*)
21931       if test "$GCC" = yes; then
21932         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21933         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'
21934       else
21935         allow_undefined_flag_F77=' -expect_unresolved \*'
21936         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'
21937       fi
21938       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21939       hardcode_libdir_separator_F77=:
21940       ;;
21941
21942     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21943       if test "$GCC" = yes; then
21944         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21945         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'
21946         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21947       else
21948         allow_undefined_flag_F77=' -expect_unresolved \*'
21949         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'
21950         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~
21951         $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'
21952
21953         # Both c and cxx compiler support -rpath directly
21954         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21955       fi
21956       hardcode_libdir_separator_F77=:
21957       ;;
21958
21959     solaris*)
21960       no_undefined_flag_F77=' -z text'
21961       if test "$GCC" = yes; then
21962         wlarc='${wl}'
21963         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21964         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21965           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21966       else
21967         wlarc=''
21968         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21969         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21970         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21971       fi
21972       hardcode_libdir_flag_spec_F77='-R$libdir'
21973       hardcode_shlibpath_var_F77=no
21974       case $host_os in
21975       solaris2.[0-5] | solaris2.[0-5].*) ;;
21976       *)
21977         # The compiler driver will combine and reorder linker options,
21978         # but understands `-z linker_flag'.  GCC discards it without `$wl',
21979         # but is careful enough not to reorder.
21980         # Supported since Solaris 2.6 (maybe 2.5.1?)
21981         if test "$GCC" = yes; then
21982           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21983         else
21984           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
21985         fi
21986         ;;
21987       esac
21988       link_all_deplibs_F77=yes
21989       ;;
21990
21991     sunos4*)
21992       if test "x$host_vendor" = xsequent; then
21993         # Use $CC to link under sequent, because it throws in some extra .o
21994         # files that make .init and .fini sections work.
21995         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21996       else
21997         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21998       fi
21999       hardcode_libdir_flag_spec_F77='-L$libdir'
22000       hardcode_direct_F77=yes
22001       hardcode_minus_L_F77=yes
22002       hardcode_shlibpath_var_F77=no
22003       ;;
22004
22005     sysv4)
22006       case $host_vendor in
22007         sni)
22008           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22009           hardcode_direct_F77=yes # is this really true???
22010         ;;
22011         siemens)
22012           ## LD is ld it makes a PLAMLIB
22013           ## CC just makes a GrossModule.
22014           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22015           reload_cmds_F77='$CC -r -o $output$reload_objs'
22016           hardcode_direct_F77=no
22017         ;;
22018         motorola)
22019           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22020           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22021         ;;
22022       esac
22023       runpath_var='LD_RUN_PATH'
22024       hardcode_shlibpath_var_F77=no
22025       ;;
22026
22027     sysv4.3*)
22028       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22029       hardcode_shlibpath_var_F77=no
22030       export_dynamic_flag_spec_F77='-Bexport'
22031       ;;
22032
22033     sysv4*MP*)
22034       if test -d /usr/nec; then
22035         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22036         hardcode_shlibpath_var_F77=no
22037         runpath_var=LD_RUN_PATH
22038         hardcode_runpath_var=yes
22039         ld_shlibs_F77=yes
22040       fi
22041       ;;
22042
22043     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22044       no_undefined_flag_F77='${wl}-z,text'
22045       archive_cmds_need_lc_F77=no
22046       hardcode_shlibpath_var_F77=no
22047       runpath_var='LD_RUN_PATH'
22048
22049       if test "$GCC" = yes; then
22050         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22051         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22052       else
22053         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22054         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22055       fi
22056       ;;
22057
22058     sysv5* | sco3.2v5* | sco5v6*)
22059       # Note: We can NOT use -z defs as we might desire, because we do not
22060       # link with -lc, and that would cause any symbols used from libc to
22061       # always be unresolved, which means just about no library would
22062       # ever link correctly.  If we're not using GNU ld we use -z text
22063       # though, which does catch some bad symbols but isn't as heavy-handed
22064       # as -z defs.
22065       no_undefined_flag_F77='${wl}-z,text'
22066       allow_undefined_flag_F77='${wl}-z,nodefs'
22067       archive_cmds_need_lc_F77=no
22068       hardcode_shlibpath_var_F77=no
22069       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22070       hardcode_libdir_separator_F77=':'
22071       link_all_deplibs_F77=yes
22072       export_dynamic_flag_spec_F77='${wl}-Bexport'
22073       runpath_var='LD_RUN_PATH'
22074
22075       if test "$GCC" = yes; then
22076         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22077         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22078       else
22079         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22080         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22081       fi
22082       ;;
22083
22084     uts4*)
22085       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22086       hardcode_libdir_flag_spec_F77='-L$libdir'
22087       hardcode_shlibpath_var_F77=no
22088       ;;
22089
22090     *)
22091       ld_shlibs_F77=no
22092       ;;
22093     esac
22094   fi
22095
22096 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22097 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
22098 test "$ld_shlibs_F77" = no && can_build_shared=no
22099
22100 #
22101 # Do we need to explicitly link libc?
22102 #
22103 case "x$archive_cmds_need_lc_F77" in
22104 x|xyes)
22105   # Assume -lc should be added
22106   archive_cmds_need_lc_F77=yes
22107
22108   if test "$enable_shared" = yes && test "$GCC" = yes; then
22109     case $archive_cmds_F77 in
22110     *'~'*)
22111       # FIXME: we may have to deal with multi-command sequences.
22112       ;;
22113     '$CC '*)
22114       # Test whether the compiler implicitly links with -lc since on some
22115       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22116       # to ld, don't add -lc before -lgcc.
22117       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22118 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
22119       $rm conftest*
22120       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22121
22122       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22123   (eval $ac_compile) 2>&5
22124   ac_status=$?
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); } 2>conftest.err; then
22127         soname=conftest
22128         lib=conftest
22129         libobjs=conftest.$ac_objext
22130         deplibs=
22131         wl=$lt_prog_compiler_wl_F77
22132         pic_flag=$lt_prog_compiler_pic_F77
22133         compiler_flags=-v
22134         linker_flags=-v
22135         verstring=
22136         output_objdir=.
22137         libname=conftest
22138         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22139         allow_undefined_flag_F77=
22140         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22141   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22142   ac_status=$?
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); }
22145         then
22146           archive_cmds_need_lc_F77=no
22147         else
22148           archive_cmds_need_lc_F77=yes
22149         fi
22150         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22151       else
22152         cat conftest.err 1>&5
22153       fi
22154       $rm conftest*
22155       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22156 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
22157       ;;
22158     esac
22159   fi
22160   ;;
22161 esac
22162
22163 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
22165 library_names_spec=
22166 libname_spec='lib$name'
22167 soname_spec=
22168 shrext_cmds=".so"
22169 postinstall_cmds=
22170 postuninstall_cmds=
22171 finish_cmds=
22172 finish_eval=
22173 shlibpath_var=
22174 shlibpath_overrides_runpath=unknown
22175 version_type=none
22176 dynamic_linker="$host_os ld.so"
22177 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22178
22179 need_lib_prefix=unknown
22180 hardcode_into_libs=no
22181
22182 # when you set need_version to no, make sure it does not cause -set_version
22183 # flags to be left without arguments
22184 need_version=unknown
22185
22186 case $host_os in
22187 aix3*)
22188   version_type=linux
22189   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22190   shlibpath_var=LIBPATH
22191
22192   # AIX 3 has no versioning support, so we append a major version to the name.
22193   soname_spec='${libname}${release}${shared_ext}$major'
22194   ;;
22195
22196 aix[4-9]*)
22197   version_type=linux
22198   need_lib_prefix=no
22199   need_version=no
22200   hardcode_into_libs=yes
22201   if test "$host_cpu" = ia64; then
22202     # AIX 5 supports IA64
22203     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22204     shlibpath_var=LD_LIBRARY_PATH
22205   else
22206     # With GCC up to 2.95.x, collect2 would create an import file
22207     # for dependence libraries.  The import file would start with
22208     # the line `#! .'.  This would cause the generated library to
22209     # depend on `.', always an invalid library.  This was fixed in
22210     # development snapshots of GCC prior to 3.0.
22211     case $host_os in
22212       aix4 | aix4.[01] | aix4.[01].*)
22213       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22214            echo ' yes '
22215            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22216         :
22217       else
22218         can_build_shared=no
22219       fi
22220       ;;
22221     esac
22222     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22223     # soname into executable. Probably we can add versioning support to
22224     # collect2, so additional links can be useful in future.
22225     if test "$aix_use_runtimelinking" = yes; then
22226       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22227       # instead of lib<name>.a to let people know that these are not
22228       # typical AIX shared libraries.
22229       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22230     else
22231       # We preserve .a as extension for shared libraries through AIX4.2
22232       # and later when we are not doing run time linking.
22233       library_names_spec='${libname}${release}.a $libname.a'
22234       soname_spec='${libname}${release}${shared_ext}$major'
22235     fi
22236     shlibpath_var=LIBPATH
22237   fi
22238   ;;
22239
22240 amigaos*)
22241   library_names_spec='$libname.ixlibrary $libname.a'
22242   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22243   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'
22244   ;;
22245
22246 beos*)
22247   library_names_spec='${libname}${shared_ext}'
22248   dynamic_linker="$host_os ld.so"
22249   shlibpath_var=LIBRARY_PATH
22250   ;;
22251
22252 bsdi[45]*)
22253   version_type=linux
22254   need_version=no
22255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22256   soname_spec='${libname}${release}${shared_ext}$major'
22257   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22258   shlibpath_var=LD_LIBRARY_PATH
22259   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22260   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22261   # the default ld.so.conf also contains /usr/contrib/lib and
22262   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22263   # libtool to hard-code these into programs
22264   ;;
22265
22266 cygwin* | mingw* | pw32*)
22267   version_type=windows
22268   shrext_cmds=".dll"
22269   need_version=no
22270   need_lib_prefix=no
22271
22272   case $GCC,$host_os in
22273   yes,cygwin* | yes,mingw* | yes,pw32*)
22274     library_names_spec='$libname.dll.a'
22275     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22276     postinstall_cmds='base_file=`basename \${file}`~
22277       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22278       dldir=$destdir/`dirname \$dlpath`~
22279       test -d \$dldir || mkdir -p \$dldir~
22280       $install_prog $dir/$dlname \$dldir/$dlname~
22281       chmod a+x \$dldir/$dlname'
22282     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22283       dlpath=$dir/\$dldll~
22284        $rm \$dlpath'
22285     shlibpath_overrides_runpath=yes
22286
22287     case $host_os in
22288     cygwin*)
22289       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22290       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22291       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22292       ;;
22293     mingw*)
22294       # MinGW DLLs use traditional 'lib' prefix
22295       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22296       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22297       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22298         # It is most probably a Windows format PATH printed by
22299         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22300         # path with ; separators, and with drive letters. We can handle the
22301         # drive letters (cygwin fileutils understands them), so leave them,
22302         # especially as we might pass files found there to a mingw objdump,
22303         # which wouldn't understand a cygwinified path. Ahh.
22304         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22305       else
22306         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22307       fi
22308       ;;
22309     pw32*)
22310       # pw32 DLLs use 'pw' prefix rather than 'lib'
22311       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22312       ;;
22313     esac
22314     ;;
22315
22316   *)
22317     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22318     ;;
22319   esac
22320   dynamic_linker='Win32 ld.exe'
22321   # FIXME: first we should search . and the directory the executable is in
22322   shlibpath_var=PATH
22323   ;;
22324
22325 darwin* | rhapsody*)
22326   dynamic_linker="$host_os dyld"
22327   version_type=darwin
22328   need_lib_prefix=no
22329   need_version=no
22330   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22331   soname_spec='${libname}${release}${major}$shared_ext'
22332   shlibpath_overrides_runpath=yes
22333   shlibpath_var=DYLD_LIBRARY_PATH
22334   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22335
22336   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22337   ;;
22338
22339 dgux*)
22340   version_type=linux
22341   need_lib_prefix=no
22342   need_version=no
22343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22344   soname_spec='${libname}${release}${shared_ext}$major'
22345   shlibpath_var=LD_LIBRARY_PATH
22346   ;;
22347
22348 freebsd1*)
22349   dynamic_linker=no
22350   ;;
22351
22352 freebsd* | dragonfly*)
22353   # DragonFly does not have aout.  When/if they implement a new
22354   # versioning mechanism, adjust this.
22355   if test -x /usr/bin/objformat; then
22356     objformat=`/usr/bin/objformat`
22357   else
22358     case $host_os in
22359     freebsd[123]*) objformat=aout ;;
22360     *) objformat=elf ;;
22361     esac
22362   fi
22363   version_type=freebsd-$objformat
22364   case $version_type in
22365     freebsd-elf*)
22366       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22367       need_version=no
22368       need_lib_prefix=no
22369       ;;
22370     freebsd-*)
22371       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22372       need_version=yes
22373       ;;
22374   esac
22375   shlibpath_var=LD_LIBRARY_PATH
22376   case $host_os in
22377   freebsd2*)
22378     shlibpath_overrides_runpath=yes
22379     ;;
22380   freebsd3.[01]* | freebsdelf3.[01]*)
22381     shlibpath_overrides_runpath=yes
22382     hardcode_into_libs=yes
22383     ;;
22384   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22385   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22386     shlibpath_overrides_runpath=no
22387     hardcode_into_libs=yes
22388     ;;
22389   *) # from 4.6 on, and DragonFly
22390     shlibpath_overrides_runpath=yes
22391     hardcode_into_libs=yes
22392     ;;
22393   esac
22394   ;;
22395
22396 gnu*)
22397   version_type=linux
22398   need_lib_prefix=no
22399   need_version=no
22400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22401   soname_spec='${libname}${release}${shared_ext}$major'
22402   shlibpath_var=LD_LIBRARY_PATH
22403   hardcode_into_libs=yes
22404   ;;
22405
22406 hpux9* | hpux10* | hpux11*)
22407   # Give a soname corresponding to the major version so that dld.sl refuses to
22408   # link against other versions.
22409   version_type=sunos
22410   need_lib_prefix=no
22411   need_version=no
22412   case $host_cpu in
22413   ia64*)
22414     shrext_cmds='.so'
22415     hardcode_into_libs=yes
22416     dynamic_linker="$host_os dld.so"
22417     shlibpath_var=LD_LIBRARY_PATH
22418     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22420     soname_spec='${libname}${release}${shared_ext}$major'
22421     if test "X$HPUX_IA64_MODE" = X32; then
22422       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22423     else
22424       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22425     fi
22426     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22427     ;;
22428    hppa*64*)
22429      shrext_cmds='.sl'
22430      hardcode_into_libs=yes
22431      dynamic_linker="$host_os dld.sl"
22432      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22433      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22434      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22435      soname_spec='${libname}${release}${shared_ext}$major'
22436      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22437      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22438      ;;
22439    *)
22440     shrext_cmds='.sl'
22441     dynamic_linker="$host_os dld.sl"
22442     shlibpath_var=SHLIB_PATH
22443     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22445     soname_spec='${libname}${release}${shared_ext}$major'
22446     ;;
22447   esac
22448   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22449   postinstall_cmds='chmod 555 $lib'
22450   ;;
22451
22452 interix[3-9]*)
22453   version_type=linux
22454   need_lib_prefix=no
22455   need_version=no
22456   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22457   soname_spec='${libname}${release}${shared_ext}$major'
22458   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22459   shlibpath_var=LD_LIBRARY_PATH
22460   shlibpath_overrides_runpath=no
22461   hardcode_into_libs=yes
22462   ;;
22463
22464 irix5* | irix6* | nonstopux*)
22465   case $host_os in
22466     nonstopux*) version_type=nonstopux ;;
22467     *)
22468         if test "$lt_cv_prog_gnu_ld" = yes; then
22469                 version_type=linux
22470         else
22471                 version_type=irix
22472         fi ;;
22473   esac
22474   need_lib_prefix=no
22475   need_version=no
22476   soname_spec='${libname}${release}${shared_ext}$major'
22477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22478   case $host_os in
22479   irix5* | nonstopux*)
22480     libsuff= shlibsuff=
22481     ;;
22482   *)
22483     case $LD in # libtool.m4 will add one of these switches to LD
22484     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22485       libsuff= shlibsuff= libmagic=32-bit;;
22486     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22487       libsuff=32 shlibsuff=N32 libmagic=N32;;
22488     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22489       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22490     *) libsuff= shlibsuff= libmagic=never-match;;
22491     esac
22492     ;;
22493   esac
22494   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22495   shlibpath_overrides_runpath=no
22496   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22497   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22498   hardcode_into_libs=yes
22499   ;;
22500
22501 # No shared lib support for Linux oldld, aout, or coff.
22502 linux*oldld* | linux*aout* | linux*coff*)
22503   dynamic_linker=no
22504   ;;
22505
22506 # This must be Linux ELF.
22507 linux* | k*bsd*-gnu)
22508   version_type=linux
22509   need_lib_prefix=no
22510   need_version=no
22511   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22512   soname_spec='${libname}${release}${shared_ext}$major'
22513   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22514   shlibpath_var=LD_LIBRARY_PATH
22515   shlibpath_overrides_runpath=no
22516   # This implies no fast_install, which is unacceptable.
22517   # Some rework will be needed to allow for fast_install
22518   # before this can be enabled.
22519   hardcode_into_libs=yes
22520
22521   # Append ld.so.conf contents to the search path
22522   if test -f /etc/ld.so.conf; then
22523     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' ' '`
22524     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22525   fi
22526
22527   # We used to test for /lib/ld.so.1 and disable shared libraries on
22528   # powerpc, because MkLinux only supported shared libraries with the
22529   # GNU dynamic linker.  Since this was broken with cross compilers,
22530   # most powerpc-linux boxes support dynamic linking these days and
22531   # people can always --disable-shared, the test was removed, and we
22532   # assume the GNU/Linux dynamic linker is in use.
22533   dynamic_linker='GNU/Linux ld.so'
22534   ;;
22535
22536 netbsdelf*-gnu)
22537   version_type=linux
22538   need_lib_prefix=no
22539   need_version=no
22540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22541   soname_spec='${libname}${release}${shared_ext}$major'
22542   shlibpath_var=LD_LIBRARY_PATH
22543   shlibpath_overrides_runpath=no
22544   hardcode_into_libs=yes
22545   dynamic_linker='NetBSD ld.elf_so'
22546   ;;
22547
22548 netbsd*)
22549   version_type=sunos
22550   need_lib_prefix=no
22551   need_version=no
22552   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22553     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22554     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22555     dynamic_linker='NetBSD (a.out) ld.so'
22556   else
22557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22558     soname_spec='${libname}${release}${shared_ext}$major'
22559     dynamic_linker='NetBSD ld.elf_so'
22560   fi
22561   shlibpath_var=LD_LIBRARY_PATH
22562   shlibpath_overrides_runpath=yes
22563   hardcode_into_libs=yes
22564   ;;
22565
22566 newsos6)
22567   version_type=linux
22568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22569   shlibpath_var=LD_LIBRARY_PATH
22570   shlibpath_overrides_runpath=yes
22571   ;;
22572
22573 nto-qnx*)
22574   version_type=linux
22575   need_lib_prefix=no
22576   need_version=no
22577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22578   soname_spec='${libname}${release}${shared_ext}$major'
22579   shlibpath_var=LD_LIBRARY_PATH
22580   shlibpath_overrides_runpath=yes
22581   ;;
22582
22583 openbsd*)
22584   version_type=sunos
22585   sys_lib_dlsearch_path_spec="/usr/lib"
22586   need_lib_prefix=no
22587   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22588   case $host_os in
22589     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22590     *)                         need_version=no  ;;
22591   esac
22592   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22593   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22594   shlibpath_var=LD_LIBRARY_PATH
22595   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22596     case $host_os in
22597       openbsd2.[89] | openbsd2.[89].*)
22598         shlibpath_overrides_runpath=no
22599         ;;
22600       *)
22601         shlibpath_overrides_runpath=yes
22602         ;;
22603       esac
22604   else
22605     shlibpath_overrides_runpath=yes
22606   fi
22607   ;;
22608
22609 os2*)
22610   libname_spec='$name'
22611   shrext_cmds=".dll"
22612   need_lib_prefix=no
22613   library_names_spec='$libname${shared_ext} $libname.a'
22614   dynamic_linker='OS/2 ld.exe'
22615   shlibpath_var=LIBPATH
22616   ;;
22617
22618 osf3* | osf4* | osf5*)
22619   version_type=osf
22620   need_lib_prefix=no
22621   need_version=no
22622   soname_spec='${libname}${release}${shared_ext}$major'
22623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22624   shlibpath_var=LD_LIBRARY_PATH
22625   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22626   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22627   ;;
22628
22629 rdos*)
22630   dynamic_linker=no
22631   ;;
22632
22633 solaris*)
22634   version_type=linux
22635   need_lib_prefix=no
22636   need_version=no
22637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22638   soname_spec='${libname}${release}${shared_ext}$major'
22639   shlibpath_var=LD_LIBRARY_PATH
22640   shlibpath_overrides_runpath=yes
22641   hardcode_into_libs=yes
22642   # ldd complains unless libraries are executable
22643   postinstall_cmds='chmod +x $lib'
22644   ;;
22645
22646 sunos4*)
22647   version_type=sunos
22648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22649   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22650   shlibpath_var=LD_LIBRARY_PATH
22651   shlibpath_overrides_runpath=yes
22652   if test "$with_gnu_ld" = yes; then
22653     need_lib_prefix=no
22654   fi
22655   need_version=yes
22656   ;;
22657
22658 sysv4 | sysv4.3*)
22659   version_type=linux
22660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22661   soname_spec='${libname}${release}${shared_ext}$major'
22662   shlibpath_var=LD_LIBRARY_PATH
22663   case $host_vendor in
22664     sni)
22665       shlibpath_overrides_runpath=no
22666       need_lib_prefix=no
22667       export_dynamic_flag_spec='${wl}-Blargedynsym'
22668       runpath_var=LD_RUN_PATH
22669       ;;
22670     siemens)
22671       need_lib_prefix=no
22672       ;;
22673     motorola)
22674       need_lib_prefix=no
22675       need_version=no
22676       shlibpath_overrides_runpath=no
22677       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22678       ;;
22679   esac
22680   ;;
22681
22682 sysv4*MP*)
22683   if test -d /usr/nec ;then
22684     version_type=linux
22685     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22686     soname_spec='$libname${shared_ext}.$major'
22687     shlibpath_var=LD_LIBRARY_PATH
22688   fi
22689   ;;
22690
22691 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22692   version_type=freebsd-elf
22693   need_lib_prefix=no
22694   need_version=no
22695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22696   soname_spec='${libname}${release}${shared_ext}$major'
22697   shlibpath_var=LD_LIBRARY_PATH
22698   hardcode_into_libs=yes
22699   if test "$with_gnu_ld" = yes; then
22700     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22701     shlibpath_overrides_runpath=no
22702   else
22703     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22704     shlibpath_overrides_runpath=yes
22705     case $host_os in
22706       sco3.2v5*)
22707         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22708         ;;
22709     esac
22710   fi
22711   sys_lib_dlsearch_path_spec='/usr/lib'
22712   ;;
22713
22714 uts4*)
22715   version_type=linux
22716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22717   soname_spec='${libname}${release}${shared_ext}$major'
22718   shlibpath_var=LD_LIBRARY_PATH
22719   ;;
22720
22721 *)
22722   dynamic_linker=no
22723   ;;
22724 esac
22725 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22726 echo "${ECHO_T}$dynamic_linker" >&6; }
22727 test "$dynamic_linker" = no && can_build_shared=no
22728
22729 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
22730   echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
22733 fi
22734
22735 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
22736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
22737   echo $ECHO_N "(cached) $ECHO_C" >&6
22738 else
22739   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
22740 fi
22741
22742 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
22743
22744 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22745 if test "$GCC" = yes; then
22746   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22747 fi
22748
22749 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22750 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22751 hardcode_action_F77=
22752 if test -n "$hardcode_libdir_flag_spec_F77" || \
22753    test -n "$runpath_var_F77" || \
22754    test "X$hardcode_automatic_F77" = "Xyes" ; then
22755
22756   # We can hardcode non-existant directories.
22757   if test "$hardcode_direct_F77" != no &&
22758      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22759      # have to relink, otherwise we might link with an installed library
22760      # when we should be linking with a yet-to-be-installed one
22761      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22762      test "$hardcode_minus_L_F77" != no; then
22763     # Linking always hardcodes the temporary library directory.
22764     hardcode_action_F77=relink
22765   else
22766     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22767     hardcode_action_F77=immediate
22768   fi
22769 else
22770   # We cannot hardcode anything, or else we can only hardcode existing
22771   # directories.
22772   hardcode_action_F77=unsupported
22773 fi
22774 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22775 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22776
22777 if test "$hardcode_action_F77" = relink; then
22778   # Fast installation is not supported
22779   enable_fast_install=no
22780 elif test "$shlibpath_overrides_runpath" = yes ||
22781      test "$enable_shared" = no; then
22782   # Fast installation is not necessary
22783   enable_fast_install=needless
22784 fi
22785
22786
22787 # The else clause should only fire when bootstrapping the
22788 # libtool distribution, otherwise you forgot to ship ltmain.sh
22789 # with your package, and you will get complaints that there are
22790 # no rules to generate ltmain.sh.
22791 if test -f "$ltmain"; then
22792   # See if we are running on zsh, and set the options which allow our commands through
22793   # without removal of \ escapes.
22794   if test -n "${ZSH_VERSION+set}" ; then
22795     setopt NO_GLOB_SUBST
22796   fi
22797   # Now quote all the things that may contain metacharacters while being
22798   # careful not to overquote the AC_SUBSTed values.  We take copies of the
22799   # variables and quote the copies for generation of the libtool script.
22800   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22801     SED SHELL STRIP \
22802     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22803     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22804     deplibs_check_method reload_flag reload_cmds need_locks \
22805     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22806     lt_cv_sys_global_symbol_to_c_name_address \
22807     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22808     old_postinstall_cmds old_postuninstall_cmds \
22809     compiler_F77 \
22810     CC_F77 \
22811     LD_F77 \
22812     lt_prog_compiler_wl_F77 \
22813     lt_prog_compiler_pic_F77 \
22814     lt_prog_compiler_static_F77 \
22815     lt_prog_compiler_no_builtin_flag_F77 \
22816     export_dynamic_flag_spec_F77 \
22817     thread_safe_flag_spec_F77 \
22818     whole_archive_flag_spec_F77 \
22819     enable_shared_with_static_runtimes_F77 \
22820     old_archive_cmds_F77 \
22821     old_archive_from_new_cmds_F77 \
22822     predep_objects_F77 \
22823     postdep_objects_F77 \
22824     predeps_F77 \
22825     postdeps_F77 \
22826     compiler_lib_search_path_F77 \
22827     compiler_lib_search_dirs_F77 \
22828     archive_cmds_F77 \
22829     archive_expsym_cmds_F77 \
22830     postinstall_cmds_F77 \
22831     postuninstall_cmds_F77 \
22832     old_archive_from_expsyms_cmds_F77 \
22833     allow_undefined_flag_F77 \
22834     no_undefined_flag_F77 \
22835     export_symbols_cmds_F77 \
22836     hardcode_libdir_flag_spec_F77 \
22837     hardcode_libdir_flag_spec_ld_F77 \
22838     hardcode_libdir_separator_F77 \
22839     hardcode_automatic_F77 \
22840     module_cmds_F77 \
22841     module_expsym_cmds_F77 \
22842     lt_cv_prog_compiler_c_o_F77 \
22843     fix_srcfile_path_F77 \
22844     exclude_expsyms_F77 \
22845     include_expsyms_F77; do
22846
22847     case $var in
22848     old_archive_cmds_F77 | \
22849     old_archive_from_new_cmds_F77 | \
22850     archive_cmds_F77 | \
22851     archive_expsym_cmds_F77 | \
22852     module_cmds_F77 | \
22853     module_expsym_cmds_F77 | \
22854     old_archive_from_expsyms_cmds_F77 | \
22855     export_symbols_cmds_F77 | \
22856     extract_expsyms_cmds | reload_cmds | finish_cmds | \
22857     postinstall_cmds | postuninstall_cmds | \
22858     old_postinstall_cmds | old_postuninstall_cmds | \
22859     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22860       # Double-quote double-evaled strings.
22861       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22862       ;;
22863     *)
22864       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22865       ;;
22866     esac
22867   done
22868
22869   case $lt_echo in
22870   *'\$0 --fallback-echo"')
22871     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22872     ;;
22873   esac
22874
22875 cfgfile="$ofile"
22876
22877   cat <<__EOF__ >> "$cfgfile"
22878 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22879
22880 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22881
22882 # Shell to use when invoking shell scripts.
22883 SHELL=$lt_SHELL
22884
22885 # Whether or not to build shared libraries.
22886 build_libtool_libs=$enable_shared
22887
22888 # Whether or not to build static libraries.
22889 build_old_libs=$enable_static
22890
22891 # Whether or not to add -lc for building shared libraries.
22892 build_libtool_need_lc=$archive_cmds_need_lc_F77
22893
22894 # Whether or not to disallow shared libs when runtime libs are static
22895 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22896
22897 # Whether or not to optimize for fast installation.
22898 fast_install=$enable_fast_install
22899
22900 # The host system.
22901 host_alias=$host_alias
22902 host=$host
22903 host_os=$host_os
22904
22905 # The build system.
22906 build_alias=$build_alias
22907 build=$build
22908 build_os=$build_os
22909
22910 # An echo program that does not interpret backslashes.
22911 echo=$lt_echo
22912
22913 # The archiver.
22914 AR=$lt_AR
22915 AR_FLAGS=$lt_AR_FLAGS
22916
22917 # A C compiler.
22918 LTCC=$lt_LTCC
22919
22920 # LTCC compiler flags.
22921 LTCFLAGS=$lt_LTCFLAGS
22922
22923 # A language-specific compiler.
22924 CC=$lt_compiler_F77
22925
22926 # Is the compiler the GNU C compiler?
22927 with_gcc=$GCC_F77
22928
22929 # An ERE matcher.
22930 EGREP=$lt_EGREP
22931
22932 # The linker used to build libraries.
22933 LD=$lt_LD_F77
22934
22935 # Whether we need hard or soft links.
22936 LN_S=$lt_LN_S
22937
22938 # A BSD-compatible nm program.
22939 NM=$lt_NM
22940
22941 # A symbol stripping program
22942 STRIP=$lt_STRIP
22943
22944 # Used to examine libraries when file_magic_cmd begins "file"
22945 MAGIC_CMD=$MAGIC_CMD
22946
22947 # Used on cygwin: DLL creation program.
22948 DLLTOOL="$DLLTOOL"
22949
22950 # Used on cygwin: object dumper.
22951 OBJDUMP="$OBJDUMP"
22952
22953 # Used on cygwin: assembler.
22954 AS="$AS"
22955
22956 # The name of the directory that contains temporary libtool files.
22957 objdir=$objdir
22958
22959 # How to create reloadable object files.
22960 reload_flag=$lt_reload_flag
22961 reload_cmds=$lt_reload_cmds
22962
22963 # How to pass a linker flag through the compiler.
22964 wl=$lt_lt_prog_compiler_wl_F77
22965
22966 # Object file suffix (normally "o").
22967 objext="$ac_objext"
22968
22969 # Old archive suffix (normally "a").
22970 libext="$libext"
22971
22972 # Shared library suffix (normally ".so").
22973 shrext_cmds='$shrext_cmds'
22974
22975 # Executable file suffix (normally "").
22976 exeext="$exeext"
22977
22978 # Additional compiler flags for building library objects.
22979 pic_flag=$lt_lt_prog_compiler_pic_F77
22980 pic_mode=$pic_mode
22981
22982 # What is the maximum length of a command?
22983 max_cmd_len=$lt_cv_sys_max_cmd_len
22984
22985 # Does compiler simultaneously support -c and -o options?
22986 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22987
22988 # Must we lock files when doing compilation?
22989 need_locks=$lt_need_locks
22990
22991 # Do we need the lib prefix for modules?
22992 need_lib_prefix=$need_lib_prefix
22993
22994 # Do we need a version for libraries?
22995 need_version=$need_version
22996
22997 # Whether dlopen is supported.
22998 dlopen_support=$enable_dlopen
22999
23000 # Whether dlopen of programs is supported.
23001 dlopen_self=$enable_dlopen_self
23002
23003 # Whether dlopen of statically linked programs is supported.
23004 dlopen_self_static=$enable_dlopen_self_static
23005
23006 # Compiler flag to prevent dynamic linking.
23007 link_static_flag=$lt_lt_prog_compiler_static_F77
23008
23009 # Compiler flag to turn off builtin functions.
23010 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23011
23012 # Compiler flag to allow reflexive dlopens.
23013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23014
23015 # Compiler flag to generate shared objects directly from archives.
23016 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23017
23018 # Compiler flag to generate thread-safe objects.
23019 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23020
23021 # Library versioning type.
23022 version_type=$version_type
23023
23024 # Format of library name prefix.
23025 libname_spec=$lt_libname_spec
23026
23027 # List of archive names.  First name is the real one, the rest are links.
23028 # The last name is the one that the linker finds with -lNAME.
23029 library_names_spec=$lt_library_names_spec
23030
23031 # The coded name of the library, if different from the real name.
23032 soname_spec=$lt_soname_spec
23033
23034 # Commands used to build and install an old-style archive.
23035 RANLIB=$lt_RANLIB
23036 old_archive_cmds=$lt_old_archive_cmds_F77
23037 old_postinstall_cmds=$lt_old_postinstall_cmds
23038 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23039
23040 # Create an old-style archive from a shared archive.
23041 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23042
23043 # Create a temporary old-style archive to link instead of a shared archive.
23044 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23045
23046 # Commands used to build and install a shared archive.
23047 archive_cmds=$lt_archive_cmds_F77
23048 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23049 postinstall_cmds=$lt_postinstall_cmds
23050 postuninstall_cmds=$lt_postuninstall_cmds
23051
23052 # Commands used to build a loadable module (assumed same as above if empty)
23053 module_cmds=$lt_module_cmds_F77
23054 module_expsym_cmds=$lt_module_expsym_cmds_F77
23055
23056 # Commands to strip libraries.
23057 old_striplib=$lt_old_striplib
23058 striplib=$lt_striplib
23059
23060 # Dependencies to place before the objects being linked to create a
23061 # shared library.
23062 predep_objects=$lt_predep_objects_F77
23063
23064 # Dependencies to place after the objects being linked to create a
23065 # shared library.
23066 postdep_objects=$lt_postdep_objects_F77
23067
23068 # Dependencies to place before the objects being linked to create a
23069 # shared library.
23070 predeps=$lt_predeps_F77
23071
23072 # Dependencies to place after the objects being linked to create a
23073 # shared library.
23074 postdeps=$lt_postdeps_F77
23075
23076 # The directories searched by this compiler when creating a shared
23077 # library
23078 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23079
23080 # The library search path used internally by the compiler when linking
23081 # a shared library.
23082 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23083
23084 # Method to check whether dependent libraries are shared objects.
23085 deplibs_check_method=$lt_deplibs_check_method
23086
23087 # Command to use when deplibs_check_method == file_magic.
23088 file_magic_cmd=$lt_file_magic_cmd
23089
23090 # Flag that allows shared libraries with undefined symbols to be built.
23091 allow_undefined_flag=$lt_allow_undefined_flag_F77
23092
23093 # Flag that forces no undefined symbols.
23094 no_undefined_flag=$lt_no_undefined_flag_F77
23095
23096 # Commands used to finish a libtool library installation in a directory.
23097 finish_cmds=$lt_finish_cmds
23098
23099 # Same as above, but a single script fragment to be evaled but not shown.
23100 finish_eval=$lt_finish_eval
23101
23102 # Take the output of nm and produce a listing of raw symbols and C names.
23103 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23104
23105 # Transform the output of nm in a proper C declaration
23106 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23107
23108 # Transform the output of nm in a C name address pair
23109 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23110
23111 # This is the shared library runtime path variable.
23112 runpath_var=$runpath_var
23113
23114 # This is the shared library path variable.
23115 shlibpath_var=$shlibpath_var
23116
23117 # Is shlibpath searched before the hard-coded library search path?
23118 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23119
23120 # How to hardcode a shared library path into an executable.
23121 hardcode_action=$hardcode_action_F77
23122
23123 # Whether we should hardcode library paths into libraries.
23124 hardcode_into_libs=$hardcode_into_libs
23125
23126 # Flag to hardcode \$libdir into a binary during linking.
23127 # This must work even if \$libdir does not exist.
23128 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23129
23130 # If ld is used when linking, flag to hardcode \$libdir into
23131 # a binary during linking. This must work even if \$libdir does
23132 # not exist.
23133 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23134
23135 # Whether we need a single -rpath flag with a separated argument.
23136 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23137
23138 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23139 # resulting binary.
23140 hardcode_direct=$hardcode_direct_F77
23141
23142 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23143 # resulting binary.
23144 hardcode_minus_L=$hardcode_minus_L_F77
23145
23146 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23147 # the resulting binary.
23148 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23149
23150 # Set to yes if building a shared library automatically hardcodes DIR into the library
23151 # and all subsequent libraries and executables linked against it.
23152 hardcode_automatic=$hardcode_automatic_F77
23153
23154 # Variables whose values should be saved in libtool wrapper scripts and
23155 # restored at relink time.
23156 variables_saved_for_relink="$variables_saved_for_relink"
23157
23158 # Whether libtool must link a program against all its dependency libraries.
23159 link_all_deplibs=$link_all_deplibs_F77
23160
23161 # Compile-time system search path for libraries
23162 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23163
23164 # Run-time system search path for libraries
23165 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23166
23167 # Fix the shell variable \$srcfile for the compiler.
23168 fix_srcfile_path=$lt_fix_srcfile_path
23169
23170 # Set to yes if exported symbols are required.
23171 always_export_symbols=$always_export_symbols_F77
23172
23173 # The commands to list exported symbols.
23174 export_symbols_cmds=$lt_export_symbols_cmds_F77
23175
23176 # The commands to extract the exported symbol list from a shared archive.
23177 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23178
23179 # Symbols that should not be listed in the preloaded symbols.
23180 exclude_expsyms=$lt_exclude_expsyms_F77
23181
23182 # Symbols that must always be exported.
23183 include_expsyms=$lt_include_expsyms_F77
23184
23185 # ### END LIBTOOL TAG CONFIG: $tagname
23186
23187 __EOF__
23188
23189
23190 else
23191   # If there is no Makefile yet, we rely on a make rule to execute
23192   # `config.status --recheck' to rerun these tests and create the
23193   # libtool script then.
23194   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23195   if test -f "$ltmain_in"; then
23196     test -f Makefile && make "$ltmain"
23197   fi
23198 fi
23199
23200
23201 ac_ext=c
23202 ac_cpp='$CPP $CPPFLAGS'
23203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23206
23207 CC="$lt_save_CC"
23208
23209         else
23210           tagname=""
23211         fi
23212         ;;
23213
23214       GCJ)
23215         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
23216
23217
23218 # Source file extension for Java test sources.
23219 ac_ext=java
23220
23221 # Object file extension for compiled Java test sources.
23222 objext=o
23223 objext_GCJ=$objext
23224
23225 # Code to be used in simple compile tests
23226 lt_simple_compile_test_code="class foo {}"
23227
23228 # Code to be used in simple link tests
23229 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
23230
23231 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23232
23233 # If no C compiler was specified, use CC.
23234 LTCC=${LTCC-"$CC"}
23235
23236 # If no C compiler flags were specified, use CFLAGS.
23237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23238
23239 # Allow CC to be a program name with arguments.
23240 compiler=$CC
23241
23242
23243 # save warnings/boilerplate of simple test code
23244 ac_outfile=conftest.$ac_objext
23245 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
23246 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23247 _lt_compiler_boilerplate=`cat conftest.err`
23248 $rm conftest*
23249
23250 ac_outfile=conftest.$ac_objext
23251 echo "$lt_simple_link_test_code" >conftest.$ac_ext
23252 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23253 _lt_linker_boilerplate=`cat conftest.err`
23254 $rm -r conftest*
23255
23256
23257 # Allow CC to be a program name with arguments.
23258 lt_save_CC="$CC"
23259 CC=${GCJ-"gcj"}
23260 compiler=$CC
23261 compiler_GCJ=$CC
23262 for cc_temp in $compiler""; do
23263   case $cc_temp in
23264     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23265     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23266     \-*) ;;
23267     *) break;;
23268   esac
23269 done
23270 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23271
23272
23273 # GCJ did not exist at the time GCC didn't implicitly link libc in.
23274 archive_cmds_need_lc_GCJ=no
23275
23276 old_archive_cmds_GCJ=$old_archive_cmds
23277
23278
23279 lt_prog_compiler_no_builtin_flag_GCJ=
23280
23281 if test "$GCC" = yes; then
23282   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23283
23284
23285 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23286 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
23287 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23288   echo $ECHO_N "(cached) $ECHO_C" >&6
23289 else
23290   lt_cv_prog_compiler_rtti_exceptions=no
23291   ac_outfile=conftest.$ac_objext
23292    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23293    lt_compiler_flag="-fno-rtti -fno-exceptions"
23294    # Insert the option either (1) after the last *FLAGS variable, or
23295    # (2) before a word containing "conftest.", or (3) at the end.
23296    # Note that $ac_compile itself does not contain backslashes and begins
23297    # with a dollar sign (not a hyphen), so the echo should work correctly.
23298    # The option is referenced via a variable to avoid confusing sed.
23299    lt_compile=`echo "$ac_compile" | $SED \
23300    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23301    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23302    -e 's:$: $lt_compiler_flag:'`
23303    (eval echo "\"\$as_me:23303: $lt_compile\"" >&5)
23304    (eval "$lt_compile" 2>conftest.err)
23305    ac_status=$?
23306    cat conftest.err >&5
23307    echo "$as_me:23307: \$? = $ac_status" >&5
23308    if (exit $ac_status) && test -s "$ac_outfile"; then
23309      # The compiler can only warn and ignore the option if not recognized
23310      # So say no if there are warnings other than the usual output.
23311      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23312      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23313      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23314        lt_cv_prog_compiler_rtti_exceptions=yes
23315      fi
23316    fi
23317    $rm conftest*
23318
23319 fi
23320 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23321 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
23322
23323 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23324     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23325 else
23326     :
23327 fi
23328
23329 fi
23330
23331 lt_prog_compiler_wl_GCJ=
23332 lt_prog_compiler_pic_GCJ=
23333 lt_prog_compiler_static_GCJ=
23334
23335 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23336 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
23337
23338   if test "$GCC" = yes; then
23339     lt_prog_compiler_wl_GCJ='-Wl,'
23340     lt_prog_compiler_static_GCJ='-static'
23341
23342     case $host_os in
23343       aix*)
23344       # All AIX code is PIC.
23345       if test "$host_cpu" = ia64; then
23346         # AIX 5 now supports IA64 processor
23347         lt_prog_compiler_static_GCJ='-Bstatic'
23348       fi
23349       ;;
23350
23351     amigaos*)
23352       # FIXME: we need at least 68020 code to build shared libraries, but
23353       # adding the `-m68020' flag to GCC prevents building anything better,
23354       # like `-m68040'.
23355       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23356       ;;
23357
23358     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23359       # PIC is the default for these OSes.
23360       ;;
23361
23362     mingw* | cygwin* | pw32* | os2*)
23363       # This hack is so that the source file can tell whether it is being
23364       # built for inclusion in a dll (and should export symbols for example).
23365       # Although the cygwin gcc ignores -fPIC, still need this for old-style
23366       # (--disable-auto-import) libraries
23367
23368       ;;
23369
23370     darwin* | rhapsody*)
23371       # PIC is the default on this platform
23372       # Common symbols not allowed in MH_DYLIB files
23373       lt_prog_compiler_pic_GCJ='-fno-common'
23374       ;;
23375
23376     interix[3-9]*)
23377       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23378       # Instead, we relocate shared libraries at runtime.
23379       ;;
23380
23381     msdosdjgpp*)
23382       # Just because we use GCC doesn't mean we suddenly get shared libraries
23383       # on systems that don't support them.
23384       lt_prog_compiler_can_build_shared_GCJ=no
23385       enable_shared=no
23386       ;;
23387
23388     sysv4*MP*)
23389       if test -d /usr/nec; then
23390         lt_prog_compiler_pic_GCJ=-Kconform_pic
23391       fi
23392       ;;
23393
23394     hpux*)
23395       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23396       # not for PA HP-UX.
23397       case $host_cpu in
23398       hppa*64*|ia64*)
23399         # +Z the default
23400         ;;
23401       *)
23402         lt_prog_compiler_pic_GCJ='-fPIC'
23403         ;;
23404       esac
23405       ;;
23406
23407     *)
23408       lt_prog_compiler_pic_GCJ='-fPIC'
23409       ;;
23410     esac
23411   else
23412     # PORTME Check for flag to pass linker flags through the system compiler.
23413     case $host_os in
23414     aix*)
23415       lt_prog_compiler_wl_GCJ='-Wl,'
23416       if test "$host_cpu" = ia64; then
23417         # AIX 5 now supports IA64 processor
23418         lt_prog_compiler_static_GCJ='-Bstatic'
23419       else
23420         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23421       fi
23422       ;;
23423       darwin*)
23424         # PIC is the default on this platform
23425         # Common symbols not allowed in MH_DYLIB files
23426        case $cc_basename in
23427          xlc*)
23428          lt_prog_compiler_pic_GCJ='-qnocommon'
23429          lt_prog_compiler_wl_GCJ='-Wl,'
23430          ;;
23431        esac
23432        ;;
23433
23434     mingw* | cygwin* | pw32* | os2*)
23435       # This hack is so that the source file can tell whether it is being
23436       # built for inclusion in a dll (and should export symbols for example).
23437
23438       ;;
23439
23440     hpux9* | hpux10* | hpux11*)
23441       lt_prog_compiler_wl_GCJ='-Wl,'
23442       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23443       # not for PA HP-UX.
23444       case $host_cpu in
23445       hppa*64*|ia64*)
23446         # +Z the default
23447         ;;
23448       *)
23449         lt_prog_compiler_pic_GCJ='+Z'
23450         ;;
23451       esac
23452       # Is there a better lt_prog_compiler_static that works with the bundled CC?
23453       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23454       ;;
23455
23456     irix5* | irix6* | nonstopux*)
23457       lt_prog_compiler_wl_GCJ='-Wl,'
23458       # PIC (with -KPIC) is the default.
23459       lt_prog_compiler_static_GCJ='-non_shared'
23460       ;;
23461
23462     newsos6)
23463       lt_prog_compiler_pic_GCJ='-KPIC'
23464       lt_prog_compiler_static_GCJ='-Bstatic'
23465       ;;
23466
23467     linux* | k*bsd*-gnu)
23468       case $cc_basename in
23469       icc* | ecc*)
23470         lt_prog_compiler_wl_GCJ='-Wl,'
23471         lt_prog_compiler_pic_GCJ='-KPIC'
23472         lt_prog_compiler_static_GCJ='-static'
23473         ;;
23474       pgcc* | pgf77* | pgf90* | pgf95*)
23475         # Portland Group compilers (*not* the Pentium gcc compiler,
23476         # which looks to be a dead project)
23477         lt_prog_compiler_wl_GCJ='-Wl,'
23478         lt_prog_compiler_pic_GCJ='-fpic'
23479         lt_prog_compiler_static_GCJ='-Bstatic'
23480         ;;
23481       ccc*)
23482         lt_prog_compiler_wl_GCJ='-Wl,'
23483         # All Alpha code is PIC.
23484         lt_prog_compiler_static_GCJ='-non_shared'
23485         ;;
23486       *)
23487         case `$CC -V 2>&1 | sed 5q` in
23488         *Sun\ C*)
23489           # Sun C 5.9
23490           lt_prog_compiler_pic_GCJ='-KPIC'
23491           lt_prog_compiler_static_GCJ='-Bstatic'
23492           lt_prog_compiler_wl_GCJ='-Wl,'
23493           ;;
23494         *Sun\ F*)
23495           # Sun Fortran 8.3 passes all unrecognized flags to the linker
23496           lt_prog_compiler_pic_GCJ='-KPIC'
23497           lt_prog_compiler_static_GCJ='-Bstatic'
23498           lt_prog_compiler_wl_GCJ=''
23499           ;;
23500         esac
23501         ;;
23502       esac
23503       ;;
23504
23505     osf3* | osf4* | osf5*)
23506       lt_prog_compiler_wl_GCJ='-Wl,'
23507       # All OSF/1 code is PIC.
23508       lt_prog_compiler_static_GCJ='-non_shared'
23509       ;;
23510
23511     rdos*)
23512       lt_prog_compiler_static_GCJ='-non_shared'
23513       ;;
23514
23515     solaris*)
23516       lt_prog_compiler_pic_GCJ='-KPIC'
23517       lt_prog_compiler_static_GCJ='-Bstatic'
23518       case $cc_basename in
23519       f77* | f90* | f95*)
23520         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23521       *)
23522         lt_prog_compiler_wl_GCJ='-Wl,';;
23523       esac
23524       ;;
23525
23526     sunos4*)
23527       lt_prog_compiler_wl_GCJ='-Qoption ld '
23528       lt_prog_compiler_pic_GCJ='-PIC'
23529       lt_prog_compiler_static_GCJ='-Bstatic'
23530       ;;
23531
23532     sysv4 | sysv4.2uw2* | sysv4.3*)
23533       lt_prog_compiler_wl_GCJ='-Wl,'
23534       lt_prog_compiler_pic_GCJ='-KPIC'
23535       lt_prog_compiler_static_GCJ='-Bstatic'
23536       ;;
23537
23538     sysv4*MP*)
23539       if test -d /usr/nec ;then
23540         lt_prog_compiler_pic_GCJ='-Kconform_pic'
23541         lt_prog_compiler_static_GCJ='-Bstatic'
23542       fi
23543       ;;
23544
23545     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23546       lt_prog_compiler_wl_GCJ='-Wl,'
23547       lt_prog_compiler_pic_GCJ='-KPIC'
23548       lt_prog_compiler_static_GCJ='-Bstatic'
23549       ;;
23550
23551     unicos*)
23552       lt_prog_compiler_wl_GCJ='-Wl,'
23553       lt_prog_compiler_can_build_shared_GCJ=no
23554       ;;
23555
23556     uts4*)
23557       lt_prog_compiler_pic_GCJ='-pic'
23558       lt_prog_compiler_static_GCJ='-Bstatic'
23559       ;;
23560
23561     *)
23562       lt_prog_compiler_can_build_shared_GCJ=no
23563       ;;
23564     esac
23565   fi
23566
23567 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23568 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23569
23570 #
23571 # Check to make sure the PIC flag actually works.
23572 #
23573 if test -n "$lt_prog_compiler_pic_GCJ"; then
23574
23575 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23576 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23577 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
23578   echo $ECHO_N "(cached) $ECHO_C" >&6
23579 else
23580   lt_cv_prog_compiler_pic_works_GCJ=no
23581   ac_outfile=conftest.$ac_objext
23582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23583    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23584    # Insert the option either (1) after the last *FLAGS variable, or
23585    # (2) before a word containing "conftest.", or (3) at the end.
23586    # Note that $ac_compile itself does not contain backslashes and begins
23587    # with a dollar sign (not a hyphen), so the echo should work correctly.
23588    # The option is referenced via a variable to avoid confusing sed.
23589    lt_compile=`echo "$ac_compile" | $SED \
23590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23592    -e 's:$: $lt_compiler_flag:'`
23593    (eval echo "\"\$as_me:23593: $lt_compile\"" >&5)
23594    (eval "$lt_compile" 2>conftest.err)
23595    ac_status=$?
23596    cat conftest.err >&5
23597    echo "$as_me:23597: \$? = $ac_status" >&5
23598    if (exit $ac_status) && test -s "$ac_outfile"; then
23599      # The compiler can only warn and ignore the option if not recognized
23600      # So say no if there are warnings other than the usual output.
23601      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23602      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23603      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23604        lt_cv_prog_compiler_pic_works_GCJ=yes
23605      fi
23606    fi
23607    $rm conftest*
23608
23609 fi
23610 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
23611 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
23612
23613 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
23614     case $lt_prog_compiler_pic_GCJ in
23615      "" | " "*) ;;
23616      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23617      esac
23618 else
23619     lt_prog_compiler_pic_GCJ=
23620      lt_prog_compiler_can_build_shared_GCJ=no
23621 fi
23622
23623 fi
23624 case $host_os in
23625   # For platforms which do not support PIC, -DPIC is meaningless:
23626   *djgpp*)
23627     lt_prog_compiler_pic_GCJ=
23628     ;;
23629   *)
23630     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23631     ;;
23632 esac
23633
23634 #
23635 # Check to make sure the static flag actually works.
23636 #
23637 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23638 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23639 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23640 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
23641   echo $ECHO_N "(cached) $ECHO_C" >&6
23642 else
23643   lt_cv_prog_compiler_static_works_GCJ=no
23644    save_LDFLAGS="$LDFLAGS"
23645    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23646    echo "$lt_simple_link_test_code" > conftest.$ac_ext
23647    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23648      # The linker can only warn and ignore the option if not recognized
23649      # So say no if there are warnings
23650      if test -s conftest.err; then
23651        # Append any errors to the config.log.
23652        cat conftest.err 1>&5
23653        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23654        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23655        if diff conftest.exp conftest.er2 >/dev/null; then
23656          lt_cv_prog_compiler_static_works_GCJ=yes
23657        fi
23658      else
23659        lt_cv_prog_compiler_static_works_GCJ=yes
23660      fi
23661    fi
23662    $rm -r conftest*
23663    LDFLAGS="$save_LDFLAGS"
23664
23665 fi
23666 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
23667 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
23668
23669 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
23670     :
23671 else
23672     lt_prog_compiler_static_GCJ=
23673 fi
23674
23675
23676 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23677 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23678 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23679   echo $ECHO_N "(cached) $ECHO_C" >&6
23680 else
23681   lt_cv_prog_compiler_c_o_GCJ=no
23682    $rm -r conftest 2>/dev/null
23683    mkdir conftest
23684    cd conftest
23685    mkdir out
23686    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
23687
23688    lt_compiler_flag="-o out/conftest2.$ac_objext"
23689    # Insert the option either (1) after the last *FLAGS variable, or
23690    # (2) before a word containing "conftest.", or (3) at the end.
23691    # Note that $ac_compile itself does not contain backslashes and begins
23692    # with a dollar sign (not a hyphen), so the echo should work correctly.
23693    lt_compile=`echo "$ac_compile" | $SED \
23694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23696    -e 's:$: $lt_compiler_flag:'`
23697    (eval echo "\"\$as_me:23697: $lt_compile\"" >&5)
23698    (eval "$lt_compile" 2>out/conftest.err)
23699    ac_status=$?
23700    cat out/conftest.err >&5
23701    echo "$as_me:23701: \$? = $ac_status" >&5
23702    if (exit $ac_status) && test -s out/conftest2.$ac_objext
23703    then
23704      # The compiler can only warn and ignore the option if not recognized
23705      # So say no if there are warnings
23706      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23707      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23708      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23709        lt_cv_prog_compiler_c_o_GCJ=yes
23710      fi
23711    fi
23712    chmod u+w . 2>&5
23713    $rm conftest*
23714    # SGI C++ compiler will create directory out/ii_files/ for
23715    # template instantiation
23716    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23717    $rm out/* && rmdir out
23718    cd ..
23719    rmdir conftest
23720    $rm conftest*
23721
23722 fi
23723 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23724 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23725
23726
23727 hard_links="nottested"
23728 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23729   # do not overwrite the value of need_locks provided by the user
23730   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23731 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23732   hard_links=yes
23733   $rm conftest*
23734   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23735   touch conftest.a
23736   ln conftest.a conftest.b 2>&5 || hard_links=no
23737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
23738   { echo "$as_me:$LINENO: result: $hard_links" >&5
23739 echo "${ECHO_T}$hard_links" >&6; }
23740   if test "$hard_links" = no; then
23741     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23742 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23743     need_locks=warn
23744   fi
23745 else
23746   need_locks=no
23747 fi
23748
23749 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23750 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23751
23752   runpath_var=
23753   allow_undefined_flag_GCJ=
23754   enable_shared_with_static_runtimes_GCJ=no
23755   archive_cmds_GCJ=
23756   archive_expsym_cmds_GCJ=
23757   old_archive_From_new_cmds_GCJ=
23758   old_archive_from_expsyms_cmds_GCJ=
23759   export_dynamic_flag_spec_GCJ=
23760   whole_archive_flag_spec_GCJ=
23761   thread_safe_flag_spec_GCJ=
23762   hardcode_libdir_flag_spec_GCJ=
23763   hardcode_libdir_flag_spec_ld_GCJ=
23764   hardcode_libdir_separator_GCJ=
23765   hardcode_direct_GCJ=no
23766   hardcode_minus_L_GCJ=no
23767   hardcode_shlibpath_var_GCJ=unsupported
23768   link_all_deplibs_GCJ=unknown
23769   hardcode_automatic_GCJ=no
23770   module_cmds_GCJ=
23771   module_expsym_cmds_GCJ=
23772   always_export_symbols_GCJ=no
23773   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23774   # include_expsyms should be a list of space-separated symbols to be *always*
23775   # included in the symbol list
23776   include_expsyms_GCJ=
23777   # exclude_expsyms can be an extended regexp of symbols to exclude
23778   # it will be wrapped by ` (' and `)$', so one must not match beginning or
23779   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23780   # as well as any symbol that contains `d'.
23781   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
23782   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23783   # platforms (ab)use it in PIC code, but their linkers get confused if
23784   # the symbol is explicitly referenced.  Since portable code cannot
23785   # rely on this symbol name, it's probably fine to never include it in
23786   # preloaded symbol tables.
23787   # Exclude shared library initialization/finalization symbols.
23788   extract_expsyms_cmds=
23789   # Just being paranoid about ensuring that cc_basename is set.
23790   for cc_temp in $compiler""; do
23791   case $cc_temp in
23792     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23793     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23794     \-*) ;;
23795     *) break;;
23796   esac
23797 done
23798 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23799
23800   case $host_os in
23801   cygwin* | mingw* | pw32*)
23802     # FIXME: the MSVC++ port hasn't been tested in a loooong time
23803     # When not using gcc, we currently assume that we are using
23804     # Microsoft Visual C++.
23805     if test "$GCC" != yes; then
23806       with_gnu_ld=no
23807     fi
23808     ;;
23809   interix*)
23810     # we just hope/assume this is gcc and not c89 (= MSVC++)
23811     with_gnu_ld=yes
23812     ;;
23813   openbsd*)
23814     with_gnu_ld=no
23815     ;;
23816   esac
23817
23818   ld_shlibs_GCJ=yes
23819   if test "$with_gnu_ld" = yes; then
23820     # If archive_cmds runs LD, not CC, wlarc should be empty
23821     wlarc='${wl}'
23822
23823     # Set some defaults for GNU ld with shared library support. These
23824     # are reset later if shared libraries are not supported. Putting them
23825     # here allows them to be overridden if necessary.
23826     runpath_var=LD_RUN_PATH
23827     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23828     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23829     # ancient GNU ld didn't support --whole-archive et. al.
23830     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23831         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23832       else
23833         whole_archive_flag_spec_GCJ=
23834     fi
23835     supports_anon_versioning=no
23836     case `$LD -v 2>/dev/null` in
23837       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23838       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23839       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23840       *\ 2.11.*) ;; # other 2.11 versions
23841       *) supports_anon_versioning=yes ;;
23842     esac
23843
23844     # See if GNU ld supports shared libraries.
23845     case $host_os in
23846     aix[3-9]*)
23847       # On AIX/PPC, the GNU linker is very broken
23848       if test "$host_cpu" != ia64; then
23849         ld_shlibs_GCJ=no
23850         cat <<EOF 1>&2
23851
23852 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23853 *** to be unable to reliably create shared libraries on AIX.
23854 *** Therefore, libtool is disabling shared libraries support.  If you
23855 *** really care for shared libraries, you may want to modify your PATH
23856 *** so that a non-GNU linker is found, and then restart.
23857
23858 EOF
23859       fi
23860       ;;
23861
23862     amigaos*)
23863       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)'
23864       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23865       hardcode_minus_L_GCJ=yes
23866
23867       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23868       # that the semantics of dynamic libraries on AmigaOS, at least up
23869       # to version 4, is to share data among multiple programs linked
23870       # with the same dynamic library.  Since this doesn't match the
23871       # behavior of shared libraries on other platforms, we can't use
23872       # them.
23873       ld_shlibs_GCJ=no
23874       ;;
23875
23876     beos*)
23877       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23878         allow_undefined_flag_GCJ=unsupported
23879         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23880         # support --undefined.  This deserves some investigation.  FIXME
23881         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23882       else
23883         ld_shlibs_GCJ=no
23884       fi
23885       ;;
23886
23887     cygwin* | mingw* | pw32*)
23888       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23889       # as there is no search path for DLLs.
23890       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23891       allow_undefined_flag_GCJ=unsupported
23892       always_export_symbols_GCJ=no
23893       enable_shared_with_static_runtimes_GCJ=yes
23894       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
23895
23896       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23897         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23898         # If the export-symbols file already is a .def file (1st line
23899         # is EXPORTS), use it as is; otherwise, prepend...
23900         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23901           cp $export_symbols $output_objdir/$soname.def;
23902         else
23903           echo EXPORTS > $output_objdir/$soname.def;
23904           cat $export_symbols >> $output_objdir/$soname.def;
23905         fi~
23906         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23907       else
23908         ld_shlibs_GCJ=no
23909       fi
23910       ;;
23911
23912     interix[3-9]*)
23913       hardcode_direct_GCJ=no
23914       hardcode_shlibpath_var_GCJ=no
23915       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23916       export_dynamic_flag_spec_GCJ='${wl}-E'
23917       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23918       # Instead, shared libraries are loaded at an image base (0x10000000 by
23919       # default) and relocated if they conflict, which is a slow very memory
23920       # consuming and fragmenting process.  To avoid this, we pick a random,
23921       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23922       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
23923       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'
23924       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'
23925       ;;
23926
23927     gnu* | linux* | k*bsd*-gnu)
23928       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23929         tmp_addflag=
23930         case $cc_basename,$host_cpu in
23931         pgcc*)                          # Portland Group C compiler
23932           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'
23933           tmp_addflag=' $pic_flag'
23934           ;;
23935         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
23936           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'
23937           tmp_addflag=' $pic_flag -Mnomain' ;;
23938         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
23939           tmp_addflag=' -i_dynamic' ;;
23940         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
23941           tmp_addflag=' -i_dynamic -nofor_main' ;;
23942         ifc* | ifort*)                  # Intel Fortran compiler
23943           tmp_addflag=' -nofor_main' ;;
23944         esac
23945         case `$CC -V 2>&1 | sed 5q` in
23946         *Sun\ C*)                       # Sun C 5.9
23947           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'
23948           tmp_sharedflag='-G' ;;
23949         *Sun\ F*)                       # Sun Fortran 8.3
23950           tmp_sharedflag='-G' ;;
23951         *)
23952           tmp_sharedflag='-shared' ;;
23953         esac
23954         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23955
23956         if test $supports_anon_versioning = yes; then
23957           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23958   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23959   $echo "local: *; };" >> $output_objdir/$libname.ver~
23960           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23961         fi
23962         link_all_deplibs_GCJ=no
23963       else
23964         ld_shlibs_GCJ=no
23965       fi
23966       ;;
23967
23968     netbsd* | netbsdelf*-gnu)
23969       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23970         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23971         wlarc=
23972       else
23973         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23974         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23975       fi
23976       ;;
23977
23978     solaris*)
23979       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23980         ld_shlibs_GCJ=no
23981         cat <<EOF 1>&2
23982
23983 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23984 *** create shared libraries on Solaris systems.  Therefore, libtool
23985 *** is disabling shared libraries support.  We urge you to upgrade GNU
23986 *** binutils to release 2.9.1 or newer.  Another option is to modify
23987 *** your PATH or compiler configuration so that the native linker is
23988 *** used, and then restart.
23989
23990 EOF
23991       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23992         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23993         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23994       else
23995         ld_shlibs_GCJ=no
23996       fi
23997       ;;
23998
23999     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24000       case `$LD -v 2>&1` in
24001         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24002         ld_shlibs_GCJ=no
24003         cat <<_LT_EOF 1>&2
24004
24005 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24006 *** reliably create shared libraries on SCO systems.  Therefore, libtool
24007 *** is disabling shared libraries support.  We urge you to upgrade GNU
24008 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
24009 *** your PATH or compiler configuration so that the native linker is
24010 *** used, and then restart.
24011
24012 _LT_EOF
24013         ;;
24014         *)
24015           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24016             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24017             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24018             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24019           else
24020             ld_shlibs_GCJ=no
24021           fi
24022         ;;
24023       esac
24024       ;;
24025
24026     sunos4*)
24027       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24028       wlarc=
24029       hardcode_direct_GCJ=yes
24030       hardcode_shlibpath_var_GCJ=no
24031       ;;
24032
24033     *)
24034       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24035         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24036         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24037       else
24038         ld_shlibs_GCJ=no
24039       fi
24040       ;;
24041     esac
24042
24043     if test "$ld_shlibs_GCJ" = no; then
24044       runpath_var=
24045       hardcode_libdir_flag_spec_GCJ=
24046       export_dynamic_flag_spec_GCJ=
24047       whole_archive_flag_spec_GCJ=
24048     fi
24049   else
24050     # PORTME fill in a description of your system's linker (not GNU ld)
24051     case $host_os in
24052     aix3*)
24053       allow_undefined_flag_GCJ=unsupported
24054       always_export_symbols_GCJ=yes
24055       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'
24056       # Note: this linker hardcodes the directories in LIBPATH if there
24057       # are no directories specified by -L.
24058       hardcode_minus_L_GCJ=yes
24059       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24060         # Neither direct hardcoding nor static linking is supported with a
24061         # broken collect2.
24062         hardcode_direct_GCJ=unsupported
24063       fi
24064       ;;
24065
24066     aix[4-9]*)
24067       if test "$host_cpu" = ia64; then
24068         # On IA64, the linker does run time linking by default, so we don't
24069         # have to do anything special.
24070         aix_use_runtimelinking=no
24071         exp_sym_flag='-Bexport'
24072         no_entry_flag=""
24073       else
24074         # If we're using GNU nm, then we don't want the "-C" option.
24075         # -C means demangle to AIX nm, but means don't demangle with GNU nm
24076         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24077           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'
24078         else
24079           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'
24080         fi
24081         aix_use_runtimelinking=no
24082
24083         # Test if we are trying to use run time linking or normal
24084         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24085         # need to do runtime linking.
24086         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
24087           for ld_flag in $LDFLAGS; do
24088           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24089             aix_use_runtimelinking=yes
24090             break
24091           fi
24092           done
24093           ;;
24094         esac
24095
24096         exp_sym_flag='-bexport'
24097         no_entry_flag='-bnoentry'
24098       fi
24099
24100       # When large executables or shared objects are built, AIX ld can
24101       # have problems creating the table of contents.  If linking a library
24102       # or program results in "error TOC overflow" add -mminimal-toc to
24103       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
24104       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24105
24106       archive_cmds_GCJ=''
24107       hardcode_direct_GCJ=yes
24108       hardcode_libdir_separator_GCJ=':'
24109       link_all_deplibs_GCJ=yes
24110
24111       if test "$GCC" = yes; then
24112         case $host_os in aix4.[012]|aix4.[012].*)
24113         # We only want to do this on AIX 4.2 and lower, the check
24114         # below for broken collect2 doesn't work under 4.3+
24115           collect2name=`${CC} -print-prog-name=collect2`
24116           if test -f "$collect2name" && \
24117            strings "$collect2name" | grep resolve_lib_name >/dev/null
24118           then
24119           # We have reworked collect2
24120           :
24121           else
24122           # We have old collect2
24123           hardcode_direct_GCJ=unsupported
24124           # It fails to find uninstalled libraries when the uninstalled
24125           # path is not listed in the libpath.  Setting hardcode_minus_L
24126           # to unsupported forces relinking
24127           hardcode_minus_L_GCJ=yes
24128           hardcode_libdir_flag_spec_GCJ='-L$libdir'
24129           hardcode_libdir_separator_GCJ=
24130           fi
24131           ;;
24132         esac
24133         shared_flag='-shared'
24134         if test "$aix_use_runtimelinking" = yes; then
24135           shared_flag="$shared_flag "'${wl}-G'
24136         fi
24137       else
24138         # not using gcc
24139         if test "$host_cpu" = ia64; then
24140         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24141         # chokes on -Wl,-G. The following line is correct:
24142           shared_flag='-G'
24143         else
24144           if test "$aix_use_runtimelinking" = yes; then
24145             shared_flag='${wl}-G'
24146           else
24147             shared_flag='${wl}-bM:SRE'
24148           fi
24149         fi
24150       fi
24151
24152       # It seems that -bexpall does not export symbols beginning with
24153       # underscore (_), so it is better to generate a list of symbols to export.
24154       always_export_symbols_GCJ=yes
24155       if test "$aix_use_runtimelinking" = yes; then
24156         # Warning - without using the other runtime loading flags (-brtl),
24157         # -berok will link without error, but may produce a broken library.
24158         allow_undefined_flag_GCJ='-berok'
24159        # Determine the default libpath from the value encoded in an empty executable.
24160        cat >conftest.$ac_ext <<_ACEOF
24161 /* confdefs.h.  */
24162 _ACEOF
24163 cat confdefs.h >>conftest.$ac_ext
24164 cat >>conftest.$ac_ext <<_ACEOF
24165 /* end confdefs.h.  */
24166
24167 int
24168 main ()
24169 {
24170
24171   ;
24172   return 0;
24173 }
24174 _ACEOF
24175 rm -f conftest.$ac_objext conftest$ac_exeext
24176 if { (ac_try="$ac_link"
24177 case "(($ac_try" in
24178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179   *) ac_try_echo=$ac_try;;
24180 esac
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182   (eval "$ac_link") 2>conftest.er1
24183   ac_status=$?
24184   grep -v '^ *+' conftest.er1 >conftest.err
24185   rm -f conftest.er1
24186   cat conftest.err >&5
24187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188   (exit $ac_status); } && {
24189          test -z "$ac_c_werror_flag" ||
24190          test ! -s conftest.err
24191        } && test -s conftest$ac_exeext &&
24192        $as_test_x conftest$ac_exeext; then
24193
24194 lt_aix_libpath_sed='
24195     /Import File Strings/,/^$/ {
24196         /^0/ {
24197             s/^0  *\(.*\)$/\1/
24198             p
24199         }
24200     }'
24201 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24202 # Check for a 64-bit object if we didn't find anything.
24203 if test -z "$aix_libpath"; then
24204   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24205 fi
24206 else
24207   echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210
24211 fi
24212
24213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24214       conftest$ac_exeext conftest.$ac_ext
24215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24216
24217        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24218         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"
24219        else
24220         if test "$host_cpu" = ia64; then
24221           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24222           allow_undefined_flag_GCJ="-z nodefs"
24223           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"
24224         else
24225          # Determine the default libpath from the value encoded in an empty executable.
24226          cat >conftest.$ac_ext <<_ACEOF
24227 /* confdefs.h.  */
24228 _ACEOF
24229 cat confdefs.h >>conftest.$ac_ext
24230 cat >>conftest.$ac_ext <<_ACEOF
24231 /* end confdefs.h.  */
24232
24233 int
24234 main ()
24235 {
24236
24237   ;
24238   return 0;
24239 }
24240 _ACEOF
24241 rm -f conftest.$ac_objext conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245   *) ac_try_echo=$ac_try;;
24246 esac
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248   (eval "$ac_link") 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } && {
24255          test -z "$ac_c_werror_flag" ||
24256          test ! -s conftest.err
24257        } && test -s conftest$ac_exeext &&
24258        $as_test_x conftest$ac_exeext; then
24259
24260 lt_aix_libpath_sed='
24261     /Import File Strings/,/^$/ {
24262         /^0/ {
24263             s/^0  *\(.*\)$/\1/
24264             p
24265         }
24266     }'
24267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24268 # Check for a 64-bit object if we didn't find anything.
24269 if test -z "$aix_libpath"; then
24270   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
24271 fi
24272 else
24273   echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.$ac_ext >&5
24275
24276
24277 fi
24278
24279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24280       conftest$ac_exeext conftest.$ac_ext
24281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24282
24283          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24284           # Warning - without using the other run time loading flags,
24285           # -berok will link without error, but may produce a broken library.
24286           no_undefined_flag_GCJ=' ${wl}-bernotok'
24287           allow_undefined_flag_GCJ=' ${wl}-berok'
24288           # Exported symbols can be pulled into shared objects from archives
24289           whole_archive_flag_spec_GCJ='$convenience'
24290           archive_cmds_need_lc_GCJ=yes
24291           # This is similar to how AIX traditionally builds its shared libraries.
24292           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'
24293         fi
24294       fi
24295       ;;
24296
24297     amigaos*)
24298       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)'
24299       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24300       hardcode_minus_L_GCJ=yes
24301       # see comment about different semantics on the GNU ld section
24302       ld_shlibs_GCJ=no
24303       ;;
24304
24305     bsdi[45]*)
24306       export_dynamic_flag_spec_GCJ=-rdynamic
24307       ;;
24308
24309     cygwin* | mingw* | pw32*)
24310       # When not using gcc, we currently assume that we are using
24311       # Microsoft Visual C++.
24312       # hardcode_libdir_flag_spec is actually meaningless, as there is
24313       # no search path for DLLs.
24314       hardcode_libdir_flag_spec_GCJ=' '
24315       allow_undefined_flag_GCJ=unsupported
24316       # Tell ltmain to make .lib files, not .a files.
24317       libext=lib
24318       # Tell ltmain to make .dll files, not .so files.
24319       shrext_cmds=".dll"
24320       # FIXME: Setting linknames here is a bad hack.
24321       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24322       # The linker will automatically build a .lib file if we build a DLL.
24323       old_archive_From_new_cmds_GCJ='true'
24324       # FIXME: Should let the user specify the lib program.
24325       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
24326       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
24327       enable_shared_with_static_runtimes_GCJ=yes
24328       ;;
24329
24330     darwin* | rhapsody*)
24331       case $host_os in
24332         rhapsody* | darwin1.[012])
24333          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24334          ;;
24335        *) # Darwin 1.3 on
24336          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24337            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24338          else
24339            case ${MACOSX_DEPLOYMENT_TARGET} in
24340              10.[012])
24341                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24342                ;;
24343              10.*)
24344                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24345                ;;
24346            esac
24347          fi
24348          ;;
24349       esac
24350       archive_cmds_need_lc_GCJ=no
24351       hardcode_direct_GCJ=no
24352       hardcode_automatic_GCJ=yes
24353       hardcode_shlibpath_var_GCJ=unsupported
24354       whole_archive_flag_spec_GCJ=''
24355       link_all_deplibs_GCJ=yes
24356     if test "$GCC" = yes ; then
24357         output_verbose_link_cmd='echo'
24358         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}"
24359         module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
24360         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}"
24361         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}"
24362     else
24363       case $cc_basename in
24364         xlc*)
24365          output_verbose_link_cmd='echo'
24366          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
24367          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
24368           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
24369          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}'
24370           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}'
24371           ;;
24372        *)
24373          ld_shlibs_GCJ=no
24374           ;;
24375       esac
24376     fi
24377       ;;
24378
24379     dgux*)
24380       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24381       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24382       hardcode_shlibpath_var_GCJ=no
24383       ;;
24384
24385     freebsd1*)
24386       ld_shlibs_GCJ=no
24387       ;;
24388
24389     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24390     # support.  Future versions do this automatically, but an explicit c++rt0.o
24391     # does not break anything, and helps significantly (at the cost of a little
24392     # extra space).
24393     freebsd2.2*)
24394       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24395       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24396       hardcode_direct_GCJ=yes
24397       hardcode_shlibpath_var_GCJ=no
24398       ;;
24399
24400     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24401     freebsd2*)
24402       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24403       hardcode_direct_GCJ=yes
24404       hardcode_minus_L_GCJ=yes
24405       hardcode_shlibpath_var_GCJ=no
24406       ;;
24407
24408     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
24409     freebsd* | dragonfly*)
24410       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24411       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24412       hardcode_direct_GCJ=yes
24413       hardcode_shlibpath_var_GCJ=no
24414       ;;
24415
24416     hpux9*)
24417       if test "$GCC" = yes; then
24418         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'
24419       else
24420         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'
24421       fi
24422       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24423       hardcode_libdir_separator_GCJ=:
24424       hardcode_direct_GCJ=yes
24425
24426       # hardcode_minus_L: Not really in the search PATH,
24427       # but as the default location of the library.
24428       hardcode_minus_L_GCJ=yes
24429       export_dynamic_flag_spec_GCJ='${wl}-E'
24430       ;;
24431
24432     hpux10*)
24433       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24434         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24435       else
24436         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24437       fi
24438       if test "$with_gnu_ld" = no; then
24439         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24440         hardcode_libdir_separator_GCJ=:
24441
24442         hardcode_direct_GCJ=yes
24443         export_dynamic_flag_spec_GCJ='${wl}-E'
24444
24445         # hardcode_minus_L: Not really in the search PATH,
24446         # but as the default location of the library.
24447         hardcode_minus_L_GCJ=yes
24448       fi
24449       ;;
24450
24451     hpux11*)
24452       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24453         case $host_cpu in
24454         hppa*64*)
24455           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24456           ;;
24457         ia64*)
24458           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24459           ;;
24460         *)
24461           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24462           ;;
24463         esac
24464       else
24465         case $host_cpu in
24466         hppa*64*)
24467           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24468           ;;
24469         ia64*)
24470           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24471           ;;
24472         *)
24473           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24474           ;;
24475         esac
24476       fi
24477       if test "$with_gnu_ld" = no; then
24478         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24479         hardcode_libdir_separator_GCJ=:
24480
24481         case $host_cpu in
24482         hppa*64*|ia64*)
24483           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24484           hardcode_direct_GCJ=no
24485           hardcode_shlibpath_var_GCJ=no
24486           ;;
24487         *)
24488           hardcode_direct_GCJ=yes
24489           export_dynamic_flag_spec_GCJ='${wl}-E'
24490
24491           # hardcode_minus_L: Not really in the search PATH,
24492           # but as the default location of the library.
24493           hardcode_minus_L_GCJ=yes
24494           ;;
24495         esac
24496       fi
24497       ;;
24498
24499     irix5* | irix6* | nonstopux*)
24500       if test "$GCC" = yes; then
24501         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'
24502       else
24503         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'
24504         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24505       fi
24506       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24507       hardcode_libdir_separator_GCJ=:
24508       link_all_deplibs_GCJ=yes
24509       ;;
24510
24511     netbsd* | netbsdelf*-gnu)
24512       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24513         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
24514       else
24515         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
24516       fi
24517       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24518       hardcode_direct_GCJ=yes
24519       hardcode_shlibpath_var_GCJ=no
24520       ;;
24521
24522     newsos6)
24523       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24524       hardcode_direct_GCJ=yes
24525       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24526       hardcode_libdir_separator_GCJ=:
24527       hardcode_shlibpath_var_GCJ=no
24528       ;;
24529
24530     openbsd*)
24531       if test -f /usr/libexec/ld.so; then
24532         hardcode_direct_GCJ=yes
24533         hardcode_shlibpath_var_GCJ=no
24534         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24535           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24536           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
24537           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24538           export_dynamic_flag_spec_GCJ='${wl}-E'
24539         else
24540           case $host_os in
24541            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24542              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24543              hardcode_libdir_flag_spec_GCJ='-R$libdir'
24544              ;;
24545            *)
24546              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24547              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24548              ;;
24549           esac
24550         fi
24551       else
24552         ld_shlibs_GCJ=no
24553       fi
24554       ;;
24555
24556     os2*)
24557       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24558       hardcode_minus_L_GCJ=yes
24559       allow_undefined_flag_GCJ=unsupported
24560       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'
24561       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24562       ;;
24563
24564     osf3*)
24565       if test "$GCC" = yes; then
24566         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24567         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'
24568       else
24569         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24570         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'
24571       fi
24572       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24573       hardcode_libdir_separator_GCJ=:
24574       ;;
24575
24576     osf4* | osf5*)      # as osf3* with the addition of -msym flag
24577       if test "$GCC" = yes; then
24578         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24579         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'
24580         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24581       else
24582         allow_undefined_flag_GCJ=' -expect_unresolved \*'
24583         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'
24584         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~
24585         $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'
24586
24587         # Both c and cxx compiler support -rpath directly
24588         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24589       fi
24590       hardcode_libdir_separator_GCJ=:
24591       ;;
24592
24593     solaris*)
24594       no_undefined_flag_GCJ=' -z text'
24595       if test "$GCC" = yes; then
24596         wlarc='${wl}'
24597         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24598         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24599           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24600       else
24601         wlarc=''
24602         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24603         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24604         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24605       fi
24606       hardcode_libdir_flag_spec_GCJ='-R$libdir'
24607       hardcode_shlibpath_var_GCJ=no
24608       case $host_os in
24609       solaris2.[0-5] | solaris2.[0-5].*) ;;
24610       *)
24611         # The compiler driver will combine and reorder linker options,
24612         # but understands `-z linker_flag'.  GCC discards it without `$wl',
24613         # but is careful enough not to reorder.
24614         # Supported since Solaris 2.6 (maybe 2.5.1?)
24615         if test "$GCC" = yes; then
24616           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
24617         else
24618           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
24619         fi
24620         ;;
24621       esac
24622       link_all_deplibs_GCJ=yes
24623       ;;
24624
24625     sunos4*)
24626       if test "x$host_vendor" = xsequent; then
24627         # Use $CC to link under sequent, because it throws in some extra .o
24628         # files that make .init and .fini sections work.
24629         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24630       else
24631         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24632       fi
24633       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24634       hardcode_direct_GCJ=yes
24635       hardcode_minus_L_GCJ=yes
24636       hardcode_shlibpath_var_GCJ=no
24637       ;;
24638
24639     sysv4)
24640       case $host_vendor in
24641         sni)
24642           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24643           hardcode_direct_GCJ=yes # is this really true???
24644         ;;
24645         siemens)
24646           ## LD is ld it makes a PLAMLIB
24647           ## CC just makes a GrossModule.
24648           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24649           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24650           hardcode_direct_GCJ=no
24651         ;;
24652         motorola)
24653           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24654           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24655         ;;
24656       esac
24657       runpath_var='LD_RUN_PATH'
24658       hardcode_shlibpath_var_GCJ=no
24659       ;;
24660
24661     sysv4.3*)
24662       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24663       hardcode_shlibpath_var_GCJ=no
24664       export_dynamic_flag_spec_GCJ='-Bexport'
24665       ;;
24666
24667     sysv4*MP*)
24668       if test -d /usr/nec; then
24669         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24670         hardcode_shlibpath_var_GCJ=no
24671         runpath_var=LD_RUN_PATH
24672         hardcode_runpath_var=yes
24673         ld_shlibs_GCJ=yes
24674       fi
24675       ;;
24676
24677     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
24678       no_undefined_flag_GCJ='${wl}-z,text'
24679       archive_cmds_need_lc_GCJ=no
24680       hardcode_shlibpath_var_GCJ=no
24681       runpath_var='LD_RUN_PATH'
24682
24683       if test "$GCC" = yes; then
24684         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24685         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24686       else
24687         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24688         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24689       fi
24690       ;;
24691
24692     sysv5* | sco3.2v5* | sco5v6*)
24693       # Note: We can NOT use -z defs as we might desire, because we do not
24694       # link with -lc, and that would cause any symbols used from libc to
24695       # always be unresolved, which means just about no library would
24696       # ever link correctly.  If we're not using GNU ld we use -z text
24697       # though, which does catch some bad symbols but isn't as heavy-handed
24698       # as -z defs.
24699       no_undefined_flag_GCJ='${wl}-z,text'
24700       allow_undefined_flag_GCJ='${wl}-z,nodefs'
24701       archive_cmds_need_lc_GCJ=no
24702       hardcode_shlibpath_var_GCJ=no
24703       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24704       hardcode_libdir_separator_GCJ=':'
24705       link_all_deplibs_GCJ=yes
24706       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24707       runpath_var='LD_RUN_PATH'
24708
24709       if test "$GCC" = yes; then
24710         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24711         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24712       else
24713         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24714         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24715       fi
24716       ;;
24717
24718     uts4*)
24719       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24720       hardcode_libdir_flag_spec_GCJ='-L$libdir'
24721       hardcode_shlibpath_var_GCJ=no
24722       ;;
24723
24724     *)
24725       ld_shlibs_GCJ=no
24726       ;;
24727     esac
24728   fi
24729
24730 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24731 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24732 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24733
24734 #
24735 # Do we need to explicitly link libc?
24736 #
24737 case "x$archive_cmds_need_lc_GCJ" in
24738 x|xyes)
24739   # Assume -lc should be added
24740   archive_cmds_need_lc_GCJ=yes
24741
24742   if test "$enable_shared" = yes && test "$GCC" = yes; then
24743     case $archive_cmds_GCJ in
24744     *'~'*)
24745       # FIXME: we may have to deal with multi-command sequences.
24746       ;;
24747     '$CC '*)
24748       # Test whether the compiler implicitly links with -lc since on some
24749       # systems, -lgcc has to come before -lc. If gcc already passes -lc
24750       # to ld, don't add -lc before -lgcc.
24751       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24752 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24753       $rm conftest*
24754       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
24755
24756       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24757   (eval $ac_compile) 2>&5
24758   ac_status=$?
24759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); } 2>conftest.err; then
24761         soname=conftest
24762         lib=conftest
24763         libobjs=conftest.$ac_objext
24764         deplibs=
24765         wl=$lt_prog_compiler_wl_GCJ
24766         pic_flag=$lt_prog_compiler_pic_GCJ
24767         compiler_flags=-v
24768         linker_flags=-v
24769         verstring=
24770         output_objdir=.
24771         libname=conftest
24772         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24773         allow_undefined_flag_GCJ=
24774         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24775   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24776   ac_status=$?
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); }
24779         then
24780           archive_cmds_need_lc_GCJ=no
24781         else
24782           archive_cmds_need_lc_GCJ=yes
24783         fi
24784         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24785       else
24786         cat conftest.err 1>&5
24787       fi
24788       $rm conftest*
24789       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24790 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24791       ;;
24792     esac
24793   fi
24794   ;;
24795 esac
24796
24797 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24798 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24799 library_names_spec=
24800 libname_spec='lib$name'
24801 soname_spec=
24802 shrext_cmds=".so"
24803 postinstall_cmds=
24804 postuninstall_cmds=
24805 finish_cmds=
24806 finish_eval=
24807 shlibpath_var=
24808 shlibpath_overrides_runpath=unknown
24809 version_type=none
24810 dynamic_linker="$host_os ld.so"
24811 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24812
24813 need_lib_prefix=unknown
24814 hardcode_into_libs=no
24815
24816 # when you set need_version to no, make sure it does not cause -set_version
24817 # flags to be left without arguments
24818 need_version=unknown
24819
24820 case $host_os in
24821 aix3*)
24822   version_type=linux
24823   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24824   shlibpath_var=LIBPATH
24825
24826   # AIX 3 has no versioning support, so we append a major version to the name.
24827   soname_spec='${libname}${release}${shared_ext}$major'
24828   ;;
24829
24830 aix[4-9]*)
24831   version_type=linux
24832   need_lib_prefix=no
24833   need_version=no
24834   hardcode_into_libs=yes
24835   if test "$host_cpu" = ia64; then
24836     # AIX 5 supports IA64
24837     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24838     shlibpath_var=LD_LIBRARY_PATH
24839   else
24840     # With GCC up to 2.95.x, collect2 would create an import file
24841     # for dependence libraries.  The import file would start with
24842     # the line `#! .'.  This would cause the generated library to
24843     # depend on `.', always an invalid library.  This was fixed in
24844     # development snapshots of GCC prior to 3.0.
24845     case $host_os in
24846       aix4 | aix4.[01] | aix4.[01].*)
24847       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24848            echo ' yes '
24849            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24850         :
24851       else
24852         can_build_shared=no
24853       fi
24854       ;;
24855     esac
24856     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24857     # soname into executable. Probably we can add versioning support to
24858     # collect2, so additional links can be useful in future.
24859     if test "$aix_use_runtimelinking" = yes; then
24860       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24861       # instead of lib<name>.a to let people know that these are not
24862       # typical AIX shared libraries.
24863       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24864     else
24865       # We preserve .a as extension for shared libraries through AIX4.2
24866       # and later when we are not doing run time linking.
24867       library_names_spec='${libname}${release}.a $libname.a'
24868       soname_spec='${libname}${release}${shared_ext}$major'
24869     fi
24870     shlibpath_var=LIBPATH
24871   fi
24872   ;;
24873
24874 amigaos*)
24875   library_names_spec='$libname.ixlibrary $libname.a'
24876   # Create ${libname}_ixlibrary.a entries in /sys/libs.
24877   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'
24878   ;;
24879
24880 beos*)
24881   library_names_spec='${libname}${shared_ext}'
24882   dynamic_linker="$host_os ld.so"
24883   shlibpath_var=LIBRARY_PATH
24884   ;;
24885
24886 bsdi[45]*)
24887   version_type=linux
24888   need_version=no
24889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24890   soname_spec='${libname}${release}${shared_ext}$major'
24891   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24892   shlibpath_var=LD_LIBRARY_PATH
24893   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24894   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24895   # the default ld.so.conf also contains /usr/contrib/lib and
24896   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24897   # libtool to hard-code these into programs
24898   ;;
24899
24900 cygwin* | mingw* | pw32*)
24901   version_type=windows
24902   shrext_cmds=".dll"
24903   need_version=no
24904   need_lib_prefix=no
24905
24906   case $GCC,$host_os in
24907   yes,cygwin* | yes,mingw* | yes,pw32*)
24908     library_names_spec='$libname.dll.a'
24909     # DLL is installed to $(libdir)/../bin by postinstall_cmds
24910     postinstall_cmds='base_file=`basename \${file}`~
24911       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24912       dldir=$destdir/`dirname \$dlpath`~
24913       test -d \$dldir || mkdir -p \$dldir~
24914       $install_prog $dir/$dlname \$dldir/$dlname~
24915       chmod a+x \$dldir/$dlname'
24916     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24917       dlpath=$dir/\$dldll~
24918        $rm \$dlpath'
24919     shlibpath_overrides_runpath=yes
24920
24921     case $host_os in
24922     cygwin*)
24923       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24924       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24925       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24926       ;;
24927     mingw*)
24928       # MinGW DLLs use traditional 'lib' prefix
24929       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24930       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24931       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24932         # It is most probably a Windows format PATH printed by
24933         # mingw gcc, but we are running on Cygwin. Gcc prints its search
24934         # path with ; separators, and with drive letters. We can handle the
24935         # drive letters (cygwin fileutils understands them), so leave them,
24936         # especially as we might pass files found there to a mingw objdump,
24937         # which wouldn't understand a cygwinified path. Ahh.
24938         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24939       else
24940         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
24941       fi
24942       ;;
24943     pw32*)
24944       # pw32 DLLs use 'pw' prefix rather than 'lib'
24945       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24946       ;;
24947     esac
24948     ;;
24949
24950   *)
24951     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24952     ;;
24953   esac
24954   dynamic_linker='Win32 ld.exe'
24955   # FIXME: first we should search . and the directory the executable is in
24956   shlibpath_var=PATH
24957   ;;
24958
24959 darwin* | rhapsody*)
24960   dynamic_linker="$host_os dyld"
24961   version_type=darwin
24962   need_lib_prefix=no
24963   need_version=no
24964   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24965   soname_spec='${libname}${release}${major}$shared_ext'
24966   shlibpath_overrides_runpath=yes
24967   shlibpath_var=DYLD_LIBRARY_PATH
24968   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24969
24970   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24971   ;;
24972
24973 dgux*)
24974   version_type=linux
24975   need_lib_prefix=no
24976   need_version=no
24977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24978   soname_spec='${libname}${release}${shared_ext}$major'
24979   shlibpath_var=LD_LIBRARY_PATH
24980   ;;
24981
24982 freebsd1*)
24983   dynamic_linker=no
24984   ;;
24985
24986 freebsd* | dragonfly*)
24987   # DragonFly does not have aout.  When/if they implement a new
24988   # versioning mechanism, adjust this.
24989   if test -x /usr/bin/objformat; then
24990     objformat=`/usr/bin/objformat`
24991   else
24992     case $host_os in
24993     freebsd[123]*) objformat=aout ;;
24994     *) objformat=elf ;;
24995     esac
24996   fi
24997   version_type=freebsd-$objformat
24998   case $version_type in
24999     freebsd-elf*)
25000       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25001       need_version=no
25002       need_lib_prefix=no
25003       ;;
25004     freebsd-*)
25005       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25006       need_version=yes
25007       ;;
25008   esac
25009   shlibpath_var=LD_LIBRARY_PATH
25010   case $host_os in
25011   freebsd2*)
25012     shlibpath_overrides_runpath=yes
25013     ;;
25014   freebsd3.[01]* | freebsdelf3.[01]*)
25015     shlibpath_overrides_runpath=yes
25016     hardcode_into_libs=yes
25017     ;;
25018   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25019   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
25020     shlibpath_overrides_runpath=no
25021     hardcode_into_libs=yes
25022     ;;
25023   *) # from 4.6 on, and DragonFly
25024     shlibpath_overrides_runpath=yes
25025     hardcode_into_libs=yes
25026     ;;
25027   esac
25028   ;;
25029
25030 gnu*)
25031   version_type=linux
25032   need_lib_prefix=no
25033   need_version=no
25034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25035   soname_spec='${libname}${release}${shared_ext}$major'
25036   shlibpath_var=LD_LIBRARY_PATH
25037   hardcode_into_libs=yes
25038   ;;
25039
25040 hpux9* | hpux10* | hpux11*)
25041   # Give a soname corresponding to the major version so that dld.sl refuses to
25042   # link against other versions.
25043   version_type=sunos
25044   need_lib_prefix=no
25045   need_version=no
25046   case $host_cpu in
25047   ia64*)
25048     shrext_cmds='.so'
25049     hardcode_into_libs=yes
25050     dynamic_linker="$host_os dld.so"
25051     shlibpath_var=LD_LIBRARY_PATH
25052     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25054     soname_spec='${libname}${release}${shared_ext}$major'
25055     if test "X$HPUX_IA64_MODE" = X32; then
25056       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25057     else
25058       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25059     fi
25060     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25061     ;;
25062    hppa*64*)
25063      shrext_cmds='.sl'
25064      hardcode_into_libs=yes
25065      dynamic_linker="$host_os dld.sl"
25066      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25067      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25068      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25069      soname_spec='${libname}${release}${shared_ext}$major'
25070      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25071      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25072      ;;
25073    *)
25074     shrext_cmds='.sl'
25075     dynamic_linker="$host_os dld.sl"
25076     shlibpath_var=SHLIB_PATH
25077     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25079     soname_spec='${libname}${release}${shared_ext}$major'
25080     ;;
25081   esac
25082   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25083   postinstall_cmds='chmod 555 $lib'
25084   ;;
25085
25086 interix[3-9]*)
25087   version_type=linux
25088   need_lib_prefix=no
25089   need_version=no
25090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25091   soname_spec='${libname}${release}${shared_ext}$major'
25092   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25093   shlibpath_var=LD_LIBRARY_PATH
25094   shlibpath_overrides_runpath=no
25095   hardcode_into_libs=yes
25096   ;;
25097
25098 irix5* | irix6* | nonstopux*)
25099   case $host_os in
25100     nonstopux*) version_type=nonstopux ;;
25101     *)
25102         if test "$lt_cv_prog_gnu_ld" = yes; then
25103                 version_type=linux
25104         else
25105                 version_type=irix
25106         fi ;;
25107   esac
25108   need_lib_prefix=no
25109   need_version=no
25110   soname_spec='${libname}${release}${shared_ext}$major'
25111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25112   case $host_os in
25113   irix5* | nonstopux*)
25114     libsuff= shlibsuff=
25115     ;;
25116   *)
25117     case $LD in # libtool.m4 will add one of these switches to LD
25118     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25119       libsuff= shlibsuff= libmagic=32-bit;;
25120     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25121       libsuff=32 shlibsuff=N32 libmagic=N32;;
25122     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25123       libsuff=64 shlibsuff=64 libmagic=64-bit;;
25124     *) libsuff= shlibsuff= libmagic=never-match;;
25125     esac
25126     ;;
25127   esac
25128   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25129   shlibpath_overrides_runpath=no
25130   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25131   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25132   hardcode_into_libs=yes
25133   ;;
25134
25135 # No shared lib support for Linux oldld, aout, or coff.
25136 linux*oldld* | linux*aout* | linux*coff*)
25137   dynamic_linker=no
25138   ;;
25139
25140 # This must be Linux ELF.
25141 linux* | k*bsd*-gnu)
25142   version_type=linux
25143   need_lib_prefix=no
25144   need_version=no
25145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25146   soname_spec='${libname}${release}${shared_ext}$major'
25147   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25148   shlibpath_var=LD_LIBRARY_PATH
25149   shlibpath_overrides_runpath=no
25150   # This implies no fast_install, which is unacceptable.
25151   # Some rework will be needed to allow for fast_install
25152   # before this can be enabled.
25153   hardcode_into_libs=yes
25154
25155   # Append ld.so.conf contents to the search path
25156   if test -f /etc/ld.so.conf; then
25157     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' ' '`
25158     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25159   fi
25160
25161   # We used to test for /lib/ld.so.1 and disable shared libraries on
25162   # powerpc, because MkLinux only supported shared libraries with the
25163   # GNU dynamic linker.  Since this was broken with cross compilers,
25164   # most powerpc-linux boxes support dynamic linking these days and
25165   # people can always --disable-shared, the test was removed, and we
25166   # assume the GNU/Linux dynamic linker is in use.
25167   dynamic_linker='GNU/Linux ld.so'
25168   ;;
25169
25170 netbsdelf*-gnu)
25171   version_type=linux
25172   need_lib_prefix=no
25173   need_version=no
25174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25175   soname_spec='${libname}${release}${shared_ext}$major'
25176   shlibpath_var=LD_LIBRARY_PATH
25177   shlibpath_overrides_runpath=no
25178   hardcode_into_libs=yes
25179   dynamic_linker='NetBSD ld.elf_so'
25180   ;;
25181
25182 netbsd*)
25183   version_type=sunos
25184   need_lib_prefix=no
25185   need_version=no
25186   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25187     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25188     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25189     dynamic_linker='NetBSD (a.out) ld.so'
25190   else
25191     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25192     soname_spec='${libname}${release}${shared_ext}$major'
25193     dynamic_linker='NetBSD ld.elf_so'
25194   fi
25195   shlibpath_var=LD_LIBRARY_PATH
25196   shlibpath_overrides_runpath=yes
25197   hardcode_into_libs=yes
25198   ;;
25199
25200 newsos6)
25201   version_type=linux
25202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25203   shlibpath_var=LD_LIBRARY_PATH
25204   shlibpath_overrides_runpath=yes
25205   ;;
25206
25207 nto-qnx*)
25208   version_type=linux
25209   need_lib_prefix=no
25210   need_version=no
25211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25212   soname_spec='${libname}${release}${shared_ext}$major'
25213   shlibpath_var=LD_LIBRARY_PATH
25214   shlibpath_overrides_runpath=yes
25215   ;;
25216
25217 openbsd*)
25218   version_type=sunos
25219   sys_lib_dlsearch_path_spec="/usr/lib"
25220   need_lib_prefix=no
25221   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25222   case $host_os in
25223     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25224     *)                         need_version=no  ;;
25225   esac
25226   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25227   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25228   shlibpath_var=LD_LIBRARY_PATH
25229   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25230     case $host_os in
25231       openbsd2.[89] | openbsd2.[89].*)
25232         shlibpath_overrides_runpath=no
25233         ;;
25234       *)
25235         shlibpath_overrides_runpath=yes
25236         ;;
25237       esac
25238   else
25239     shlibpath_overrides_runpath=yes
25240   fi
25241   ;;
25242
25243 os2*)
25244   libname_spec='$name'
25245   shrext_cmds=".dll"
25246   need_lib_prefix=no
25247   library_names_spec='$libname${shared_ext} $libname.a'
25248   dynamic_linker='OS/2 ld.exe'
25249   shlibpath_var=LIBPATH
25250   ;;
25251
25252 osf3* | osf4* | osf5*)
25253   version_type=osf
25254   need_lib_prefix=no
25255   need_version=no
25256   soname_spec='${libname}${release}${shared_ext}$major'
25257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25258   shlibpath_var=LD_LIBRARY_PATH
25259   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25260   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25261   ;;
25262
25263 rdos*)
25264   dynamic_linker=no
25265   ;;
25266
25267 solaris*)
25268   version_type=linux
25269   need_lib_prefix=no
25270   need_version=no
25271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25272   soname_spec='${libname}${release}${shared_ext}$major'
25273   shlibpath_var=LD_LIBRARY_PATH
25274   shlibpath_overrides_runpath=yes
25275   hardcode_into_libs=yes
25276   # ldd complains unless libraries are executable
25277   postinstall_cmds='chmod +x $lib'
25278   ;;
25279
25280 sunos4*)
25281   version_type=sunos
25282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25283   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25284   shlibpath_var=LD_LIBRARY_PATH
25285   shlibpath_overrides_runpath=yes
25286   if test "$with_gnu_ld" = yes; then
25287     need_lib_prefix=no
25288   fi
25289   need_version=yes
25290   ;;
25291
25292 sysv4 | sysv4.3*)
25293   version_type=linux
25294   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25295   soname_spec='${libname}${release}${shared_ext}$major'
25296   shlibpath_var=LD_LIBRARY_PATH
25297   case $host_vendor in
25298     sni)
25299       shlibpath_overrides_runpath=no
25300       need_lib_prefix=no
25301       export_dynamic_flag_spec='${wl}-Blargedynsym'
25302       runpath_var=LD_RUN_PATH
25303       ;;
25304     siemens)
25305       need_lib_prefix=no
25306       ;;
25307     motorola)
25308       need_lib_prefix=no
25309       need_version=no
25310       shlibpath_overrides_runpath=no
25311       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25312       ;;
25313   esac
25314   ;;
25315
25316 sysv4*MP*)
25317   if test -d /usr/nec ;then
25318     version_type=linux
25319     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25320     soname_spec='$libname${shared_ext}.$major'
25321     shlibpath_var=LD_LIBRARY_PATH
25322   fi
25323   ;;
25324
25325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25326   version_type=freebsd-elf
25327   need_lib_prefix=no
25328   need_version=no
25329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25330   soname_spec='${libname}${release}${shared_ext}$major'
25331   shlibpath_var=LD_LIBRARY_PATH
25332   hardcode_into_libs=yes
25333   if test "$with_gnu_ld" = yes; then
25334     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25335     shlibpath_overrides_runpath=no
25336   else
25337     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25338     shlibpath_overrides_runpath=yes
25339     case $host_os in
25340       sco3.2v5*)
25341         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25342         ;;
25343     esac
25344   fi
25345   sys_lib_dlsearch_path_spec='/usr/lib'
25346   ;;
25347
25348 uts4*)
25349   version_type=linux
25350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25351   soname_spec='${libname}${release}${shared_ext}$major'
25352   shlibpath_var=LD_LIBRARY_PATH
25353   ;;
25354
25355 *)
25356   dynamic_linker=no
25357   ;;
25358 esac
25359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25360 echo "${ECHO_T}$dynamic_linker" >&6; }
25361 test "$dynamic_linker" = no && can_build_shared=no
25362
25363 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
25364   echo $ECHO_N "(cached) $ECHO_C" >&6
25365 else
25366   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
25367 fi
25368
25369 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
25370 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
25371   echo $ECHO_N "(cached) $ECHO_C" >&6
25372 else
25373   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
25374 fi
25375
25376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
25377
25378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25379 if test "$GCC" = yes; then
25380   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25381 fi
25382
25383 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25384 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
25385 hardcode_action_GCJ=
25386 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25387    test -n "$runpath_var_GCJ" || \
25388    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25389
25390   # We can hardcode non-existant directories.
25391   if test "$hardcode_direct_GCJ" != no &&
25392      # If the only mechanism to avoid hardcoding is shlibpath_var, we
25393      # have to relink, otherwise we might link with an installed library
25394      # when we should be linking with a yet-to-be-installed one
25395      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25396      test "$hardcode_minus_L_GCJ" != no; then
25397     # Linking always hardcodes the temporary library directory.
25398     hardcode_action_GCJ=relink
25399   else
25400     # We can link without hardcoding, and we can hardcode nonexisting dirs.
25401     hardcode_action_GCJ=immediate
25402   fi
25403 else
25404   # We cannot hardcode anything, or else we can only hardcode existing
25405   # directories.
25406   hardcode_action_GCJ=unsupported
25407 fi
25408 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25409 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
25410
25411 if test "$hardcode_action_GCJ" = relink; then
25412   # Fast installation is not supported
25413   enable_fast_install=no
25414 elif test "$shlibpath_overrides_runpath" = yes ||
25415      test "$enable_shared" = no; then
25416   # Fast installation is not necessary
25417   enable_fast_install=needless
25418 fi
25419
25420
25421 # The else clause should only fire when bootstrapping the
25422 # libtool distribution, otherwise you forgot to ship ltmain.sh
25423 # with your package, and you will get complaints that there are
25424 # no rules to generate ltmain.sh.
25425 if test -f "$ltmain"; then
25426   # See if we are running on zsh, and set the options which allow our commands through
25427   # without removal of \ escapes.
25428   if test -n "${ZSH_VERSION+set}" ; then
25429     setopt NO_GLOB_SUBST
25430   fi
25431   # Now quote all the things that may contain metacharacters while being
25432   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25433   # variables and quote the copies for generation of the libtool script.
25434   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25435     SED SHELL STRIP \
25436     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25437     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25438     deplibs_check_method reload_flag reload_cmds need_locks \
25439     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25440     lt_cv_sys_global_symbol_to_c_name_address \
25441     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25442     old_postinstall_cmds old_postuninstall_cmds \
25443     compiler_GCJ \
25444     CC_GCJ \
25445     LD_GCJ \
25446     lt_prog_compiler_wl_GCJ \
25447     lt_prog_compiler_pic_GCJ \
25448     lt_prog_compiler_static_GCJ \
25449     lt_prog_compiler_no_builtin_flag_GCJ \
25450     export_dynamic_flag_spec_GCJ \
25451     thread_safe_flag_spec_GCJ \
25452     whole_archive_flag_spec_GCJ \
25453     enable_shared_with_static_runtimes_GCJ \
25454     old_archive_cmds_GCJ \
25455     old_archive_from_new_cmds_GCJ \
25456     predep_objects_GCJ \
25457     postdep_objects_GCJ \
25458     predeps_GCJ \
25459     postdeps_GCJ \
25460     compiler_lib_search_path_GCJ \
25461     compiler_lib_search_dirs_GCJ \
25462     archive_cmds_GCJ \
25463     archive_expsym_cmds_GCJ \
25464     postinstall_cmds_GCJ \
25465     postuninstall_cmds_GCJ \
25466     old_archive_from_expsyms_cmds_GCJ \
25467     allow_undefined_flag_GCJ \
25468     no_undefined_flag_GCJ \
25469     export_symbols_cmds_GCJ \
25470     hardcode_libdir_flag_spec_GCJ \
25471     hardcode_libdir_flag_spec_ld_GCJ \
25472     hardcode_libdir_separator_GCJ \
25473     hardcode_automatic_GCJ \
25474     module_cmds_GCJ \
25475     module_expsym_cmds_GCJ \
25476     lt_cv_prog_compiler_c_o_GCJ \
25477     fix_srcfile_path_GCJ \
25478     exclude_expsyms_GCJ \
25479     include_expsyms_GCJ; do
25480
25481     case $var in
25482     old_archive_cmds_GCJ | \
25483     old_archive_from_new_cmds_GCJ | \
25484     archive_cmds_GCJ | \
25485     archive_expsym_cmds_GCJ | \
25486     module_cmds_GCJ | \
25487     module_expsym_cmds_GCJ | \
25488     old_archive_from_expsyms_cmds_GCJ | \
25489     export_symbols_cmds_GCJ | \
25490     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25491     postinstall_cmds | postuninstall_cmds | \
25492     old_postinstall_cmds | old_postuninstall_cmds | \
25493     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25494       # Double-quote double-evaled strings.
25495       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25496       ;;
25497     *)
25498       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25499       ;;
25500     esac
25501   done
25502
25503   case $lt_echo in
25504   *'\$0 --fallback-echo"')
25505     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25506     ;;
25507   esac
25508
25509 cfgfile="$ofile"
25510
25511   cat <<__EOF__ >> "$cfgfile"
25512 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25513
25514 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25515
25516 # Shell to use when invoking shell scripts.
25517 SHELL=$lt_SHELL
25518
25519 # Whether or not to build shared libraries.
25520 build_libtool_libs=$enable_shared
25521
25522 # Whether or not to build static libraries.
25523 build_old_libs=$enable_static
25524
25525 # Whether or not to add -lc for building shared libraries.
25526 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25527
25528 # Whether or not to disallow shared libs when runtime libs are static
25529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25530
25531 # Whether or not to optimize for fast installation.
25532 fast_install=$enable_fast_install
25533
25534 # The host system.
25535 host_alias=$host_alias
25536 host=$host
25537 host_os=$host_os
25538
25539 # The build system.
25540 build_alias=$build_alias
25541 build=$build
25542 build_os=$build_os
25543
25544 # An echo program that does not interpret backslashes.
25545 echo=$lt_echo
25546
25547 # The archiver.
25548 AR=$lt_AR
25549 AR_FLAGS=$lt_AR_FLAGS
25550
25551 # A C compiler.
25552 LTCC=$lt_LTCC
25553
25554 # LTCC compiler flags.
25555 LTCFLAGS=$lt_LTCFLAGS
25556
25557 # A language-specific compiler.
25558 CC=$lt_compiler_GCJ
25559
25560 # Is the compiler the GNU C compiler?
25561 with_gcc=$GCC_GCJ
25562
25563 # An ERE matcher.
25564 EGREP=$lt_EGREP
25565
25566 # The linker used to build libraries.
25567 LD=$lt_LD_GCJ
25568
25569 # Whether we need hard or soft links.
25570 LN_S=$lt_LN_S
25571
25572 # A BSD-compatible nm program.
25573 NM=$lt_NM
25574
25575 # A symbol stripping program
25576 STRIP=$lt_STRIP
25577
25578 # Used to examine libraries when file_magic_cmd begins "file"
25579 MAGIC_CMD=$MAGIC_CMD
25580
25581 # Used on cygwin: DLL creation program.
25582 DLLTOOL="$DLLTOOL"
25583
25584 # Used on cygwin: object dumper.
25585 OBJDUMP="$OBJDUMP"
25586
25587 # Used on cygwin: assembler.
25588 AS="$AS"
25589
25590 # The name of the directory that contains temporary libtool files.
25591 objdir=$objdir
25592
25593 # How to create reloadable object files.
25594 reload_flag=$lt_reload_flag
25595 reload_cmds=$lt_reload_cmds
25596
25597 # How to pass a linker flag through the compiler.
25598 wl=$lt_lt_prog_compiler_wl_GCJ
25599
25600 # Object file suffix (normally "o").
25601 objext="$ac_objext"
25602
25603 # Old archive suffix (normally "a").
25604 libext="$libext"
25605
25606 # Shared library suffix (normally ".so").
25607 shrext_cmds='$shrext_cmds'
25608
25609 # Executable file suffix (normally "").
25610 exeext="$exeext"
25611
25612 # Additional compiler flags for building library objects.
25613 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25614 pic_mode=$pic_mode
25615
25616 # What is the maximum length of a command?
25617 max_cmd_len=$lt_cv_sys_max_cmd_len
25618
25619 # Does compiler simultaneously support -c and -o options?
25620 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25621
25622 # Must we lock files when doing compilation?
25623 need_locks=$lt_need_locks
25624
25625 # Do we need the lib prefix for modules?
25626 need_lib_prefix=$need_lib_prefix
25627
25628 # Do we need a version for libraries?
25629 need_version=$need_version
25630
25631 # Whether dlopen is supported.
25632 dlopen_support=$enable_dlopen
25633
25634 # Whether dlopen of programs is supported.
25635 dlopen_self=$enable_dlopen_self
25636
25637 # Whether dlopen of statically linked programs is supported.
25638 dlopen_self_static=$enable_dlopen_self_static
25639
25640 # Compiler flag to prevent dynamic linking.
25641 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25642
25643 # Compiler flag to turn off builtin functions.
25644 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25645
25646 # Compiler flag to allow reflexive dlopens.
25647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25648
25649 # Compiler flag to generate shared objects directly from archives.
25650 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25651
25652 # Compiler flag to generate thread-safe objects.
25653 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25654
25655 # Library versioning type.
25656 version_type=$version_type
25657
25658 # Format of library name prefix.
25659 libname_spec=$lt_libname_spec
25660
25661 # List of archive names.  First name is the real one, the rest are links.
25662 # The last name is the one that the linker finds with -lNAME.
25663 library_names_spec=$lt_library_names_spec
25664
25665 # The coded name of the library, if different from the real name.
25666 soname_spec=$lt_soname_spec
25667
25668 # Commands used to build and install an old-style archive.
25669 RANLIB=$lt_RANLIB
25670 old_archive_cmds=$lt_old_archive_cmds_GCJ
25671 old_postinstall_cmds=$lt_old_postinstall_cmds
25672 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25673
25674 # Create an old-style archive from a shared archive.
25675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25676
25677 # Create a temporary old-style archive to link instead of a shared archive.
25678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25679
25680 # Commands used to build and install a shared archive.
25681 archive_cmds=$lt_archive_cmds_GCJ
25682 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25683 postinstall_cmds=$lt_postinstall_cmds
25684 postuninstall_cmds=$lt_postuninstall_cmds
25685
25686 # Commands used to build a loadable module (assumed same as above if empty)
25687 module_cmds=$lt_module_cmds_GCJ
25688 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25689
25690 # Commands to strip libraries.
25691 old_striplib=$lt_old_striplib
25692 striplib=$lt_striplib
25693
25694 # Dependencies to place before the objects being linked to create a
25695 # shared library.
25696 predep_objects=$lt_predep_objects_GCJ
25697
25698 # Dependencies to place after the objects being linked to create a
25699 # shared library.
25700 postdep_objects=$lt_postdep_objects_GCJ
25701
25702 # Dependencies to place before the objects being linked to create a
25703 # shared library.
25704 predeps=$lt_predeps_GCJ
25705
25706 # Dependencies to place after the objects being linked to create a
25707 # shared library.
25708 postdeps=$lt_postdeps_GCJ
25709
25710 # The directories searched by this compiler when creating a shared
25711 # library
25712 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
25713
25714 # The library search path used internally by the compiler when linking
25715 # a shared library.
25716 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25717
25718 # Method to check whether dependent libraries are shared objects.
25719 deplibs_check_method=$lt_deplibs_check_method
25720
25721 # Command to use when deplibs_check_method == file_magic.
25722 file_magic_cmd=$lt_file_magic_cmd
25723
25724 # Flag that allows shared libraries with undefined symbols to be built.
25725 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25726
25727 # Flag that forces no undefined symbols.
25728 no_undefined_flag=$lt_no_undefined_flag_GCJ
25729
25730 # Commands used to finish a libtool library installation in a directory.
25731 finish_cmds=$lt_finish_cmds
25732
25733 # Same as above, but a single script fragment to be evaled but not shown.
25734 finish_eval=$lt_finish_eval
25735
25736 # Take the output of nm and produce a listing of raw symbols and C names.
25737 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25738
25739 # Transform the output of nm in a proper C declaration
25740 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25741
25742 # Transform the output of nm in a C name address pair
25743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25744
25745 # This is the shared library runtime path variable.
25746 runpath_var=$runpath_var
25747
25748 # This is the shared library path variable.
25749 shlibpath_var=$shlibpath_var
25750
25751 # Is shlibpath searched before the hard-coded library search path?
25752 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25753
25754 # How to hardcode a shared library path into an executable.
25755 hardcode_action=$hardcode_action_GCJ
25756
25757 # Whether we should hardcode library paths into libraries.
25758 hardcode_into_libs=$hardcode_into_libs
25759
25760 # Flag to hardcode \$libdir into a binary during linking.
25761 # This must work even if \$libdir does not exist.
25762 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25763
25764 # If ld is used when linking, flag to hardcode \$libdir into
25765 # a binary during linking. This must work even if \$libdir does
25766 # not exist.
25767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25768
25769 # Whether we need a single -rpath flag with a separated argument.
25770 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25771
25772 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25773 # resulting binary.
25774 hardcode_direct=$hardcode_direct_GCJ
25775
25776 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25777 # resulting binary.
25778 hardcode_minus_L=$hardcode_minus_L_GCJ
25779
25780 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25781 # the resulting binary.
25782 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25783
25784 # Set to yes if building a shared library automatically hardcodes DIR into the library
25785 # and all subsequent libraries and executables linked against it.
25786 hardcode_automatic=$hardcode_automatic_GCJ
25787
25788 # Variables whose values should be saved in libtool wrapper scripts and
25789 # restored at relink time.
25790 variables_saved_for_relink="$variables_saved_for_relink"
25791
25792 # Whether libtool must link a program against all its dependency libraries.
25793 link_all_deplibs=$link_all_deplibs_GCJ
25794
25795 # Compile-time system search path for libraries
25796 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25797
25798 # Run-time system search path for libraries
25799 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25800
25801 # Fix the shell variable \$srcfile for the compiler.
25802 fix_srcfile_path=$lt_fix_srcfile_path
25803
25804 # Set to yes if exported symbols are required.
25805 always_export_symbols=$always_export_symbols_GCJ
25806
25807 # The commands to list exported symbols.
25808 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25809
25810 # The commands to extract the exported symbol list from a shared archive.
25811 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25812
25813 # Symbols that should not be listed in the preloaded symbols.
25814 exclude_expsyms=$lt_exclude_expsyms_GCJ
25815
25816 # Symbols that must always be exported.
25817 include_expsyms=$lt_include_expsyms_GCJ
25818
25819 # ### END LIBTOOL TAG CONFIG: $tagname
25820
25821 __EOF__
25822
25823
25824 else
25825   # If there is no Makefile yet, we rely on a make rule to execute
25826   # `config.status --recheck' to rerun these tests and create the
25827   # libtool script then.
25828   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25829   if test -f "$ltmain_in"; then
25830     test -f Makefile && make "$ltmain"
25831   fi
25832 fi
25833
25834
25835 ac_ext=c
25836 ac_cpp='$CPP $CPPFLAGS'
25837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25840
25841 CC="$lt_save_CC"
25842
25843         else
25844           tagname=""
25845         fi
25846         ;;
25847
25848       RC)
25849
25850
25851 # Source file extension for RC test sources.
25852 ac_ext=rc
25853
25854 # Object file extension for compiled RC test sources.
25855 objext=o
25856 objext_RC=$objext
25857
25858 # Code to be used in simple compile tests
25859 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
25860
25861 # Code to be used in simple link tests
25862 lt_simple_link_test_code="$lt_simple_compile_test_code"
25863
25864 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25865
25866 # If no C compiler was specified, use CC.
25867 LTCC=${LTCC-"$CC"}
25868
25869 # If no C compiler flags were specified, use CFLAGS.
25870 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25871
25872 # Allow CC to be a program name with arguments.
25873 compiler=$CC
25874
25875
25876 # save warnings/boilerplate of simple test code
25877 ac_outfile=conftest.$ac_objext
25878 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
25879 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25880 _lt_compiler_boilerplate=`cat conftest.err`
25881 $rm conftest*
25882
25883 ac_outfile=conftest.$ac_objext
25884 echo "$lt_simple_link_test_code" >conftest.$ac_ext
25885 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25886 _lt_linker_boilerplate=`cat conftest.err`
25887 $rm -r conftest*
25888
25889
25890 # Allow CC to be a program name with arguments.
25891 lt_save_CC="$CC"
25892 CC=${RC-"windres"}
25893 compiler=$CC
25894 compiler_RC=$CC
25895 for cc_temp in $compiler""; do
25896   case $cc_temp in
25897     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25898     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25899     \-*) ;;
25900     *) break;;
25901   esac
25902 done
25903 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25904
25905 lt_cv_prog_compiler_c_o_RC=yes
25906
25907 # The else clause should only fire when bootstrapping the
25908 # libtool distribution, otherwise you forgot to ship ltmain.sh
25909 # with your package, and you will get complaints that there are
25910 # no rules to generate ltmain.sh.
25911 if test -f "$ltmain"; then
25912   # See if we are running on zsh, and set the options which allow our commands through
25913   # without removal of \ escapes.
25914   if test -n "${ZSH_VERSION+set}" ; then
25915     setopt NO_GLOB_SUBST
25916   fi
25917   # Now quote all the things that may contain metacharacters while being
25918   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25919   # variables and quote the copies for generation of the libtool script.
25920   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25921     SED SHELL STRIP \
25922     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25923     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25924     deplibs_check_method reload_flag reload_cmds need_locks \
25925     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25926     lt_cv_sys_global_symbol_to_c_name_address \
25927     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25928     old_postinstall_cmds old_postuninstall_cmds \
25929     compiler_RC \
25930     CC_RC \
25931     LD_RC \
25932     lt_prog_compiler_wl_RC \
25933     lt_prog_compiler_pic_RC \
25934     lt_prog_compiler_static_RC \
25935     lt_prog_compiler_no_builtin_flag_RC \
25936     export_dynamic_flag_spec_RC \
25937     thread_safe_flag_spec_RC \
25938     whole_archive_flag_spec_RC \
25939     enable_shared_with_static_runtimes_RC \
25940     old_archive_cmds_RC \
25941     old_archive_from_new_cmds_RC \
25942     predep_objects_RC \
25943     postdep_objects_RC \
25944     predeps_RC \
25945     postdeps_RC \
25946     compiler_lib_search_path_RC \
25947     compiler_lib_search_dirs_RC \
25948     archive_cmds_RC \
25949     archive_expsym_cmds_RC \
25950     postinstall_cmds_RC \
25951     postuninstall_cmds_RC \
25952     old_archive_from_expsyms_cmds_RC \
25953     allow_undefined_flag_RC \
25954     no_undefined_flag_RC \
25955     export_symbols_cmds_RC \
25956     hardcode_libdir_flag_spec_RC \
25957     hardcode_libdir_flag_spec_ld_RC \
25958     hardcode_libdir_separator_RC \
25959     hardcode_automatic_RC \
25960     module_cmds_RC \
25961     module_expsym_cmds_RC \
25962     lt_cv_prog_compiler_c_o_RC \
25963     fix_srcfile_path_RC \
25964     exclude_expsyms_RC \
25965     include_expsyms_RC; do
25966
25967     case $var in
25968     old_archive_cmds_RC | \
25969     old_archive_from_new_cmds_RC | \
25970     archive_cmds_RC | \
25971     archive_expsym_cmds_RC | \
25972     module_cmds_RC | \
25973     module_expsym_cmds_RC | \
25974     old_archive_from_expsyms_cmds_RC | \
25975     export_symbols_cmds_RC | \
25976     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25977     postinstall_cmds | postuninstall_cmds | \
25978     old_postinstall_cmds | old_postuninstall_cmds | \
25979     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25980       # Double-quote double-evaled strings.
25981       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25982       ;;
25983     *)
25984       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25985       ;;
25986     esac
25987   done
25988
25989   case $lt_echo in
25990   *'\$0 --fallback-echo"')
25991     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25992     ;;
25993   esac
25994
25995 cfgfile="$ofile"
25996
25997   cat <<__EOF__ >> "$cfgfile"
25998 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25999
26000 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26001
26002 # Shell to use when invoking shell scripts.
26003 SHELL=$lt_SHELL
26004
26005 # Whether or not to build shared libraries.
26006 build_libtool_libs=$enable_shared
26007
26008 # Whether or not to build static libraries.
26009 build_old_libs=$enable_static
26010
26011 # Whether or not to add -lc for building shared libraries.
26012 build_libtool_need_lc=$archive_cmds_need_lc_RC
26013
26014 # Whether or not to disallow shared libs when runtime libs are static
26015 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26016
26017 # Whether or not to optimize for fast installation.
26018 fast_install=$enable_fast_install
26019
26020 # The host system.
26021 host_alias=$host_alias
26022 host=$host
26023 host_os=$host_os
26024
26025 # The build system.
26026 build_alias=$build_alias
26027 build=$build
26028 build_os=$build_os
26029
26030 # An echo program that does not interpret backslashes.
26031 echo=$lt_echo
26032
26033 # The archiver.
26034 AR=$lt_AR
26035 AR_FLAGS=$lt_AR_FLAGS
26036
26037 # A C compiler.
26038 LTCC=$lt_LTCC
26039
26040 # LTCC compiler flags.
26041 LTCFLAGS=$lt_LTCFLAGS
26042
26043 # A language-specific compiler.
26044 CC=$lt_compiler_RC
26045
26046 # Is the compiler the GNU C compiler?
26047 with_gcc=$GCC_RC
26048
26049 # An ERE matcher.
26050 EGREP=$lt_EGREP
26051
26052 # The linker used to build libraries.
26053 LD=$lt_LD_RC
26054
26055 # Whether we need hard or soft links.
26056 LN_S=$lt_LN_S
26057
26058 # A BSD-compatible nm program.
26059 NM=$lt_NM
26060
26061 # A symbol stripping program
26062 STRIP=$lt_STRIP
26063
26064 # Used to examine libraries when file_magic_cmd begins "file"
26065 MAGIC_CMD=$MAGIC_CMD
26066
26067 # Used on cygwin: DLL creation program.
26068 DLLTOOL="$DLLTOOL"
26069
26070 # Used on cygwin: object dumper.
26071 OBJDUMP="$OBJDUMP"
26072
26073 # Used on cygwin: assembler.
26074 AS="$AS"
26075
26076 # The name of the directory that contains temporary libtool files.
26077 objdir=$objdir
26078
26079 # How to create reloadable object files.
26080 reload_flag=$lt_reload_flag
26081 reload_cmds=$lt_reload_cmds
26082
26083 # How to pass a linker flag through the compiler.
26084 wl=$lt_lt_prog_compiler_wl_RC
26085
26086 # Object file suffix (normally "o").
26087 objext="$ac_objext"
26088
26089 # Old archive suffix (normally "a").
26090 libext="$libext"
26091
26092 # Shared library suffix (normally ".so").
26093 shrext_cmds='$shrext_cmds'
26094
26095 # Executable file suffix (normally "").
26096 exeext="$exeext"
26097
26098 # Additional compiler flags for building library objects.
26099 pic_flag=$lt_lt_prog_compiler_pic_RC
26100 pic_mode=$pic_mode
26101
26102 # What is the maximum length of a command?
26103 max_cmd_len=$lt_cv_sys_max_cmd_len
26104
26105 # Does compiler simultaneously support -c and -o options?
26106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26107
26108 # Must we lock files when doing compilation?
26109 need_locks=$lt_need_locks
26110
26111 # Do we need the lib prefix for modules?
26112 need_lib_prefix=$need_lib_prefix
26113
26114 # Do we need a version for libraries?
26115 need_version=$need_version
26116
26117 # Whether dlopen is supported.
26118 dlopen_support=$enable_dlopen
26119
26120 # Whether dlopen of programs is supported.
26121 dlopen_self=$enable_dlopen_self
26122
26123 # Whether dlopen of statically linked programs is supported.
26124 dlopen_self_static=$enable_dlopen_self_static
26125
26126 # Compiler flag to prevent dynamic linking.
26127 link_static_flag=$lt_lt_prog_compiler_static_RC
26128
26129 # Compiler flag to turn off builtin functions.
26130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26131
26132 # Compiler flag to allow reflexive dlopens.
26133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26134
26135 # Compiler flag to generate shared objects directly from archives.
26136 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26137
26138 # Compiler flag to generate thread-safe objects.
26139 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26140
26141 # Library versioning type.
26142 version_type=$version_type
26143
26144 # Format of library name prefix.
26145 libname_spec=$lt_libname_spec
26146
26147 # List of archive names.  First name is the real one, the rest are links.
26148 # The last name is the one that the linker finds with -lNAME.
26149 library_names_spec=$lt_library_names_spec
26150
26151 # The coded name of the library, if different from the real name.
26152 soname_spec=$lt_soname_spec
26153
26154 # Commands used to build and install an old-style archive.
26155 RANLIB=$lt_RANLIB
26156 old_archive_cmds=$lt_old_archive_cmds_RC
26157 old_postinstall_cmds=$lt_old_postinstall_cmds
26158 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26159
26160 # Create an old-style archive from a shared archive.
26161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26162
26163 # Create a temporary old-style archive to link instead of a shared archive.
26164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26165
26166 # Commands used to build and install a shared archive.
26167 archive_cmds=$lt_archive_cmds_RC
26168 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26169 postinstall_cmds=$lt_postinstall_cmds
26170 postuninstall_cmds=$lt_postuninstall_cmds
26171
26172 # Commands used to build a loadable module (assumed same as above if empty)
26173 module_cmds=$lt_module_cmds_RC
26174 module_expsym_cmds=$lt_module_expsym_cmds_RC
26175
26176 # Commands to strip libraries.
26177 old_striplib=$lt_old_striplib
26178 striplib=$lt_striplib
26179
26180 # Dependencies to place before the objects being linked to create a
26181 # shared library.
26182 predep_objects=$lt_predep_objects_RC
26183
26184 # Dependencies to place after the objects being linked to create a
26185 # shared library.
26186 postdep_objects=$lt_postdep_objects_RC
26187
26188 # Dependencies to place before the objects being linked to create a
26189 # shared library.
26190 predeps=$lt_predeps_RC
26191
26192 # Dependencies to place after the objects being linked to create a
26193 # shared library.
26194 postdeps=$lt_postdeps_RC
26195
26196 # The directories searched by this compiler when creating a shared
26197 # library
26198 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
26199
26200 # The library search path used internally by the compiler when linking
26201 # a shared library.
26202 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26203
26204 # Method to check whether dependent libraries are shared objects.
26205 deplibs_check_method=$lt_deplibs_check_method
26206
26207 # Command to use when deplibs_check_method == file_magic.
26208 file_magic_cmd=$lt_file_magic_cmd
26209
26210 # Flag that allows shared libraries with undefined symbols to be built.
26211 allow_undefined_flag=$lt_allow_undefined_flag_RC
26212
26213 # Flag that forces no undefined symbols.
26214 no_undefined_flag=$lt_no_undefined_flag_RC
26215
26216 # Commands used to finish a libtool library installation in a directory.
26217 finish_cmds=$lt_finish_cmds
26218
26219 # Same as above, but a single script fragment to be evaled but not shown.
26220 finish_eval=$lt_finish_eval
26221
26222 # Take the output of nm and produce a listing of raw symbols and C names.
26223 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26224
26225 # Transform the output of nm in a proper C declaration
26226 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26227
26228 # Transform the output of nm in a C name address pair
26229 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26230
26231 # This is the shared library runtime path variable.
26232 runpath_var=$runpath_var
26233
26234 # This is the shared library path variable.
26235 shlibpath_var=$shlibpath_var
26236
26237 # Is shlibpath searched before the hard-coded library search path?
26238 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26239
26240 # How to hardcode a shared library path into an executable.
26241 hardcode_action=$hardcode_action_RC
26242
26243 # Whether we should hardcode library paths into libraries.
26244 hardcode_into_libs=$hardcode_into_libs
26245
26246 # Flag to hardcode \$libdir into a binary during linking.
26247 # This must work even if \$libdir does not exist.
26248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26249
26250 # If ld is used when linking, flag to hardcode \$libdir into
26251 # a binary during linking. This must work even if \$libdir does
26252 # not exist.
26253 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26254
26255 # Whether we need a single -rpath flag with a separated argument.
26256 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26257
26258 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26259 # resulting binary.
26260 hardcode_direct=$hardcode_direct_RC
26261
26262 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26263 # resulting binary.
26264 hardcode_minus_L=$hardcode_minus_L_RC
26265
26266 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26267 # the resulting binary.
26268 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26269
26270 # Set to yes if building a shared library automatically hardcodes DIR into the library
26271 # and all subsequent libraries and executables linked against it.
26272 hardcode_automatic=$hardcode_automatic_RC
26273
26274 # Variables whose values should be saved in libtool wrapper scripts and
26275 # restored at relink time.
26276 variables_saved_for_relink="$variables_saved_for_relink"
26277
26278 # Whether libtool must link a program against all its dependency libraries.
26279 link_all_deplibs=$link_all_deplibs_RC
26280
26281 # Compile-time system search path for libraries
26282 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26283
26284 # Run-time system search path for libraries
26285 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26286
26287 # Fix the shell variable \$srcfile for the compiler.
26288 fix_srcfile_path=$lt_fix_srcfile_path
26289
26290 # Set to yes if exported symbols are required.
26291 always_export_symbols=$always_export_symbols_RC
26292
26293 # The commands to list exported symbols.
26294 export_symbols_cmds=$lt_export_symbols_cmds_RC
26295
26296 # The commands to extract the exported symbol list from a shared archive.
26297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26298
26299 # Symbols that should not be listed in the preloaded symbols.
26300 exclude_expsyms=$lt_exclude_expsyms_RC
26301
26302 # Symbols that must always be exported.
26303 include_expsyms=$lt_include_expsyms_RC
26304
26305 # ### END LIBTOOL TAG CONFIG: $tagname
26306
26307 __EOF__
26308
26309
26310 else
26311   # If there is no Makefile yet, we rely on a make rule to execute
26312   # `config.status --recheck' to rerun these tests and create the
26313   # libtool script then.
26314   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26315   if test -f "$ltmain_in"; then
26316     test -f Makefile && make "$ltmain"
26317   fi
26318 fi
26319
26320
26321 ac_ext=c
26322 ac_cpp='$CPP $CPPFLAGS'
26323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26326
26327 CC="$lt_save_CC"
26328
26329         ;;
26330
26331       *)
26332         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26333 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26334    { (exit 1); exit 1; }; }
26335         ;;
26336       esac
26337
26338       # Append the new tag name to the list of available tags.
26339       if test -n "$tagname" ; then
26340       available_tags="$available_tags $tagname"
26341     fi
26342     fi
26343   done
26344   IFS="$lt_save_ifs"
26345
26346   # Now substitute the updated list of available tags.
26347   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26348     mv "${ofile}T" "$ofile"
26349     chmod +x "$ofile"
26350   else
26351     rm -f "${ofile}T"
26352     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26353 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26354    { (exit 1); exit 1; }; }
26355   fi
26356 fi
26357
26358
26359
26360 # This can be used to rebuild libtool when needed
26361 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26362
26363 # Always use our own libtool.
26364 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26365
26366 # Prevent multiple expansion
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
26388 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
26389 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
26390 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
26391   echo $ECHO_N "(cached) $ECHO_C" >&6
26392 else
26393   cat >conftest.make <<\_ACEOF
26394 SHELL = /bin/sh
26395 all:
26396         @echo '@@@%%%=$(MAKE)=@@@%%%'
26397 _ACEOF
26398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26399 case `${MAKE-make} -f conftest.make 2>/dev/null` in
26400   *@@@%%%=?*=@@@%%%*)
26401     eval ac_cv_prog_make_${ac_make}_set=yes;;
26402   *)
26403     eval ac_cv_prog_make_${ac_make}_set=no;;
26404 esac
26405 rm -f conftest.make
26406 fi
26407 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
26408   { echo "$as_me:$LINENO: result: yes" >&5
26409 echo "${ECHO_T}yes" >&6; }
26410   SET_MAKE=
26411 else
26412   { echo "$as_me:$LINENO: result: no" >&5
26413 echo "${ECHO_T}no" >&6; }
26414   SET_MAKE="MAKE=${MAKE-make}"
26415 fi
26416
26417
26418 if test "$need_glib" != "yes"; then
26419         GLIB_CFLAGS=
26420         GLIB_LIBS=
26421 else
26422         if  test "x${GLIBFOUND}" = "xyes"; then
26423
26424 cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_GLIB 1
26426 _ACEOF
26427
26428         fi
26429         BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $GLIB_CFLAGS"
26430 fi
26431
26432  if test "$enable_shared" == "yes"; then
26433   ENABLE_MODULES_TRUE=
26434   ENABLE_MODULES_FALSE='#'
26435 else
26436   ENABLE_MODULES_TRUE='#'
26437   ENABLE_MODULES_FALSE=
26438 fi
26439
26440 if test "$enable_shared" == "yes"; then
26441
26442 cat >>confdefs.h <<\_ACEOF
26443 #define ENABLE_MODULES 1
26444 _ACEOF
26445
26446 fi
26447
26448
26449
26450
26451 if test "$host" == "arm-apple-darwin"; then
26452
26453 cat >>confdefs.h <<\_ACEOF
26454 #define IPHONE 1
26455 _ACEOF
26456
26457    DEVICE_TYPE=iPhone
26458 fi
26459
26460 if test "$enable_evolution_compatibility" == "yes"; then
26461
26462 cat >>confdefs.h <<\_ACEOF
26463 #define EVOLUTION_COMPATIBILITY 1
26464 _ACEOF
26465
26466 fi
26467  if test "$enable_evolution_compatibility" == "yes"; then
26468   ENABLE_EVOLUTION_COMPATIBILITY_TRUE=
26469   ENABLE_EVOLUTION_COMPATIBILITY_FALSE='#'
26470 else
26471   ENABLE_EVOLUTION_COMPATIBILITY_TRUE='#'
26472   ENABLE_EVOLUTION_COMPATIBILITY_FALSE=
26473 fi
26474
26475
26476 if test "$enable_developer_mode" == "yes"; then
26477 backendsearchdir="`pwd`/src/backends/"
26478 else
26479 backendsearchdir='$(libdir)'/syncevolution/backends/
26480 fi
26481
26482 backenddir='$(libdir)'/syncevolution/backends
26483
26484
26485
26486
26487 cat >>confdefs.h <<_ACEOF
26488 #define DEVICE_TYPE "$DEVICE_TYPE"
26489 _ACEOF
26490
26491
26492
26493
26494
26495 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
26496 do
26497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26502   echo $ECHO_N "(cached) $ECHO_C" >&6
26503 fi
26504 ac_res=`eval echo '${'$as_ac_Header'}'`
26505                { echo "$as_me:$LINENO: result: $ac_res" >&5
26506 echo "${ECHO_T}$ac_res" >&6; }
26507 else
26508   # Is the header compilable?
26509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26511 cat >conftest.$ac_ext <<_ACEOF
26512 /* confdefs.h.  */
26513 _ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h.  */
26517 $ac_includes_default
26518 #include <$ac_header>
26519 _ACEOF
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524   *) ac_try_echo=$ac_try;;
26525 esac
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527   (eval "$ac_compile") 2>conftest.er1
26528   ac_status=$?
26529   grep -v '^ *+' conftest.er1 >conftest.err
26530   rm -f conftest.er1
26531   cat conftest.err >&5
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); } && {
26534          test -z "$ac_c_werror_flag" ||
26535          test ! -s conftest.err
26536        } && test -s conftest.$ac_objext; then
26537   ac_header_compiler=yes
26538 else
26539   echo "$as_me: failed program was:" >&5
26540 sed 's/^/| /' conftest.$ac_ext >&5
26541
26542         ac_header_compiler=no
26543 fi
26544
26545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26547 echo "${ECHO_T}$ac_header_compiler" >&6; }
26548
26549 # Is the header present?
26550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26552 cat >conftest.$ac_ext <<_ACEOF
26553 /* confdefs.h.  */
26554 _ACEOF
26555 cat confdefs.h >>conftest.$ac_ext
26556 cat >>conftest.$ac_ext <<_ACEOF
26557 /* end confdefs.h.  */
26558 #include <$ac_header>
26559 _ACEOF
26560 if { (ac_try="$ac_cpp conftest.$ac_ext"
26561 case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } >/dev/null && {
26573          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26574          test ! -s conftest.err
26575        }; then
26576   ac_header_preproc=yes
26577 else
26578   echo "$as_me: failed program was:" >&5
26579 sed 's/^/| /' conftest.$ac_ext >&5
26580
26581   ac_header_preproc=no
26582 fi
26583
26584 rm -f conftest.err conftest.$ac_ext
26585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26586 echo "${ECHO_T}$ac_header_preproc" >&6; }
26587
26588 # So?  What about this header?
26589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26590   yes:no: )
26591     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26592 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26593     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26594 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26595     ac_header_preproc=yes
26596     ;;
26597   no:yes:* )
26598     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26600     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26601 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26602     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26603 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26604     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26605 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26606     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26607 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26608     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26609 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26610
26611     ;;
26612 esac
26613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26616   echo $ECHO_N "(cached) $ECHO_C" >&6
26617 else
26618   eval "$as_ac_Header=\$ac_header_preproc"
26619 fi
26620 ac_res=`eval echo '${'$as_ac_Header'}'`
26621                { echo "$as_me:$LINENO: result: $ac_res" >&5
26622 echo "${ECHO_T}$ac_res" >&6; }
26623
26624 fi
26625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26626   cat >>confdefs.h <<_ACEOF
26627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26628 _ACEOF
26629
26630 fi
26631
26632 done
26633
26634
26635
26636 cat >>confdefs.h <<\_ACEOF
26637 #define SYNTHESIS 1
26638 _ACEOF
26639
26640
26641 ac_config_files="$ac_config_files Makefile src/dbus/interfaces/Makefile src/gdbus/Makefile src/dbus/Makefile src/Makefile src/syncevo/Makefile src/syncevo/syncevolution.pc src/gtk-ui/Makefile po/Makefile.in test/Makefile src/dbus/syncevo-dbus.pc"
26642
26643 cat >confcache <<\_ACEOF
26644 # This file is a shell script that caches the results of configure
26645 # tests run on this system so they can be shared between configure
26646 # scripts and configure runs, see configure's option --config-cache.
26647 # It is not useful on other systems.  If it contains results you don't
26648 # want to keep, you may remove or edit it.
26649 #
26650 # config.status only pays attention to the cache file if you give it
26651 # the --recheck option to rerun configure.
26652 #
26653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26655 # following values.
26656
26657 _ACEOF
26658
26659 # The following way of writing the cache mishandles newlines in values,
26660 # but we know of no workaround that is simple, portable, and efficient.
26661 # So, we kill variables containing newlines.
26662 # Ultrix sh set writes to stderr and can't be redirected directly,
26663 # and sets the high bit in the cache file unless we assign to the vars.
26664 (
26665   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26666     eval ac_val=\$$ac_var
26667     case $ac_val in #(
26668     *${as_nl}*)
26669       case $ac_var in #(
26670       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26671 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26672       esac
26673       case $ac_var in #(
26674       _ | IFS | as_nl) ;; #(
26675       *) $as_unset $ac_var ;;
26676       esac ;;
26677     esac
26678   done
26679
26680   (set) 2>&1 |
26681     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26682     *${as_nl}ac_space=\ *)
26683       # `set' does not quote correctly, so add quotes (double-quote
26684       # substitution turns \\\\ into \\, and sed turns \\ into \).
26685       sed -n \
26686         "s/'/'\\\\''/g;
26687           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26688       ;; #(
26689     *)
26690       # `set' quotes correctly as required by POSIX, so do not add quotes.
26691       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26692       ;;
26693     esac |
26694     sort
26695 ) |
26696   sed '
26697      /^ac_cv_env_/b end
26698      t clear
26699      :clear
26700      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26701      t end
26702      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26703      :end' >>confcache
26704 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26705   if test -w "$cache_file"; then
26706     test "x$cache_file" != "x/dev/null" &&
26707       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26708 echo "$as_me: updating cache $cache_file" >&6;}
26709     cat confcache >$cache_file
26710   else
26711     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26712 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26713   fi
26714 fi
26715 rm -f confcache
26716
26717 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26718 # Let make expand exec_prefix.
26719 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26720
26721 DEFS=-DHAVE_CONFIG_H
26722
26723 ac_libobjs=
26724 ac_ltlibobjs=
26725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26726   # 1. Remove the extension, and $U if already installed.
26727   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26728   ac_i=`echo "$ac_i" | sed "$ac_script"`
26729   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26730   #    will be set to the directory where LIBOBJS objects are built.
26731   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26732   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26733 done
26734 LIBOBJS=$ac_libobjs
26735
26736 LTLIBOBJS=$ac_ltlibobjs
26737
26738
26739 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26740   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26741 Usually this means the macro was only invoked conditionally." >&5
26742 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26743 Usually this means the macro was only invoked conditionally." >&2;}
26744    { (exit 1); exit 1; }; }
26745 fi
26746 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26747   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26748 Usually this means the macro was only invoked conditionally." >&5
26749 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26750 Usually this means the macro was only invoked conditionally." >&2;}
26751    { (exit 1); exit 1; }; }
26752 fi
26753 if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
26754   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
26755 Usually this means the macro was only invoked conditionally." >&5
26756 echo "$as_me: error: conditional \"ENABLE_UNIT_TESTS\" was never defined.
26757 Usually this means the macro was only invoked conditionally." >&2;}
26758    { (exit 1); exit 1; }; }
26759 fi
26760 if test -z "${ENABLE_TESTING_TRUE}" && test -z "${ENABLE_TESTING_FALSE}"; then
26761   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TESTING\" was never defined.
26762 Usually this means the macro was only invoked conditionally." >&5
26763 echo "$as_me: error: conditional \"ENABLE_TESTING\" was never defined.
26764 Usually this means the macro was only invoked conditionally." >&2;}
26765    { (exit 1); exit 1; }; }
26766 fi
26767 if test -z "${ENABLE_OBEX_TRUE}" && test -z "${ENABLE_OBEX_FALSE}"; then
26768   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_OBEX\" was never defined.
26769 Usually this means the macro was only invoked conditionally." >&5
26770 echo "$as_me: error: conditional \"ENABLE_OBEX\" was never defined.
26771 Usually this means the macro was only invoked conditionally." >&2;}
26772    { (exit 1); exit 1; }; }
26773 fi
26774 if test -z "${ENABLE_BLUETOOTH_TRUE}" && test -z "${ENABLE_BLUETOOTH_FALSE}"; then
26775   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
26776 Usually this means the macro was only invoked conditionally." >&5
26777 echo "$as_me: error: conditional \"ENABLE_BLUETOOTH\" was never defined.
26778 Usually this means the macro was only invoked conditionally." >&2;}
26779    { (exit 1); exit 1; }; }
26780 fi
26781 if test -z "${COND_GUI_TRUE}" && test -z "${COND_GUI_FALSE}"; then
26782   { { echo "$as_me:$LINENO: error: conditional \"COND_GUI\" was never defined.
26783 Usually this means the macro was only invoked conditionally." >&5
26784 echo "$as_me: error: conditional \"COND_GUI\" was never defined.
26785 Usually this means the macro was only invoked conditionally." >&2;}
26786    { (exit 1); exit 1; }; }
26787 fi
26788 if test -z "${COND_DBUS_TRUE}" && test -z "${COND_DBUS_FALSE}"; then
26789   { { echo "$as_me:$LINENO: error: conditional \"COND_DBUS\" was never defined.
26790 Usually this means the macro was only invoked conditionally." >&5
26791 echo "$as_me: error: conditional \"COND_DBUS\" was never defined.
26792 Usually this means the macro was only invoked conditionally." >&2;}
26793    { (exit 1); exit 1; }; }
26794 fi
26795
26796   ac_config_commands="$ac_config_commands po/stamp-it"
26797
26798
26799 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26800   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26801 Usually this means the macro was only invoked conditionally." >&5
26802 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26803 Usually this means the macro was only invoked conditionally." >&2;}
26804    { (exit 1); exit 1; }; }
26805 fi
26806 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
26807   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ECAL\" was never defined.
26808 Usually this means the macro was only invoked conditionally." >&5
26809 echo "$as_me: error: conditional \"ENABLE_ECAL\" was never defined.
26810 Usually this means the macro was only invoked conditionally." >&2;}
26811    { (exit 1); exit 1; }; }
26812 fi
26813 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26814   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26815 Usually this means the macro was only invoked conditionally." >&5
26816 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26817 Usually this means the macro was only invoked conditionally." >&2;}
26818    { (exit 1); exit 1; }; }
26819 fi
26820 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
26821   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MODULES\" was never defined.
26822 Usually this means the macro was only invoked conditionally." >&5
26823 echo "$as_me: error: conditional \"ENABLE_MODULES\" was never defined.
26824 Usually this means the macro was only invoked conditionally." >&2;}
26825    { (exit 1); exit 1; }; }
26826 fi
26827 if test -z "${ENABLE_EVOLUTION_COMPATIBILITY_TRUE}" && test -z "${ENABLE_EVOLUTION_COMPATIBILITY_FALSE}"; then
26828   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
26829 Usually this means the macro was only invoked conditionally." >&5
26830 echo "$as_me: error: conditional \"ENABLE_EVOLUTION_COMPATIBILITY\" was never defined.
26831 Usually this means the macro was only invoked conditionally." >&2;}
26832    { (exit 1); exit 1; }; }
26833 fi
26834
26835 : ${CONFIG_STATUS=./config.status}
26836 ac_clean_files_save=$ac_clean_files
26837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26838 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26839 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26840 cat >$CONFIG_STATUS <<_ACEOF
26841 #! $SHELL
26842 # Generated by $as_me.
26843 # Run this file to recreate the current configuration.
26844 # Compiler output produced by configure, useful for debugging
26845 # configure, is in config.log if it exists.
26846
26847 debug=false
26848 ac_cs_recheck=false
26849 ac_cs_silent=false
26850 SHELL=\${CONFIG_SHELL-$SHELL}
26851 _ACEOF
26852
26853 cat >>$CONFIG_STATUS <<\_ACEOF
26854 ## --------------------- ##
26855 ## M4sh Initialization.  ##
26856 ## --------------------- ##
26857
26858 # Be more Bourne compatible
26859 DUALCASE=1; export DUALCASE # for MKS sh
26860 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26861   emulate sh
26862   NULLCMD=:
26863   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26864   # is contrary to our usage.  Disable this feature.
26865   alias -g '${1+"$@"}'='"$@"'
26866   setopt NO_GLOB_SUBST
26867 else
26868   case `(set -o) 2>/dev/null` in
26869   *posix*) set -o posix ;;
26870 esac
26871
26872 fi
26873
26874
26875
26876
26877 # PATH needs CR
26878 # Avoid depending upon Character Ranges.
26879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26882 as_cr_digits='0123456789'
26883 as_cr_alnum=$as_cr_Letters$as_cr_digits
26884
26885 # The user is always right.
26886 if test "${PATH_SEPARATOR+set}" != set; then
26887   echo "#! /bin/sh" >conf$$.sh
26888   echo  "exit 0"   >>conf$$.sh
26889   chmod +x conf$$.sh
26890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26891     PATH_SEPARATOR=';'
26892   else
26893     PATH_SEPARATOR=:
26894   fi
26895   rm -f conf$$.sh
26896 fi
26897
26898 # Support unset when possible.
26899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26900   as_unset=unset
26901 else
26902   as_unset=false
26903 fi
26904
26905
26906 # IFS
26907 # We need space, tab and new line, in precisely that order.  Quoting is
26908 # there to prevent editors from complaining about space-tab.
26909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26910 # splitting by setting IFS to empty value.)
26911 as_nl='
26912 '
26913 IFS=" ""        $as_nl"
26914
26915 # Find who we are.  Look in the path if we contain no directory separator.
26916 case $0 in
26917   *[\\/]* ) as_myself=$0 ;;
26918   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26919 for as_dir in $PATH
26920 do
26921   IFS=$as_save_IFS
26922   test -z "$as_dir" && as_dir=.
26923   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26924 done
26925 IFS=$as_save_IFS
26926
26927      ;;
26928 esac
26929 # We did not find ourselves, most probably we were run as `sh COMMAND'
26930 # in which case we are not to be found in the path.
26931 if test "x$as_myself" = x; then
26932   as_myself=$0
26933 fi
26934 if test ! -f "$as_myself"; then
26935   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26936   { (exit 1); exit 1; }
26937 fi
26938
26939 # Work around bugs in pre-3.0 UWIN ksh.
26940 for as_var in ENV MAIL MAILPATH
26941 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26942 done
26943 PS1='$ '
26944 PS2='> '
26945 PS4='+ '
26946
26947 # NLS nuisances.
26948 for as_var in \
26949   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26950   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26951   LC_TELEPHONE LC_TIME
26952 do
26953   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26954     eval $as_var=C; export $as_var
26955   else
26956     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26957   fi
26958 done
26959
26960 # Required to use basename.
26961 if expr a : '\(a\)' >/dev/null 2>&1 &&
26962    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26963   as_expr=expr
26964 else
26965   as_expr=false
26966 fi
26967
26968 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26969   as_basename=basename
26970 else
26971   as_basename=false
26972 fi
26973
26974
26975 # Name of the executable.
26976 as_me=`$as_basename -- "$0" ||
26977 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26978          X"$0" : 'X\(//\)$' \| \
26979          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26980 echo X/"$0" |
26981     sed '/^.*\/\([^/][^/]*\)\/*$/{
26982             s//\1/
26983             q
26984           }
26985           /^X\/\(\/\/\)$/{
26986             s//\1/
26987             q
26988           }
26989           /^X\/\(\/\).*/{
26990             s//\1/
26991             q
26992           }
26993           s/.*/./; q'`
26994
26995 # CDPATH.
26996 $as_unset CDPATH
26997
26998
26999
27000   as_lineno_1=$LINENO
27001   as_lineno_2=$LINENO
27002   test "x$as_lineno_1" != "x$as_lineno_2" &&
27003   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27004
27005   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27006   # uniformly replaced by the line number.  The first 'sed' inserts a
27007   # line-number line after each line using $LINENO; the second 'sed'
27008   # does the real work.  The second script uses 'N' to pair each
27009   # line-number line with the line containing $LINENO, and appends
27010   # trailing '-' during substitution so that $LINENO is not a special
27011   # case at line end.
27012   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27013   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27014   # E. McMahon (1931-1989) for sed's syntax.  :-)
27015   sed -n '
27016     p
27017     /[$]LINENO/=
27018   ' <$as_myself |
27019     sed '
27020       s/[$]LINENO.*/&-/
27021       t lineno
27022       b
27023       :lineno
27024       N
27025       :loop
27026       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27027       t loop
27028       s/-\n.*//
27029     ' >$as_me.lineno &&
27030   chmod +x "$as_me.lineno" ||
27031     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27032    { (exit 1); exit 1; }; }
27033
27034   # Don't try to exec as it changes $[0], causing all sort of problems
27035   # (the dirname of $[0] is not the place where we might find the
27036   # original and so on.  Autoconf is especially sensitive to this).
27037   . "./$as_me.lineno"
27038   # Exit status is that of the last command.
27039   exit
27040 }
27041
27042
27043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27044   as_dirname=dirname
27045 else
27046   as_dirname=false
27047 fi
27048
27049 ECHO_C= ECHO_N= ECHO_T=
27050 case `echo -n x` in
27051 -n*)
27052   case `echo 'x\c'` in
27053   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27054   *)   ECHO_C='\c';;
27055   esac;;
27056 *)
27057   ECHO_N='-n';;
27058 esac
27059
27060 if expr a : '\(a\)' >/dev/null 2>&1 &&
27061    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27062   as_expr=expr
27063 else
27064   as_expr=false
27065 fi
27066
27067 rm -f conf$$ conf$$.exe conf$$.file
27068 if test -d conf$$.dir; then
27069   rm -f conf$$.dir/conf$$.file
27070 else
27071   rm -f conf$$.dir
27072   mkdir conf$$.dir
27073 fi
27074 echo >conf$$.file
27075 if ln -s conf$$.file conf$$ 2>/dev/null; then
27076   as_ln_s='ln -s'
27077   # ... but there are two gotchas:
27078   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27079   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27080   # In both cases, we have to default to `cp -p'.
27081   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27082     as_ln_s='cp -p'
27083 elif ln conf$$.file conf$$ 2>/dev/null; then
27084   as_ln_s=ln
27085 else
27086   as_ln_s='cp -p'
27087 fi
27088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27089 rmdir conf$$.dir 2>/dev/null
27090
27091 if mkdir -p . 2>/dev/null; then
27092   as_mkdir_p=:
27093 else
27094   test -d ./-p && rmdir ./-p
27095   as_mkdir_p=false
27096 fi
27097
27098 if test -x / >/dev/null 2>&1; then
27099   as_test_x='test -x'
27100 else
27101   if ls -dL / >/dev/null 2>&1; then
27102     as_ls_L_option=L
27103   else
27104     as_ls_L_option=
27105   fi
27106   as_test_x='
27107     eval sh -c '\''
27108       if test -d "$1"; then
27109         test -d "$1/.";
27110       else
27111         case $1 in
27112         -*)set "./$1";;
27113         esac;
27114         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27115         ???[sx]*):;;*)false;;esac;fi
27116     '\'' sh
27117   '
27118 fi
27119 as_executable_p=$as_test_x
27120
27121 # Sed expression to map a string onto a valid CPP name.
27122 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27123
27124 # Sed expression to map a string onto a valid variable name.
27125 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27126
27127
27128 exec 6>&1
27129
27130 # Save the log message, to keep $[0] and so on meaningful, and to
27131 # report actual input values of CONFIG_FILES etc. instead of their
27132 # values after options handling.
27133 ac_log="
27134 This file was extended by syncevolution $as_me 0.9.2+1.0alpha1, which was
27135 generated by GNU Autoconf 2.61.  Invocation command line was
27136
27137   CONFIG_FILES    = $CONFIG_FILES
27138   CONFIG_HEADERS  = $CONFIG_HEADERS
27139   CONFIG_LINKS    = $CONFIG_LINKS
27140   CONFIG_COMMANDS = $CONFIG_COMMANDS
27141   $ $0 $@
27142
27143 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27144 "
27145
27146 _ACEOF
27147
27148 cat >>$CONFIG_STATUS <<_ACEOF
27149 # Files that config.status was made for.
27150 config_files="$ac_config_files"
27151 config_headers="$ac_config_headers"
27152 config_commands="$ac_config_commands"
27153
27154 _ACEOF
27155
27156 cat >>$CONFIG_STATUS <<\_ACEOF
27157 ac_cs_usage="\
27158 \`$as_me' instantiates files from templates according to the
27159 current configuration.
27160
27161 Usage: $0 [OPTIONS] [FILE]...
27162
27163   -h, --help       print this help, then exit
27164   -V, --version    print version number and configuration settings, then exit
27165   -q, --quiet      do not print progress messages
27166   -d, --debug      don't remove temporary files
27167       --recheck    update $as_me by reconfiguring in the same conditions
27168   --file=FILE[:TEMPLATE]
27169                    instantiate the configuration file FILE
27170   --header=FILE[:TEMPLATE]
27171                    instantiate the configuration header FILE
27172
27173 Configuration files:
27174 $config_files
27175
27176 Configuration headers:
27177 $config_headers
27178
27179 Configuration commands:
27180 $config_commands
27181
27182 Report bugs to <bug-autoconf@gnu.org>."
27183
27184 _ACEOF
27185 cat >>$CONFIG_STATUS <<_ACEOF
27186 ac_cs_version="\\
27187 syncevolution config.status 0.9.2+1.0alpha1
27188 configured by $0, generated by GNU Autoconf 2.61,
27189   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27190
27191 Copyright (C) 2006 Free Software Foundation, Inc.
27192 This config.status script is free software; the Free Software Foundation
27193 gives unlimited permission to copy, distribute and modify it."
27194
27195 ac_pwd='$ac_pwd'
27196 srcdir='$srcdir'
27197 INSTALL='$INSTALL'
27198 MKDIR_P='$MKDIR_P'
27199 _ACEOF
27200
27201 cat >>$CONFIG_STATUS <<\_ACEOF
27202 # If no file are specified by the user, then we need to provide default
27203 # value.  By we need to know if files were specified by the user.
27204 ac_need_defaults=:
27205 while test $# != 0
27206 do
27207   case $1 in
27208   --*=*)
27209     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27210     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27211     ac_shift=:
27212     ;;
27213   *)
27214     ac_option=$1
27215     ac_optarg=$2
27216     ac_shift=shift
27217     ;;
27218   esac
27219
27220   case $ac_option in
27221   # Handling of the options.
27222   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27223     ac_cs_recheck=: ;;
27224   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27225     echo "$ac_cs_version"; exit ;;
27226   --debug | --debu | --deb | --de | --d | -d )
27227     debug=: ;;
27228   --file | --fil | --fi | --f )
27229     $ac_shift
27230     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27231     ac_need_defaults=false;;
27232   --header | --heade | --head | --hea )
27233     $ac_shift
27234     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27235     ac_need_defaults=false;;
27236   --he | --h)
27237     # Conflict between --help and --header
27238     { echo "$as_me: error: ambiguous option: $1
27239 Try \`$0 --help' for more information." >&2
27240    { (exit 1); exit 1; }; };;
27241   --help | --hel | -h )
27242     echo "$ac_cs_usage"; exit ;;
27243   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27244   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27245     ac_cs_silent=: ;;
27246
27247   # This is an error.
27248   -*) { echo "$as_me: error: unrecognized option: $1
27249 Try \`$0 --help' for more information." >&2
27250    { (exit 1); exit 1; }; } ;;
27251
27252   *) ac_config_targets="$ac_config_targets $1"
27253      ac_need_defaults=false ;;
27254
27255   esac
27256   shift
27257 done
27258
27259 ac_configure_extra_args=
27260
27261 if $ac_cs_silent; then
27262   exec 6>/dev/null
27263   ac_configure_extra_args="$ac_configure_extra_args --silent"
27264 fi
27265
27266 _ACEOF
27267 cat >>$CONFIG_STATUS <<_ACEOF
27268 if \$ac_cs_recheck; then
27269   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27270   CONFIG_SHELL=$SHELL
27271   export CONFIG_SHELL
27272   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27273 fi
27274
27275 _ACEOF
27276 cat >>$CONFIG_STATUS <<\_ACEOF
27277 exec 5>>config.log
27278 {
27279   echo
27280   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27281 ## Running $as_me. ##
27282 _ASBOX
27283   echo "$ac_log"
27284 } >&5
27285
27286 _ACEOF
27287 cat >>$CONFIG_STATUS <<_ACEOF
27288 #
27289 # INIT-COMMANDS
27290 #
27291 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27292
27293
27294 _ACEOF
27295
27296 cat >>$CONFIG_STATUS <<\_ACEOF
27297
27298 # Handling of arguments.
27299 for ac_config_target in $ac_config_targets
27300 do
27301   case $ac_config_target in
27302     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27303     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27304     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27305     "src/backends/addressbook/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/addressbook/Makefile" ;;
27306     "src/backends/evolution/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/evolution/Makefile" ;;
27307     "src/backends/file/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/file/Makefile" ;;
27308     "src/backends/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES src/backends/sqlite/Makefile" ;;
27309     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27310     "src/dbus/interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/interfaces/Makefile" ;;
27311     "src/gdbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/gdbus/Makefile" ;;
27312     "src/dbus/Makefile") CONFIG_FILES="$CONFIG_FILES src/dbus/Makefile" ;;
27313     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
27314     "src/syncevo/Makefile") CONFIG_FILES="$CONFIG_FILES src/syncevo/Makefile" ;;
27315     "src/syncevo/syncevolution.pc") CONFIG_FILES="$CONFIG_FILES src/syncevo/syncevolution.pc" ;;
27316     "src/gtk-ui/Makefile") CONFIG_FILES="$CONFIG_FILES src/gtk-ui/Makefile" ;;
27317     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27318     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
27319     "src/dbus/syncevo-dbus.pc") CONFIG_FILES="$CONFIG_FILES src/dbus/syncevo-dbus.pc" ;;
27320     "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
27321
27322   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27323 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27324    { (exit 1); exit 1; }; };;
27325   esac
27326 done
27327
27328
27329 # If the user did not use the arguments to specify the items to instantiate,
27330 # then the envvar interface is used.  Set only those that are not.
27331 # We use the long form for the default assignment because of an extremely
27332 # bizarre bug on SunOS 4.1.3.
27333 if $ac_need_defaults; then
27334   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27335   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27336   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27337 fi
27338
27339 # Have a temporary directory for convenience.  Make it in the build tree
27340 # simply because there is no reason against having it here, and in addition,
27341 # creating and moving files from /tmp can sometimes cause problems.
27342 # Hook for its removal unless debugging.
27343 # Note that there is a small window in which the directory will not be cleaned:
27344 # after its creation but before its name has been assigned to `$tmp'.
27345 $debug ||
27346 {
27347   tmp=
27348   trap 'exit_status=$?
27349   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27350 ' 0
27351   trap '{ (exit 1); exit 1; }' 1 2 13 15
27352 }
27353 # Create a (secure) tmp directory for tmp files.
27354
27355 {
27356   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27357   test -n "$tmp" && test -d "$tmp"
27358 }  ||
27359 {
27360   tmp=./conf$$-$RANDOM
27361   (umask 077 && mkdir "$tmp")
27362 } ||
27363 {
27364    echo "$me: cannot create a temporary directory in ." >&2
27365    { (exit 1); exit 1; }
27366 }
27367
27368 #
27369 # Set up the sed scripts for CONFIG_FILES section.
27370 #
27371
27372 # No need to generate the scripts if there are no CONFIG_FILES.
27373 # This happens for instance when ./config.status config.h
27374 if test -n "$CONFIG_FILES"; then
27375
27376 _ACEOF
27377
27378
27379
27380 ac_delim='%!_!# '
27381 for ac_last_try in false false false false false :; do
27382   cat >conf$$subs.sed <<_ACEOF
27383 SHELL!$SHELL$ac_delim
27384 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27385 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27386 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27387 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27388 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27389 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27390 exec_prefix!$exec_prefix$ac_delim
27391 prefix!$prefix$ac_delim
27392 program_transform_name!$program_transform_name$ac_delim
27393 bindir!$bindir$ac_delim
27394 sbindir!$sbindir$ac_delim
27395 libexecdir!$libexecdir$ac_delim
27396 datarootdir!$datarootdir$ac_delim
27397 datadir!$datadir$ac_delim
27398 sysconfdir!$sysconfdir$ac_delim
27399 sharedstatedir!$sharedstatedir$ac_delim
27400 localstatedir!$localstatedir$ac_delim
27401 includedir!$includedir$ac_delim
27402 oldincludedir!$oldincludedir$ac_delim
27403 docdir!$docdir$ac_delim
27404 infodir!$infodir$ac_delim
27405 htmldir!$htmldir$ac_delim
27406 dvidir!$dvidir$ac_delim
27407 pdfdir!$pdfdir$ac_delim
27408 psdir!$psdir$ac_delim
27409 libdir!$libdir$ac_delim
27410 localedir!$localedir$ac_delim
27411 mandir!$mandir$ac_delim
27412 DEFS!$DEFS$ac_delim
27413 ECHO_C!$ECHO_C$ac_delim
27414 ECHO_N!$ECHO_N$ac_delim
27415 ECHO_T!$ECHO_T$ac_delim
27416 LIBS!$LIBS$ac_delim
27417 build_alias!$build_alias$ac_delim
27418 host_alias!$host_alias$ac_delim
27419 target_alias!$target_alias$ac_delim
27420 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
27421 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
27422 INSTALL_DATA!$INSTALL_DATA$ac_delim
27423 am__isrc!$am__isrc$ac_delim
27424 CYGPATH_W!$CYGPATH_W$ac_delim
27425 PACKAGE!$PACKAGE$ac_delim
27426 VERSION!$VERSION$ac_delim
27427 ACLOCAL!$ACLOCAL$ac_delim
27428 AUTOCONF!$AUTOCONF$ac_delim
27429 AUTOMAKE!$AUTOMAKE$ac_delim
27430 AUTOHEADER!$AUTOHEADER$ac_delim
27431 MAKEINFO!$MAKEINFO$ac_delim
27432 install_sh!$install_sh$ac_delim
27433 STRIP!$STRIP$ac_delim
27434 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
27435 mkdir_p!$mkdir_p$ac_delim
27436 AWK!$AWK$ac_delim
27437 SET_MAKE!$SET_MAKE$ac_delim
27438 am__leading_dot!$am__leading_dot$ac_delim
27439 AMTAR!$AMTAR$ac_delim
27440 am__tar!$am__tar$ac_delim
27441 am__untar!$am__untar$ac_delim
27442 MODIFY_SYNCCOMPARE!$MODIFY_SYNCCOMPARE$ac_delim
27443 CC!$CC$ac_delim
27444 CFLAGS!$CFLAGS$ac_delim
27445 LDFLAGS!$LDFLAGS$ac_delim
27446 CPPFLAGS!$CPPFLAGS$ac_delim
27447 ac_ct_CC!$ac_ct_CC$ac_delim
27448 EXEEXT!$EXEEXT$ac_delim
27449 OBJEXT!$OBJEXT$ac_delim
27450 DEPDIR!$DEPDIR$ac_delim
27451 am__include!$am__include$ac_delim
27452 am__quote!$am__quote$ac_delim
27453 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
27454 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
27455 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
27456 CCDEPMODE!$CCDEPMODE$ac_delim
27457 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
27458 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
27459 CPP!$CPP$ac_delim
27460 GREP!$GREP$ac_delim
27461 EGREP!$EGREP$ac_delim
27462 CPPUNIT_CXXFLAGS!$CPPUNIT_CXXFLAGS$ac_delim
27463 CPPUNIT_LDFLAGS!$CPPUNIT_LDFLAGS$ac_delim
27464 ENABLE_UNIT_TESTS_TRUE!$ENABLE_UNIT_TESTS_TRUE$ac_delim
27465 ENABLE_UNIT_TESTS_FALSE!$ENABLE_UNIT_TESTS_FALSE$ac_delim
27466 ENABLE_TESTING_TRUE!$ENABLE_TESTING_TRUE$ac_delim
27467 ENABLE_TESTING_FALSE!$ENABLE_TESTING_FALSE$ac_delim
27468 CORE_LDADD_DEP!$CORE_LDADD_DEP$ac_delim
27469 PKG_CONFIG!$PKG_CONFIG$ac_delim
27470 LIBSOUP_CFLAGS!$LIBSOUP_CFLAGS$ac_delim
27471 LIBSOUP_LIBS!$LIBSOUP_LIBS$ac_delim
27472 LIBOPENOBEX_CFLAGS!$LIBOPENOBEX_CFLAGS$ac_delim
27473 LIBOPENOBEX_LIBS!$LIBOPENOBEX_LIBS$ac_delim
27474 BLUEZ_CFLAGS!$BLUEZ_CFLAGS$ac_delim
27475 BLUEZ_LIBS!$BLUEZ_LIBS$ac_delim
27476 ENABLE_OBEX_TRUE!$ENABLE_OBEX_TRUE$ac_delim
27477 ENABLE_OBEX_FALSE!$ENABLE_OBEX_FALSE$ac_delim
27478 ENABLE_BLUETOOTH_TRUE!$ENABLE_BLUETOOTH_TRUE$ac_delim
27479 ENABLE_BLUETOOTH_FALSE!$ENABLE_BLUETOOTH_FALSE$ac_delim
27480 _ACEOF
27481
27482   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27483     break
27484   elif $ac_last_try; then
27485     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27486 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27487    { (exit 1); exit 1; }; }
27488   else
27489     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27490   fi
27491 done
27492
27493 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27494 if test -n "$ac_eof"; then
27495   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27496   ac_eof=`expr $ac_eof + 1`
27497 fi
27498
27499 cat >>$CONFIG_STATUS <<_ACEOF
27500 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27502 _ACEOF
27503 sed '
27504 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27505 s/^/s,@/; s/!/@,|#_!!_#|/
27506 :n
27507 t n
27508 s/'"$ac_delim"'$/,g/; t
27509 s/$/\\/; p
27510 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27511 ' >>$CONFIG_STATUS <conf$$subs.sed
27512 rm -f conf$$subs.sed
27513 cat >>$CONFIG_STATUS <<_ACEOF
27514 CEOF$ac_eof
27515 _ACEOF
27516
27517
27518 ac_delim='%!_!# '
27519 for ac_last_try in false false false false false :; do
27520   cat >conf$$subs.sed <<_ACEOF
27521 TRANSPORT_LIBS!$TRANSPORT_LIBS$ac_delim
27522 TRANSPORT_CFLAGS!$TRANSPORT_CFLAGS$ac_delim
27523 XSLT!$XSLT$ac_delim
27524 COND_GUI_TRUE!$COND_GUI_TRUE$ac_delim
27525 COND_GUI_FALSE!$COND_GUI_FALSE$ac_delim
27526 COND_DBUS_TRUE!$COND_DBUS_TRUE$ac_delim
27527 COND_DBUS_FALSE!$COND_DBUS_FALSE$ac_delim
27528 KEYRING_CFLAGS!$KEYRING_CFLAGS$ac_delim
27529 KEYRING_LIBS!$KEYRING_LIBS$ac_delim
27530 KEYRING_2_20_CFLAGS!$KEYRING_2_20_CFLAGS$ac_delim
27531 KEYRING_2_20_LIBS!$KEYRING_2_20_LIBS$ac_delim
27532 DBUS_GLIB_CFLAGS!$DBUS_GLIB_CFLAGS$ac_delim
27533 DBUS_GLIB_LIBS!$DBUS_GLIB_LIBS$ac_delim
27534 DBUS_BINDING_TOOL!$DBUS_BINDING_TOOL$ac_delim
27535 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
27536 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
27537 DBUS_LIBS!$DBUS_LIBS$ac_delim
27538 LIBEXECDIR!$LIBEXECDIR$ac_delim
27539 DBUS_SERVICES_DIR!$DBUS_SERVICES_DIR$ac_delim
27540 UNIQUE_CFLAGS!$UNIQUE_CFLAGS$ac_delim
27541 UNIQUE_LIBS!$UNIQUE_LIBS$ac_delim
27542 GUI_CFLAGS!$GUI_CFLAGS$ac_delim
27543 GUI_LIBS!$GUI_LIBS$ac_delim
27544 GTK_BUILDER_CONV!$GTK_BUILDER_CONV$ac_delim
27545 USE_NLS!$USE_NLS$ac_delim
27546 INTLTOOL_UPDATE!$INTLTOOL_UPDATE$ac_delim
27547 INTLTOOL_MERGE!$INTLTOOL_MERGE$ac_delim
27548 INTLTOOL_EXTRACT!$INTLTOOL_EXTRACT$ac_delim
27549 INTLTOOL_DESKTOP_RULE!$INTLTOOL_DESKTOP_RULE$ac_delim
27550 INTLTOOL_DIRECTORY_RULE!$INTLTOOL_DIRECTORY_RULE$ac_delim
27551 INTLTOOL_KEYS_RULE!$INTLTOOL_KEYS_RULE$ac_delim
27552 INTLTOOL_PROP_RULE!$INTLTOOL_PROP_RULE$ac_delim
27553 INTLTOOL_OAF_RULE!$INTLTOOL_OAF_RULE$ac_delim
27554 INTLTOOL_PONG_RULE!$INTLTOOL_PONG_RULE$ac_delim
27555 INTLTOOL_SERVER_RULE!$INTLTOOL_SERVER_RULE$ac_delim
27556 INTLTOOL_SHEET_RULE!$INTLTOOL_SHEET_RULE$ac_delim
27557 INTLTOOL_SOUNDLIST_RULE!$INTLTOOL_SOUNDLIST_RULE$ac_delim
27558 INTLTOOL_UI_RULE!$INTLTOOL_UI_RULE$ac_delim
27559 INTLTOOL_XAM_RULE!$INTLTOOL_XAM_RULE$ac_delim
27560 INTLTOOL_KBD_RULE!$INTLTOOL_KBD_RULE$ac_delim
27561 INTLTOOL_XML_RULE!$INTLTOOL_XML_RULE$ac_delim
27562 INTLTOOL_XML_NOMERGE_RULE!$INTLTOOL_XML_NOMERGE_RULE$ac_delim
27563 INTLTOOL_CAVES_RULE!$INTLTOOL_CAVES_RULE$ac_delim
27564 INTLTOOL_SCHEMAS_RULE!$INTLTOOL_SCHEMAS_RULE$ac_delim
27565 INTLTOOL_THEME_RULE!$INTLTOOL_THEME_RULE$ac_delim
27566 INTLTOOL_SERVICE_RULE!$INTLTOOL_SERVICE_RULE$ac_delim
27567 INTLTOOL_POLICY_RULE!$INTLTOOL_POLICY_RULE$ac_delim
27568 XGETTEXT!$XGETTEXT$ac_delim
27569 MSGMERGE!$MSGMERGE$ac_delim
27570 MSGFMT!$MSGFMT$ac_delim
27571 GMSGFMT!$GMSGFMT$ac_delim
27572 INTLTOOL_PERL!$INTLTOOL_PERL$ac_delim
27573 ALL_LINGUAS!$ALL_LINGUAS$ac_delim
27574 DATADIRNAME!$DATADIRNAME$ac_delim
27575 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
27576 CATALOGS!$CATALOGS$ac_delim
27577 CATOBJEXT!$CATOBJEXT$ac_delim
27578 GMOFILES!$GMOFILES$ac_delim
27579 INSTOBJEXT!$INSTOBJEXT$ac_delim
27580 INTLLIBS!$INTLLIBS$ac_delim
27581 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
27582 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
27583 POFILES!$POFILES$ac_delim
27584 POSUB!$POSUB$ac_delim
27585 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
27586 SYNCEVOLUTION_LOCALEDIR!$SYNCEVOLUTION_LOCALEDIR$ac_delim
27587 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
27588 GUI_PROGRAMS!$GUI_PROGRAMS$ac_delim
27589 GUI_DESKTOP_FILES!$GUI_DESKTOP_FILES$ac_delim
27590 CXX!$CXX$ac_delim
27591 CXXFLAGS!$CXXFLAGS$ac_delim
27592 ac_ct_CXX!$ac_ct_CXX$ac_delim
27593 CXXDEPMODE!$CXXDEPMODE$ac_delim
27594 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
27595 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
27596 BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
27597 BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
27598 SYNTHESIS_SRC!$SYNTHESIS_SRC$ac_delim
27599 SYNTHESIS_CFLAGS!$SYNTHESIS_CFLAGS$ac_delim
27600 SYNTHESIS_LIBS!$SYNTHESIS_LIBS$ac_delim
27601 SYNTHESIS!$SYNTHESIS$ac_delim
27602 SYNTHESIS_SUBDIR!$SYNTHESIS_SUBDIR$ac_delim
27603 SYNTHESIS_DEP!$SYNTHESIS_DEP$ac_delim
27604 SYNTHESIS_ENGINE!$SYNTHESIS_ENGINE$ac_delim
27605 SYNTHESIS_LIB!$SYNTHESIS_LIB$ac_delim
27606 SYNTHESISSRC!$SYNTHESISSRC$ac_delim
27607 SYNCSOURCES!$SYNCSOURCES$ac_delim
27608 BACKEND_DEFINES!$BACKEND_DEFINES$ac_delim
27609 BACKEND_CPPFLAGS!$BACKEND_CPPFLAGS$ac_delim
27610 ADDRESSBOOK_CFLAGS!$ADDRESSBOOK_CFLAGS$ac_delim
27611 ADDRESSBOOK_LIBS!$ADDRESSBOOK_LIBS$ac_delim
27612 EPACKAGE_CFLAGS!$EPACKAGE_CFLAGS$ac_delim
27613 EPACKAGE_LIBS!$EPACKAGE_LIBS$ac_delim
27614 ECAL_CFLAGS!$ECAL_CFLAGS$ac_delim
27615 ECAL_LIBS!$ECAL_LIBS$ac_delim
27616 EBOOK_CFLAGS!$EBOOK_CFLAGS$ac_delim
27617 EBOOK_LIBS!$EBOOK_LIBS$ac_delim
27618 _ACEOF
27619
27620   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27621     break
27622   elif $ac_last_try; then
27623     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27625    { (exit 1); exit 1; }; }
27626   else
27627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27628   fi
27629 done
27630
27631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27632 if test -n "$ac_eof"; then
27633   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27634   ac_eof=`expr $ac_eof + 1`
27635 fi
27636
27637 cat >>$CONFIG_STATUS <<_ACEOF
27638 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27640 _ACEOF
27641 sed '
27642 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27643 s/^/s,@/; s/!/@,|#_!!_#|/
27644 :n
27645 t n
27646 s/'"$ac_delim"'$/,g/; t
27647 s/$/\\/; p
27648 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27649 ' >>$CONFIG_STATUS <conf$$subs.sed
27650 rm -f conf$$subs.sed
27651 cat >>$CONFIG_STATUS <<_ACEOF
27652 CEOF$ac_eof
27653 _ACEOF
27654
27655
27656 ac_delim='%!_!# '
27657 for ac_last_try in false false false false false :; do
27658   cat >conf$$subs.sed <<_ACEOF
27659 ENABLE_ECAL_TRUE!$ENABLE_ECAL_TRUE$ac_delim
27660 ENABLE_ECAL_FALSE!$ENABLE_ECAL_FALSE$ac_delim
27661 FILE_CFLAGS!$FILE_CFLAGS$ac_delim
27662 FILE_LIBS!$FILE_LIBS$ac_delim
27663 SQLITE_CFLAGS!$SQLITE_CFLAGS$ac_delim
27664 SQLITE_LIBS!$SQLITE_LIBS$ac_delim
27665 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
27666 GLIB_LIBS!$GLIB_LIBS$ac_delim
27667 build!$build$ac_delim
27668 build_cpu!$build_cpu$ac_delim
27669 build_vendor!$build_vendor$ac_delim
27670 build_os!$build_os$ac_delim
27671 host!$host$ac_delim
27672 host_cpu!$host_cpu$ac_delim
27673 host_vendor!$host_vendor$ac_delim
27674 host_os!$host_os$ac_delim
27675 SED!$SED$ac_delim
27676 LN_S!$LN_S$ac_delim
27677 ECHO!$ECHO$ac_delim
27678 AR!$AR$ac_delim
27679 RANLIB!$RANLIB$ac_delim
27680 DSYMUTIL!$DSYMUTIL$ac_delim
27681 NMEDIT!$NMEDIT$ac_delim
27682 CXXCPP!$CXXCPP$ac_delim
27683 F77!$F77$ac_delim
27684 FFLAGS!$FFLAGS$ac_delim
27685 ac_ct_F77!$ac_ct_F77$ac_delim
27686 LIBTOOL!$LIBTOOL$ac_delim
27687 ENABLE_MODULES_TRUE!$ENABLE_MODULES_TRUE$ac_delim
27688 ENABLE_MODULES_FALSE!$ENABLE_MODULES_FALSE$ac_delim
27689 SYNCEVOLUTION_LDADD!$SYNCEVOLUTION_LDADD$ac_delim
27690 SYNCEVOLUTION_CXXFLAGS!$SYNCEVOLUTION_CXXFLAGS$ac_delim
27691 ENABLE_EVOLUTION_COMPATIBILITY_TRUE!$ENABLE_EVOLUTION_COMPATIBILITY_TRUE$ac_delim
27692 ENABLE_EVOLUTION_COMPATIBILITY_FALSE!$ENABLE_EVOLUTION_COMPATIBILITY_FALSE$ac_delim
27693 backenddir!$backenddir$ac_delim
27694 backendsearchdir!$backendsearchdir$ac_delim
27695 LIBOBJS!$LIBOBJS$ac_delim
27696 LTLIBOBJS!$LTLIBOBJS$ac_delim
27697 _ACEOF
27698
27699   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 38; then
27700     break
27701   elif $ac_last_try; then
27702     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27703 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27704    { (exit 1); exit 1; }; }
27705   else
27706     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27707   fi
27708 done
27709
27710 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27711 if test -n "$ac_eof"; then
27712   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27713   ac_eof=`expr $ac_eof + 1`
27714 fi
27715
27716 cat >>$CONFIG_STATUS <<_ACEOF
27717 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
27718 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27719 _ACEOF
27720 sed '
27721 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27722 s/^/s,@/; s/!/@,|#_!!_#|/
27723 :n
27724 t n
27725 s/'"$ac_delim"'$/,g/; t
27726 s/$/\\/; p
27727 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27728 ' >>$CONFIG_STATUS <conf$$subs.sed
27729 rm -f conf$$subs.sed
27730 cat >>$CONFIG_STATUS <<_ACEOF
27731 :end
27732 s/|#_!!_#|//g
27733 CEOF$ac_eof
27734 _ACEOF
27735
27736
27737 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27738 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27739 # trailing colons and then remove the whole line if VPATH becomes empty
27740 # (actually we leave an empty line to preserve line numbers).
27741 if test "x$srcdir" = x.; then
27742   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27743 s/:*\$(srcdir):*/:/
27744 s/:*\${srcdir}:*/:/
27745 s/:*@srcdir@:*/:/
27746 s/^\([^=]*=[     ]*\):*/\1/
27747 s/:*$//
27748 s/^[^=]*=[       ]*$//
27749 }'
27750 fi
27751
27752 cat >>$CONFIG_STATUS <<\_ACEOF
27753 fi # test -n "$CONFIG_FILES"
27754
27755
27756 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
27757 do
27758   case $ac_tag in
27759   :[FHLC]) ac_mode=$ac_tag; continue;;
27760   esac
27761   case $ac_mode$ac_tag in
27762   :[FHL]*:*);;
27763   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27764 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27765    { (exit 1); exit 1; }; };;
27766   :[FH]-) ac_tag=-:-;;
27767   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27768   esac
27769   ac_save_IFS=$IFS
27770   IFS=:
27771   set x $ac_tag
27772   IFS=$ac_save_IFS
27773   shift
27774   ac_file=$1
27775   shift
27776
27777   case $ac_mode in
27778   :L) ac_source=$1;;
27779   :[FH])
27780     ac_file_inputs=
27781     for ac_f
27782     do
27783       case $ac_f in
27784       -) ac_f="$tmp/stdin";;
27785       *) # Look for the file first in the build tree, then in the source tree
27786          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27787          # because $ac_f cannot contain `:'.
27788          test -f "$ac_f" ||
27789            case $ac_f in
27790            [\\/$]*) false;;
27791            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27792            esac ||
27793            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27794 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27795    { (exit 1); exit 1; }; };;
27796       esac
27797       ac_file_inputs="$ac_file_inputs $ac_f"
27798     done
27799
27800     # Let's still pretend it is `configure' which instantiates (i.e., don't
27801     # use $as_me), people would be surprised to read:
27802     #    /* config.h.  Generated by config.status.  */
27803     configure_input="Generated from "`IFS=:
27804           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27805     if test x"$ac_file" != x-; then
27806       configure_input="$ac_file.  $configure_input"
27807       { echo "$as_me:$LINENO: creating $ac_file" >&5
27808 echo "$as_me: creating $ac_file" >&6;}
27809     fi
27810
27811     case $ac_tag in
27812     *:-:* | *:-) cat >"$tmp/stdin";;
27813     esac
27814     ;;
27815   esac
27816
27817   ac_dir=`$as_dirname -- "$ac_file" ||
27818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27819          X"$ac_file" : 'X\(//\)[^/]' \| \
27820          X"$ac_file" : 'X\(//\)$' \| \
27821          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27822 echo X"$ac_file" |
27823     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27824             s//\1/
27825             q
27826           }
27827           /^X\(\/\/\)[^/].*/{
27828             s//\1/
27829             q
27830           }
27831           /^X\(\/\/\)$/{
27832             s//\1/
27833             q
27834           }
27835           /^X\(\/\).*/{
27836             s//\1/
27837             q
27838           }
27839           s/.*/./; q'`
27840   { as_dir="$ac_dir"
27841   case $as_dir in #(
27842   -*) as_dir=./$as_dir;;
27843   esac
27844   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27845     as_dirs=
27846     while :; do
27847       case $as_dir in #(
27848       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27849       *) as_qdir=$as_dir;;
27850       esac
27851       as_dirs="'$as_qdir' $as_dirs"
27852       as_dir=`$as_dirname -- "$as_dir" ||
27853 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27854          X"$as_dir" : 'X\(//\)[^/]' \| \
27855          X"$as_dir" : 'X\(//\)$' \| \
27856          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27857 echo X"$as_dir" |
27858     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27859             s//\1/
27860             q
27861           }
27862           /^X\(\/\/\)[^/].*/{
27863             s//\1/
27864             q
27865           }
27866           /^X\(\/\/\)$/{
27867             s//\1/
27868             q
27869           }
27870           /^X\(\/\).*/{
27871             s//\1/
27872             q
27873           }
27874           s/.*/./; q'`
27875       test -d "$as_dir" && break
27876     done
27877     test -z "$as_dirs" || eval "mkdir $as_dirs"
27878   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27879 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27880    { (exit 1); exit 1; }; }; }
27881   ac_builddir=.
27882
27883 case "$ac_dir" in
27884 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27885 *)
27886   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27887   # A ".." for each directory in $ac_dir_suffix.
27888   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27889   case $ac_top_builddir_sub in
27890   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27891   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27892   esac ;;
27893 esac
27894 ac_abs_top_builddir=$ac_pwd
27895 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27896 # for backward compatibility:
27897 ac_top_builddir=$ac_top_build_prefix
27898
27899 case $srcdir in
27900   .)  # We are building in place.
27901     ac_srcdir=.
27902     ac_top_srcdir=$ac_top_builddir_sub
27903     ac_abs_top_srcdir=$ac_pwd ;;
27904   [\\/]* | ?:[\\/]* )  # Absolute name.
27905     ac_srcdir=$srcdir$ac_dir_suffix;
27906     ac_top_srcdir=$srcdir
27907     ac_abs_top_srcdir=$srcdir ;;
27908   *) # Relative name.
27909     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27910     ac_top_srcdir=$ac_top_build_prefix$srcdir
27911     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27912 esac
27913 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27914
27915
27916   case $ac_mode in
27917   :F)
27918   #
27919   # CONFIG_FILE
27920   #
27921
27922   case $INSTALL in
27923   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27924   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27925   esac
27926   ac_MKDIR_P=$MKDIR_P
27927   case $MKDIR_P in
27928   [\\/$]* | ?:[\\/]* ) ;;
27929   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27930   esac
27931 _ACEOF
27932
27933 cat >>$CONFIG_STATUS <<\_ACEOF
27934 # If the template does not know about datarootdir, expand it.
27935 # FIXME: This hack should be removed a few years after 2.60.
27936 ac_datarootdir_hack=; ac_datarootdir_seen=
27937
27938 case `sed -n '/datarootdir/ {
27939   p
27940   q
27941 }
27942 /@datadir@/p
27943 /@docdir@/p
27944 /@infodir@/p
27945 /@localedir@/p
27946 /@mandir@/p
27947 ' $ac_file_inputs` in
27948 *datarootdir*) ac_datarootdir_seen=yes;;
27949 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27950   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27951 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27952 _ACEOF
27953 cat >>$CONFIG_STATUS <<_ACEOF
27954   ac_datarootdir_hack='
27955   s&@datadir@&$datadir&g
27956   s&@docdir@&$docdir&g
27957   s&@infodir@&$infodir&g
27958   s&@localedir@&$localedir&g
27959   s&@mandir@&$mandir&g
27960     s&\\\${datarootdir}&$datarootdir&g' ;;
27961 esac
27962 _ACEOF
27963
27964 # Neutralize VPATH when `$srcdir' = `.'.
27965 # Shell code in configure.ac might set extrasub.
27966 # FIXME: do we really want to maintain this feature?
27967 cat >>$CONFIG_STATUS <<_ACEOF
27968   sed "$ac_vpsub
27969 $extrasub
27970 _ACEOF
27971 cat >>$CONFIG_STATUS <<\_ACEOF
27972 :t
27973 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27974 s&@configure_input@&$configure_input&;t t
27975 s&@top_builddir@&$ac_top_builddir_sub&;t t
27976 s&@srcdir@&$ac_srcdir&;t t
27977 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27978 s&@top_srcdir@&$ac_top_srcdir&;t t
27979 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27980 s&@builddir@&$ac_builddir&;t t
27981 s&@abs_builddir@&$ac_abs_builddir&;t t
27982 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27983 s&@INSTALL@&$ac_INSTALL&;t t
27984 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27985 $ac_datarootdir_hack
27986 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
27987
27988 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27989   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27990   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27991   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27992 which seems to be undefined.  Please make sure it is defined." >&5
27993 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27994 which seems to be undefined.  Please make sure it is defined." >&2;}
27995
27996   rm -f "$tmp/stdin"
27997   case $ac_file in
27998   -) cat "$tmp/out"; rm -f "$tmp/out";;
27999   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28000   esac
28001  ;;
28002   :H)
28003   #
28004   # CONFIG_HEADER
28005   #
28006 _ACEOF
28007
28008 # Transform confdefs.h into a sed script `conftest.defines', that
28009 # substitutes the proper values into config.h.in to produce config.h.
28010 rm -f conftest.defines conftest.tail
28011 # First, append a space to every undef/define line, to ease matching.
28012 echo 's/$/ /' >conftest.defines
28013 # Then, protect against being on the right side of a sed subst, or in
28014 # an unquoted here document, in config.status.  If some macros were
28015 # called several times there might be several #defines for the same
28016 # symbol, which is useless.  But do not sort them, since the last
28017 # AC_DEFINE must be honored.
28018 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28019 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28020 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28021 # PARAMS is the parameter list in the macro definition--in most cases, it's
28022 # just an empty string.
28023 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28024 ac_dB='\\)[      (].*,\\1define\\2'
28025 ac_dC=' '
28026 ac_dD=' ,'
28027
28028 uniq confdefs.h |
28029   sed -n '
28030         t rset
28031         :rset
28032         s/^[     ]*#[    ]*define[       ][      ]*//
28033         t ok
28034         d
28035         :ok
28036         s/[\\&,]/\\&/g
28037         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28038         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28039   ' >>conftest.defines
28040
28041 # Remove the space that was appended to ease matching.
28042 # Then replace #undef with comments.  This is necessary, for
28043 # example, in the case of _POSIX_SOURCE, which is predefined and required
28044 # on some systems where configure will not decide to define it.
28045 # (The regexp can be short, since the line contains either #define or #undef.)
28046 echo 's/ $//
28047 s,^[     #]*u.*,/* & */,' >>conftest.defines
28048
28049 # Break up conftest.defines:
28050 ac_max_sed_lines=50
28051
28052 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28053 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28054 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28055 # et cetera.
28056 ac_in='$ac_file_inputs'
28057 ac_out='"$tmp/out1"'
28058 ac_nxt='"$tmp/out2"'
28059
28060 while :
28061 do
28062   # Write a here document:
28063     cat >>$CONFIG_STATUS <<_ACEOF
28064     # First, check the format of the line:
28065     cat >"\$tmp/defines.sed" <<\\CEOF
28066 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28067 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28068 b
28069 :def
28070 _ACEOF
28071   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28072   echo 'CEOF
28073     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28074   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28075   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28076   grep . conftest.tail >/dev/null || break
28077   rm -f conftest.defines
28078   mv conftest.tail conftest.defines
28079 done
28080 rm -f conftest.defines conftest.tail
28081
28082 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28083 cat >>$CONFIG_STATUS <<\_ACEOF
28084   if test x"$ac_file" != x-; then
28085     echo "/* $configure_input  */" >"$tmp/config.h"
28086     cat "$ac_result" >>"$tmp/config.h"
28087     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28088       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28089 echo "$as_me: $ac_file is unchanged" >&6;}
28090     else
28091       rm -f $ac_file
28092       mv "$tmp/config.h" $ac_file
28093     fi
28094   else
28095     echo "/* $configure_input  */"
28096     cat "$ac_result"
28097   fi
28098   rm -f "$tmp/out12"
28099 # Compute $ac_file's index in $config_headers.
28100 _am_arg=$ac_file
28101 _am_stamp_count=1
28102 for _am_header in $config_headers :; do
28103   case $_am_header in
28104     $_am_arg | $_am_arg:* )
28105       break ;;
28106     * )
28107       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28108   esac
28109 done
28110 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28111 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28112          X"$_am_arg" : 'X\(//\)[^/]' \| \
28113          X"$_am_arg" : 'X\(//\)$' \| \
28114          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28115 echo X"$_am_arg" |
28116     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28117             s//\1/
28118             q
28119           }
28120           /^X\(\/\/\)[^/].*/{
28121             s//\1/
28122             q
28123           }
28124           /^X\(\/\/\)$/{
28125             s//\1/
28126             q
28127           }
28128           /^X\(\/\).*/{
28129             s//\1/
28130             q
28131           }
28132           s/.*/./; q'`/stamp-h$_am_stamp_count
28133  ;;
28134
28135   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28136 echo "$as_me: executing $ac_file commands" >&6;}
28137  ;;
28138   esac
28139
28140
28141   case $ac_file$ac_mode in
28142     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28143   # Strip MF so we end up with the name of the file.
28144   mf=`echo "$mf" | sed -e 's/:.*$//'`
28145   # Check whether this is an Automake generated Makefile or not.
28146   # We used to match only the files named `Makefile.in', but
28147   # some people rename them; so instead we look at the file content.
28148   # Grep'ing the first line is not enough: some people post-process
28149   # each Makefile.in and add a new line on top of each file to say so.
28150   # Grep'ing the whole file is not good either: AIX grep has a line
28151   # limit of 2048, but all sed's we know have understand at least 4000.
28152   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28153     dirpart=`$as_dirname -- "$mf" ||
28154 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28155          X"$mf" : 'X\(//\)[^/]' \| \
28156          X"$mf" : 'X\(//\)$' \| \
28157          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28158 echo X"$mf" |
28159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28160             s//\1/
28161             q
28162           }
28163           /^X\(\/\/\)[^/].*/{
28164             s//\1/
28165             q
28166           }
28167           /^X\(\/\/\)$/{
28168             s//\1/
28169             q
28170           }
28171           /^X\(\/\).*/{
28172             s//\1/
28173             q
28174           }
28175           s/.*/./; q'`
28176   else
28177     continue
28178   fi
28179   # Extract the definition of DEPDIR, am__include, and am__quote
28180   # from the Makefile without running `make'.
28181   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28182   test -z "$DEPDIR" && continue
28183   am__include=`sed -n 's/^am__include = //p' < "$mf"`
28184   test -z "am__include" && continue
28185   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28186   # When using ansi2knr, U may be empty or an underscore; expand it
28187   U=`sed -n 's/^U = //p' < "$mf"`
28188   # Find all dependency output files, they are included files with
28189   # $(DEPDIR) in their names.  We invoke sed twice because it is the
28190   # simplest approach to changing $(DEPDIR) to its actual value in the
28191   # expansion.
28192   for file in `sed -n "
28193     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28194        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28195     # Make sure the directory exists.
28196     test -f "$dirpart/$file" && continue
28197     fdir=`$as_dirname -- "$file" ||
28198 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28199          X"$file" : 'X\(//\)[^/]' \| \
28200          X"$file" : 'X\(//\)$' \| \
28201          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28202 echo X"$file" |
28203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28204             s//\1/
28205             q
28206           }
28207           /^X\(\/\/\)[^/].*/{
28208             s//\1/
28209             q
28210           }
28211           /^X\(\/\/\)$/{
28212             s//\1/
28213             q
28214           }
28215           /^X\(\/\).*/{
28216             s//\1/
28217             q
28218           }
28219           s/.*/./; q'`
28220     { as_dir=$dirpart/$fdir
28221   case $as_dir in #(
28222   -*) as_dir=./$as_dir;;
28223   esac
28224   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
28225     as_dirs=
28226     while :; do
28227       case $as_dir in #(
28228       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28229       *) as_qdir=$as_dir;;
28230       esac
28231       as_dirs="'$as_qdir' $as_dirs"
28232       as_dir=`$as_dirname -- "$as_dir" ||
28233 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28234          X"$as_dir" : 'X\(//\)[^/]' \| \
28235          X"$as_dir" : 'X\(//\)$' \| \
28236          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28237 echo X"$as_dir" |
28238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28239             s//\1/
28240             q
28241           }
28242           /^X\(\/\/\)[^/].*/{
28243             s//\1/
28244             q
28245           }
28246           /^X\(\/\/\)$/{
28247             s//\1/
28248             q
28249           }
28250           /^X\(\/\).*/{
28251             s//\1/
28252             q
28253           }
28254           s/.*/./; q'`
28255       test -d "$as_dir" && break
28256     done
28257     test -z "$as_dirs" || eval "mkdir $as_dirs"
28258   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28259 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28260    { (exit 1); exit 1; }; }; }
28261     # echo "creating $dirpart/$file"
28262     echo '# dummy' > "$dirpart/$file"
28263   done
28264 done
28265  ;;
28266     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
28267         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
28268       esac ;;
28269     "po/stamp-it":C)
28270     if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
28271        { { echo "$as_me:$LINENO: error: po/Makefile.in.in was not created by intltoolize." >&5
28272 echo "$as_me: error: po/Makefile.in.in was not created by intltoolize." >&2;}
28273    { (exit 1); exit 1; }; }
28274     fi
28275     rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
28276     >"po/stamp-it.tmp"
28277     sed '/^#/d
28278          s/^[[].*] *//
28279          /^[    ]*$/d
28280         '"s|^|  $ac_top_srcdir/|" \
28281       "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
28282
28283     sed '/^POTFILES =/,/[^\\]$/ {
28284                 /^POTFILES =/!d
28285                 r po/POTFILES
28286           }
28287          ' "po/Makefile.in" >"po/Makefile"
28288     rm -f "po/Makefile.tmp"
28289     mv "po/stamp-it.tmp" "po/stamp-it"
28290    ;;
28291
28292   esac
28293 done # for ac_tag
28294
28295
28296 { (exit 0); exit 0; }
28297 _ACEOF
28298 chmod +x $CONFIG_STATUS
28299 ac_clean_files=$ac_clean_files_save
28300
28301
28302 # configure is writing to config.log, and then calls config.status.
28303 # config.status does its own redirection, appending to config.log.
28304 # Unfortunately, on DOS this fails, as config.log is still kept open
28305 # by configure, so config.status won't be able to write to it; its
28306 # output is simply discarded.  So we exec the FD to /dev/null,
28307 # effectively closing config.log, so it can be properly (re)opened and
28308 # appended to by config.status.  When coming back to configure, we
28309 # need to make the FD available again.
28310 if test "$no_create" != yes; then
28311   ac_cs_success=:
28312   ac_config_status_args=
28313   test "$silent" = yes &&
28314     ac_config_status_args="$ac_config_status_args --quiet"
28315   exec 5>/dev/null
28316   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28317   exec 5>>config.log
28318   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28319   # would make configure fail if this is the last instruction.
28320   $ac_cs_success || { (exit 1); exit 1; }
28321 fi
28322
28323
28324 echo
28325 echo CONFIGURATION SUMMARY
28326 for backend in $BACKENDS; do
28327     eval echo $backend: \${enable_${backend}}
28328 done
28329 echo "DBus service: $enable_dbus_service"
28330 echo "UI (DBus client): $enable_gui"
28331 echo