Fix Makefile.am not to build GTK setup module.
[framework/uifw/ise-engine-hangul.git] / skim / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597        echo_test_string="`eval $cmd`" &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="acinclude.m4"
734 ac_default_prefix=${KDEDIR:-the kde prefix}
735 # Factoring default headers for most tests.
736 ac_includes_default="\
737 #include <stdio.h>
738 #ifdef HAVE_SYS_TYPES_H
739 # include <sys/types.h>
740 #endif
741 #ifdef HAVE_SYS_STAT_H
742 # include <sys/stat.h>
743 #endif
744 #ifdef STDC_HEADERS
745 # include <stdlib.h>
746 # include <stddef.h>
747 #else
748 # ifdef HAVE_STDLIB_H
749 #  include <stdlib.h>
750 # endif
751 #endif
752 #ifdef HAVE_STRING_H
753 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754 #  include <memory.h>
755 # endif
756 # include <string.h>
757 #endif
758 #ifdef HAVE_STRINGS_H
759 # include <strings.h>
760 #endif
761 #ifdef HAVE_INTTYPES_H
762 # include <inttypes.h>
763 #endif
764 #ifdef HAVE_STDINT_H
765 # include <stdint.h>
766 #endif
767 #ifdef HAVE_UNISTD_H
768 # include <unistd.h>
769 #endif"
770
771 gt_needs=
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 KDECONFIG
843 kde_libs_prefix
844 kde_libs_htmldir
845 CONF_FILES
846 CC
847 CFLAGS
848 LDFLAGS
849 CPPFLAGS
850 ac_ct_CC
851 EXEEXT
852 OBJEXT
853 DEPDIR
854 am__include
855 am__quote
856 AMDEP_TRUE
857 AMDEP_FALSE
858 AMDEPBACKSLASH
859 CCDEPMODE
860 am__fastdepCC_TRUE
861 am__fastdepCC_FALSE
862 CPP
863 CXX
864 CXXFLAGS
865 ac_ct_CXX
866 CXXDEPMODE
867 am__fastdepCXX_TRUE
868 am__fastdepCXX_FALSE
869 WOVERLOADED_VIRTUAL
870 HAVE_GCC_VISIBILITY
871 unsermake_enable_pch_TRUE
872 unsermake_enable_pch_FALSE
873 USE_EXCEPTIONS
874 USE_RTTI
875 CXXCPP
876 NOOPT_CXXFLAGS
877 NOOPT_CFLAGS
878 ENABLE_PERMISSIVE_FLAG
879 LDFLAGS_AS_NEEDED
880 LDFLAGS_NEW_DTAGS
881 KDE_USE_FINAL_TRUE
882 KDE_USE_FINAL_FALSE
883 KDE_USE_CLOSURE_TRUE
884 KDE_USE_CLOSURE_FALSE
885 KDE_NO_UNDEFINED
886 KDE_USE_NMCHECK_TRUE
887 KDE_USE_NMCHECK_FALSE
888 GREP
889 EGREP
890 LN_S
891 ECHO
892 AR
893 RANLIB
894 F77
895 FFLAGS
896 ac_ct_F77
897 LIBTOOL
898 KDE_PLUGIN
899 MSGFMT
900 GMSGFMT
901 XGETTEXT
902 LIBUTIL
903 LIBCOMPAT
904 LIBCRYPT
905 LIBRESOLV
906 LIB_POLL
907 FRAMEWORK_COREAUDIO
908 LIBSOCKET
909 X_EXTRA_LIBS
910 LIBUCB
911 LIBDL
912 include_x11_TRUE
913 include_x11_FALSE
914 XMKMF
915 X_PRE_LIBS
916 LIB_X11
917 LIB_XRENDER
918 LIBSM
919 X_INCLUDES
920 X_LDFLAGS
921 x_includes
922 x_libraries
923 QTE_NORTTI
924 LIB_XEXT
925 LIBPTHREAD
926 USE_THREADS
927 KDE_MT_LDFLAGS
928 KDE_MT_LIBS
929 USER_INCLUDES
930 USER_LDFLAGS
931 LIBZ
932 LIBPNG
933 LIBJPEG
934 qt_libraries
935 qt_includes
936 QT_INCLUDES
937 QT_LDFLAGS
938 PERL
939 MOC
940 UIC
941 UIC_TR
942 LIB_QT
943 LIB_QPE
944 kde_qtver
945 KDE_EXTRA_RPATH
946 KDE_RPATH
947 X_RPATH
948 kde_libraries
949 kde_includes
950 KDE_LDFLAGS
951 KDE_INCLUDES
952 all_includes
953 all_libraries
954 AUTODIRS
955 include_ARTS_TRUE
956 include_ARTS_FALSE
957 MAKEKDEWIDGETS
958 KCONFIG_COMPILER
959 KCFG_DEPENDENCIES
960 DCOPIDLNG
961 DCOPIDL
962 DCOPIDL2CPP
963 DCOP_DEPENDENCIES
964 MCOPIDL
965 ARTSCCONFIG
966 MEINPROC
967 KDE_XSL_STYLESHEET
968 XMLLINT
969 kde_htmldir
970 kde_appsdir
971 kde_icondir
972 kde_sounddir
973 kde_datadir
974 kde_locale
975 kde_confdir
976 kde_kcfgdir
977 kde_mimedir
978 kde_wallpaperdir
979 kde_bindir
980 xdg_appsdir
981 xdg_menudir
982 xdg_directorydir
983 kde_templatesdir
984 kde_servicesdir
985 kde_servicetypesdir
986 kde_moduledir
987 kdeinitdir
988 kde_styledir
989 kde_widgetdir
990 LIB_KDECORE
991 LIB_KDEUI
992 LIB_KIO
993 LIB_KJS
994 LIB_SMB
995 LIB_KAB
996 LIB_KABC
997 LIB_KHTML
998 LIB_KSPELL
999 LIB_KPARTS
1000 LIB_KDEPRINT
1001 LIB_KUTILS
1002 LIB_KDEPIM
1003 LIB_KIMPROXY
1004 LIB_KNEWSTUFF
1005 LIB_KDNSSD
1006 LIB_KSYCOCA
1007 LIB_KFILE
1008 LIB_KFM
1009 PKG_CONFIG
1010 SCIM_CFLAGS
1011 SCIM_LIBS
1012 REQUIRED_KDE_VERSION
1013 REQUIRED_SCIM_VERSION
1014 USE_NLS
1015 MSGFMT_015
1016 GMSGFMT_015
1017 XGETTEXT_015
1018 MSGMERGE
1019 INTL_MACOSX_LIBS
1020 LIBICONV
1021 LTLIBICONV
1022 INTLLIBS
1023 LIBINTL
1024 LTLIBINTL
1025 POSUB
1026 SKIM_CFLAGS
1027 SKIM_LIBS
1028 SCIM_KDEUTILS_CFLAGS
1029 SCIM_KDEUTILS_LIBS
1030 skim_prefix
1031 skim_libdir
1032 TOPSUBDIRS
1033 LIBOBJS
1034 LTLIBOBJS'
1035 ac_subst_files=''
1036       ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1039 CC
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1044 CPP
1045 CXX
1046 CXXFLAGS
1047 CCC
1048 CXXCPP
1049 F77
1050 FFLAGS
1051 XMKMF
1052 PKG_CONFIG
1053 SCIM_CFLAGS
1054 SCIM_LIBS
1055 SKIM_CFLAGS
1056 SKIM_LIBS
1057 SCIM_KDEUTILS_CFLAGS
1058 SCIM_KDEUTILS_LIBS'
1059
1060
1061 # Initialize some variables set by options.
1062 ac_init_help=
1063 ac_init_version=false
1064 # The variables have the same names as the options, with
1065 # dashes changed to underlines.
1066 cache_file=/dev/null
1067 exec_prefix=NONE
1068 no_create=
1069 no_recursion=
1070 prefix=NONE
1071 program_prefix=NONE
1072 program_suffix=NONE
1073 program_transform_name=s,x,x,
1074 silent=
1075 site=
1076 srcdir=
1077 verbose=
1078 x_includes=NONE
1079 x_libraries=NONE
1080
1081 # Installation directory options.
1082 # These are left unexpanded so users can "make install exec_prefix=/foo"
1083 # and all the variables that are supposed to be based on exec_prefix
1084 # by default will actually change.
1085 # Use braces instead of parens because sh, perl, etc. also accept them.
1086 # (The list follows the same order as the GNU Coding Standards.)
1087 bindir='${exec_prefix}/bin'
1088 sbindir='${exec_prefix}/sbin'
1089 libexecdir='${exec_prefix}/libexec'
1090 datarootdir='${prefix}/share'
1091 datadir='${datarootdir}'
1092 sysconfdir='${prefix}/etc'
1093 sharedstatedir='${prefix}/com'
1094 localstatedir='${prefix}/var'
1095 includedir='${prefix}/include'
1096 oldincludedir='/usr/include'
1097 docdir='${datarootdir}/doc/${PACKAGE}'
1098 infodir='${datarootdir}/info'
1099 htmldir='${docdir}'
1100 dvidir='${docdir}'
1101 pdfdir='${docdir}'
1102 psdir='${docdir}'
1103 libdir='${exec_prefix}/lib'
1104 localedir='${datarootdir}/locale'
1105 mandir='${datarootdir}/man'
1106
1107 ac_prev=
1108 ac_dashdash=
1109 for ac_option
1110 do
1111   # If the previous option needs an argument, assign it.
1112   if test -n "$ac_prev"; then
1113     eval $ac_prev=\$ac_option
1114     ac_prev=
1115     continue
1116   fi
1117
1118   case $ac_option in
1119   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1120   *)    ac_optarg=yes ;;
1121   esac
1122
1123   # Accept the important Cygnus configure options, so we can diagnose typos.
1124
1125   case $ac_dashdash$ac_option in
1126   --)
1127     ac_dashdash=yes ;;
1128
1129   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1130     ac_prev=bindir ;;
1131   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1132     bindir=$ac_optarg ;;
1133
1134   -build | --build | --buil | --bui | --bu)
1135     ac_prev=build_alias ;;
1136   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1137     build_alias=$ac_optarg ;;
1138
1139   -cache-file | --cache-file | --cache-fil | --cache-fi \
1140   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1141     ac_prev=cache_file ;;
1142   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1143   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1144     cache_file=$ac_optarg ;;
1145
1146   --config-cache | -C)
1147     cache_file=config.cache ;;
1148
1149   -datadir | --datadir | --datadi | --datad)
1150     ac_prev=datadir ;;
1151   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1152     datadir=$ac_optarg ;;
1153
1154   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1155   | --dataroo | --dataro | --datar)
1156     ac_prev=datarootdir ;;
1157   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1158   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1159     datarootdir=$ac_optarg ;;
1160
1161   -disable-* | --disable-*)
1162     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1166    { (exit 1); exit 1; }; }
1167     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1168     eval enable_$ac_feature=no ;;
1169
1170   -docdir | --docdir | --docdi | --doc | --do)
1171     ac_prev=docdir ;;
1172   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1173     docdir=$ac_optarg ;;
1174
1175   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1176     ac_prev=dvidir ;;
1177   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1178     dvidir=$ac_optarg ;;
1179
1180   -enable-* | --enable-*)
1181     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1185    { (exit 1); exit 1; }; }
1186     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1187     eval enable_$ac_feature=\$ac_optarg ;;
1188
1189   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1190   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1191   | --exec | --exe | --ex)
1192     ac_prev=exec_prefix ;;
1193   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1194   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1195   | --exec=* | --exe=* | --ex=*)
1196     exec_prefix=$ac_optarg ;;
1197
1198   -gas | --gas | --ga | --g)
1199     # Obsolete; use --with-gas.
1200     with_gas=yes ;;
1201
1202   -help | --help | --hel | --he | -h)
1203     ac_init_help=long ;;
1204   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1205     ac_init_help=recursive ;;
1206   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1207     ac_init_help=short ;;
1208
1209   -host | --host | --hos | --ho)
1210     ac_prev=host_alias ;;
1211   -host=* | --host=* | --hos=* | --ho=*)
1212     host_alias=$ac_optarg ;;
1213
1214   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1215     ac_prev=htmldir ;;
1216   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1217   | --ht=*)
1218     htmldir=$ac_optarg ;;
1219
1220   -includedir | --includedir | --includedi | --included | --include \
1221   | --includ | --inclu | --incl | --inc)
1222     ac_prev=includedir ;;
1223   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1224   | --includ=* | --inclu=* | --incl=* | --inc=*)
1225     includedir=$ac_optarg ;;
1226
1227   -infodir | --infodir | --infodi | --infod | --info | --inf)
1228     ac_prev=infodir ;;
1229   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1230     infodir=$ac_optarg ;;
1231
1232   -libdir | --libdir | --libdi | --libd)
1233     ac_prev=libdir ;;
1234   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1235     libdir=$ac_optarg ;;
1236
1237   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1238   | --libexe | --libex | --libe)
1239     ac_prev=libexecdir ;;
1240   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1241   | --libexe=* | --libex=* | --libe=*)
1242     libexecdir=$ac_optarg ;;
1243
1244   -localedir | --localedir | --localedi | --localed | --locale)
1245     ac_prev=localedir ;;
1246   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1247     localedir=$ac_optarg ;;
1248
1249   -localstatedir | --localstatedir | --localstatedi | --localstated \
1250   | --localstate | --localstat | --localsta | --localst | --locals)
1251     ac_prev=localstatedir ;;
1252   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1253   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1254     localstatedir=$ac_optarg ;;
1255
1256   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1257     ac_prev=mandir ;;
1258   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1259     mandir=$ac_optarg ;;
1260
1261   -nfp | --nfp | --nf)
1262     # Obsolete; use --without-fp.
1263     with_fp=no ;;
1264
1265   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1266   | --no-cr | --no-c | -n)
1267     no_create=yes ;;
1268
1269   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1270   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1271     no_recursion=yes ;;
1272
1273   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1274   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1275   | --oldin | --oldi | --old | --ol | --o)
1276     ac_prev=oldincludedir ;;
1277   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1278   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1279   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1280     oldincludedir=$ac_optarg ;;
1281
1282   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1283     ac_prev=prefix ;;
1284   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1285     prefix=$ac_optarg ;;
1286
1287   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1288   | --program-pre | --program-pr | --program-p)
1289     ac_prev=program_prefix ;;
1290   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1291   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1292     program_prefix=$ac_optarg ;;
1293
1294   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1295   | --program-suf | --program-su | --program-s)
1296     ac_prev=program_suffix ;;
1297   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1298   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1299     program_suffix=$ac_optarg ;;
1300
1301   -program-transform-name | --program-transform-name \
1302   | --program-transform-nam | --program-transform-na \
1303   | --program-transform-n | --program-transform- \
1304   | --program-transform | --program-transfor \
1305   | --program-transfo | --program-transf \
1306   | --program-trans | --program-tran \
1307   | --progr-tra | --program-tr | --program-t)
1308     ac_prev=program_transform_name ;;
1309   -program-transform-name=* | --program-transform-name=* \
1310   | --program-transform-nam=* | --program-transform-na=* \
1311   | --program-transform-n=* | --program-transform-=* \
1312   | --program-transform=* | --program-transfor=* \
1313   | --program-transfo=* | --program-transf=* \
1314   | --program-trans=* | --program-tran=* \
1315   | --progr-tra=* | --program-tr=* | --program-t=*)
1316     program_transform_name=$ac_optarg ;;
1317
1318   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1319     ac_prev=pdfdir ;;
1320   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1321     pdfdir=$ac_optarg ;;
1322
1323   -psdir | --psdir | --psdi | --psd | --ps)
1324     ac_prev=psdir ;;
1325   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1326     psdir=$ac_optarg ;;
1327
1328   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1329   | -silent | --silent | --silen | --sile | --sil)
1330     silent=yes ;;
1331
1332   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1333     ac_prev=sbindir ;;
1334   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1335   | --sbi=* | --sb=*)
1336     sbindir=$ac_optarg ;;
1337
1338   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1339   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1340   | --sharedst | --shareds | --shared | --share | --shar \
1341   | --sha | --sh)
1342     ac_prev=sharedstatedir ;;
1343   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1344   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1345   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1346   | --sha=* | --sh=*)
1347     sharedstatedir=$ac_optarg ;;
1348
1349   -site | --site | --sit)
1350     ac_prev=site ;;
1351   -site=* | --site=* | --sit=*)
1352     site=$ac_optarg ;;
1353
1354   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1355     ac_prev=srcdir ;;
1356   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1357     srcdir=$ac_optarg ;;
1358
1359   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1360   | --syscon | --sysco | --sysc | --sys | --sy)
1361     ac_prev=sysconfdir ;;
1362   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1363   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1364     sysconfdir=$ac_optarg ;;
1365
1366   -target | --target | --targe | --targ | --tar | --ta | --t)
1367     ac_prev=target_alias ;;
1368   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1369     target_alias=$ac_optarg ;;
1370
1371   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1372     verbose=yes ;;
1373
1374   -version | --version | --versio | --versi | --vers | -V)
1375     ac_init_version=: ;;
1376
1377   -with-* | --with-*)
1378     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1379     # Reject names that are not valid shell variable names.
1380     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1381       { echo "$as_me: error: invalid package name: $ac_package" >&2
1382    { (exit 1); exit 1; }; }
1383     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1384     eval with_$ac_package=\$ac_optarg ;;
1385
1386   -without-* | --without-*)
1387     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1388     # Reject names that are not valid shell variable names.
1389     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390       { echo "$as_me: error: invalid package name: $ac_package" >&2
1391    { (exit 1); exit 1; }; }
1392     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1393     eval with_$ac_package=no ;;
1394
1395   --x)
1396     # Obsolete; use --with-x.
1397     with_x=yes ;;
1398
1399   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1400   | --x-incl | --x-inc | --x-in | --x-i)
1401     ac_prev=x_includes ;;
1402   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1403   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1404     x_includes=$ac_optarg ;;
1405
1406   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1407   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1408     ac_prev=x_libraries ;;
1409   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1410   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1411     x_libraries=$ac_optarg ;;
1412
1413   -*) { echo "$as_me: error: unrecognized option: $ac_option
1414 Try \`$0 --help' for more information." >&2
1415    { (exit 1); exit 1; }; }
1416     ;;
1417
1418   *=*)
1419     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1420     # Reject names that are not valid shell variable names.
1421     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1422       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1423    { (exit 1); exit 1; }; }
1424     eval $ac_envvar=\$ac_optarg
1425     export $ac_envvar ;;
1426
1427   *)
1428     # FIXME: should be removed in autoconf 3.0.
1429     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1430     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1431       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1432     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1433     ;;
1434
1435   esac
1436 done
1437
1438 if test -n "$ac_prev"; then
1439   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1440   { echo "$as_me: error: missing argument to $ac_option" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443
1444 # Be sure to have absolute directory names.
1445 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1446                 datadir sysconfdir sharedstatedir localstatedir includedir \
1447                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1448                 libdir localedir mandir
1449 do
1450   eval ac_val=\$$ac_var
1451   case $ac_val in
1452     [\\/$]* | ?:[\\/]* )  continue;;
1453     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454   esac
1455   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1456    { (exit 1); exit 1; }; }
1457 done
1458
1459 # There might be people who depend on the old broken behavior: `$host'
1460 # used to hold the argument of --host etc.
1461 # FIXME: To remove some day.
1462 build=$build_alias
1463 host=$host_alias
1464 target=$target_alias
1465
1466 # FIXME: To remove some day.
1467 if test "x$host_alias" != x; then
1468   if test "x$build_alias" = x; then
1469     cross_compiling=maybe
1470     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1471     If a cross compiler is detected then cross compile mode will be used." >&2
1472   elif test "x$build_alias" != "x$host_alias"; then
1473     cross_compiling=yes
1474   fi
1475 fi
1476
1477 ac_tool_prefix=
1478 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1479
1480 test "$silent" = yes && exec 6>/dev/null
1481
1482
1483 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1484 ac_ls_di=`ls -di .` &&
1485 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1486   { echo "$as_me: error: Working directory cannot be determined" >&2
1487    { (exit 1); exit 1; }; }
1488 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1489   { echo "$as_me: error: pwd does not report name of working directory" >&2
1490    { (exit 1); exit 1; }; }
1491
1492
1493 # Find the source files, if location was not specified.
1494 if test -z "$srcdir"; then
1495   ac_srcdir_defaulted=yes
1496   # Try the directory containing this script, then the parent directory.
1497   ac_confdir=`$as_dirname -- "$0" ||
1498 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1499          X"$0" : 'X\(//\)[^/]' \| \
1500          X"$0" : 'X\(//\)$' \| \
1501          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1502 echo X"$0" |
1503     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504             s//\1/
1505             q
1506           }
1507           /^X\(\/\/\)[^/].*/{
1508             s//\1/
1509             q
1510           }
1511           /^X\(\/\/\)$/{
1512             s//\1/
1513             q
1514           }
1515           /^X\(\/\).*/{
1516             s//\1/
1517             q
1518           }
1519           s/.*/./; q'`
1520   srcdir=$ac_confdir
1521   if test ! -r "$srcdir/$ac_unique_file"; then
1522     srcdir=..
1523   fi
1524 else
1525   ac_srcdir_defaulted=no
1526 fi
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1529   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1530    { (exit 1); exit 1; }; }
1531 fi
1532 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1533 ac_abs_confdir=`(
1534         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1535    { (exit 1); exit 1; }; }
1536         pwd)`
1537 # When building in place, set srcdir=.
1538 if test "$ac_abs_confdir" = "$ac_pwd"; then
1539   srcdir=.
1540 fi
1541 # Remove unnecessary trailing slashes from srcdir.
1542 # Double slashes in file names in object file debugging info
1543 # mess up M-x gdb in Emacs.
1544 case $srcdir in
1545 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1546 esac
1547 for ac_var in $ac_precious_vars; do
1548   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_env_${ac_var}_value=\$${ac_var}
1550   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1551   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1552 done
1553
1554 #
1555 # Report the --help message.
1556 #
1557 if test "$ac_init_help" = "long"; then
1558   # Omit some internal or obsolete options to make the list less imposing.
1559   # This message is too long to be a string in the A/UX 3.1 sh.
1560   cat <<_ACEOF
1561 \`configure' configures this package to adapt to many kinds of systems.
1562
1563 Usage: $0 [OPTION]... [VAR=VALUE]...
1564
1565 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1566 VAR=VALUE.  See below for descriptions of some of the useful variables.
1567
1568 Defaults for the options are specified in brackets.
1569
1570 Configuration:
1571   -h, --help              display this help and exit
1572       --help=short        display options specific to this package
1573       --help=recursive    display the short help of all the included packages
1574   -V, --version           display version information and exit
1575   -q, --quiet, --silent   do not print \`checking...' messages
1576       --cache-file=FILE   cache test results in FILE [disabled]
1577   -C, --config-cache      alias for \`--cache-file=config.cache'
1578   -n, --no-create         do not create output files
1579       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1580
1581 Installation directories:
1582   --prefix=PREFIX         install architecture-independent files in PREFIX
1583                           [$ac_default_prefix]
1584   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1585                           [PREFIX]
1586
1587 By default, \`make install' will install all the files in
1588 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1589 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1590 for instance \`--prefix=\$HOME'.
1591
1592 For better control, use the options below.
1593
1594 Fine tuning of the installation directories:
1595   --bindir=DIR           user executables [EPREFIX/bin]
1596   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1597   --libexecdir=DIR       program executables [EPREFIX/libexec]
1598   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1599   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1600   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1601   --libdir=DIR           object code libraries [EPREFIX/lib]
1602   --includedir=DIR       C header files [PREFIX/include]
1603   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1604   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1605   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1606   --infodir=DIR          info documentation [DATAROOTDIR/info]
1607   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1608   --mandir=DIR           man documentation [DATAROOTDIR/man]
1609   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1610   --htmldir=DIR          html documentation [DOCDIR]
1611   --dvidir=DIR           dvi documentation [DOCDIR]
1612   --pdfdir=DIR           pdf documentation [DOCDIR]
1613   --psdir=DIR            ps documentation [DOCDIR]
1614 _ACEOF
1615
1616   cat <<\_ACEOF
1617
1618 Program names:
1619   --program-prefix=PREFIX            prepend PREFIX to installed program names
1620   --program-suffix=SUFFIX            append SUFFIX to installed program names
1621   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1622
1623 System types:
1624   --build=BUILD     configure for building on BUILD [guessed]
1625   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1626   --target=TARGET   configure for building compilers for TARGET [HOST]
1627 _ACEOF
1628 fi
1629
1630 if test -n "$ac_init_help"; then
1631
1632   cat <<\_ACEOF
1633
1634 Optional Features:
1635   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1636   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1637   --disable-fast-perl     disable fast Makefile generation (needs perl)
1638   --enable-debug=ARG      enables debug symbols (yes|no|full) default=no
1639   --disable-debug         disables debug output and debug symbols default=no
1640   --enable-strict         compiles with strict compiler options (may not
1641                           work!)
1642   --disable-warnings      disables compilation with -Wall and similar
1643   --enable-profile        creates profiling infos default=no
1644   --disable-dependency-tracking  speeds up one-time build
1645   --enable-dependency-tracking   do not reject slow dependency extractors
1646   --enable-pch            enables precompiled header support (currently only
1647                           KCC or gcc >=3.4+unsermake) default=no
1648   --enable-coverage       use gcc coverage testing
1649   --enable-new-ldflags    enable the new linker flags
1650   --enable-final          build size optimized apps (experimental - needs lots
1651                           of memory)
1652   --enable-closure        delay template instantiation
1653   --enable-nmcheck        enable automatic namespace cleanness check
1654   --enable-shared[=PKGS]  build shared libraries [default=yes]
1655   --enable-static[=PKGS]  build static libraries [default=no]
1656   --enable-libsuffix      /lib directory suffix (64,32,none=default)
1657   --enable-fast-install[=PKGS]
1658                           optimize for fast installation [default=yes]
1659   --disable-libtool-lock  avoid locking (might break parallel builds)
1660   --enable-embedded       link to Qt-embedded, don't use X
1661   --enable-qtopia         link to Qt-embedded, link to the Qtopia Environment
1662   --enable-mac            link to Qt/Mac (don't use X)
1663   --disable-mt            link to non-threaded Qt (deprecated)
1664   --disable-threading     disables threading even if libpthread found
1665   --disable-rpath         do not use the rpath feature of ld
1666   --disable-path-check    don't try to find out, where to install
1667   --disable-nls           do not use Native Language Support
1668   --disable-rpath         do not hardcode runtime library paths
1669   --enable-scim-debug            Turn on debugging
1670
1671 Optional Packages:
1672   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1673   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1674   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1675   --with-pic              try to use only PIC/non-PIC objects [default=use
1676                           both]
1677   --with-tags[=TAGS]      include additional configurations [automatic]
1678   --with-extra-includes=DIR
1679                           adds non standard include paths
1680   --with-extra-libs=DIR   adds non standard library paths
1681   --with-qt-dir=DIR       where the root of Qt is installed
1682   --with-qt-includes=DIR  where the Qt includes are.
1683   --with-qt-libraries=DIR where the Qt library is installed.
1684   --without-arts          build without aRts default=no
1685   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1686   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1687   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1688   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1689   --without-libintl-prefix     don't search for libintl in includedir and libdir
1690
1691 Some influential environment variables:
1692   CC          C compiler command
1693   CFLAGS      C compiler flags
1694   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1695               nonstandard directory <lib dir>
1696   LIBS        libraries to pass to the linker, e.g. -l<library>
1697   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698               you have headers in a nonstandard directory <include dir>
1699   CPP         C preprocessor
1700   CXX         C++ compiler command
1701   CXXFLAGS    C++ compiler flags
1702   CXXCPP      C++ preprocessor
1703   F77         Fortran 77 compiler command
1704   FFLAGS      Fortran 77 compiler flags
1705   XMKMF       Path to xmkmf, Makefile generator for X Window System
1706   PKG_CONFIG  path to pkg-config utility
1707   SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1708   SCIM_LIBS   linker flags for SCIM, overriding pkg-config
1709   SKIM_CFLAGS C compiler flags for SKIM, overriding pkg-config
1710   SKIM_LIBS   linker flags for SKIM, overriding pkg-config
1711   SCIM_KDEUTILS_CFLAGS
1712               C compiler flags for SCIM_KDEUTILS, overriding pkg-config
1713   SCIM_KDEUTILS_LIBS
1714               linker flags for SCIM_KDEUTILS, overriding pkg-config
1715
1716 Use these variables to override the choices made by `configure' or to help
1717 it to find libraries and programs with nonstandard names/locations.
1718
1719 _ACEOF
1720 ac_status=$?
1721 fi
1722
1723 if test "$ac_init_help" = "recursive"; then
1724   # If there are subdirs, report their specific --help.
1725   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726     test -d "$ac_dir" || continue
1727     ac_builddir=.
1728
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *)
1732   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1733   # A ".." for each directory in $ac_dir_suffix.
1734   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1735   case $ac_top_builddir_sub in
1736   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738   esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1744
1745 case $srcdir in
1746   .)  # We are building in place.
1747     ac_srcdir=.
1748     ac_top_srcdir=$ac_top_builddir_sub
1749     ac_abs_top_srcdir=$ac_pwd ;;
1750   [\\/]* | ?:[\\/]* )  # Absolute name.
1751     ac_srcdir=$srcdir$ac_dir_suffix;
1752     ac_top_srcdir=$srcdir
1753     ac_abs_top_srcdir=$srcdir ;;
1754   *) # Relative name.
1755     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756     ac_top_srcdir=$ac_top_build_prefix$srcdir
1757     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1760
1761     cd "$ac_dir" || { ac_status=$?; continue; }
1762     # Check for guested configure.
1763     if test -f "$ac_srcdir/configure.gnu"; then
1764       echo &&
1765       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766     elif test -f "$ac_srcdir/configure"; then
1767       echo &&
1768       $SHELL "$ac_srcdir/configure" --help=recursive
1769     else
1770       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771     fi || ac_status=$?
1772     cd "$ac_pwd" || { ac_status=$?; break; }
1773   done
1774 fi
1775
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778   cat <<\_ACEOF
1779 configure
1780 generated by GNU Autoconf 2.61
1781
1782 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1783 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1784 This configure script is free software; the Free Software Foundation
1785 gives unlimited permission to copy, distribute and modify it.
1786 _ACEOF
1787   exit
1788 fi
1789 cat >config.log <<_ACEOF
1790 This file contains any messages produced by compilers while
1791 running configure, to aid debugging if configure makes a mistake.
1792
1793 It was created by $as_me, which was
1794 generated by GNU Autoconf 2.61.  Invocation command line was
1795
1796   $ $0 $@
1797
1798 _ACEOF
1799 exec 5>>config.log
1800 {
1801 cat <<_ASUNAME
1802 ## --------- ##
1803 ## Platform. ##
1804 ## --------- ##
1805
1806 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1807 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1808 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1809 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1810 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1811
1812 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1813 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1814
1815 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1816 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1817 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1818 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1819 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1820 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1821 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1822
1823 _ASUNAME
1824
1825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826 for as_dir in $PATH
1827 do
1828   IFS=$as_save_IFS
1829   test -z "$as_dir" && as_dir=.
1830   echo "PATH: $as_dir"
1831 done
1832 IFS=$as_save_IFS
1833
1834 } >&5
1835
1836 cat >&5 <<_ACEOF
1837
1838
1839 ## ----------- ##
1840 ## Core tests. ##
1841 ## ----------- ##
1842
1843 _ACEOF
1844
1845
1846 # Keep a trace of the command line.
1847 # Strip out --no-create and --no-recursion so they do not pile up.
1848 # Strip out --silent because we don't want to record it for future runs.
1849 # Also quote any args containing shell meta-characters.
1850 # Make two passes to allow for proper duplicate-argument suppression.
1851 ac_configure_args=
1852 ac_configure_args0=
1853 ac_configure_args1=
1854 ac_must_keep_next=false
1855 for ac_pass in 1 2
1856 do
1857   for ac_arg
1858   do
1859     case $ac_arg in
1860     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1861     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1862     | -silent | --silent | --silen | --sile | --sil)
1863       continue ;;
1864     *\'*)
1865       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1866     esac
1867     case $ac_pass in
1868     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1869     2)
1870       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1871       if test $ac_must_keep_next = true; then
1872         ac_must_keep_next=false # Got value, back to normal.
1873       else
1874         case $ac_arg in
1875           *=* | --config-cache | -C | -disable-* | --disable-* \
1876           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1877           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1878           | -with-* | --with-* | -without-* | --without-* | --x)
1879             case "$ac_configure_args0 " in
1880               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1881             esac
1882             ;;
1883           -* ) ac_must_keep_next=true ;;
1884         esac
1885       fi
1886       ac_configure_args="$ac_configure_args '$ac_arg'"
1887       ;;
1888     esac
1889   done
1890 done
1891 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1892 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1893
1894 # When interrupted or exit'd, cleanup temporary files, and complete
1895 # config.log.  We remove comments because anyway the quotes in there
1896 # would cause problems or look ugly.
1897 # WARNING: Use '\'' to represent an apostrophe within the trap.
1898 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1899 trap 'exit_status=$?
1900   # Save into config.log some information that might help in debugging.
1901   {
1902     echo
1903
1904     cat <<\_ASBOX
1905 ## ---------------- ##
1906 ## Cache variables. ##
1907 ## ---------------- ##
1908 _ASBOX
1909     echo
1910     # The following way of writing the cache mishandles newlines in values,
1911 (
1912   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913     eval ac_val=\$$ac_var
1914     case $ac_val in #(
1915     *${as_nl}*)
1916       case $ac_var in #(
1917       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1918 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1919       esac
1920       case $ac_var in #(
1921       _ | IFS | as_nl) ;; #(
1922       *) $as_unset $ac_var ;;
1923       esac ;;
1924     esac
1925   done
1926   (set) 2>&1 |
1927     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928     *${as_nl}ac_space=\ *)
1929       sed -n \
1930         "s/'\''/'\''\\\\'\'''\''/g;
1931           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932       ;; #(
1933     *)
1934       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1935       ;;
1936     esac |
1937     sort
1938 )
1939     echo
1940
1941     cat <<\_ASBOX
1942 ## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##
1945 _ASBOX
1946     echo
1947     for ac_var in $ac_subst_vars
1948     do
1949       eval ac_val=\$$ac_var
1950       case $ac_val in
1951       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952       esac
1953       echo "$ac_var='\''$ac_val'\''"
1954     done | sort
1955     echo
1956
1957     if test -n "$ac_subst_files"; then
1958       cat <<\_ASBOX
1959 ## ------------------- ##
1960 ## File substitutions. ##
1961 ## ------------------- ##
1962 _ASBOX
1963       echo
1964       for ac_var in $ac_subst_files
1965       do
1966         eval ac_val=\$$ac_var
1967         case $ac_val in
1968         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969         esac
1970         echo "$ac_var='\''$ac_val'\''"
1971       done | sort
1972       echo
1973     fi
1974
1975     if test -s confdefs.h; then
1976       cat <<\_ASBOX
1977 ## ----------- ##
1978 ## confdefs.h. ##
1979 ## ----------- ##
1980 _ASBOX
1981       echo
1982       cat confdefs.h
1983       echo
1984     fi
1985     test "$ac_signal" != 0 &&
1986       echo "$as_me: caught signal $ac_signal"
1987     echo "$as_me: exit $exit_status"
1988   } >&5
1989   rm -f core *.core core.conftest.* &&
1990     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1991     exit $exit_status
1992 ' 0
1993 for ac_signal in 1 2 13 15; do
1994   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1995 done
1996 ac_signal=0
1997
1998 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1999 rm -f -r conftest* confdefs.h
2000
2001 # Predefined preprocessor variables.
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2005 _ACEOF
2006
2007
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2010 _ACEOF
2011
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2015 _ACEOF
2016
2017
2018 cat >>confdefs.h <<_ACEOF
2019 #define PACKAGE_STRING "$PACKAGE_STRING"
2020 _ACEOF
2021
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2025 _ACEOF
2026
2027
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer explicitly selected file to automatically selected ones.
2030 if test -n "$CONFIG_SITE"; then
2031   set x "$CONFIG_SITE"
2032 elif test "x$prefix" != xNONE; then
2033   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2034 else
2035   set x "$ac_default_prefix/share/config.site" \
2036         "$ac_default_prefix/etc/config.site"
2037 fi
2038 shift
2039 for ac_site_file
2040 do
2041   if test -r "$ac_site_file"; then
2042     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2043 echo "$as_me: loading site script $ac_site_file" >&6;}
2044     sed 's/^/| /' "$ac_site_file" >&5
2045     . "$ac_site_file"
2046   fi
2047 done
2048
2049 if test -r "$cache_file"; then
2050   # Some versions of bash will fail to source /dev/null (special
2051   # files actually), so we avoid doing that.
2052   if test -f "$cache_file"; then
2053     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2054 echo "$as_me: loading cache $cache_file" >&6;}
2055     case $cache_file in
2056       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057       *)                      . "./$cache_file";;
2058     esac
2059   fi
2060 else
2061   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2062 echo "$as_me: creating cache $cache_file" >&6;}
2063   >$cache_file
2064 fi
2065
2066 gt_needs="$gt_needs "
2067 # Check that the precious variables saved in the cache have kept the same
2068 # value.
2069 ac_cache_corrupted=false
2070 for ac_var in $ac_precious_vars; do
2071   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2072   eval ac_new_set=\$ac_env_${ac_var}_set
2073   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2074   eval ac_new_val=\$ac_env_${ac_var}_value
2075   case $ac_old_set,$ac_new_set in
2076     set,)
2077       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2078 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2079       ac_cache_corrupted=: ;;
2080     ,set)
2081       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2082 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2083       ac_cache_corrupted=: ;;
2084     ,);;
2085     *)
2086       if test "x$ac_old_val" != "x$ac_new_val"; then
2087         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2088 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2089         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2090 echo "$as_me:   former value:  $ac_old_val" >&2;}
2091         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2092 echo "$as_me:   current value: $ac_new_val" >&2;}
2093         ac_cache_corrupted=:
2094       fi;;
2095   esac
2096   # Pass precious variables to config.status.
2097   if test "$ac_new_set" = set; then
2098     case $ac_new_val in
2099     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2100     *) ac_arg=$ac_var=$ac_new_val ;;
2101     esac
2102     case " $ac_configure_args " in
2103       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2104       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2105     esac
2106   fi
2107 done
2108 if $ac_cache_corrupted; then
2109   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2110 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2111   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2112 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2113    { (exit 1); exit 1; }; }
2114 fi
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132 ac_ext=c
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2137
2138
2139 ac_aux_dir=
2140 for ac_dir in admin "$srcdir"/admin; do
2141   if test -f "$ac_dir/install-sh"; then
2142     ac_aux_dir=$ac_dir
2143     ac_install_sh="$ac_aux_dir/install-sh -c"
2144     break
2145   elif test -f "$ac_dir/install.sh"; then
2146     ac_aux_dir=$ac_dir
2147     ac_install_sh="$ac_aux_dir/install.sh -c"
2148     break
2149   elif test -f "$ac_dir/shtool"; then
2150     ac_aux_dir=$ac_dir
2151     ac_install_sh="$ac_aux_dir/shtool install -c"
2152     break
2153   fi
2154 done
2155 if test -z "$ac_aux_dir"; then
2156   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
2157 echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
2158    { (exit 1); exit 1; }; }
2159 fi
2160
2161 # These three variables are undocumented and unsupported,
2162 # and are intended to be withdrawn in a future Autoconf release.
2163 # They can cause serious problems if a builder's source tree is in a directory
2164 # whose full name contains unusual characters.
2165 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2166 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2167 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2168
2169
2170
2171 unset CDPATH
2172
2173 # Make sure we can run config.sub.
2174 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2175   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2176 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2177    { (exit 1); exit 1; }; }
2178
2179 { echo "$as_me:$LINENO: checking build system type" >&5
2180 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_build+set}" = set; then
2182   echo $ECHO_N "(cached) $ECHO_C" >&6
2183 else
2184   ac_build_alias=$build_alias
2185 test "x$ac_build_alias" = x &&
2186   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2187 test "x$ac_build_alias" = x &&
2188   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2189 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2190    { (exit 1); exit 1; }; }
2191 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2192   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2193 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2194    { (exit 1); exit 1; }; }
2195
2196 fi
2197 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2198 echo "${ECHO_T}$ac_cv_build" >&6; }
2199 case $ac_cv_build in
2200 *-*-*) ;;
2201 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2202 echo "$as_me: error: invalid value of canonical build" >&2;}
2203    { (exit 1); exit 1; }; };;
2204 esac
2205 build=$ac_cv_build
2206 ac_save_IFS=$IFS; IFS='-'
2207 set x $ac_cv_build
2208 shift
2209 build_cpu=$1
2210 build_vendor=$2
2211 shift; shift
2212 # Remember, the first character of IFS is used to create $*,
2213 # except with old shells:
2214 build_os=$*
2215 IFS=$ac_save_IFS
2216 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2217
2218
2219 { echo "$as_me:$LINENO: checking host system type" >&5
2220 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2221 if test "${ac_cv_host+set}" = set; then
2222   echo $ECHO_N "(cached) $ECHO_C" >&6
2223 else
2224   if test "x$host_alias" = x; then
2225   ac_cv_host=$ac_cv_build
2226 else
2227   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2228     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2230    { (exit 1); exit 1; }; }
2231 fi
2232
2233 fi
2234 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2235 echo "${ECHO_T}$ac_cv_host" >&6; }
2236 case $ac_cv_host in
2237 *-*-*) ;;
2238 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2239 echo "$as_me: error: invalid value of canonical host" >&2;}
2240    { (exit 1); exit 1; }; };;
2241 esac
2242 host=$ac_cv_host
2243 ac_save_IFS=$IFS; IFS='-'
2244 set x $ac_cv_host
2245 shift
2246 host_cpu=$1
2247 host_vendor=$2
2248 shift; shift
2249 # Remember, the first character of IFS is used to create $*,
2250 # except with old shells:
2251 host_os=$*
2252 IFS=$ac_save_IFS
2253 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2254
2255
2256 { echo "$as_me:$LINENO: checking target system type" >&5
2257 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2258 if test "${ac_cv_target+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   if test "x$target_alias" = x; then
2262   ac_cv_target=$ac_cv_host
2263 else
2264   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2265     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2266 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2267    { (exit 1); exit 1; }; }
2268 fi
2269
2270 fi
2271 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2272 echo "${ECHO_T}$ac_cv_target" >&6; }
2273 case $ac_cv_target in
2274 *-*-*) ;;
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2276 echo "$as_me: error: invalid value of canonical target" >&2;}
2277    { (exit 1); exit 1; }; };;
2278 esac
2279 target=$ac_cv_target
2280 ac_save_IFS=$IFS; IFS='-'
2281 set x $ac_cv_target
2282 shift
2283 target_cpu=$1
2284 target_vendor=$2
2285 shift; shift
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2288 target_os=$*
2289 IFS=$ac_save_IFS
2290 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2291
2292
2293 # The aliases save the names the user supplied, while $host etc.
2294 # will get canonicalized.
2295 test -n "$target_alias" &&
2296   test "$program_prefix$program_suffix$program_transform_name" = \
2297     NONENONEs,x,x, &&
2298   program_prefix=${target_alias}-
2299 test "$program_prefix" != NONE &&
2300   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2301 # Use a double $ so make ignores it.
2302 test "$program_suffix" != NONE &&
2303   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2304 # Double any \ or $.  echo might interpret backslashes.
2305 # By default was `s,x,x', remove it if useless.
2306 cat <<\_ACEOF >conftest.sed
2307 s/[\\$]/&&/g;s/;s,x,x,$//
2308 _ACEOF
2309 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2310 rm -f conftest.sed
2311
2312
2313 am__api_version="1.9"
2314
2315
2316           test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2317   test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2318   test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2319   # Find a good install program.  We prefer a C program (faster),
2320 # so one script is as good as another.  But avoid the broken or
2321 # incompatible versions:
2322 # SysV /etc/install, /usr/sbin/install
2323 # SunOS /usr/etc/install
2324 # IRIX /sbin/install
2325 # AIX /bin/install
2326 # AmigaOS /C/install, which installs bootblocks on floppy discs
2327 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2328 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2329 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2330 # OS/2's system install, which has a completely different semantic
2331 # ./install, which can be erroneously created by make from ./install.sh.
2332 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2333 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2334 if test -z "$INSTALL"; then
2335 if test "${ac_cv_path_install+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341   IFS=$as_save_IFS
2342   test -z "$as_dir" && as_dir=.
2343   # Account for people who put trailing slashes in PATH elements.
2344 case $as_dir/ in
2345   ./ | .// | /cC/* | \
2346   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2347   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2348   /usr/ucb/* ) ;;
2349   *)
2350     # OSF1 and SCO ODT 3.0 have their own names for install.
2351     # Don't use installbsd from OSF since it installs stuff as root
2352     # by default.
2353     for ac_prog in ginstall scoinst install; do
2354       for ac_exec_ext in '' $ac_executable_extensions; do
2355         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2356           if test $ac_prog = install &&
2357             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358             # AIX install.  It has an incompatible calling convention.
2359             :
2360           elif test $ac_prog = install &&
2361             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362             # program-specific install script used by HP pwplus--don't use.
2363             :
2364           else
2365             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2366             break 3
2367           fi
2368         fi
2369       done
2370     done
2371     ;;
2372 esac
2373 done
2374 IFS=$as_save_IFS
2375
2376
2377 fi
2378   if test "${ac_cv_path_install+set}" = set; then
2379     INSTALL=$ac_cv_path_install
2380   else
2381     # As a last resort, use the slow shell script.  Don't cache a
2382     # value for INSTALL within a source directory, because that will
2383     # break other packages using the cache if that directory is
2384     # removed, or if the value is a relative name.
2385     INSTALL=$ac_install_sh
2386   fi
2387 fi
2388 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2389 echo "${ECHO_T}$INSTALL" >&6; }
2390
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2394
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2396
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2398
2399
2400   if test -z "$kde_save_INSTALL_given" ; then
2401     # OK, user hasn't given any INSTALL, autoconf found one for us
2402     # now we test, if it supports the -p flag
2403     { echo "$as_me:$LINENO: checking for -p flag to install" >&5
2404 echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6; }
2405     rm -f confinst.$$.* > /dev/null 2>&1
2406     echo "Testtest" > confinst.$$.orig
2407     ac_res=no
2408     if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2409       if test -f confinst.$$.new ; then
2410         # OK, -p seems to do no harm to install
2411         INSTALL="${INSTALL} -p"
2412         ac_res=yes
2413       fi
2414     fi
2415     rm -f confinst.$$.*
2416     { echo "$as_me:$LINENO: result: $ac_res" >&5
2417 echo "${ECHO_T}$ac_res" >&6; }
2418   fi
2419
2420   if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2421     INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2422   fi
2423   if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2424     INSTALL_SCRIPT='${INSTALL}'
2425   fi
2426
2427 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2428 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2429 # Just in case
2430 sleep 1
2431 echo timestamp > conftest.file
2432 # Do `set' in a subshell so we don't clobber the current shell's
2433 # arguments.  Must try -L first in case configure is actually a
2434 # symlink; some systems play weird games with the mod time of symlinks
2435 # (eg FreeBSD returns the mod time of the symlink's containing
2436 # directory).
2437 if (
2438    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2439    if test "$*" = "X"; then
2440       # -L didn't work.
2441       set X `ls -t $srcdir/configure conftest.file`
2442    fi
2443    rm -f conftest.file
2444    if test "$*" != "X $srcdir/configure conftest.file" \
2445       && test "$*" != "X conftest.file $srcdir/configure"; then
2446
2447       # If neither matched, then we have a broken ls.  This can happen
2448       # if, for instance, CONFIG_SHELL is bash and it inherits a
2449       # broken ls alias from the environment.  This has actually
2450       # happened.  Such a system could not be considered "sane".
2451       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2452 alias in your environment" >&5
2453 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2454 alias in your environment" >&2;}
2455    { (exit 1); exit 1; }; }
2456    fi
2457
2458    test "$2" = conftest.file
2459    )
2460 then
2461    # Ok.
2462    :
2463 else
2464    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2465 Check your system clock" >&5
2466 echo "$as_me: error: newly created file is older than distributed files!
2467 Check your system clock" >&2;}
2468    { (exit 1); exit 1; }; }
2469 fi
2470 { echo "$as_me:$LINENO: result: yes" >&5
2471 echo "${ECHO_T}yes" >&6; }
2472 # expand $ac_aux_dir to an absolute path
2473 am_aux_dir=`cd $ac_aux_dir && pwd`
2474
2475 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2476 # Use eval to expand $SHELL
2477 if eval "$MISSING --run true"; then
2478   am_missing_run="$MISSING --run "
2479 else
2480   am_missing_run=
2481   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2482 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2483 fi
2484
2485 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2486   # We used to keeping the `.' as first argument, in order to
2487   # allow $(mkdir_p) to be used without argument.  As in
2488   #   $(mkdir_p) $(somedir)
2489   # where $(somedir) is conditionally defined.  However this is wrong
2490   # for two reasons:
2491   #  1. if the package is installed by a user who cannot write `.'
2492   #     make install will fail,
2493   #  2. the above comment should most certainly read
2494   #     $(mkdir_p) $(DESTDIR)$(somedir)
2495   #     so it does not work when $(somedir) is undefined and
2496   #     $(DESTDIR) is not.
2497   #  To support the latter case, we have to write
2498   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2499   #  so the `.' trick is pointless.
2500   mkdir_p='mkdir -p --'
2501 else
2502   # On NextStep and OpenStep, the `mkdir' command does not
2503   # recognize any option.  It will interpret all options as
2504   # directories to create, and then abort because `.' already
2505   # exists.
2506   for d in ./-p ./--version;
2507   do
2508     test -d $d && rmdir $d
2509   done
2510   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2511   if test -f "$ac_aux_dir/mkinstalldirs"; then
2512     mkdir_p='$(mkinstalldirs)'
2513   else
2514     mkdir_p='$(install_sh) -d'
2515   fi
2516 fi
2517
2518 for ac_prog in gawk mawk nawk awk
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_AWK+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$AWK"; then
2528   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537     ac_cv_prog_AWK="$ac_prog"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 AWK=$ac_cv_prog_AWK
2548 if test -n "$AWK"; then
2549   { echo "$as_me:$LINENO: result: $AWK" >&5
2550 echo "${ECHO_T}$AWK" >&6; }
2551 else
2552   { echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6; }
2554 fi
2555
2556
2557   test -n "$AWK" && break
2558 done
2559
2560 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2562 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2563 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2564   echo $ECHO_N "(cached) $ECHO_C" >&6
2565 else
2566   cat >conftest.make <<\_ACEOF
2567 SHELL = /bin/sh
2568 all:
2569         @echo '@@@%%%=$(MAKE)=@@@%%%'
2570 _ACEOF
2571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2572 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2573   *@@@%%%=?*=@@@%%%*)
2574     eval ac_cv_prog_make_${ac_make}_set=yes;;
2575   *)
2576     eval ac_cv_prog_make_${ac_make}_set=no;;
2577 esac
2578 rm -f conftest.make
2579 fi
2580 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2581   { echo "$as_me:$LINENO: result: yes" >&5
2582 echo "${ECHO_T}yes" >&6; }
2583   SET_MAKE=
2584 else
2585   { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2587   SET_MAKE="MAKE=${MAKE-make}"
2588 fi
2589
2590 rm -rf .tst 2>/dev/null
2591 mkdir .tst 2>/dev/null
2592 if test -d .tst; then
2593   am__leading_dot=.
2594 else
2595   am__leading_dot=_
2596 fi
2597 rmdir .tst 2>/dev/null
2598
2599 # test to see if srcdir already configured
2600 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2601    test -f $srcdir/config.status; then
2602   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2603 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2604    { (exit 1); exit 1; }; }
2605 fi
2606
2607 # test whether we have cygpath
2608 if test -z "$CYGPATH_W"; then
2609   if (cygpath --version) >/dev/null 2>/dev/null; then
2610     CYGPATH_W='cygpath -w'
2611   else
2612     CYGPATH_W=echo
2613   fi
2614 fi
2615
2616
2617 # Define the identity of the package.
2618  PACKAGE=skim-scim-hangul
2619  VERSION=0.3.2
2620
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE "$PACKAGE"
2624 _ACEOF
2625
2626
2627 cat >>confdefs.h <<_ACEOF
2628 #define VERSION "$VERSION"
2629 _ACEOF
2630
2631 # Some tools Automake needs.
2632
2633 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2634
2635
2636 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2637
2638
2639 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2640
2641
2642 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2643
2644
2645 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2646
2647 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2648
2649 # Installed binaries are usually stripped using `strip' when the user
2650 # run `make install-strip'.  However `strip' might not be the right
2651 # tool to use in cross-compilation environments, therefore Automake
2652 # will honor the `STRIP' environment variable to overrule this program.
2653 if test "$cross_compiling" != no; then
2654   if test -n "$ac_tool_prefix"; then
2655   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2656 set dummy ${ac_tool_prefix}strip; ac_word=$2
2657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_STRIP+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   if test -n "$STRIP"; then
2663   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668   IFS=$as_save_IFS
2669   test -z "$as_dir" && as_dir=.
2670   for ac_exec_ext in '' $ac_executable_extensions; do
2671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674     break 2
2675   fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 STRIP=$ac_cv_prog_STRIP
2683 if test -n "$STRIP"; then
2684   { echo "$as_me:$LINENO: result: $STRIP" >&5
2685 echo "${ECHO_T}$STRIP" >&6; }
2686 else
2687   { echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6; }
2689 fi
2690
2691
2692 fi
2693 if test -z "$ac_cv_prog_STRIP"; then
2694   ac_ct_STRIP=$STRIP
2695   # Extract the first word of "strip", so it can be a program name with args.
2696 set dummy strip; ac_word=$2
2697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2699 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2700   echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702   if test -n "$ac_ct_STRIP"; then
2703   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708   IFS=$as_save_IFS
2709   test -z "$as_dir" && as_dir=.
2710   for ac_exec_ext in '' $ac_executable_extensions; do
2711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2712     ac_cv_prog_ac_ct_STRIP="strip"
2713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714     break 2
2715   fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2723 if test -n "$ac_ct_STRIP"; then
2724   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2725 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2726 else
2727   { echo "$as_me:$LINENO: result: no" >&5
2728 echo "${ECHO_T}no" >&6; }
2729 fi
2730
2731   if test "x$ac_ct_STRIP" = x; then
2732     STRIP=":"
2733   else
2734     case $cross_compiling:$ac_tool_warned in
2735 yes:)
2736 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2737 whose name does not start with the host triplet.  If you think this
2738 configuration is useful to you, please write to autoconf@gnu.org." >&5
2739 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2740 whose name does not start with the host triplet.  If you think this
2741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744     STRIP=$ac_ct_STRIP
2745   fi
2746 else
2747   STRIP="$ac_cv_prog_STRIP"
2748 fi
2749
2750 fi
2751 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2752
2753 # We need awk for the "check" target.  The system "awk" is bad on
2754 # some platforms.
2755 # Always define AMTAR for backward compatibility.
2756
2757 AMTAR=${AMTAR-"${am_missing_run}tar"}
2758
2759 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2760
2761
2762
2763
2764
2765
2766   unset CDPATH
2767
2768
2769
2770     kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
2771     test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
2772     if test -n "$KDEDIRS"; then
2773        kde_save_IFS=$IFS
2774        IFS=:
2775        for dir in $KDEDIRS; do
2776             kde_default_bindirs="$dir/bin $kde_default_bindirs "
2777        done
2778        IFS=$kde_save_IFS
2779     fi
2780
2781   if test "x$prefix" = "xNONE"; then
2782
2783    { echo "$as_me:$LINENO: checking for kde-config" >&5
2784 echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2785    if test -n "$KDECONFIG"; then
2786         kde_cv_path="$KDECONFIG";
2787    else
2788         kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2789
2790         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2791   echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793
2794         kde_cv_path="NONE"
2795         kde_save_IFS=$IFS
2796         IFS=':'
2797         dirs=""
2798         for dir in $PATH; do
2799           dirs="$dirs $dir"
2800         done
2801         if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
2802         else      dirs="$dirs $kde_default_bindirs"
2803         fi
2804         IFS=$kde_save_IFS
2805
2806         for dir in $dirs; do
2807           if test -x "$dir/kde-config"; then
2808             if test -n ""
2809             then
2810               evalstr="$dir/kde-config  2>&1 "
2811               if eval $evalstr; then
2812                 kde_cv_path="$dir/kde-config"
2813                 break
2814               fi
2815             else
2816                 kde_cv_path="$dir/kde-config"
2817                 break
2818             fi
2819           fi
2820         done
2821
2822         eval "kde_cv_path_$kde_cache=$kde_cv_path"
2823
2824
2825 fi
2826
2827
2828       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2829
2830    fi
2831
2832    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2833       { echo "$as_me:$LINENO: result: not found" >&5
2834 echo "${ECHO_T}not found" >&6; }
2835
2836     { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2837 Please check whether you installed KDE correctly.
2838 " >&5
2839 echo "$as_me: error: The important program kde-config was not found!
2840 Please check whether you installed KDE correctly.
2841 " >&2;}
2842    { (exit 1); exit 1; }; }
2843
2844    else
2845       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2846 echo "${ECHO_T}$kde_cv_path" >&6; }
2847       KDECONFIG=$kde_cv_path
2848
2849    fi
2850
2851   else
2852         kde_save_PATH="$PATH"
2853     PATH="$exec_prefix/bin:$prefix/bin:$PATH"
2854
2855    { echo "$as_me:$LINENO: checking for kde-config" >&5
2856 echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2857    if test -n "$KDECONFIG"; then
2858         kde_cv_path="$KDECONFIG";
2859    else
2860         kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2861
2862         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2863   echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865
2866         kde_cv_path="NONE"
2867         kde_save_IFS=$IFS
2868         IFS=':'
2869         dirs=""
2870         for dir in $PATH; do
2871           dirs="$dirs $dir"
2872         done
2873         if test -z "prepend"; then        dirs="$kde_default_bindirs $dirs"
2874         else      dirs="$dirs $kde_default_bindirs"
2875         fi
2876         IFS=$kde_save_IFS
2877
2878         for dir in $dirs; do
2879           if test -x "$dir/kde-config"; then
2880             if test -n ""
2881             then
2882               evalstr="$dir/kde-config  2>&1 "
2883               if eval $evalstr; then
2884                 kde_cv_path="$dir/kde-config"
2885                 break
2886               fi
2887             else
2888                 kde_cv_path="$dir/kde-config"
2889                 break
2890             fi
2891           fi
2892         done
2893
2894         eval "kde_cv_path_$kde_cache=$kde_cv_path"
2895
2896
2897 fi
2898
2899
2900       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2901
2902    fi
2903
2904    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2905       { echo "$as_me:$LINENO: result: not found" >&5
2906 echo "${ECHO_T}not found" >&6; }
2907
2908     { { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2909 Please check whether you installed KDE correctly.
2910 " >&5
2911 echo "$as_me: error: The important program kde-config was not found!
2912 Please check whether you installed KDE correctly.
2913 " >&2;}
2914    { (exit 1); exit 1; }; }
2915
2916    else
2917       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2918 echo "${ECHO_T}$kde_cv_path" >&6; }
2919       KDECONFIG=$kde_cv_path
2920
2921    fi
2922
2923     PATH="$kde_save_PATH"
2924   fi
2925
2926   kde_libs_prefix=`$KDECONFIG --prefix`
2927   if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
2928        { { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2929                     This means it has been moved since you installed it.
2930                     This won't work. Please recompile kdelibs for the new prefix.
2931                     " >&5
2932 echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2933                     This means it has been moved since you installed it.
2934                     This won't work. Please recompile kdelibs for the new prefix.
2935                     " >&2;}
2936    { (exit 1); exit 1; }; }
2937   fi
2938   kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
2939   kde_libs_suffix=`$KDECONFIG --libsuffix`
2940
2941   { echo "$as_me:$LINENO: checking where to install" >&5
2942 echo $ECHO_N "checking where to install... $ECHO_C" >&6; }
2943   if test "x$prefix" = "xNONE"; then
2944     prefix=$kde_libs_prefix
2945     { echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
2946 echo "${ECHO_T}$prefix (as returned by kde-config)" >&6; }
2947   else
2948         given_prefix=$prefix
2949     { echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
2950 echo "${ECHO_T}$prefix (as requested)" >&6; }
2951   fi
2952
2953   # And delete superfluous '/' to make compares easier
2954   prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2955   exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2956   given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2957
2958
2959
2960
2961
2962
2963     # Check whether --enable-fast-perl was given.
2964 if test "${enable_fast_perl+set}" = set; then
2965   enableval=$enable_fast_perl; with_fast_perl=$enableval
2966 else
2967   with_fast_perl=yes
2968 fi
2969
2970
2971
2972   val=
2973   if test -f $srcdir/configure.files ; then
2974     val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
2975   fi
2976   CONF_FILES=
2977   if test -n "$val" ; then
2978     for i in $val ; do
2979       CONF_FILES="$CONF_FILES $i"
2980     done
2981   fi
2982
2983
2984
2985
2986 ac_config_headers="$ac_config_headers config.h"
2987
2988 DEPDIR="${am__leading_dot}deps"
2989
2990 ac_config_commands="$ac_config_commands depfiles"
2991
2992
2993 am_make=${MAKE-make}
2994 cat > confinc << 'END'
2995 am__doit:
2996         @echo done
2997 .PHONY: am__doit
2998 END
2999 # If we don't find an include directive, just comment out the code.
3000 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3001 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3002 am__include="#"
3003 am__quote=
3004 _am_result=none
3005 # First try GNU make style include.
3006 echo "include confinc" > confmf
3007 # We grep out `Entering directory' and `Leaving directory'
3008 # messages which can occur if `w' ends up in MAKEFLAGS.
3009 # In particular we don't look at `^make:' because GNU make might
3010 # be invoked under some other name (usually "gmake"), in which
3011 # case it prints its new name instead of `make'.
3012 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3013    am__include=include
3014    am__quote=
3015    _am_result=GNU
3016 fi
3017 # Now try BSD make style include.
3018 if test "$am__include" = "#"; then
3019    echo '.include "confinc"' > confmf
3020    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3021       am__include=.include
3022       am__quote="\""
3023       _am_result=BSD
3024    fi
3025 fi
3026
3027
3028 { echo "$as_me:$LINENO: result: $_am_result" >&5
3029 echo "${ECHO_T}$_am_result" >&6; }
3030 rm -f confinc confmf
3031
3032 # Check whether --enable-dependency-tracking was given.
3033 if test "${enable_dependency_tracking+set}" = set; then
3034   enableval=$enable_dependency_tracking;
3035 fi
3036
3037 if test "x$enable_dependency_tracking" != xno; then
3038   am_depcomp="$ac_aux_dir/depcomp"
3039   AMDEPBACKSLASH='\'
3040 fi
3041
3042
3043 if test "x$enable_dependency_tracking" != xno; then
3044   AMDEP_TRUE=
3045   AMDEP_FALSE='#'
3046 else
3047   AMDEP_TRUE='#'
3048   AMDEP_FALSE=
3049 fi
3050
3051
3052
3053
3054
3055
3056   # Check whether --enable-debug was given.
3057 if test "${enable_debug+set}" = set; then
3058   enableval=$enable_debug;
3059     case $enableval in
3060       yes)
3061         kde_use_debug_code="yes"
3062         kde_use_debug_define=no
3063         ;;
3064       full)
3065         kde_use_debug_code="full"
3066         kde_use_debug_define=no
3067         ;;
3068       *)
3069         kde_use_debug_code="no"
3070         kde_use_debug_define=yes
3071         ;;
3072     esac
3073
3074 else
3075   kde_use_debug_code="no"
3076       kde_use_debug_define=no
3077
3078 fi
3079
3080
3081     # Check whether --enable-dummyoption was given.
3082 if test "${enable_dummyoption+set}" = set; then
3083   enableval=$enable_dummyoption;
3084 fi
3085
3086
3087   # Check whether --enable-strict was given.
3088 if test "${enable_strict+set}" = set; then
3089   enableval=$enable_strict;
3090     if test $enableval = "no"; then
3091          kde_use_strict_options="no"
3092        else
3093          kde_use_strict_options="yes"
3094     fi
3095
3096 else
3097   kde_use_strict_options="no"
3098 fi
3099
3100
3101   # Check whether --enable-warnings was given.
3102 if test "${enable_warnings+set}" = set; then
3103   enableval=$enable_warnings;
3104     if test $enableval = "no"; then
3105          kde_use_warnings="no"
3106        else
3107          kde_use_warnings="yes"
3108     fi
3109
3110 else
3111   kde_use_warnings="yes"
3112 fi
3113
3114
3115     if test "$kde_use_debug_code" != "no"; then
3116     kde_use_warnings=yes
3117   fi
3118
3119   # Check whether --enable-profile was given.
3120 if test "${enable_profile+set}" = set; then
3121   enableval=$enable_profile; kde_use_profiling=$enableval
3122 else
3123   kde_use_profiling="no"
3124
3125 fi
3126
3127
3128     CFLAGS=" $CFLAGS"
3129
3130   ac_ext=c
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3135 if test -n "$ac_tool_prefix"; then
3136   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3140 if test "${ac_cv_prog_CC+set}" = set; then
3141   echo $ECHO_N "(cached) $ECHO_C" >&6
3142 else
3143   if test -n "$CC"; then
3144   ac_cv_prog_CC="$CC" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162 fi
3163 CC=$ac_cv_prog_CC
3164 if test -n "$CC"; then
3165   { echo "$as_me:$LINENO: result: $CC" >&5
3166 echo "${ECHO_T}$CC" >&6; }
3167 else
3168   { echo "$as_me:$LINENO: result: no" >&5
3169 echo "${ECHO_T}no" >&6; }
3170 fi
3171
3172
3173 fi
3174 if test -z "$ac_cv_prog_CC"; then
3175   ac_ct_CC=$CC
3176   # Extract the first word of "gcc", so it can be a program name with args.
3177 set dummy gcc; ac_word=$2
3178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3181   echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183   if test -n "$ac_ct_CC"; then
3184   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3188 do
3189   IFS=$as_save_IFS
3190   test -z "$as_dir" && as_dir=.
3191   for ac_exec_ext in '' $ac_executable_extensions; do
3192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193     ac_cv_prog_ac_ct_CC="gcc"
3194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3195     break 2
3196   fi
3197 done
3198 done
3199 IFS=$as_save_IFS
3200
3201 fi
3202 fi
3203 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204 if test -n "$ac_ct_CC"; then
3205   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3206 echo "${ECHO_T}$ac_ct_CC" >&6; }
3207 else
3208   { echo "$as_me:$LINENO: result: no" >&5
3209 echo "${ECHO_T}no" >&6; }
3210 fi
3211
3212   if test "x$ac_ct_CC" = x; then
3213     CC=""
3214   else
3215     case $cross_compiling:$ac_tool_warned in
3216 yes:)
3217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3218 whose name does not start with the host triplet.  If you think this
3219 configuration is useful to you, please write to autoconf@gnu.org." >&5
3220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3221 whose name does not start with the host triplet.  If you think this
3222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3223 ac_tool_warned=yes ;;
3224 esac
3225     CC=$ac_ct_CC
3226   fi
3227 else
3228   CC="$ac_cv_prog_CC"
3229 fi
3230
3231 if test -z "$CC"; then
3232           if test -n "$ac_tool_prefix"; then
3233     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3234 set dummy ${ac_tool_prefix}cc; ac_word=$2
3235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_CC+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   if test -n "$CC"; then
3241   ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248   for ac_exec_ext in '' $ac_executable_extensions; do
3249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250     ac_cv_prog_CC="${ac_tool_prefix}cc"
3251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3252     break 2
3253   fi
3254 done
3255 done
3256 IFS=$as_save_IFS
3257
3258 fi
3259 fi
3260 CC=$ac_cv_prog_CC
3261 if test -n "$CC"; then
3262   { echo "$as_me:$LINENO: result: $CC" >&5
3263 echo "${ECHO_T}$CC" >&6; }
3264 else
3265   { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3267 fi
3268
3269
3270   fi
3271 fi
3272 if test -z "$CC"; then
3273   # Extract the first word of "cc", so it can be a program name with args.
3274 set dummy cc; ac_word=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278   echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280   if test -n "$CC"; then
3281   ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283   ac_prog_rejected=no
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289   for ac_exec_ext in '' $ac_executable_extensions; do
3290   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3292        ac_prog_rejected=yes
3293        continue
3294      fi
3295     ac_cv_prog_CC="cc"
3296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297     break 2
3298   fi
3299 done
3300 done
3301 IFS=$as_save_IFS
3302
3303 if test $ac_prog_rejected = yes; then
3304   # We found a bogon in the path, so make sure we never use it.
3305   set dummy $ac_cv_prog_CC
3306   shift
3307   if test $# != 0; then
3308     # We chose a different compiler from the bogus one.
3309     # However, it has the same basename, so the bogon will be chosen
3310     # first if we set CC to just the basename; use the full file name.
3311     shift
3312     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3313   fi
3314 fi
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319   { echo "$as_me:$LINENO: result: $CC" >&5
3320 echo "${ECHO_T}$CC" >&6; }
3321 else
3322   { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$CC"; then
3329   if test -n "$ac_tool_prefix"; then
3330   for ac_prog in cl.exe
3331   do
3332     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_CC+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339   if test -n "$CC"; then
3340   ac_cv_prog_CC="$CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347   for ac_exec_ext in '' $ac_executable_extensions; do
3348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351     break 2
3352   fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 CC=$ac_cv_prog_CC
3360 if test -n "$CC"; then
3361   { echo "$as_me:$LINENO: result: $CC" >&5
3362 echo "${ECHO_T}$CC" >&6; }
3363 else
3364   { echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6; }
3366 fi
3367
3368
3369     test -n "$CC" && break
3370   done
3371 fi
3372 if test -z "$CC"; then
3373   ac_ct_CC=$CC
3374   for ac_prog in cl.exe
3375 do
3376   # Extract the first word of "$ac_prog", so it can be a program name with args.
3377 set dummy $ac_prog; ac_word=$2
3378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3381   echo $ECHO_N "(cached) $ECHO_C" >&6
3382 else
3383   if test -n "$ac_ct_CC"; then
3384   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3388 do
3389   IFS=$as_save_IFS
3390   test -z "$as_dir" && as_dir=.
3391   for ac_exec_ext in '' $ac_executable_extensions; do
3392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393     ac_cv_prog_ac_ct_CC="$ac_prog"
3394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395     break 2
3396   fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3404 if test -n "$ac_ct_CC"; then
3405   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3406 echo "${ECHO_T}$ac_ct_CC" >&6; }
3407 else
3408   { echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6; }
3410 fi
3411
3412
3413   test -n "$ac_ct_CC" && break
3414 done
3415
3416   if test "x$ac_ct_CC" = x; then
3417     CC=""
3418   else
3419     case $cross_compiling:$ac_tool_warned in
3420 yes:)
3421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3422 whose name does not start with the host triplet.  If you think this
3423 configuration is useful to you, please write to autoconf@gnu.org." >&5
3424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3425 whose name does not start with the host triplet.  If you think this
3426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429     CC=$ac_ct_CC
3430   fi
3431 fi
3432
3433 fi
3434
3435
3436 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3437 See \`config.log' for more details." >&5
3438 echo "$as_me: error: no acceptable C compiler found in \$PATH
3439 See \`config.log' for more details." >&2;}
3440    { (exit 1); exit 1; }; }
3441
3442 # Provide some information about the compiler.
3443 echo "$as_me:$LINENO: checking for C compiler version" >&5
3444 ac_compiler=`set X $ac_compile; echo $2`
3445 { (ac_try="$ac_compiler --version >&5"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_compiler --version >&5") 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }
3455 { (ac_try="$ac_compiler -v >&5"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461   (eval "$ac_compiler -v >&5") 2>&5
3462   ac_status=$?
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); }
3465 { (ac_try="$ac_compiler -V >&5"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471   (eval "$ac_compiler -V >&5") 2>&5
3472   ac_status=$?
3473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474   (exit $ac_status); }
3475
3476 cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482
3483 int
3484 main ()
3485 {
3486
3487   ;
3488   return 0;
3489 }
3490 _ACEOF
3491 ac_clean_files_save=$ac_clean_files
3492 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3493 # Try to create an executable without -o first, disregard a.out.
3494 # It will help us diagnose broken compilers, and finding out an intuition
3495 # of exeext.
3496 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3497 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3498 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3499 #
3500 # List of possible output files, starting from the most likely.
3501 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3502 # only as a last resort.  b.out is created by i960 compilers.
3503 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3504 #
3505 # The IRIX 6 linker writes into existing files which may not be
3506 # executable, retaining their permissions.  Remove them first so a
3507 # subsequent execution test works.
3508 ac_rmfiles=
3509 for ac_file in $ac_files
3510 do
3511   case $ac_file in
3512     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3513     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514   esac
3515 done
3516 rm -f $ac_rmfiles
3517
3518 if { (ac_try="$ac_link_default"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524   (eval "$ac_link_default") 2>&5
3525   ac_status=$?
3526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527   (exit $ac_status); }; then
3528   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3529 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3530 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3531 # so that the user can short-circuit this test for compilers unknown to
3532 # Autoconf.
3533 for ac_file in $ac_files ''
3534 do
3535   test -f "$ac_file" || continue
3536   case $ac_file in
3537     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3538         ;;
3539     [ab].out )
3540         # We found the default executable, but exeext='' is most
3541         # certainly right.
3542         break;;
3543     *.* )
3544         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3545         then :; else
3546            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3547         fi
3548         # We set ac_cv_exeext here because the later test for it is not
3549         # safe: cross compilers may not add the suffix if given an `-o'
3550         # argument, so we may need to know it at that point already.
3551         # Even if this section looks crufty: it has the advantage of
3552         # actually working.
3553         break;;
3554     * )
3555         break;;
3556   esac
3557 done
3558 test "$ac_cv_exeext" = no && ac_cv_exeext=
3559
3560 else
3561   ac_file=''
3562 fi
3563
3564 { echo "$as_me:$LINENO: result: $ac_file" >&5
3565 echo "${ECHO_T}$ac_file" >&6; }
3566 if test -z "$ac_file"; then
3567   echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3571 See \`config.log' for more details." >&5
3572 echo "$as_me: error: C compiler cannot create executables
3573 See \`config.log' for more details." >&2;}
3574    { (exit 77); exit 77; }; }
3575 fi
3576
3577 ac_exeext=$ac_cv_exeext
3578
3579 # Check that the compiler produces executables we can run.  If not, either
3580 # the compiler is broken, or we cross compile.
3581 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3582 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3583 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3584 # If not cross compiling, check that we can run a simple program.
3585 if test "$cross_compiling" != yes; then
3586   if { ac_try='./$ac_file'
3587   { (case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_try") 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; }; then
3596     cross_compiling=no
3597   else
3598     if test "$cross_compiling" = maybe; then
3599         cross_compiling=yes
3600     else
3601         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3602 If you meant to cross compile, use \`--host'.
3603 See \`config.log' for more details." >&5
3604 echo "$as_me: error: cannot run C compiled programs.
3605 If you meant to cross compile, use \`--host'.
3606 See \`config.log' for more details." >&2;}
3607    { (exit 1); exit 1; }; }
3608     fi
3609   fi
3610 fi
3611 { echo "$as_me:$LINENO: result: yes" >&5
3612 echo "${ECHO_T}yes" >&6; }
3613
3614 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3615 ac_clean_files=$ac_clean_files_save
3616 # Check that the compiler produces executables we can run.  If not, either
3617 # the compiler is broken, or we cross compile.
3618 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3619 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3620 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3621 echo "${ECHO_T}$cross_compiling" >&6; }
3622
3623 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3624 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3625 if { (ac_try="$ac_link"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631   (eval "$ac_link") 2>&5
3632   ac_status=$?
3633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634   (exit $ac_status); }; then
3635   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3636 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3637 # work properly (i.e., refer to `conftest.exe'), while it won't with
3638 # `rm'.
3639 for ac_file in conftest.exe conftest conftest.*; do
3640   test -f "$ac_file" || continue
3641   case $ac_file in
3642     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3643     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644           break;;
3645     * ) break;;
3646   esac
3647 done
3648 else
3649   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3650 See \`config.log' for more details." >&5
3651 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3652 See \`config.log' for more details." >&2;}
3653    { (exit 1); exit 1; }; }
3654 fi
3655
3656 rm -f conftest$ac_cv_exeext
3657 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3658 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3659
3660 rm -f conftest.$ac_ext
3661 EXEEXT=$ac_cv_exeext
3662 ac_exeext=$EXEEXT
3663 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3664 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3665 if test "${ac_cv_objext+set}" = set; then
3666   echo $ECHO_N "(cached) $ECHO_C" >&6
3667 else
3668   cat >conftest.$ac_ext <<_ACEOF
3669 /* confdefs.h.  */
3670 _ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h.  */
3674
3675 int
3676 main ()
3677 {
3678
3679   ;
3680   return 0;
3681 }
3682 _ACEOF
3683 rm -f conftest.o conftest.obj
3684 if { (ac_try="$ac_compile"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_compile") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; then
3694   for ac_file in conftest.o conftest.obj conftest.*; do
3695   test -f "$ac_file" || continue;
3696   case $ac_file in
3697     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3698     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3699        break;;
3700   esac
3701 done
3702 else
3703   echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3709 See \`config.log' for more details." >&2;}
3710    { (exit 1); exit 1; }; }
3711 fi
3712
3713 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3714 fi
3715 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3716 echo "${ECHO_T}$ac_cv_objext" >&6; }
3717 OBJEXT=$ac_cv_objext
3718 ac_objext=$OBJEXT
3719 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3720 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3721 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   cat >conftest.$ac_ext <<_ACEOF
3725 /* confdefs.h.  */
3726 _ACEOF
3727 cat confdefs.h >>conftest.$ac_ext
3728 cat >>conftest.$ac_ext <<_ACEOF
3729 /* end confdefs.h.  */
3730
3731 int
3732 main ()
3733 {
3734 #ifndef __GNUC__
3735        choke me
3736 #endif
3737
3738   ;
3739   return 0;
3740 }
3741 _ACEOF
3742 rm -f conftest.$ac_objext
3743 if { (ac_try="$ac_compile"
3744 case "(($ac_try" in
3745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746   *) ac_try_echo=$ac_try;;
3747 esac
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749   (eval "$ac_compile") 2>conftest.er1
3750   ac_status=$?
3751   grep -v '^ *+' conftest.er1 >conftest.err
3752   rm -f conftest.er1
3753   cat conftest.err >&5
3754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755   (exit $ac_status); } && {
3756          test -z "$ac_c_werror_flag" ||
3757          test ! -s conftest.err
3758        } && test -s conftest.$ac_objext; then
3759   ac_compiler_gnu=yes
3760 else
3761   echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3763
3764         ac_compiler_gnu=no
3765 fi
3766
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3769
3770 fi
3771 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3772 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3773 GCC=`test $ac_compiler_gnu = yes && echo yes`
3774 ac_test_CFLAGS=${CFLAGS+set}
3775 ac_save_CFLAGS=$CFLAGS
3776 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3777 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_cc_g+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   ac_save_c_werror_flag=$ac_c_werror_flag
3782    ac_c_werror_flag=yes
3783    ac_cv_prog_cc_g=no
3784    CFLAGS="-g"
3785    cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791
3792 int
3793 main ()
3794 {
3795
3796   ;
3797   return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.$ac_objext
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807   (eval "$ac_compile") 2>conftest.er1
3808   ac_status=$?
3809   grep -v '^ *+' conftest.er1 >conftest.err
3810   rm -f conftest.er1
3811   cat conftest.err >&5
3812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813   (exit $ac_status); } && {
3814          test -z "$ac_c_werror_flag" ||
3815          test ! -s conftest.err
3816        } && test -s conftest.$ac_objext; then
3817   ac_cv_prog_cc_g=yes
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822         CFLAGS=""
3823       cat >conftest.$ac_ext <<_ACEOF
3824 /* confdefs.h.  */
3825 _ACEOF
3826 cat confdefs.h >>conftest.$ac_ext
3827 cat >>conftest.$ac_ext <<_ACEOF
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.$ac_objext
3839 if { (ac_try="$ac_compile"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845   (eval "$ac_compile") 2>conftest.er1
3846   ac_status=$?
3847   grep -v '^ *+' conftest.er1 >conftest.err
3848   rm -f conftest.er1
3849   cat conftest.err >&5
3850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851   (exit $ac_status); } && {
3852          test -z "$ac_c_werror_flag" ||
3853          test ! -s conftest.err
3854        } && test -s conftest.$ac_objext; then
3855   :
3856 else
3857   echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860         ac_c_werror_flag=$ac_save_c_werror_flag
3861          CFLAGS="-g"
3862          cat >conftest.$ac_ext <<_ACEOF
3863 /* confdefs.h.  */
3864 _ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h.  */
3868
3869 int
3870 main ()
3871 {
3872
3873   ;
3874   return 0;
3875 }
3876 _ACEOF
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3879 case "(($ac_try" in
3880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881   *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884   (eval "$ac_compile") 2>conftest.er1
3885   ac_status=$?
3886   grep -v '^ *+' conftest.er1 >conftest.err
3887   rm -f conftest.er1
3888   cat conftest.err >&5
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); } && {
3891          test -z "$ac_c_werror_flag" ||
3892          test ! -s conftest.err
3893        } && test -s conftest.$ac_objext; then
3894   ac_cv_prog_cc_g=yes
3895 else
3896   echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 fi
3904
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 fi
3907
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909    ac_c_werror_flag=$ac_save_c_werror_flag
3910 fi
3911 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3912 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3913 if test "$ac_test_CFLAGS" = set; then
3914   CFLAGS=$ac_save_CFLAGS
3915 elif test $ac_cv_prog_cc_g = yes; then
3916   if test "$GCC" = yes; then
3917     CFLAGS="-g -O2"
3918   else
3919     CFLAGS="-g"
3920   fi
3921 else
3922   if test "$GCC" = yes; then
3923     CFLAGS="-O2"
3924   else
3925     CFLAGS=
3926   fi
3927 fi
3928 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3929 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3930 if test "${ac_cv_prog_cc_c89+set}" = set; then
3931   echo $ECHO_N "(cached) $ECHO_C" >&6
3932 else
3933   ac_cv_prog_cc_c89=no
3934 ac_save_CC=$CC
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 #include <stdarg.h>
3942 #include <stdio.h>
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3946 struct buf { int x; };
3947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3948 static char *e (p, i)
3949      char **p;
3950      int i;
3951 {
3952   return p[i];
3953 }
3954 static char *f (char * (*g) (char **, int), char **p, ...)
3955 {
3956   char *s;
3957   va_list v;
3958   va_start (v,p);
3959   s = g (p, va_arg (v,int));
3960   va_end (v);
3961   return s;
3962 }
3963
3964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3965    function prototypes and stuff, but not '\xHH' hex character constants.
3966    These don't provoke an error unfortunately, instead are silently treated
3967    as 'x'.  The following induces an error, until -std is added to get
3968    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3969    array size at least.  It's necessary to write '\x00'==0 to get something
3970    that's true only with -std.  */
3971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3972
3973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3974    inside strings and character constants.  */
3975 #define FOO(x) 'x'
3976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3977
3978 int test (int i, double x);
3979 struct s1 {int (*f) (int a);};
3980 struct s2 {int (*f) (double a);};
3981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3982 int argc;
3983 char **argv;
3984 int
3985 main ()
3986 {
3987 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3988   ;
3989   return 0;
3990 }
3991 _ACEOF
3992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3993         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3994 do
3995   CC="$ac_save_CC $ac_arg"
3996   rm -f conftest.$ac_objext
3997 if { (ac_try="$ac_compile"
3998 case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_compile") 2>conftest.er1
4004   ac_status=$?
4005   grep -v '^ *+' conftest.er1 >conftest.err
4006   rm -f conftest.er1
4007   cat conftest.err >&5
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } && {
4010          test -z "$ac_c_werror_flag" ||
4011          test ! -s conftest.err
4012        } && test -s conftest.$ac_objext; then
4013   ac_cv_prog_cc_c89=$ac_arg
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018
4019 fi
4020
4021 rm -f core conftest.err conftest.$ac_objext
4022   test "x$ac_cv_prog_cc_c89" != "xno" && break
4023 done
4024 rm -f conftest.$ac_ext
4025 CC=$ac_save_CC
4026
4027 fi
4028 # AC_CACHE_VAL
4029 case "x$ac_cv_prog_cc_c89" in
4030   x)
4031     { echo "$as_me:$LINENO: result: none needed" >&5
4032 echo "${ECHO_T}none needed" >&6; } ;;
4033   xno)
4034     { echo "$as_me:$LINENO: result: unsupported" >&5
4035 echo "${ECHO_T}unsupported" >&6; } ;;
4036   *)
4037     CC="$CC $ac_cv_prog_cc_c89"
4038     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4039 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4040 esac
4041
4042
4043 ac_ext=c
4044 ac_cpp='$CPP $CPPFLAGS'
4045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4048
4049 depcc="$CC"   am_compiler_list=
4050
4051 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4052 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4053 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4057   # We make a subdir and do the tests there.  Otherwise we can end up
4058   # making bogus files that we don't know about and never remove.  For
4059   # instance it was reported that on HP-UX the gcc test will end up
4060   # making a dummy file named `D' -- because `-MD' means `put the output
4061   # in D'.
4062   mkdir conftest.dir
4063   # Copy depcomp to subdir because otherwise we won't find it if we're
4064   # using a relative directory.
4065   cp "$am_depcomp" conftest.dir
4066   cd conftest.dir
4067   # We will build objects and dependencies in a subdirectory because
4068   # it helps to detect inapplicable dependency modes.  For instance
4069   # both Tru64's cc and ICC support -MD to output dependencies as a
4070   # side effect of compilation, but ICC will put the dependencies in
4071   # the current directory while Tru64 will put them in the object
4072   # directory.
4073   mkdir sub
4074
4075   am_cv_CC_dependencies_compiler_type=none
4076   if test "$am_compiler_list" = ""; then
4077      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4078   fi
4079   for depmode in $am_compiler_list; do
4080     # Setup a source with many dependencies, because some compilers
4081     # like to wrap large dependency lists on column 80 (with \), and
4082     # we should not choose a depcomp mode which is confused by this.
4083     #
4084     # We need to recreate these files for each test, as the compiler may
4085     # overwrite some of them when testing with obscure command lines.
4086     # This happens at least with the AIX C compiler.
4087     : > sub/conftest.c
4088     for i in 1 2 3 4 5 6; do
4089       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4090       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4091       # Solaris 8's {/usr,}/bin/sh.
4092       touch sub/conftst$i.h
4093     done
4094     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4095
4096     case $depmode in
4097     nosideeffect)
4098       # after this tag, mechanisms are not by side-effect, so they'll
4099       # only be used when explicitly requested
4100       if test "x$enable_dependency_tracking" = xyes; then
4101         continue
4102       else
4103         break
4104       fi
4105       ;;
4106     none) break ;;
4107     esac
4108     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4109     # mode.  It turns out that the SunPro C++ compiler does not properly
4110     # handle `-M -o', and we need to detect this.
4111     if depmode=$depmode \
4112        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4113        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4114        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4115          >/dev/null 2>conftest.err &&
4116        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4117        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4118        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4119       # icc doesn't choke on unknown options, it will just issue warnings
4120       # or remarks (even with -Werror).  So we grep stderr for any message
4121       # that says an option was ignored or not supported.
4122       # When given -MP, icc 7.0 and 7.1 complain thusly:
4123       #   icc: Command line warning: ignoring option '-M'; no argument required
4124       # The diagnosis changed in icc 8.0:
4125       #   icc: Command line remark: option '-MP' not supported
4126       if (grep 'ignoring option' conftest.err ||
4127           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4128         am_cv_CC_dependencies_compiler_type=$depmode
4129         break
4130       fi
4131     fi
4132   done
4133
4134   cd ..
4135   rm -rf conftest.dir
4136 else
4137   am_cv_CC_dependencies_compiler_type=none
4138 fi
4139
4140 fi
4141 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4142 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4143 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4144
4145
4146
4147 if
4148   test "x$enable_dependency_tracking" != xno \
4149   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4150   am__fastdepCC_TRUE=
4151   am__fastdepCC_FALSE='#'
4152 else
4153   am__fastdepCC_TRUE='#'
4154   am__fastdepCC_FALSE=
4155 fi
4156
4157
4158
4159   ac_ext=c
4160 ac_cpp='$CPP $CPPFLAGS'
4161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4165 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4166 # On Suns, sometimes $CPP names a directory.
4167 if test -n "$CPP" && test -d "$CPP"; then
4168   CPP=
4169 fi
4170 if test -z "$CPP"; then
4171   if test "${ac_cv_prog_CPP+set}" = set; then
4172   echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174       # Double quotes because CPP needs to be expanded
4175     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4176     do
4177       ac_preproc_ok=false
4178 for ac_c_preproc_warn_flag in '' yes
4179 do
4180   # Use a header file that comes with gcc, so configuring glibc
4181   # with a fresh cross-compiler works.
4182   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4183   # <limits.h> exists even on freestanding compilers.
4184   # On the NeXT, cc -E runs the code through the compiler's parser,
4185   # not just through cpp. "Syntax error" is here to catch this case.
4186   cat >conftest.$ac_ext <<_ACEOF
4187 /* confdefs.h.  */
4188 _ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h.  */
4192 #ifdef __STDC__
4193 # include <limits.h>
4194 #else
4195 # include <assert.h>
4196 #endif
4197                      Syntax error
4198 _ACEOF
4199 if { (ac_try="$ac_cpp conftest.$ac_ext"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206   ac_status=$?
4207   grep -v '^ *+' conftest.er1 >conftest.err
4208   rm -f conftest.er1
4209   cat conftest.err >&5
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); } >/dev/null && {
4212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4213          test ! -s conftest.err
4214        }; then
4215   :
4216 else
4217   echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4219
4220   # Broken: fails on valid input.
4221 continue
4222 fi
4223
4224 rm -f conftest.err conftest.$ac_ext
4225
4226   # OK, works on sane cases.  Now check whether nonexistent headers
4227   # can be detected and how.
4228   cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 #include <ac_nonexistent.h>
4235 _ACEOF
4236 if { (ac_try="$ac_cpp conftest.$ac_ext"
4237 case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4243   ac_status=$?
4244   grep -v '^ *+' conftest.er1 >conftest.err
4245   rm -f conftest.er1
4246   cat conftest.err >&5
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); } >/dev/null && {
4249          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250          test ! -s conftest.err
4251        }; then
4252   # Broken: success on invalid input.
4253 continue
4254 else
4255   echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258   # Passes both tests.
4259 ac_preproc_ok=:
4260 break
4261 fi
4262
4263 rm -f conftest.err conftest.$ac_ext
4264
4265 done
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then
4269   break
4270 fi
4271
4272     done
4273     ac_cv_prog_CPP=$CPP
4274
4275 fi
4276   CPP=$ac_cv_prog_CPP
4277 else
4278   ac_cv_prog_CPP=$CPP
4279 fi
4280 { echo "$as_me:$LINENO: result: $CPP" >&5
4281 echo "${ECHO_T}$CPP" >&6; }
4282 ac_preproc_ok=false
4283 for ac_c_preproc_warn_flag in '' yes
4284 do
4285   # Use a header file that comes with gcc, so configuring glibc
4286   # with a fresh cross-compiler works.
4287   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4288   # <limits.h> exists even on freestanding compilers.
4289   # On the NeXT, cc -E runs the code through the compiler's parser,
4290   # not just through cpp. "Syntax error" is here to catch this case.
4291   cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 #ifdef __STDC__
4298 # include <limits.h>
4299 #else
4300 # include <assert.h>
4301 #endif
4302                      Syntax error
4303 _ACEOF
4304 if { (ac_try="$ac_cpp conftest.$ac_ext"
4305 case "(($ac_try" in
4306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307   *) ac_try_echo=$ac_try;;
4308 esac
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4311   ac_status=$?
4312   grep -v '^ *+' conftest.er1 >conftest.err
4313   rm -f conftest.er1
4314   cat conftest.err >&5
4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } >/dev/null && {
4317          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4318          test ! -s conftest.err
4319        }; then
4320   :
4321 else
4322   echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4324
4325   # Broken: fails on valid input.
4326 continue
4327 fi
4328
4329 rm -f conftest.err conftest.$ac_ext
4330
4331   # OK, works on sane cases.  Now check whether nonexistent headers
4332   # can be detected and how.
4333   cat >conftest.$ac_ext <<_ACEOF
4334 /* confdefs.h.  */
4335 _ACEOF
4336 cat confdefs.h >>conftest.$ac_ext
4337 cat >>conftest.$ac_ext <<_ACEOF
4338 /* end confdefs.h.  */
4339 #include <ac_nonexistent.h>
4340 _ACEOF
4341 if { (ac_try="$ac_cpp conftest.$ac_ext"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4347   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4348   ac_status=$?
4349   grep -v '^ *+' conftest.er1 >conftest.err
4350   rm -f conftest.er1
4351   cat conftest.err >&5
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); } >/dev/null && {
4354          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4355          test ! -s conftest.err
4356        }; then
4357   # Broken: success on invalid input.
4358 continue
4359 else
4360   echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363   # Passes both tests.
4364 ac_preproc_ok=:
4365 break
4366 fi
4367
4368 rm -f conftest.err conftest.$ac_ext
4369
4370 done
4371 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372 rm -f conftest.err conftest.$ac_ext
4373 if $ac_preproc_ok; then
4374   :
4375 else
4376   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4377 See \`config.log' for more details." >&5
4378 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4379 See \`config.log' for more details." >&2;}
4380    { (exit 1); exit 1; }; }
4381 fi
4382
4383 ac_ext=c
4384 ac_cpp='$CPP $CPPFLAGS'
4385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388
4389
4390   if test "$GCC" = "yes"; then
4391     if test "$kde_use_debug_code" != "no"; then
4392       if test $kde_use_debug_code = "full"; then
4393         CFLAGS="-g3 -fno-inline $CFLAGS"
4394       else
4395         CFLAGS="-g -O2 $CFLAGS"
4396       fi
4397     else
4398       CFLAGS="-O2 $CFLAGS"
4399     fi
4400   fi
4401
4402   if test "$kde_use_debug_define" = "yes"; then
4403     CFLAGS="-DNDEBUG $CFLAGS"
4404   fi
4405
4406
4407   case "$host" in
4408   *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4409   *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4410   esac
4411
4412   if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4413      LDFLAGS=""
4414   fi
4415
4416   CXXFLAGS=" $CXXFLAGS"
4417
4418   ac_ext=cpp
4419 ac_cpp='$CXXCPP $CPPFLAGS'
4420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4423 if test -z "$CXX"; then
4424   if test -n "$CCC"; then
4425     CXX=$CCC
4426   else
4427     if test -n "$ac_tool_prefix"; then
4428   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4429   do
4430     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_CXX+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test -n "$CXX"; then
4438   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 CXX=$ac_cv_prog_CXX
4458 if test -n "$CXX"; then
4459   { echo "$as_me:$LINENO: result: $CXX" >&5
4460 echo "${ECHO_T}$CXX" >&6; }
4461 else
4462   { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4464 fi
4465
4466
4467     test -n "$CXX" && break
4468   done
4469 fi
4470 if test -z "$CXX"; then
4471   ac_ct_CXX=$CXX
4472   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4473 do
4474   # Extract the first word of "$ac_prog", so it can be a program name with args.
4475 set dummy $ac_prog; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test -n "$ac_ct_CXX"; then
4482   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491     ac_cv_prog_ac_ct_CXX="$ac_prog"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497 IFS=$as_save_IFS
4498
4499 fi
4500 fi
4501 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4502 if test -n "$ac_ct_CXX"; then
4503   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4504 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4505 else
4506   { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4508 fi
4509
4510
4511   test -n "$ac_ct_CXX" && break
4512 done
4513
4514   if test "x$ac_ct_CXX" = x; then
4515     CXX="g++"
4516   else
4517     case $cross_compiling:$ac_tool_warned in
4518 yes:)
4519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4520 whose name does not start with the host triplet.  If you think this
4521 configuration is useful to you, please write to autoconf@gnu.org." >&5
4522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4523 whose name does not start with the host triplet.  If you think this
4524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4525 ac_tool_warned=yes ;;
4526 esac
4527     CXX=$ac_ct_CXX
4528   fi
4529 fi
4530
4531   fi
4532 fi
4533 # Provide some information about the compiler.
4534 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4535 ac_compiler=`set X $ac_compile; echo $2`
4536 { (ac_try="$ac_compiler --version >&5"
4537 case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_compiler --version >&5") 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); }
4546 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
4553   ac_status=$?
4554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555   (exit $ac_status); }
4556 { (ac_try="$ac_compiler -V >&5"
4557 case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562   (eval "$ac_compiler -V >&5") 2>&5
4563   ac_status=$?
4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565   (exit $ac_status); }
4566
4567 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4568 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4569 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4570   echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572   cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h.  */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h.  */
4578
4579 int
4580 main ()
4581 {
4582 #ifndef __GNUC__
4583        choke me
4584 #endif
4585
4586   ;
4587   return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_compile") 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } && {
4604          test -z "$ac_cxx_werror_flag" ||
4605          test ! -s conftest.err
4606        } && test -s conftest.$ac_objext; then
4607   ac_compiler_gnu=yes
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612         ac_compiler_gnu=no
4613 fi
4614
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4617
4618 fi
4619 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4620 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4621 GXX=`test $ac_compiler_gnu = yes && echo yes`
4622 ac_test_CXXFLAGS=${CXXFLAGS+set}
4623 ac_save_CXXFLAGS=$CXXFLAGS
4624 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4626 if test "${ac_cv_prog_cxx_g+set}" = set; then
4627   echo $ECHO_N "(cached) $ECHO_C" >&6
4628 else
4629   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4630    ac_cxx_werror_flag=yes
4631    ac_cv_prog_cxx_g=no
4632    CXXFLAGS="-g"
4633    cat >conftest.$ac_ext <<_ACEOF
4634 /* confdefs.h.  */
4635 _ACEOF
4636 cat confdefs.h >>conftest.$ac_ext
4637 cat >>conftest.$ac_ext <<_ACEOF
4638 /* end confdefs.h.  */
4639
4640 int
4641 main ()
4642 {
4643
4644   ;
4645   return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest.$ac_objext
4649 if { (ac_try="$ac_compile"
4650 case "(($ac_try" in
4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652   *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655   (eval "$ac_compile") 2>conftest.er1
4656   ac_status=$?
4657   grep -v '^ *+' conftest.er1 >conftest.err
4658   rm -f conftest.er1
4659   cat conftest.err >&5
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); } && {
4662          test -z "$ac_cxx_werror_flag" ||
4663          test ! -s conftest.err
4664        } && test -s conftest.$ac_objext; then
4665   ac_cv_prog_cxx_g=yes
4666 else
4667   echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670         CXXFLAGS=""
4671       cat >conftest.$ac_ext <<_ACEOF
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677
4678 int
4679 main ()
4680 {
4681
4682   ;
4683   return 0;
4684 }
4685 _ACEOF
4686 rm -f conftest.$ac_objext
4687 if { (ac_try="$ac_compile"
4688 case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693   (eval "$ac_compile") 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } && {
4700          test -z "$ac_cxx_werror_flag" ||
4701          test ! -s conftest.err
4702        } && test -s conftest.$ac_objext; then
4703   :
4704 else
4705   echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4707
4708         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4709          CXXFLAGS="-g"
4710          cat >conftest.$ac_ext <<_ACEOF
4711 /* confdefs.h.  */
4712 _ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h.  */
4716
4717 int
4718 main ()
4719 {
4720
4721   ;
4722   return 0;
4723 }
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (ac_try="$ac_compile"
4727 case "(($ac_try" in
4728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729   *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732   (eval "$ac_compile") 2>conftest.er1
4733   ac_status=$?
4734   grep -v '^ *+' conftest.er1 >conftest.err
4735   rm -f conftest.er1
4736   cat conftest.err >&5
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } && {
4739          test -z "$ac_cxx_werror_flag" ||
4740          test ! -s conftest.err
4741        } && test -s conftest.$ac_objext; then
4742   ac_cv_prog_cxx_g=yes
4743 else
4744   echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747
4748 fi
4749
4750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4751 fi
4752
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 fi
4755
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4758 fi
4759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4760 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4761 if test "$ac_test_CXXFLAGS" = set; then
4762   CXXFLAGS=$ac_save_CXXFLAGS
4763 elif test $ac_cv_prog_cxx_g = yes; then
4764   if test "$GXX" = yes; then
4765     CXXFLAGS="-g -O2"
4766   else
4767     CXXFLAGS="-g"
4768   fi
4769 else
4770   if test "$GXX" = yes; then
4771     CXXFLAGS="-O2"
4772   else
4773     CXXFLAGS=
4774   fi
4775 fi
4776 ac_ext=c
4777 ac_cpp='$CPP $CPPFLAGS'
4778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4781
4782 depcc="$CXX"  am_compiler_list=
4783
4784 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4785 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4786 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4787   echo $ECHO_N "(cached) $ECHO_C" >&6
4788 else
4789   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4790   # We make a subdir and do the tests there.  Otherwise we can end up
4791   # making bogus files that we don't know about and never remove.  For
4792   # instance it was reported that on HP-UX the gcc test will end up
4793   # making a dummy file named `D' -- because `-MD' means `put the output
4794   # in D'.
4795   mkdir conftest.dir
4796   # Copy depcomp to subdir because otherwise we won't find it if we're
4797   # using a relative directory.
4798   cp "$am_depcomp" conftest.dir
4799   cd conftest.dir
4800   # We will build objects and dependencies in a subdirectory because
4801   # it helps to detect inapplicable dependency modes.  For instance
4802   # both Tru64's cc and ICC support -MD to output dependencies as a
4803   # side effect of compilation, but ICC will put the dependencies in
4804   # the current directory while Tru64 will put them in the object
4805   # directory.
4806   mkdir sub
4807
4808   am_cv_CXX_dependencies_compiler_type=none
4809   if test "$am_compiler_list" = ""; then
4810      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4811   fi
4812   for depmode in $am_compiler_list; do
4813     # Setup a source with many dependencies, because some compilers
4814     # like to wrap large dependency lists on column 80 (with \), and
4815     # we should not choose a depcomp mode which is confused by this.
4816     #
4817     # We need to recreate these files for each test, as the compiler may
4818     # overwrite some of them when testing with obscure command lines.
4819     # This happens at least with the AIX C compiler.
4820     : > sub/conftest.c
4821     for i in 1 2 3 4 5 6; do
4822       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4823       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4824       # Solaris 8's {/usr,}/bin/sh.
4825       touch sub/conftst$i.h
4826     done
4827     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4828
4829     case $depmode in
4830     nosideeffect)
4831       # after this tag, mechanisms are not by side-effect, so they'll
4832       # only be used when explicitly requested
4833       if test "x$enable_dependency_tracking" = xyes; then
4834         continue
4835       else
4836         break
4837       fi
4838       ;;
4839     none) break ;;
4840     esac
4841     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4842     # mode.  It turns out that the SunPro C++ compiler does not properly
4843     # handle `-M -o', and we need to detect this.
4844     if depmode=$depmode \
4845        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4846        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4847        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4848          >/dev/null 2>conftest.err &&
4849        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4850        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4851        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4852       # icc doesn't choke on unknown options, it will just issue warnings
4853       # or remarks (even with -Werror).  So we grep stderr for any message
4854       # that says an option was ignored or not supported.
4855       # When given -MP, icc 7.0 and 7.1 complain thusly:
4856       #   icc: Command line warning: ignoring option '-M'; no argument required
4857       # The diagnosis changed in icc 8.0:
4858       #   icc: Command line remark: option '-MP' not supported
4859       if (grep 'ignoring option' conftest.err ||
4860           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4861         am_cv_CXX_dependencies_compiler_type=$depmode
4862         break
4863       fi
4864     fi
4865   done
4866
4867   cd ..
4868   rm -rf conftest.dir
4869 else
4870   am_cv_CXX_dependencies_compiler_type=none
4871 fi
4872
4873 fi
4874 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4875 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4876 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4877
4878
4879
4880 if
4881   test "x$enable_dependency_tracking" != xno \
4882   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4883   am__fastdepCXX_TRUE=
4884   am__fastdepCXX_FALSE='#'
4885 else
4886   am__fastdepCXX_TRUE='#'
4887   am__fastdepCXX_FALSE=
4888 fi
4889
4890
4891
4892   if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4893     if test "$kde_use_debug_code" != "no"; then
4894       if test "$CXX" = "KCC"; then
4895         CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4896       else
4897         if test "$kde_use_debug_code" = "full"; then
4898           CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
4899         else
4900           CXXFLAGS="-g -O2 $CXXFLAGS"
4901         fi
4902       fi
4903
4904 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4905 echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6; }
4906 kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
4907 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4908   echo $ECHO_N "(cached) $ECHO_C" >&6
4909 else
4910
4911
4912
4913 ac_ext=cpp
4914 ac_cpp='$CXXCPP $CPPFLAGS'
4915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4918
4919 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4920
4921
4922
4923   save_CXXFLAGS="$CXXFLAGS"
4924   CXXFLAGS="$CXXFLAGS -fno-builtin"
4925   cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h.  */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h.  */
4931
4932 int
4933 main ()
4934 {
4935  return 0;
4936   ;
4937   return 0;
4938 }
4939 _ACEOF
4940 rm -f conftest.$ac_objext conftest$ac_exeext
4941 if { (ac_try="$ac_link"
4942 case "(($ac_try" in
4943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944   *) ac_try_echo=$ac_try;;
4945 esac
4946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4947   (eval "$ac_link") 2>conftest.er1
4948   ac_status=$?
4949   grep -v '^ *+' conftest.er1 >conftest.err
4950   rm -f conftest.er1
4951   cat conftest.err >&5
4952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953   (exit $ac_status); } && {
4954          test -z "$ac_cxx_werror_flag" ||
4955          test ! -s conftest.err
4956        } && test -s conftest$ac_exeext &&
4957        $as_test_x conftest$ac_exeext; then
4958   eval "kde_cv_prog_cxx_$kde_cache=yes"
4959 else
4960   echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963
4964 fi
4965
4966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4967       conftest$ac_exeext conftest.$ac_ext
4968   CXXFLAGS="$save_CXXFLAGS"
4969   ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974
4975
4976 fi
4977
4978 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
4979  { echo "$as_me:$LINENO: result: yes" >&5
4980 echo "${ECHO_T}yes" >&6; }
4981  :
4982  CXXFLAGS="-fno-builtin $CXXFLAGS"
4983 else
4984  { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4986  :
4987
4988 fi
4989
4990
4991
4992 { echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
4993 echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6; }
4994 kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
4995 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998
4999
5000    ac_ext=cpp
5001 ac_cpp='$CXXCPP $CPPFLAGS'
5002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5005
5006 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5007
5008
5009   save_CXXFLAGS="$CXXFLAGS"
5010   CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
5011   cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017
5018 int
5019 main ()
5020 {
5021  return 0;
5022   ;
5023   return 0;
5024 }
5025 _ACEOF
5026 rm -f conftest.$ac_objext conftest$ac_exeext
5027 if { (ac_try="$ac_link"
5028 case "(($ac_try" in
5029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030   *) ac_try_echo=$ac_try;;
5031 esac
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033   (eval "$ac_link") 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } && {
5040          test -z "$ac_cxx_werror_flag" ||
5041          test ! -s conftest.err
5042        } && test -s conftest$ac_exeext &&
5043        $as_test_x conftest$ac_exeext; then
5044   eval "kde_cv_prog_cxx_$kde_cache=yes"
5045 else
5046   echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049
5050 fi
5051
5052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5053       conftest$ac_exeext conftest.$ac_ext
5054   CXXFLAGS="$save_CXXFLAGS"
5055   ac_ext=c
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060
5061
5062 fi
5063
5064 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5065  { echo "$as_me:$LINENO: result: yes" >&5
5066 echo "${ECHO_T}yes" >&6; }
5067  :
5068  WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
5069 else
5070  { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5072  :
5073  WOVERLOADED_VRITUAL=""
5074 fi
5075
5076
5077     else
5078       if test "$CXX" = "KCC"; then
5079         CXXFLAGS="+K3 $CXXFLAGS"
5080       else
5081         CXXFLAGS="-O2 $CXXFLAGS"
5082       fi
5083     fi
5084   fi
5085
5086   if test "$kde_use_debug_define" = "yes"; then
5087     CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
5088   fi
5089
5090   if test "$kde_use_profiling" = "yes"; then
5091
5092 { echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
5093 echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6; }
5094 kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
5095 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098
5099
5100    ac_ext=cpp
5101 ac_cpp='$CXXCPP $CPPFLAGS'
5102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5105
5106 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5107
5108
5109   save_CXXFLAGS="$CXXFLAGS"
5110   CXXFLAGS="$CXXFLAGS -pg"
5111   cat >conftest.$ac_ext <<_ACEOF
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117
5118 int
5119 main ()
5120 {
5121  return 0;
5122   ;
5123   return 0;
5124 }
5125 _ACEOF
5126 rm -f conftest.$ac_objext conftest$ac_exeext
5127 if { (ac_try="$ac_link"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_link") 2>conftest.er1
5134   ac_status=$?
5135   grep -v '^ *+' conftest.er1 >conftest.err
5136   rm -f conftest.er1
5137   cat conftest.err >&5
5138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139   (exit $ac_status); } && {
5140          test -z "$ac_cxx_werror_flag" ||
5141          test ! -s conftest.err
5142        } && test -s conftest$ac_exeext &&
5143        $as_test_x conftest$ac_exeext; then
5144   eval "kde_cv_prog_cxx_$kde_cache=yes"
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5148
5149
5150 fi
5151
5152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5153       conftest$ac_exeext conftest.$ac_ext
5154   CXXFLAGS="$save_CXXFLAGS"
5155   ac_ext=c
5156 ac_cpp='$CPP $CPPFLAGS'
5157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5160
5161
5162 fi
5163
5164 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5165  { echo "$as_me:$LINENO: result: yes" >&5
5166 echo "${ECHO_T}yes" >&6; }
5167  :
5168
5169       CFLAGS="-pg $CFLAGS"
5170       CXXFLAGS="-pg $CXXFLAGS"
5171
5172 else
5173  { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5175  :
5176
5177 fi
5178
5179   fi
5180
5181   if test "$kde_use_warnings" = "yes"; then
5182       if test "$GCC" = "yes"; then
5183         CXXFLAGS="-Wall -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
5184         case $host in
5185           *-*-linux-gnu)
5186             CFLAGS="-ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
5187             CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
5188
5189 { echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
5190 echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5191 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5192 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195
5196
5197    ac_ext=cpp
5198 ac_cpp='$CXXCPP $CPPFLAGS'
5199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5202
5203 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5204
5205
5206   save_CXXFLAGS="$CXXFLAGS"
5207   CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
5208   cat >conftest.$ac_ext <<_ACEOF
5209 /* confdefs.h.  */
5210 _ACEOF
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h.  */
5214
5215 int
5216 main ()
5217 {
5218  return 0;
5219   ;
5220   return 0;
5221 }
5222 _ACEOF
5223 rm -f conftest.$ac_objext conftest$ac_exeext
5224 if { (ac_try="$ac_link"
5225 case "(($ac_try" in
5226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227   *) ac_try_echo=$ac_try;;
5228 esac
5229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230   (eval "$ac_link") 2>conftest.er1
5231   ac_status=$?
5232   grep -v '^ *+' conftest.er1 >conftest.err
5233   rm -f conftest.er1
5234   cat conftest.err >&5
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); } && {
5237          test -z "$ac_cxx_werror_flag" ||
5238          test ! -s conftest.err
5239        } && test -s conftest$ac_exeext &&
5240        $as_test_x conftest$ac_exeext; then
5241   eval "kde_cv_prog_cxx_$kde_cache=yes"
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246
5247 fi
5248
5249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5250       conftest$ac_exeext conftest.$ac_ext
5251   CXXFLAGS="$save_CXXFLAGS"
5252   ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5257
5258
5259 fi
5260
5261 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5262  { echo "$as_me:$LINENO: result: yes" >&5
5263 echo "${ECHO_T}yes" >&6; }
5264  :
5265  CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
5266 else
5267  { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5269  :
5270
5271 fi
5272
5273
5274 { echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
5275 echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5276 kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5277 if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280
5281
5282   ac_ext=c
5283 ac_cpp='$CPP $CPPFLAGS'
5284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5287
5288   save_CFLAGS="$CFLAGS"
5289   CFLAGS="$CFLAGS -Wmissing-format-attribute"
5290   cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h.  */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h.  */
5296
5297 int
5298 main ()
5299 {
5300  return 0;
5301   ;
5302   return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (ac_try="$ac_link"
5307 case "(($ac_try" in
5308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309   *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312   (eval "$ac_link") 2>conftest.er1
5313   ac_status=$?
5314   grep -v '^ *+' conftest.er1 >conftest.err
5315   rm -f conftest.er1
5316   cat conftest.err >&5
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && {
5319          test -z "$ac_c_werror_flag" ||
5320          test ! -s conftest.err
5321        } && test -s conftest$ac_exeext &&
5322        $as_test_x conftest$ac_exeext; then
5323   eval "kde_cv_prog_cc_$kde_cache=yes"
5324 else
5325   echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328
5329 fi
5330
5331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5332       conftest$ac_exeext conftest.$ac_ext
5333   CFLAGS="$save_CFLAGS"
5334   ac_ext=c
5335 ac_cpp='$CPP $CPPFLAGS'
5336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5339
5340
5341 fi
5342
5343 if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
5344  { echo "$as_me:$LINENO: result: yes" >&5
5345 echo "${ECHO_T}yes" >&6; }
5346  :
5347  CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
5348 else
5349  { echo "$as_me:$LINENO: result: no" >&5
5350 echo "${ECHO_T}no" >&6; }
5351  :
5352
5353 fi
5354
5355           ;;
5356         esac
5357
5358 { echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
5359 echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6; }
5360 kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
5361 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5362   echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364
5365
5366    ac_ext=cpp
5367 ac_cpp='$CXXCPP $CPPFLAGS'
5368 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371
5372 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5373
5374
5375   save_CXXFLAGS="$CXXFLAGS"
5376   CXXFLAGS="$CXXFLAGS -Wundef"
5377   cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h.  */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h.  */
5383
5384 int
5385 main ()
5386 {
5387  return 0;
5388   ;
5389   return 0;
5390 }
5391 _ACEOF
5392 rm -f conftest.$ac_objext conftest$ac_exeext
5393 if { (ac_try="$ac_link"
5394 case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399   (eval "$ac_link") 2>conftest.er1
5400   ac_status=$?
5401   grep -v '^ *+' conftest.er1 >conftest.err
5402   rm -f conftest.er1
5403   cat conftest.err >&5
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); } && {
5406          test -z "$ac_cxx_werror_flag" ||
5407          test ! -s conftest.err
5408        } && test -s conftest$ac_exeext &&
5409        $as_test_x conftest$ac_exeext; then
5410   eval "kde_cv_prog_cxx_$kde_cache=yes"
5411 else
5412   echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415
5416 fi
5417
5418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5419       conftest$ac_exeext conftest.$ac_ext
5420   CXXFLAGS="$save_CXXFLAGS"
5421   ac_ext=c
5422 ac_cpp='$CPP $CPPFLAGS'
5423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5426
5427
5428 fi
5429
5430 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5431  { echo "$as_me:$LINENO: result: yes" >&5
5432 echo "${ECHO_T}yes" >&6; }
5433  :
5434  CXXFLAGS="-Wundef $CXXFLAGS"
5435 else
5436  { echo "$as_me:$LINENO: result: no" >&5
5437 echo "${ECHO_T}no" >&6; }
5438  :
5439
5440 fi
5441
5442
5443 { echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5444 echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6; }
5445 kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
5446 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449
5450
5451    ac_ext=cpp
5452 ac_cpp='$CXXCPP $CPPFLAGS'
5453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5456
5457 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5458
5459
5460   save_CXXFLAGS="$CXXFLAGS"
5461   CXXFLAGS="$CXXFLAGS -Wno-long-long"
5462   cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h.  */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h.  */
5468
5469 int
5470 main ()
5471 {
5472  return 0;
5473   ;
5474   return 0;
5475 }
5476 _ACEOF
5477 rm -f conftest.$ac_objext conftest$ac_exeext
5478 if { (ac_try="$ac_link"
5479 case "(($ac_try" in
5480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5481   *) ac_try_echo=$ac_try;;
5482 esac
5483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5484   (eval "$ac_link") 2>conftest.er1
5485   ac_status=$?
5486   grep -v '^ *+' conftest.er1 >conftest.err
5487   rm -f conftest.er1
5488   cat conftest.err >&5
5489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); } && {
5491          test -z "$ac_cxx_werror_flag" ||
5492          test ! -s conftest.err
5493        } && test -s conftest$ac_exeext &&
5494        $as_test_x conftest$ac_exeext; then
5495   eval "kde_cv_prog_cxx_$kde_cache=yes"
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500
5501 fi
5502
5503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5504       conftest$ac_exeext conftest.$ac_ext
5505   CXXFLAGS="$save_CXXFLAGS"
5506   ac_ext=c
5507 ac_cpp='$CPP $CPPFLAGS'
5508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511
5512
5513 fi
5514
5515 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5516  { echo "$as_me:$LINENO: result: yes" >&5
5517 echo "${ECHO_T}yes" >&6; }
5518  :
5519  CXXFLAGS="-Wno-long-long $CXXFLAGS"
5520 else
5521  { echo "$as_me:$LINENO: result: no" >&5
5522 echo "${ECHO_T}no" >&6; }
5523  :
5524
5525 fi
5526
5527
5528 { echo "$as_me:$LINENO: checking whether $CXX supports -Wnon-virtual-dtor" >&5
5529 echo $ECHO_N "checking whether $CXX supports -Wnon-virtual-dtor... $ECHO_C" >&6; }
5530 kde_cache=`echo Wnon-virtual-dtor | sed 'y% .=/+-,%____p__%'`
5531 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534
5535
5536    ac_ext=cpp
5537 ac_cpp='$CXXCPP $CPPFLAGS'
5538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5541
5542 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5543
5544
5545   save_CXXFLAGS="$CXXFLAGS"
5546   CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
5547   cat >conftest.$ac_ext <<_ACEOF
5548 /* confdefs.h.  */
5549 _ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h.  */
5553
5554 int
5555 main ()
5556 {
5557  return 0;
5558   ;
5559   return 0;
5560 }
5561 _ACEOF
5562 rm -f conftest.$ac_objext conftest$ac_exeext
5563 if { (ac_try="$ac_link"
5564 case "(($ac_try" in
5565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566   *) ac_try_echo=$ac_try;;
5567 esac
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569   (eval "$ac_link") 2>conftest.er1
5570   ac_status=$?
5571   grep -v '^ *+' conftest.er1 >conftest.err
5572   rm -f conftest.er1
5573   cat conftest.err >&5
5574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575   (exit $ac_status); } && {
5576          test -z "$ac_cxx_werror_flag" ||
5577          test ! -s conftest.err
5578        } && test -s conftest$ac_exeext &&
5579        $as_test_x conftest$ac_exeext; then
5580   eval "kde_cv_prog_cxx_$kde_cache=yes"
5581 else
5582   echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5584
5585
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5589       conftest$ac_exeext conftest.$ac_ext
5590   CXXFLAGS="$save_CXXFLAGS"
5591   ac_ext=c
5592 ac_cpp='$CPP $CPPFLAGS'
5593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596
5597
5598 fi
5599
5600 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5601  { echo "$as_me:$LINENO: result: yes" >&5
5602 echo "${ECHO_T}yes" >&6; }
5603  :
5604  CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
5605 else
5606  { echo "$as_me:$LINENO: result: no" >&5
5607 echo "${ECHO_T}no" >&6; }
5608  :
5609
5610 fi
5611
5612      fi
5613   fi
5614
5615   if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5616     CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5617   fi
5618
5619   # Check whether --enable-pch was given.
5620 if test "${enable_pch+set}" = set; then
5621   enableval=$enable_pch;  kde_use_pch=$enableval
5622 else
5623    kde_use_pch=no
5624 fi
5625
5626
5627   HAVE_GCC_VISIBILITY=0
5628
5629
5630   if test "$GXX" = "yes"; then
5631
5632 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5633 echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6; }
5634 kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5635 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5636   echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638
5639
5640    ac_ext=cpp
5641 ac_cpp='$CXXCPP $CPPFLAGS'
5642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5645
5646 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5647
5648
5649   save_CXXFLAGS="$CXXFLAGS"
5650   CXXFLAGS="$CXXFLAGS -fno-exceptions"
5651   cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h.  */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h.  */
5657
5658 int
5659 main ()
5660 {
5661  return 0;
5662   ;
5663   return 0;
5664 }
5665 _ACEOF
5666 rm -f conftest.$ac_objext conftest$ac_exeext
5667 if { (ac_try="$ac_link"
5668 case "(($ac_try" in
5669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670   *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673   (eval "$ac_link") 2>conftest.er1
5674   ac_status=$?
5675   grep -v '^ *+' conftest.er1 >conftest.err
5676   rm -f conftest.er1
5677   cat conftest.err >&5
5678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679   (exit $ac_status); } && {
5680          test -z "$ac_cxx_werror_flag" ||
5681          test ! -s conftest.err
5682        } && test -s conftest$ac_exeext &&
5683        $as_test_x conftest$ac_exeext; then
5684   eval "kde_cv_prog_cxx_$kde_cache=yes"
5685 else
5686   echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689
5690 fi
5691
5692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5693       conftest$ac_exeext conftest.$ac_ext
5694   CXXFLAGS="$save_CXXFLAGS"
5695   ac_ext=c
5696 ac_cpp='$CPP $CPPFLAGS'
5697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700
5701
5702 fi
5703
5704 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5705  { echo "$as_me:$LINENO: result: yes" >&5
5706 echo "${ECHO_T}yes" >&6; }
5707  :
5708  CXXFLAGS="$CXXFLAGS -fno-exceptions"
5709 else
5710  { echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6; }
5712  :
5713
5714 fi
5715
5716
5717 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5718 echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6; }
5719 kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
5720 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5721   echo $ECHO_N "(cached) $ECHO_C" >&6
5722 else
5723
5724
5725    ac_ext=cpp
5726 ac_cpp='$CXXCPP $CPPFLAGS'
5727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5730
5731 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5732
5733
5734   save_CXXFLAGS="$CXXFLAGS"
5735   CXXFLAGS="$CXXFLAGS -fno-check-new"
5736   cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742
5743 int
5744 main ()
5745 {
5746  return 0;
5747   ;
5748   return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext conftest$ac_exeext
5752 if { (ac_try="$ac_link"
5753 case "(($ac_try" in
5754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755   *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758   (eval "$ac_link") 2>conftest.er1
5759   ac_status=$?
5760   grep -v '^ *+' conftest.er1 >conftest.err
5761   rm -f conftest.er1
5762   cat conftest.err >&5
5763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764   (exit $ac_status); } && {
5765          test -z "$ac_cxx_werror_flag" ||
5766          test ! -s conftest.err
5767        } && test -s conftest$ac_exeext &&
5768        $as_test_x conftest$ac_exeext; then
5769   eval "kde_cv_prog_cxx_$kde_cache=yes"
5770 else
5771   echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774
5775 fi
5776
5777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5778       conftest$ac_exeext conftest.$ac_ext
5779   CXXFLAGS="$save_CXXFLAGS"
5780   ac_ext=c
5781 ac_cpp='$CPP $CPPFLAGS'
5782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
5786
5787 fi
5788
5789 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5790  { echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6; }
5792  :
5793  CXXFLAGS="$CXXFLAGS -fno-check-new"
5794 else
5795  { echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6; }
5797  :
5798
5799 fi
5800
5801
5802 { echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
5803 echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6; }
5804 kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
5805 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5806   echo $ECHO_N "(cached) $ECHO_C" >&6
5807 else
5808
5809
5810    ac_ext=cpp
5811 ac_cpp='$CXXCPP $CPPFLAGS'
5812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5815
5816 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5817
5818
5819   save_CXXFLAGS="$CXXFLAGS"
5820   CXXFLAGS="$CXXFLAGS -fno-common"
5821   cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827
5828 int
5829 main ()
5830 {
5831  return 0;
5832   ;
5833   return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest.$ac_objext conftest$ac_exeext
5837 if { (ac_try="$ac_link"
5838 case "(($ac_try" in
5839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840   *) ac_try_echo=$ac_try;;
5841 esac
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843   (eval "$ac_link") 2>conftest.er1
5844   ac_status=$?
5845   grep -v '^ *+' conftest.er1 >conftest.err
5846   rm -f conftest.er1
5847   cat conftest.err >&5
5848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849   (exit $ac_status); } && {
5850          test -z "$ac_cxx_werror_flag" ||
5851          test ! -s conftest.err
5852        } && test -s conftest$ac_exeext &&
5853        $as_test_x conftest$ac_exeext; then
5854   eval "kde_cv_prog_cxx_$kde_cache=yes"
5855 else
5856   echo "$as_me: failed program was:" >&5
5857 sed 's/^/| /' conftest.$ac_ext >&5
5858
5859
5860 fi
5861
5862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5863       conftest$ac_exeext conftest.$ac_ext
5864   CXXFLAGS="$save_CXXFLAGS"
5865   ac_ext=c
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870
5871
5872 fi
5873
5874 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5875  { echo "$as_me:$LINENO: result: yes" >&5
5876 echo "${ECHO_T}yes" >&6; }
5877  :
5878  CXXFLAGS="$CXXFLAGS -fno-common"
5879 else
5880  { echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6; }
5882  :
5883
5884 fi
5885
5886
5887 { echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
5888 echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
5889 kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
5890 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893
5894
5895    ac_ext=cpp
5896 ac_cpp='$CXXCPP $CPPFLAGS'
5897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5900
5901 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5902
5903
5904   save_CXXFLAGS="$CXXFLAGS"
5905   CXXFLAGS="$CXXFLAGS -fexceptions"
5906   cat >conftest.$ac_ext <<_ACEOF
5907 /* confdefs.h.  */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h.  */
5912
5913 int
5914 main ()
5915 {
5916  return 0;
5917   ;
5918   return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest.$ac_objext conftest$ac_exeext
5922 if { (ac_try="$ac_link"
5923 case "(($ac_try" in
5924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925   *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928   (eval "$ac_link") 2>conftest.er1
5929   ac_status=$?
5930   grep -v '^ *+' conftest.er1 >conftest.err
5931   rm -f conftest.er1
5932   cat conftest.err >&5
5933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934   (exit $ac_status); } && {
5935          test -z "$ac_cxx_werror_flag" ||
5936          test ! -s conftest.err
5937        } && test -s conftest$ac_exeext &&
5938        $as_test_x conftest$ac_exeext; then
5939   eval "kde_cv_prog_cxx_$kde_cache=yes"
5940 else
5941   echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944
5945 fi
5946
5947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5948       conftest$ac_exeext conftest.$ac_ext
5949   CXXFLAGS="$save_CXXFLAGS"
5950   ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5955
5956
5957 fi
5958
5959 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5960  { echo "$as_me:$LINENO: result: yes" >&5
5961 echo "${ECHO_T}yes" >&6; }
5962  :
5963  USE_EXCEPTIONS="-fexceptions"
5964 else
5965  { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5967  :
5968  USE_EXCEPTIONS=
5969 fi
5970
5971     ENABLE_PERMISSIVE_FLAG="-fpermissive"
5972
5973     if test "$kde_use_pch" = "yes"; then
5974         { echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
5975 echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6; }
5976         echo >conftest.h
5977         if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
5978             kde_gcc_supports_pch=yes
5979             { echo "$as_me:$LINENO: result: yes" >&5
5980 echo "${ECHO_T}yes" >&6; }
5981         else
5982             kde_gcc_supports_pch=no
5983             { echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6; }
5985         fi
5986         if test "$kde_gcc_supports_pch" = "yes"; then
5987             { echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
5988 echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6; }
5989             if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
5990                 kde_gcc_supports_pch=yes
5991                 { echo "$as_me:$LINENO: result: yes" >&5
5992 echo "${ECHO_T}yes" >&6; }
5993             else
5994                 kde_gcc_supports_pch=no
5995                 { echo "$as_me:$LINENO: result: no" >&5
5996 echo "${ECHO_T}no" >&6; }
5997             fi
5998         fi
5999         rm -f conftest.h conftest.h.gch
6000     fi
6001
6002
6003 if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
6004   unsermake_enable_pch_TRUE=
6005   unsermake_enable_pch_FALSE='#'
6006 else
6007   unsermake_enable_pch_TRUE='#'
6008   unsermake_enable_pch_FALSE=
6009 fi
6010
6011   fi
6012   if test "$CXX" = "KCC"; then
6013
6014     if test "$kde_use_pch" = "yes"; then
6015
6016 { echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
6017 echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6; }
6018 kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
6019 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6020   echo $ECHO_N "(cached) $ECHO_C" >&6
6021 else
6022
6023
6024    ac_ext=cpp
6025 ac_cpp='$CXXCPP $CPPFLAGS'
6026 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6029
6030 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6031
6032
6033   save_CXXFLAGS="$CXXFLAGS"
6034   CXXFLAGS="$CXXFLAGS --pch"
6035   cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h.  */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h.  */
6041
6042 int
6043 main ()
6044 {
6045  return 0;
6046   ;
6047   return 0;
6048 }
6049 _ACEOF
6050 rm -f conftest.$ac_objext conftest$ac_exeext
6051 if { (ac_try="$ac_link"
6052 case "(($ac_try" in
6053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6054   *) ac_try_echo=$ac_try;;
6055 esac
6056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6057   (eval "$ac_link") 2>conftest.er1
6058   ac_status=$?
6059   grep -v '^ *+' conftest.er1 >conftest.err
6060   rm -f conftest.er1
6061   cat conftest.err >&5
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); } && {
6064          test -z "$ac_cxx_werror_flag" ||
6065          test ! -s conftest.err
6066        } && test -s conftest$ac_exeext &&
6067        $as_test_x conftest$ac_exeext; then
6068   eval "kde_cv_prog_cxx_$kde_cache=yes"
6069 else
6070   echo "$as_me: failed program was:" >&5
6071 sed 's/^/| /' conftest.$ac_ext >&5
6072
6073
6074 fi
6075
6076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6077       conftest$ac_exeext conftest.$ac_ext
6078   CXXFLAGS="$save_CXXFLAGS"
6079   ac_ext=c
6080 ac_cpp='$CPP $CPPFLAGS'
6081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6084
6085
6086 fi
6087
6088 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6089  { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6091  :
6092  CXXFLAGS="$CXXFLAGS --pch"
6093 else
6094  { echo "$as_me:$LINENO: result: no" >&5
6095 echo "${ECHO_T}no" >&6; }
6096  :
6097
6098 fi
6099
6100                                               fi
6101
6102 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
6103 echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6; }
6104 kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
6105 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108
6109
6110    ac_ext=cpp
6111 ac_cpp='$CXXCPP $CPPFLAGS'
6112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6115
6116 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6117
6118
6119   save_CXXFLAGS="$CXXFLAGS"
6120   CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6121   cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h.  */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h.  */
6127
6128 int
6129 main ()
6130 {
6131  return 0;
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (ac_try="$ac_link"
6138 case "(($ac_try" in
6139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140   *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143   (eval "$ac_link") 2>conftest.er1
6144   ac_status=$?
6145   grep -v '^ *+' conftest.er1 >conftest.err
6146   rm -f conftest.er1
6147   cat conftest.err >&5
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); } && {
6150          test -z "$ac_cxx_werror_flag" ||
6151          test ! -s conftest.err
6152        } && test -s conftest$ac_exeext &&
6153        $as_test_x conftest$ac_exeext; then
6154   eval "kde_cv_prog_cxx_$kde_cache=yes"
6155 else
6156   echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6158
6159
6160 fi
6161
6162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6163       conftest$ac_exeext conftest.$ac_ext
6164   CXXFLAGS="$save_CXXFLAGS"
6165   ac_ext=c
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6170
6171
6172 fi
6173
6174 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6175  { echo "$as_me:$LINENO: result: yes" >&5
6176 echo "${ECHO_T}yes" >&6; }
6177  :
6178  CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6179 else
6180  { echo "$as_me:$LINENO: result: no" >&5
6181 echo "${ECHO_T}no" >&6; }
6182  :
6183
6184 fi
6185
6186
6187 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
6188 echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6; }
6189 kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
6190 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193
6194
6195    ac_ext=cpp
6196 ac_cpp='$CXXCPP $CPPFLAGS'
6197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6200
6201 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6202
6203
6204   save_CXXFLAGS="$CXXFLAGS"
6205   CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6206   cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212
6213 int
6214 main ()
6215 {
6216  return 0;
6217   ;
6218   return 0;
6219 }
6220 _ACEOF
6221 rm -f conftest.$ac_objext conftest$ac_exeext
6222 if { (ac_try="$ac_link"
6223 case "(($ac_try" in
6224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225   *) ac_try_echo=$ac_try;;
6226 esac
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228   (eval "$ac_link") 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } && {
6235          test -z "$ac_cxx_werror_flag" ||
6236          test ! -s conftest.err
6237        } && test -s conftest$ac_exeext &&
6238        $as_test_x conftest$ac_exeext; then
6239   eval "kde_cv_prog_cxx_$kde_cache=yes"
6240 else
6241   echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6243
6244
6245 fi
6246
6247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6248       conftest$ac_exeext conftest.$ac_ext
6249   CXXFLAGS="$save_CXXFLAGS"
6250   ac_ext=c
6251 ac_cpp='$CPP $CPPFLAGS'
6252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6255
6256
6257 fi
6258
6259 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6260  { echo "$as_me:$LINENO: result: yes" >&5
6261 echo "${ECHO_T}yes" >&6; }
6262  :
6263  CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6264 else
6265  { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6267  :
6268
6269 fi
6270
6271
6272 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
6273 echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6; }
6274 kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6275 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278
6279
6280    ac_ext=cpp
6281 ac_cpp='$CXXCPP $CPPFLAGS'
6282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6285
6286 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6287
6288
6289   save_CXXFLAGS="$CXXFLAGS"
6290   CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6291   cat >conftest.$ac_ext <<_ACEOF
6292 /* confdefs.h.  */
6293 _ACEOF
6294 cat confdefs.h >>conftest.$ac_ext
6295 cat >>conftest.$ac_ext <<_ACEOF
6296 /* end confdefs.h.  */
6297
6298 int
6299 main ()
6300 {
6301  return 0;
6302   ;
6303   return 0;
6304 }
6305 _ACEOF
6306 rm -f conftest.$ac_objext conftest$ac_exeext
6307 if { (ac_try="$ac_link"
6308 case "(($ac_try" in
6309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310   *) ac_try_echo=$ac_try;;
6311 esac
6312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313   (eval "$ac_link") 2>conftest.er1
6314   ac_status=$?
6315   grep -v '^ *+' conftest.er1 >conftest.err
6316   rm -f conftest.er1
6317   cat conftest.err >&5
6318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319   (exit $ac_status); } && {
6320          test -z "$ac_cxx_werror_flag" ||
6321          test ! -s conftest.err
6322        } && test -s conftest$ac_exeext &&
6323        $as_test_x conftest$ac_exeext; then
6324   eval "kde_cv_prog_cxx_$kde_cache=yes"
6325 else
6326   echo "$as_me: failed program was:" >&5
6327 sed 's/^/| /' conftest.$ac_ext >&5
6328
6329
6330 fi
6331
6332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6333       conftest$ac_exeext conftest.$ac_ext
6334   CXXFLAGS="$save_CXXFLAGS"
6335   ac_ext=c
6336 ac_cpp='$CPP $CPPFLAGS'
6337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
6341
6342 fi
6343
6344 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6345  { echo "$as_me:$LINENO: result: yes" >&5
6346 echo "${ECHO_T}yes" >&6; }
6347  :
6348  CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6349 else
6350  { echo "$as_me:$LINENO: result: no" >&5
6351 echo "${ECHO_T}no" >&6; }
6352  :
6353
6354 fi
6355
6356
6357 { echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
6358 echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6; }
6359 kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6360 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6361   echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363
6364
6365    ac_ext=cpp
6366 ac_cpp='$CXXCPP $CPPFLAGS'
6367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6370
6371 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6372
6373
6374   save_CXXFLAGS="$CXXFLAGS"
6375   CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6376   cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382
6383 int
6384 main ()
6385 {
6386  return 0;
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext conftest$ac_exeext
6392 if { (ac_try="$ac_link"
6393 case "(($ac_try" in
6394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395   *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398   (eval "$ac_link") 2>conftest.er1
6399   ac_status=$?
6400   grep -v '^ *+' conftest.er1 >conftest.err
6401   rm -f conftest.er1
6402   cat conftest.err >&5
6403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404   (exit $ac_status); } && {
6405          test -z "$ac_cxx_werror_flag" ||
6406          test ! -s conftest.err
6407        } && test -s conftest$ac_exeext &&
6408        $as_test_x conftest$ac_exeext; then
6409   eval "kde_cv_prog_cxx_$kde_cache=yes"
6410 else
6411   echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6413
6414
6415 fi
6416
6417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6418       conftest$ac_exeext conftest.$ac_ext
6419   CXXFLAGS="$save_CXXFLAGS"
6420   ac_ext=c
6421 ac_cpp='$CPP $CPPFLAGS'
6422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425
6426
6427 fi
6428
6429 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6430  { echo "$as_me:$LINENO: result: yes" >&5
6431 echo "${ECHO_T}yes" >&6; }
6432  :
6433  CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6434 else
6435  { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6437  :
6438
6439 fi
6440
6441
6442 { echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6443 echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6; }
6444 kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6445 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448
6449
6450    ac_ext=cpp
6451 ac_cpp='$CXXCPP $CPPFLAGS'
6452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6455
6456 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6457
6458
6459   save_CXXFLAGS="$CXXFLAGS"
6460   CXXFLAGS="$CXXFLAGS --one_per"
6461   cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h.  */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h.  */
6467
6468 int
6469 main ()
6470 {
6471  return 0;
6472   ;
6473   return 0;
6474 }
6475 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext
6477 if { (ac_try="$ac_link"
6478 case "(($ac_try" in
6479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480   *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483   (eval "$ac_link") 2>conftest.er1
6484   ac_status=$?
6485   grep -v '^ *+' conftest.er1 >conftest.err
6486   rm -f conftest.er1
6487   cat conftest.err >&5
6488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489   (exit $ac_status); } && {
6490          test -z "$ac_cxx_werror_flag" ||
6491          test ! -s conftest.err
6492        } && test -s conftest$ac_exeext &&
6493        $as_test_x conftest$ac_exeext; then
6494   eval "kde_cv_prog_cxx_$kde_cache=yes"
6495 else
6496   echo "$as_me: failed program was:" >&5
6497 sed 's/^/| /' conftest.$ac_ext >&5
6498
6499
6500 fi
6501
6502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6503       conftest$ac_exeext conftest.$ac_ext
6504   CXXFLAGS="$save_CXXFLAGS"
6505   ac_ext=c
6506 ac_cpp='$CPP $CPPFLAGS'
6507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6510
6511
6512 fi
6513
6514 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6515  { echo "$as_me:$LINENO: result: yes" >&5
6516 echo "${ECHO_T}yes" >&6; }
6517  :
6518  CXXFLAGS="$CXXFLAGS --one_per"
6519 else
6520  { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6522  :
6523
6524 fi
6525
6526   fi
6527
6528     USE_RTTI=
6529
6530
6531   case "$host" in
6532       *-*-irix*)  test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6533       *-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6534       *-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6535       *-*-solaris*)
6536         if test "$GXX" = yes; then
6537           libstdcpp=`$CXX -print-file-name=libstdc++.so`
6538           if test ! -f $libstdcpp; then
6539              { { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
6540 echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
6541    { (exit 1); exit 1; }; }
6542           fi
6543         fi
6544         ;;
6545   esac
6546
6547   if test "x$kde_use_qt_emb" != "xyes"; then
6548   __val=$CXX
6549   __forbid=" -fno-rtti -rpath "
6550   if test -n "$__val"; then
6551     __new=""
6552     ac_save_IFS=$IFS
6553     IFS="       "
6554     for i in $__val; do
6555       case "$__forbid" in
6556         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6557 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6558         *) # Careful to not add spaces, where there were none, because otherwise
6559            # libtool gets confused, if we change e.g. CXX
6560            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6561       esac
6562     done
6563     IFS=$ac_save_IFS
6564     CXX=$__new
6565   fi
6566
6567   __val=$CXXFLAGS
6568   __forbid=" -fno-rtti -rpath "
6569   if test -n "$__val"; then
6570     __new=""
6571     ac_save_IFS=$IFS
6572     IFS="       "
6573     for i in $__val; do
6574       case "$__forbid" in
6575         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6576 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6577         *) # Careful to not add spaces, where there were none, because otherwise
6578            # libtool gets confused, if we change e.g. CXX
6579            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6580       esac
6581     done
6582     IFS=$ac_save_IFS
6583     CXXFLAGS=$__new
6584   fi
6585
6586 else
6587   __val=$CXX
6588   __forbid=" -rpath "
6589   if test -n "$__val"; then
6590     __new=""
6591     ac_save_IFS=$IFS
6592     IFS="       "
6593     for i in $__val; do
6594       case "$__forbid" in
6595         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6596 echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6597         *) # Careful to not add spaces, where there were none, because otherwise
6598            # libtool gets confused, if we change e.g. CXX
6599            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6600       esac
6601     done
6602     IFS=$ac_save_IFS
6603     CXX=$__new
6604   fi
6605
6606   __val=$CXXFLAGS
6607   __forbid=" -rpath "
6608   if test -n "$__val"; then
6609     __new=""
6610     ac_save_IFS=$IFS
6611     IFS="       "
6612     for i in $__val; do
6613       case "$__forbid" in
6614         *" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6615 echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6616         *) # Careful to not add spaces, where there were none, because otherwise
6617            # libtool gets confused, if we change e.g. CXX
6618            if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6619       esac
6620     done
6621     IFS=$ac_save_IFS
6622     CXXFLAGS=$__new
6623   fi
6624
6625 fi
6626
6627
6628   ac_ext=cpp
6629 ac_cpp='$CXXCPP $CPPFLAGS'
6630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6633 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6634 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6635 if test -z "$CXXCPP"; then
6636   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6637   echo $ECHO_N "(cached) $ECHO_C" >&6
6638 else
6639       # Double quotes because CXXCPP needs to be expanded
6640     for CXXCPP in "$CXX -E" "/lib/cpp"
6641     do
6642       ac_preproc_ok=false
6643 for ac_cxx_preproc_warn_flag in '' yes
6644 do
6645   # Use a header file that comes with gcc, so configuring glibc
6646   # with a fresh cross-compiler works.
6647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6648   # <limits.h> exists even on freestanding compilers.
6649   # On the NeXT, cc -E runs the code through the compiler's parser,
6650   # not just through cpp. "Syntax error" is here to catch this case.
6651   cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h.  */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h.  */
6657 #ifdef __STDC__
6658 # include <limits.h>
6659 #else
6660 # include <assert.h>
6661 #endif
6662                      Syntax error
6663 _ACEOF
6664 if { (ac_try="$ac_cpp conftest.$ac_ext"
6665 case "(($ac_try" in
6666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6667   *) ac_try_echo=$ac_try;;
6668 esac
6669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6671   ac_status=$?
6672   grep -v '^ *+' conftest.er1 >conftest.err
6673   rm -f conftest.er1
6674   cat conftest.err >&5
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); } >/dev/null && {
6677          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6678          test ! -s conftest.err
6679        }; then
6680   :
6681 else
6682   echo "$as_me: failed program was:" >&5
6683 sed 's/^/| /' conftest.$ac_ext >&5
6684
6685   # Broken: fails on valid input.
6686 continue
6687 fi
6688
6689 rm -f conftest.err conftest.$ac_ext
6690
6691   # OK, works on sane cases.  Now check whether nonexistent headers
6692   # can be detected and how.
6693   cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h.  */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h.  */
6699 #include <ac_nonexistent.h>
6700 _ACEOF
6701 if { (ac_try="$ac_cpp conftest.$ac_ext"
6702 case "(($ac_try" in
6703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704   *) ac_try_echo=$ac_try;;
6705 esac
6706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6708   ac_status=$?
6709   grep -v '^ *+' conftest.er1 >conftest.err
6710   rm -f conftest.er1
6711   cat conftest.err >&5
6712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713   (exit $ac_status); } >/dev/null && {
6714          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6715          test ! -s conftest.err
6716        }; then
6717   # Broken: success on invalid input.
6718 continue
6719 else
6720   echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723   # Passes both tests.
6724 ac_preproc_ok=:
6725 break
6726 fi
6727
6728 rm -f conftest.err conftest.$ac_ext
6729
6730 done
6731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6732 rm -f conftest.err conftest.$ac_ext
6733 if $ac_preproc_ok; then
6734   break
6735 fi
6736
6737     done
6738     ac_cv_prog_CXXCPP=$CXXCPP
6739
6740 fi
6741   CXXCPP=$ac_cv_prog_CXXCPP
6742 else
6743   ac_cv_prog_CXXCPP=$CXXCPP
6744 fi
6745 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6746 echo "${ECHO_T}$CXXCPP" >&6; }
6747 ac_preproc_ok=false
6748 for ac_cxx_preproc_warn_flag in '' yes
6749 do
6750   # Use a header file that comes with gcc, so configuring glibc
6751   # with a fresh cross-compiler works.
6752   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753   # <limits.h> exists even on freestanding compilers.
6754   # On the NeXT, cc -E runs the code through the compiler's parser,
6755   # not just through cpp. "Syntax error" is here to catch this case.
6756   cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h.  */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h.  */
6762 #ifdef __STDC__
6763 # include <limits.h>
6764 #else
6765 # include <assert.h>
6766 #endif
6767                      Syntax error
6768 _ACEOF
6769 if { (ac_try="$ac_cpp conftest.$ac_ext"
6770 case "(($ac_try" in
6771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6772   *) ac_try_echo=$ac_try;;
6773 esac
6774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6776   ac_status=$?
6777   grep -v '^ *+' conftest.er1 >conftest.err
6778   rm -f conftest.er1
6779   cat conftest.err >&5
6780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781   (exit $ac_status); } >/dev/null && {
6782          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6783          test ! -s conftest.err
6784        }; then
6785   :
6786 else
6787   echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790   # Broken: fails on valid input.
6791 continue
6792 fi
6793
6794 rm -f conftest.err conftest.$ac_ext
6795
6796   # OK, works on sane cases.  Now check whether nonexistent headers
6797   # can be detected and how.
6798   cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h.  */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h.  */
6804 #include <ac_nonexistent.h>
6805 _ACEOF
6806 if { (ac_try="$ac_cpp conftest.$ac_ext"
6807 case "(($ac_try" in
6808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809   *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6813   ac_status=$?
6814   grep -v '^ *+' conftest.er1 >conftest.err
6815   rm -f conftest.er1
6816   cat conftest.err >&5
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); } >/dev/null && {
6819          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6820          test ! -s conftest.err
6821        }; then
6822   # Broken: success on invalid input.
6823 continue
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828   # Passes both tests.
6829 ac_preproc_ok=:
6830 break
6831 fi
6832
6833 rm -f conftest.err conftest.$ac_ext
6834
6835 done
6836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6837 rm -f conftest.err conftest.$ac_ext
6838 if $ac_preproc_ok; then
6839   :
6840 else
6841   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6842 See \`config.log' for more details." >&5
6843 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6844 See \`config.log' for more details." >&2;}
6845    { (exit 1); exit 1; }; }
6846 fi
6847
6848 ac_ext=c
6849 ac_cpp='$CPP $CPPFLAGS'
6850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853
6854
6855   if test "$GCC" = yes; then
6856      NOOPT_CFLAGS=-O0
6857   fi
6858
6859 { echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
6860 echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6; }
6861 kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
6862 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865
6866
6867    ac_ext=cpp
6868 ac_cpp='$CXXCPP $CPPFLAGS'
6869 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6872
6873 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6874
6875
6876   save_CXXFLAGS="$CXXFLAGS"
6877   CXXFLAGS="$CXXFLAGS -O0"
6878   cat >conftest.$ac_ext <<_ACEOF
6879 /* confdefs.h.  */
6880 _ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h.  */
6884
6885 int
6886 main ()
6887 {
6888  return 0;
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (ac_try="$ac_link"
6895 case "(($ac_try" in
6896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897   *) ac_try_echo=$ac_try;;
6898 esac
6899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6900   (eval "$ac_link") 2>conftest.er1
6901   ac_status=$?
6902   grep -v '^ *+' conftest.er1 >conftest.err
6903   rm -f conftest.er1
6904   cat conftest.err >&5
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } && {
6907          test -z "$ac_cxx_werror_flag" ||
6908          test ! -s conftest.err
6909        } && test -s conftest$ac_exeext &&
6910        $as_test_x conftest$ac_exeext; then
6911   eval "kde_cv_prog_cxx_$kde_cache=yes"
6912 else
6913   echo "$as_me: failed program was:" >&5
6914 sed 's/^/| /' conftest.$ac_ext >&5
6915
6916
6917 fi
6918
6919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6920       conftest$ac_exeext conftest.$ac_ext
6921   CXXFLAGS="$save_CXXFLAGS"
6922   ac_ext=c
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928
6929 fi
6930
6931 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6932  { echo "$as_me:$LINENO: result: yes" >&5
6933 echo "${ECHO_T}yes" >&6; }
6934  :
6935  NOOPT_CXXFLAGS=-O0
6936 else
6937  { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6939  :
6940
6941 fi
6942
6943
6944   # Check whether --enable-coverage was given.
6945 if test "${enable_coverage+set}" = set; then
6946   enableval=$enable_coverage;
6947       if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
6948         ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6949         ac_coverage_linker="-lgcc"
6950       elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
6951         ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
6952         ac_coverage_linker=""
6953       else
6954         { { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
6955 echo "$as_me: error: coverage with your compiler is not supported" >&2;}
6956    { (exit 1); exit 1; }; }
6957       fi
6958       CFLAGS="$CFLAGS $ac_coverage_compiler"
6959       CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
6960       LDFLAGS="$LDFLAGS $ac_coverage_linker"
6961
6962 fi
6963
6964
6965
6966
6967
6968
6969
6970   # Check whether --enable-new_ldflags was given.
6971 if test "${enable_new_ldflags+set}" = set; then
6972   enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
6973 else
6974   kde_use_new_ldflags=no
6975 fi
6976
6977
6978   LDFLAGS_AS_NEEDED=""
6979   LDFLAGS_NEW_DTAGS=""
6980   if test "x$kde_use_new_ldflags" = "xyes"; then
6981        LDFLAGS_NEW_DTAGS=""
6982
6983 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
6984 echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
6985 kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
6986 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6987   echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989
6990
6991    ac_ext=cpp
6992 ac_cpp='$CXXCPP $CPPFLAGS'
6993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6996
6997 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6998
6999
7000   save_CXXFLAGS="$CXXFLAGS"
7001   CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
7002   cat >conftest.$ac_ext <<_ACEOF
7003 /* confdefs.h.  */
7004 _ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h.  */
7008
7009 int
7010 main ()
7011 {
7012  return 0;
7013   ;
7014   return 0;
7015 }
7016 _ACEOF
7017 rm -f conftest.$ac_objext conftest$ac_exeext
7018 if { (ac_try="$ac_link"
7019 case "(($ac_try" in
7020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7021   *) ac_try_echo=$ac_try;;
7022 esac
7023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7024   (eval "$ac_link") 2>conftest.er1
7025   ac_status=$?
7026   grep -v '^ *+' conftest.er1 >conftest.err
7027   rm -f conftest.er1
7028   cat conftest.err >&5
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); } && {
7031          test -z "$ac_cxx_werror_flag" ||
7032          test ! -s conftest.err
7033        } && test -s conftest$ac_exeext &&
7034        $as_test_x conftest$ac_exeext; then
7035   eval "kde_cv_prog_cxx_$kde_cache=yes"
7036 else
7037   echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7039
7040
7041 fi
7042
7043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7044       conftest$ac_exeext conftest.$ac_ext
7045   CXXFLAGS="$save_CXXFLAGS"
7046   ac_ext=c
7047 ac_cpp='$CPP $CPPFLAGS'
7048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7051
7052
7053 fi
7054
7055 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7056  { echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6; }
7058  :
7059  LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
7060 else
7061  { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063  :
7064
7065 fi
7066
7067
7068
7069 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
7070 echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6; }
7071 kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
7072 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075
7076
7077    ac_ext=cpp
7078 ac_cpp='$CXXCPP $CPPFLAGS'
7079 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7080 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7081 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7082
7083 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7084
7085
7086   save_CXXFLAGS="$CXXFLAGS"
7087   CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094
7095 int
7096 main ()
7097 {
7098  return 0;
7099   ;
7100   return 0;
7101 }
7102 _ACEOF
7103 rm -f conftest.$ac_objext conftest$ac_exeext
7104 if { (ac_try="$ac_link"
7105 case "(($ac_try" in
7106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107   *) ac_try_echo=$ac_try;;
7108 esac
7109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7110   (eval "$ac_link") 2>conftest.er1
7111   ac_status=$?
7112   grep -v '^ *+' conftest.er1 >conftest.err
7113   rm -f conftest.er1
7114   cat conftest.err >&5
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); } && {
7117          test -z "$ac_cxx_werror_flag" ||
7118          test ! -s conftest.err
7119        } && test -s conftest$ac_exeext &&
7120        $as_test_x conftest$ac_exeext; then
7121   eval "kde_cv_prog_cxx_$kde_cache=yes"
7122 else
7123   echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.$ac_ext >&5
7125
7126
7127 fi
7128
7129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130       conftest$ac_exeext conftest.$ac_ext
7131   CXXFLAGS="$save_CXXFLAGS"
7132   ac_ext=c
7133 ac_cpp='$CPP $CPPFLAGS'
7134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7137
7138
7139 fi
7140
7141 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7142  { echo "$as_me:$LINENO: result: yes" >&5
7143 echo "${ECHO_T}yes" >&6; }
7144  :
7145  LDFLAGS_AS_NEEDED="-Wl,--as-needed"
7146 else
7147  { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7149  :
7150
7151 fi
7152
7153   fi
7154
7155
7156
7157
7158   # Check whether --enable-final was given.
7159 if test "${enable_final+set}" = set; then
7160   enableval=$enable_final; kde_use_final=$enableval
7161 else
7162   kde_use_final=no
7163 fi
7164
7165
7166   if test "x$kde_use_final" = "xyes"; then
7167       KDE_USE_FINAL_TRUE=""
7168       KDE_USE_FINAL_FALSE="#"
7169    else
7170       KDE_USE_FINAL_TRUE="#"
7171       KDE_USE_FINAL_FALSE=""
7172   fi
7173
7174
7175
7176
7177   # Check whether --enable-closure was given.
7178 if test "${enable_closure+set}" = set; then
7179   enableval=$enable_closure; kde_use_closure=$enableval
7180 else
7181   kde_use_closure=no
7182 fi
7183
7184
7185   KDE_NO_UNDEFINED=""
7186   if test "x$kde_use_closure" = "xyes"; then
7187        KDE_USE_CLOSURE_TRUE=""
7188        KDE_USE_CLOSURE_FALSE="#"
7189 #       CXXFLAGS="$CXXFLAGS $REPO"
7190   else
7191        KDE_USE_CLOSURE_TRUE="#"
7192        KDE_USE_CLOSURE_FALSE=""
7193        KDE_NO_UNDEFINED=""
7194        case $host in
7195          *-*-linux-gnu)
7196
7197 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
7198 echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6; }
7199 kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
7200 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203
7204
7205    ac_ext=cpp
7206 ac_cpp='$CXXCPP $CPPFLAGS'
7207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7210
7211 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7212
7213
7214   save_CXXFLAGS="$CXXFLAGS"
7215   CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
7216   cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222
7223 int
7224 main ()
7225 {
7226  return 0;
7227   ;
7228   return 0;
7229 }
7230 _ACEOF
7231 rm -f conftest.$ac_objext conftest$ac_exeext
7232 if { (ac_try="$ac_link"
7233 case "(($ac_try" in
7234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7235   *) ac_try_echo=$ac_try;;
7236 esac
7237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7238   (eval "$ac_link") 2>conftest.er1
7239   ac_status=$?
7240   grep -v '^ *+' conftest.er1 >conftest.err
7241   rm -f conftest.er1
7242   cat conftest.err >&5
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); } && {
7245          test -z "$ac_cxx_werror_flag" ||
7246          test ! -s conftest.err
7247        } && test -s conftest$ac_exeext &&
7248        $as_test_x conftest$ac_exeext; then
7249   eval "kde_cv_prog_cxx_$kde_cache=yes"
7250 else
7251   echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7253
7254
7255 fi
7256
7257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7258       conftest$ac_exeext conftest.$ac_ext
7259   CXXFLAGS="$save_CXXFLAGS"
7260   ac_ext=c
7261 ac_cpp='$CPP $CPPFLAGS'
7262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7265
7266
7267 fi
7268
7269 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7270  { echo "$as_me:$LINENO: result: yes" >&5
7271 echo "${ECHO_T}yes" >&6; }
7272  :
7273
7274 { echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
7275 echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6; }
7276 kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
7277 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280
7281
7282    ac_ext=cpp
7283 ac_cpp='$CXXCPP $CPPFLAGS'
7284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7287
7288 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7289
7290
7291   save_CXXFLAGS="$CXXFLAGS"
7292   CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
7293   cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h.  */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h.  */
7299
7300 int
7301 main ()
7302 {
7303  return 0;
7304   ;
7305   return 0;
7306 }
7307 _ACEOF
7308 rm -f conftest.$ac_objext conftest$ac_exeext
7309 if { (ac_try="$ac_link"
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_link") 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); } && {
7322          test -z "$ac_cxx_werror_flag" ||
7323          test ! -s conftest.err
7324        } && test -s conftest$ac_exeext &&
7325        $as_test_x conftest$ac_exeext; then
7326   eval "kde_cv_prog_cxx_$kde_cache=yes"
7327 else
7328   echo "$as_me: failed program was:" >&5
7329 sed 's/^/| /' conftest.$ac_ext >&5
7330
7331
7332 fi
7333
7334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7335       conftest$ac_exeext conftest.$ac_ext
7336   CXXFLAGS="$save_CXXFLAGS"
7337   ac_ext=c
7338 ac_cpp='$CPP $CPPFLAGS'
7339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7342
7343
7344 fi
7345
7346 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7347  { echo "$as_me:$LINENO: result: yes" >&5
7348 echo "${ECHO_T}yes" >&6; }
7349  :
7350  KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7351 else
7352  { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7354  :
7355  KDE_NO_UNDEFINED=""
7356 fi
7357
7358 else
7359  { echo "$as_me:$LINENO: result: no" >&5
7360 echo "${ECHO_T}no" >&6; }
7361  :
7362  KDE_NO_UNDEFINED=""
7363 fi
7364
7365            ;;
7366        esac
7367   fi
7368
7369
7370
7371
7372
7373   # Check whether --enable-nmcheck was given.
7374 if test "${enable_nmcheck+set}" = set; then
7375   enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
7376 else
7377   kde_use_nmcheck=no
7378 fi
7379
7380
7381   if test "$kde_use_nmcheck" = "yes"; then
7382       KDE_USE_NMCHECK_TRUE=""
7383       KDE_USE_NMCHECK_FALSE="#"
7384    else
7385       KDE_USE_NMCHECK_TRUE="#"
7386       KDE_USE_NMCHECK_FALSE=""
7387   fi
7388
7389
7390
7391
7392
7393
7394 # Check whether --enable-shared was given.
7395 if test "${enable_shared+set}" = set; then
7396   enableval=$enable_shared; p=${PACKAGE-default}
7397     case $enableval in
7398     yes) enable_shared=yes ;;
7399     no) enable_shared=no ;;
7400     *)
7401       enable_shared=no
7402       # Look at the argument we got.  We use all the common list separators.
7403       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7404       for pkg in $enableval; do
7405         IFS="$lt_save_ifs"
7406         if test "X$pkg" = "X$p"; then
7407           enable_shared=yes
7408         fi
7409       done
7410       IFS="$lt_save_ifs"
7411       ;;
7412     esac
7413 else
7414   enable_shared=yes
7415 fi
7416
7417
7418 # Check whether --enable-static was given.
7419 if test "${enable_static+set}" = set; then
7420   enableval=$enable_static; p=${PACKAGE-default}
7421     case $enableval in
7422     yes) enable_static=yes ;;
7423     no) enable_static=no ;;
7424     *)
7425      enable_static=no
7426       # Look at the argument we got.  We use all the common list separators.
7427       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7428       for pkg in $enableval; do
7429         IFS="$lt_save_ifs"
7430         if test "X$pkg" = "X$p"; then
7431           enable_static=yes
7432         fi
7433       done
7434       IFS="$lt_save_ifs"
7435       ;;
7436     esac
7437 else
7438   enable_static=no
7439 fi
7440
7441
7442
7443
7444
7445     kdelibsuff="$kde_libs_suffix"
7446     if test -z "$kdelibsuff"; then
7447        kdelibsuff=no
7448     fi
7449     # Check whether --enable-libsuffix was given.
7450 if test "${enable_libsuffix+set}" = set; then
7451   enableval=$enable_libsuffix; kdelibsuff=$enableval
7452 fi
7453
7454     # TODO: add an auto case that compiles a little C app to check
7455     # where the glibc is
7456     if test "$kdelibsuff" = "no"; then
7457        kdelibsuff=
7458     fi
7459     if test -z "$kdelibsuff"; then
7460         { echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7461 echo "${ECHO_T}not using lib directory suffix" >&6; }
7462
7463 cat >>confdefs.h <<\_ACEOF
7464 #define KDELIBSUFF ""
7465 _ACEOF
7466
7467     else
7468         if test "$libdir" = '${exec_prefix}/lib'; then
7469             libdir="$libdir${kdelibsuff}"
7470             libdir="$libdir"
7471           fi
7472
7473 cat >>confdefs.h <<_ACEOF
7474 #define KDELIBSUFF "${kdelibsuff}"
7475 _ACEOF
7476
7477         { echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7478 echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6; }
7479     fi
7480
7481 # Check whether --enable-fast-install was given.
7482 if test "${enable_fast_install+set}" = set; then
7483   enableval=$enable_fast_install; p=${PACKAGE-default}
7484     case $enableval in
7485     yes) enable_fast_install=yes ;;
7486     no) enable_fast_install=no ;;
7487     *)
7488       enable_fast_install=no
7489       # Look at the argument we got.  We use all the common list separators.
7490       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7491       for pkg in $enableval; do
7492         IFS="$lt_save_ifs"
7493         if test "X$pkg" = "X$p"; then
7494           enable_fast_install=yes
7495         fi
7496       done
7497       IFS="$lt_save_ifs"
7498       ;;
7499     esac
7500 else
7501   enable_fast_install=yes
7502 fi
7503
7504
7505 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7506 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7507 if test "${lt_cv_path_SED+set}" = set; then
7508   echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510   # Loop through the user's path and test for sed and gsed.
7511 # Then use that list of sed's as ones to test for truncation.
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517   for lt_ac_prog in sed gsed; do
7518     for ac_exec_ext in '' $ac_executable_extensions; do
7519       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7520         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7521       fi
7522     done
7523   done
7524 done
7525 lt_ac_max=0
7526 lt_ac_count=0
7527 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7528 # along with /bin/sed that truncates output.
7529 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7530   test ! -f $lt_ac_sed && break
7531   cat /dev/null > conftest.in
7532   lt_ac_count=0
7533   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7534   # Check for GNU sed and select it if it is found.
7535   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7536     lt_cv_path_SED=$lt_ac_sed
7537     break
7538   fi
7539   while true; do
7540     cat conftest.in conftest.in >conftest.tmp
7541     mv conftest.tmp conftest.in
7542     cp conftest.in conftest.nl
7543     echo >>conftest.nl
7544     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7545     cmp -s conftest.out conftest.nl || break
7546     # 10000 chars as input seems more than enough
7547     test $lt_ac_count -gt 10 && break
7548     lt_ac_count=`expr $lt_ac_count + 1`
7549     if test $lt_ac_count -gt $lt_ac_max; then
7550       lt_ac_max=$lt_ac_count
7551       lt_cv_path_SED=$lt_ac_sed
7552     fi
7553   done
7554 done
7555
7556 fi
7557
7558 SED=$lt_cv_path_SED
7559 { echo "$as_me:$LINENO: result: $SED" >&5
7560 echo "${ECHO_T}$SED" >&6; }
7561
7562 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7563 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7564 if test "${ac_cv_path_GREP+set}" = set; then
7565   echo $ECHO_N "(cached) $ECHO_C" >&6
7566 else
7567   # Extract the first word of "grep ggrep" to use in msg output
7568 if test -z "$GREP"; then
7569 set dummy grep ggrep; ac_prog_name=$2
7570 if test "${ac_cv_path_GREP+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   ac_path_GREP_found=false
7574 # Loop through the user's path and test for each of PROGNAME-LIST
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7577 do
7578   IFS=$as_save_IFS
7579   test -z "$as_dir" && as_dir=.
7580   for ac_prog in grep ggrep; do
7581   for ac_exec_ext in '' $ac_executable_extensions; do
7582     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7583     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7584     # Check for GNU ac_path_GREP and select it if it is found.
7585   # Check for GNU $ac_path_GREP
7586 case `"$ac_path_GREP" --version 2>&1` in
7587 *GNU*)
7588   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7589 *)
7590   ac_count=0
7591   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7592   while :
7593   do
7594     cat "conftest.in" "conftest.in" >"conftest.tmp"
7595     mv "conftest.tmp" "conftest.in"
7596     cp "conftest.in" "conftest.nl"
7597     echo 'GREP' >> "conftest.nl"
7598     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7599     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7600     ac_count=`expr $ac_count + 1`
7601     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7602       # Best one so far, save it but keep looking for a better one
7603       ac_cv_path_GREP="$ac_path_GREP"
7604       ac_path_GREP_max=$ac_count
7605     fi
7606     # 10*(2^10) chars as input seems more than enough
7607     test $ac_count -gt 10 && break
7608   done
7609   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7610 esac
7611
7612
7613     $ac_path_GREP_found && break 3
7614   done
7615 done
7616
7617 done
7618 IFS=$as_save_IFS
7619
7620
7621 fi
7622
7623 GREP="$ac_cv_path_GREP"
7624 if test -z "$GREP"; then
7625   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7626 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7627    { (exit 1); exit 1; }; }
7628 fi
7629
7630 else
7631   ac_cv_path_GREP=$GREP
7632 fi
7633
7634
7635 fi
7636 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7637 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7638  GREP="$ac_cv_path_GREP"
7639
7640
7641 { echo "$as_me:$LINENO: checking for egrep" >&5
7642 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7643 if test "${ac_cv_path_EGREP+set}" = set; then
7644   echo $ECHO_N "(cached) $ECHO_C" >&6
7645 else
7646   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7647    then ac_cv_path_EGREP="$GREP -E"
7648    else
7649      # Extract the first word of "egrep" to use in msg output
7650 if test -z "$EGREP"; then
7651 set dummy egrep; ac_prog_name=$2
7652 if test "${ac_cv_path_EGREP+set}" = set; then
7653   echo $ECHO_N "(cached) $ECHO_C" >&6
7654 else
7655   ac_path_EGREP_found=false
7656 # Loop through the user's path and test for each of PROGNAME-LIST
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7659 do
7660   IFS=$as_save_IFS
7661   test -z "$as_dir" && as_dir=.
7662   for ac_prog in egrep; do
7663   for ac_exec_ext in '' $ac_executable_extensions; do
7664     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7665     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7666     # Check for GNU ac_path_EGREP and select it if it is found.
7667   # Check for GNU $ac_path_EGREP
7668 case `"$ac_path_EGREP" --version 2>&1` in
7669 *GNU*)
7670   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7671 *)
7672   ac_count=0
7673   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7674   while :
7675   do
7676     cat "conftest.in" "conftest.in" >"conftest.tmp"
7677     mv "conftest.tmp" "conftest.in"
7678     cp "conftest.in" "conftest.nl"
7679     echo 'EGREP' >> "conftest.nl"
7680     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7681     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7682     ac_count=`expr $ac_count + 1`
7683     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7684       # Best one so far, save it but keep looking for a better one
7685       ac_cv_path_EGREP="$ac_path_EGREP"
7686       ac_path_EGREP_max=$ac_count
7687     fi
7688     # 10*(2^10) chars as input seems more than enough
7689     test $ac_count -gt 10 && break
7690   done
7691   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7692 esac
7693
7694
7695     $ac_path_EGREP_found && break 3
7696   done
7697 done
7698
7699 done
7700 IFS=$as_save_IFS
7701
7702
7703 fi
7704
7705 EGREP="$ac_cv_path_EGREP"
7706 if test -z "$EGREP"; then
7707   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7708 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7709    { (exit 1); exit 1; }; }
7710 fi
7711
7712 else
7713   ac_cv_path_EGREP=$EGREP
7714 fi
7715
7716
7717    fi
7718 fi
7719 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7720 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7721  EGREP="$ac_cv_path_EGREP"
7722
7723
7724
7725 # Check whether --with-gnu-ld was given.
7726 if test "${with_gnu_ld+set}" = set; then
7727   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7728 else
7729   with_gnu_ld=no
7730 fi
7731
7732 ac_prog=ld
7733 if test "$GCC" = yes; then
7734   # Check if gcc -print-prog-name=ld gives a path.
7735   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7736 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7737   case $host in
7738   *-*-mingw*)
7739     # gcc leaves a trailing carriage return which upsets mingw
7740     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7741   *)
7742     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7743   esac
7744   case $ac_prog in
7745     # Accept absolute paths.
7746     [\\/]* | ?:[\\/]*)
7747       re_direlt='/[^/][^/]*/\.\./'
7748       # Canonicalize the pathname of ld
7749       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7750       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7751         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7752       done
7753       test -z "$LD" && LD="$ac_prog"
7754       ;;
7755   "")
7756     # If it fails, then pretend we aren't using GCC.
7757     ac_prog=ld
7758     ;;
7759   *)
7760     # If it is relative, then search for the first ld in PATH.
7761     with_gnu_ld=unknown
7762     ;;
7763   esac
7764 elif test "$with_gnu_ld" = yes; then
7765   { echo "$as_me:$LINENO: checking for GNU ld" >&5
7766 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7767 else
7768   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7769 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7770 fi
7771 if test "${lt_cv_path_LD+set}" = set; then
7772   echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774   if test -z "$LD"; then
7775   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7776   for ac_dir in $PATH; do
7777     IFS="$lt_save_ifs"
7778     test -z "$ac_dir" && ac_dir=.
7779     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7780       lt_cv_path_LD="$ac_dir/$ac_prog"
7781       # Check to see if the program is GNU ld.  I'd rather use --version,
7782       # but apparently some GNU ld's only accept -v.
7783       # Break only if it was the GNU/non-GNU ld that we prefer.
7784       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7785       *GNU* | *'with BFD'*)
7786         test "$with_gnu_ld" != no && break
7787         ;;
7788       *)
7789         test "$with_gnu_ld" != yes && break
7790         ;;
7791       esac
7792     fi
7793   done
7794   IFS="$lt_save_ifs"
7795 else
7796   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7797 fi
7798 fi
7799
7800 LD="$lt_cv_path_LD"
7801 if test -n "$LD"; then
7802   { echo "$as_me:$LINENO: result: $LD" >&5
7803 echo "${ECHO_T}$LD" >&6; }
7804 else
7805   { echo "$as_me:$LINENO: result: no" >&5
7806 echo "${ECHO_T}no" >&6; }
7807 fi
7808 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7809 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7810    { (exit 1); exit 1; }; }
7811 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7812 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7813 if test "${lt_cv_prog_gnu_ld+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7817 case `$LD -v 2>&1 </dev/null` in
7818 *GNU* | *'with BFD'*)
7819   lt_cv_prog_gnu_ld=yes
7820   ;;
7821 *)
7822   lt_cv_prog_gnu_ld=no
7823   ;;
7824 esac
7825 fi
7826 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7827 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
7828 with_gnu_ld=$lt_cv_prog_gnu_ld
7829
7830
7831 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7832 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
7833 if test "${lt_cv_ld_reload_flag+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   lt_cv_ld_reload_flag='-r'
7837 fi
7838 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7839 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
7840 reload_flag=$lt_cv_ld_reload_flag
7841 case $reload_flag in
7842 "" | " "*) ;;
7843 *) reload_flag=" $reload_flag" ;;
7844 esac
7845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7846
7847 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7848 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
7849 if test "${lt_cv_path_NM+set}" = set; then
7850   echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852   if test -n "$NM"; then
7853   # Let the user override the test.
7854   lt_cv_path_NM="$NM"
7855 else
7856   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7857   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7858     IFS="$lt_save_ifs"
7859     test -z "$ac_dir" && ac_dir=.
7860     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7861     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7862       # Check to see if the nm accepts a BSD-compat flag.
7863       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7864       #   nm: unknown option "B" ignored
7865       # Tru64's nm complains that /dev/null is an invalid object file
7866       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7867       */dev/null* | *'Invalid file or object type'*)
7868         lt_cv_path_NM="$tmp_nm -B"
7869         break
7870         ;;
7871       *)
7872         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7873         */dev/null*)
7874           lt_cv_path_NM="$tmp_nm -p"
7875           break
7876           ;;
7877         *)
7878           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7879           continue # so that we can try to find one that supports BSD flags
7880           ;;
7881         esac
7882       esac
7883     fi
7884   done
7885   IFS="$lt_save_ifs"
7886   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7887 fi
7888 fi
7889 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7890 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
7891 NM="$lt_cv_path_NM"
7892
7893 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7894 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7895 LN_S=$as_ln_s
7896 if test "$LN_S" = "ln -s"; then
7897   { echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6; }
7899 else
7900   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7901 echo "${ECHO_T}no, using $LN_S" >&6; }
7902 fi
7903
7904 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7905 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
7906 if test "${lt_cv_deplibs_check_method+set}" = set; then
7907   echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909   lt_cv_file_magic_cmd='$MAGIC_CMD'
7910 lt_cv_file_magic_test_file=
7911 lt_cv_deplibs_check_method='unknown'
7912 # Need to set the preceding variable on all platforms that support
7913 # interlibrary dependencies.
7914 # 'none' -- dependencies not supported.
7915 # `unknown' -- same as none, but documents that we really don't know.
7916 # 'pass_all' -- all dependencies passed with no checks.
7917 # 'test_compile' -- check by making test program.
7918 # 'file_magic [[regex]]' -- check by looking for files in library path
7919 # which responds to the $file_magic_cmd with a given extended regex.
7920 # If you have `file' or equivalent on your system and you're not sure
7921 # whether `pass_all' will *always* work, you probably want this one.
7922
7923 case $host_os in
7924 aix4* | aix5*)
7925   lt_cv_deplibs_check_method=pass_all
7926   ;;
7927
7928 beos*)
7929   lt_cv_deplibs_check_method=pass_all
7930   ;;
7931
7932 bsdi4*)
7933   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7934   lt_cv_file_magic_cmd='/usr/bin/file -L'
7935   lt_cv_file_magic_test_file=/shlib/libc.so
7936   ;;
7937
7938 cygwin*)
7939   lt_cv_deplibs_check_method=pass_all
7940   ;;
7941
7942 mingw* | pw32*)
7943   # win32_libid is a shell function defined in ltmain.sh
7944   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7945   lt_cv_file_magic_cmd='win32_libid'
7946   ;;
7947
7948 darwin* | rhapsody*)
7949   # this will be overwritten by pass_all, but leave it in just in case
7950   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
7951   lt_cv_file_magic_cmd='/usr/bin/file -L'
7952   case "$host_os" in
7953   rhapsody* | darwin1.[012])
7954     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
7955     ;;
7956   *) # Darwin 1.3 on
7957     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
7958     ;;
7959   esac
7960   lt_cv_deplibs_check_method=pass_all
7961   ;;
7962
7963 freebsd*)
7964   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7965     case $host_cpu in
7966     i*86 )
7967       # Not sure whether the presence of OpenBSD here was a mistake.
7968       # Let's accept both of them until this is cleared up.
7969       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
7970       lt_cv_file_magic_cmd=/usr/bin/file
7971       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7972       ;;
7973     esac
7974   else
7975     lt_cv_deplibs_check_method=pass_all
7976   fi
7977   ;;
7978
7979 gnu*)
7980   lt_cv_deplibs_check_method=pass_all
7981   ;;
7982
7983 hpux10.20* | hpux11*)
7984   lt_cv_file_magic_cmd=/usr/bin/file
7985   case "$host_cpu" in
7986   ia64*)
7987     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7988     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7989     ;;
7990   hppa*64*)
7991     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]'
7992     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7993     ;;
7994   *)
7995     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7996     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7997     ;;
7998   esac
7999   ;;
8000
8001 irix5* | irix6* | nonstopux*)
8002   case $host_os in
8003   irix5* | nonstopux*)
8004     # this will be overridden with pass_all, but let us keep it just in case
8005     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8006     ;;
8007   *)
8008     case $LD in
8009     *-32|*"-32 ") libmagic=32-bit;;
8010     *-n32|*"-n32 ") libmagic=N32;;
8011     *-64|*"-64 ") libmagic=64-bit;;
8012     *) libmagic=never-match;;
8013     esac
8014     # this will be overridden with pass_all, but let us keep it just in case
8015     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
8016     ;;
8017   esac
8018   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8019   lt_cv_deplibs_check_method=pass_all
8020   ;;
8021
8022 # This must be Linux ELF.
8023 linux*)
8024   case $host_cpu in
8025   alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
8026     lt_cv_deplibs_check_method=pass_all ;;
8027   # the debian people say, arm and glibc 2.3.1 works for them with pass_all
8028   arm* )
8029     lt_cv_deplibs_check_method=pass_all ;;
8030   *)
8031     # glibc up to 2.1.1 does not perform some relocations on ARM
8032     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
8033   esac
8034   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8035   ;;
8036
8037 netbsd*)
8038   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8039     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8040   else
8041     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8042   fi
8043   ;;
8044
8045 newos6*)
8046   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8047   lt_cv_file_magic_cmd=/usr/bin/file
8048   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8049   ;;
8050
8051 nto-qnx*)
8052   lt_cv_deplibs_check_method=unknown
8053   ;;
8054
8055 openbsd*)
8056   lt_cv_file_magic_cmd=/usr/bin/file
8057   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8058   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8059     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
8060   else
8061     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8062   fi
8063   ;;
8064
8065 osf3* | osf4* | osf5*)
8066   # this will be overridden with pass_all, but let us keep it just in case
8067   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8068   lt_cv_file_magic_test_file=/shlib/libc.so
8069   lt_cv_deplibs_check_method=pass_all
8070   ;;
8071
8072 sco3.2v5*)
8073   lt_cv_deplibs_check_method=pass_all
8074   ;;
8075
8076 solaris*)
8077   lt_cv_deplibs_check_method=pass_all
8078   lt_cv_file_magic_test_file=/lib/libc.so
8079   ;;
8080
8081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8082   case $host_vendor in
8083   motorola)
8084     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]'
8085     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8086     ;;
8087   ncr)
8088     lt_cv_deplibs_check_method=pass_all
8089     ;;
8090   sequent)
8091     lt_cv_file_magic_cmd='/bin/file'
8092     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8093     ;;
8094   sni)
8095     lt_cv_file_magic_cmd='/bin/file'
8096     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8097     lt_cv_file_magic_test_file=/lib/libc.so
8098     ;;
8099   siemens)
8100     lt_cv_deplibs_check_method=pass_all
8101     ;;
8102   esac
8103   ;;
8104
8105 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8106   lt_cv_deplibs_check_method=pass_all
8107   ;;
8108 esac
8109
8110 fi
8111 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8112 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8113 file_magic_cmd=$lt_cv_file_magic_cmd
8114 deplibs_check_method=$lt_cv_deplibs_check_method
8115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8116
8117
8118 # If no C compiler was specified, use CC.
8119 LTCC=${LTCC-"$CC"}
8120
8121 # Allow CC to be a program name with arguments.
8122 compiler=$CC
8123
8124 # Check whether --enable-libtool-lock was given.
8125 if test "${enable_libtool_lock+set}" = set; then
8126   enableval=$enable_libtool_lock;
8127 fi
8128
8129 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8130
8131 # Some flags need to be propagated to the compiler or linker for good
8132 # libtool support.
8133 case $host in
8134 ia64-*-hpux*)
8135   # Find out which ABI we are using.
8136   echo 'int i;' > conftest.$ac_ext
8137   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8138   (eval $ac_compile) 2>&5
8139   ac_status=$?
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); }; then
8142     case `/usr/bin/file conftest.$ac_objext` in
8143     *ELF-32*)
8144       HPUX_IA64_MODE="32"
8145       ;;
8146     *ELF-64*)
8147       HPUX_IA64_MODE="64"
8148       ;;
8149     esac
8150   fi
8151   rm -rf conftest*
8152   ;;
8153 *-*-irix6*)
8154   # Find out which ABI we are using.
8155   echo '#line 8155 "configure"' > conftest.$ac_ext
8156   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8157   (eval $ac_compile) 2>&5
8158   ac_status=$?
8159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160   (exit $ac_status); }; then
8161    if test "$lt_cv_prog_gnu_ld" = yes; then
8162     case `/usr/bin/file conftest.$ac_objext` in
8163     *32-bit*)
8164       LD="${LD-ld} -melf32bsmip"
8165       ;;
8166     *N32*)
8167       LD="${LD-ld} -melf32bmipn32"
8168       ;;
8169     *64-bit*)
8170       LD="${LD-ld} -melf64bmip"
8171       ;;
8172     esac
8173    else
8174     case `/usr/bin/file conftest.$ac_objext` in
8175     *32-bit*)
8176       LD="${LD-ld} -32"
8177       ;;
8178     *N32*)
8179       LD="${LD-ld} -n32"
8180       ;;
8181     *64-bit*)
8182       LD="${LD-ld} -64"
8183       ;;
8184     esac
8185    fi
8186   fi
8187   rm -rf conftest*
8188   ;;
8189
8190 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8191   # Find out which ABI we are using.
8192   echo 'int i;' > conftest.$ac_ext
8193   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8194   (eval $ac_compile) 2>&5
8195   ac_status=$?
8196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197   (exit $ac_status); }; then
8198     case "`/usr/bin/file conftest.o`" in
8199     *32-bit*)
8200       LINUX_64_MODE="32"
8201       case $host in
8202         x86_64-*linux*)
8203           LD="${LD-ld} -m elf_i386"
8204           ;;
8205         ppc64-*linux*)
8206           LD="${LD-ld} -m elf32ppclinux"
8207           ;;
8208         s390x-*linux*)
8209           LD="${LD-ld} -m elf_s390"
8210           ;;
8211         sparc64-*linux*)
8212           LD="${LD-ld} -m elf32_sparc"
8213           ;;
8214       esac
8215       ;;
8216     *64-bit*)
8217       LINUX_64_MODE="64"
8218       case $host in
8219         x86_64-*linux*)
8220           LD="${LD-ld} -m elf_x86_64"
8221           ;;
8222         ppc*-*linux*|powerpc*-*linux*)
8223           LD="${LD-ld} -m elf64ppc"
8224           ;;
8225         s390*-*linux*)
8226           LD="${LD-ld} -m elf64_s390"
8227           ;;
8228         sparc*-*linux*)
8229           LD="${LD-ld} -m elf64_sparc"
8230           ;;
8231       esac
8232       ;;
8233     esac
8234   fi
8235   rm -rf conftest*
8236   ;;
8237
8238 *-*-sco3.2v5*)
8239   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8240   SAVE_CFLAGS="$CFLAGS"
8241   CFLAGS="$CFLAGS -belf"
8242   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8243 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8244 if test "${lt_cv_cc_needs_belf+set}" = set; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   ac_ext=c
8248 ac_cpp='$CPP $CPPFLAGS'
8249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252
8253      cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h.  */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h.  */
8259
8260 int
8261 main ()
8262 {
8263
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext conftest$ac_exeext
8269 if { (ac_try="$ac_link"
8270 case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_link") 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } && {
8282          test -z "$ac_c_werror_flag" ||
8283          test ! -s conftest.err
8284        } && test -s conftest$ac_exeext &&
8285        $as_test_x conftest$ac_exeext; then
8286   lt_cv_cc_needs_belf=yes
8287 else
8288   echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291         lt_cv_cc_needs_belf=no
8292 fi
8293
8294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8295       conftest$ac_exeext conftest.$ac_ext
8296      ac_ext=c
8297 ac_cpp='$CPP $CPPFLAGS'
8298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8301
8302 fi
8303 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8304 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8305   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8306     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8307     CFLAGS="$SAVE_CFLAGS"
8308   fi
8309   ;;
8310
8311 esac
8312
8313 need_locks="$enable_libtool_lock"
8314
8315
8316
8317 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8319 if test "${ac_cv_header_stdc+set}" = set; then
8320   echo $ECHO_N "(cached) $ECHO_C" >&6
8321 else
8322   cat >conftest.$ac_ext <<_ACEOF
8323 /* confdefs.h.  */
8324 _ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h.  */
8328 #include <stdlib.h>
8329 #include <stdarg.h>
8330 #include <string.h>
8331 #include <float.h>
8332
8333 int
8334 main ()
8335 {
8336
8337   ;
8338   return 0;
8339 }
8340 _ACEOF
8341 rm -f conftest.$ac_objext
8342 if { (ac_try="$ac_compile"
8343 case "(($ac_try" in
8344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8345   *) ac_try_echo=$ac_try;;
8346 esac
8347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8348   (eval "$ac_compile") 2>conftest.er1
8349   ac_status=$?
8350   grep -v '^ *+' conftest.er1 >conftest.err
8351   rm -f conftest.er1
8352   cat conftest.err >&5
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); } && {
8355          test -z "$ac_c_werror_flag" ||
8356          test ! -s conftest.err
8357        } && test -s conftest.$ac_objext; then
8358   ac_cv_header_stdc=yes
8359 else
8360   echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363         ac_cv_header_stdc=no
8364 fi
8365
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8367
8368 if test $ac_cv_header_stdc = yes; then
8369   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8370   cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h.  */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h.  */
8376 #include <string.h>
8377
8378 _ACEOF
8379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8380   $EGREP "memchr" >/dev/null 2>&1; then
8381   :
8382 else
8383   ac_cv_header_stdc=no
8384 fi
8385 rm -f conftest*
8386
8387 fi
8388
8389 if test $ac_cv_header_stdc = yes; then
8390   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8391   cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 #include <stdlib.h>
8398
8399 _ACEOF
8400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8401   $EGREP "free" >/dev/null 2>&1; then
8402   :
8403 else
8404   ac_cv_header_stdc=no
8405 fi
8406 rm -f conftest*
8407
8408 fi
8409
8410 if test $ac_cv_header_stdc = yes; then
8411   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8412   if test "$cross_compiling" = yes; then
8413   :
8414 else
8415   cat >conftest.$ac_ext <<_ACEOF
8416 /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421 #include <ctype.h>
8422 #include <stdlib.h>
8423 #if ((' ' & 0x0FF) == 0x020)
8424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8426 #else
8427 # define ISLOWER(c) \
8428                    (('a' <= (c) && (c) <= 'i') \
8429                      || ('j' <= (c) && (c) <= 'r') \
8430                      || ('s' <= (c) && (c) <= 'z'))
8431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8432 #endif
8433
8434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8435 int
8436 main ()
8437 {
8438   int i;
8439   for (i = 0; i < 256; i++)
8440     if (XOR (islower (i), ISLOWER (i))
8441         || toupper (i) != TOUPPER (i))
8442       return 2;
8443   return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest$ac_exeext
8447 if { (ac_try="$ac_link"
8448 case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_link") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8457   { (case "(($ac_try" in
8458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459   *) ac_try_echo=$ac_try;;
8460 esac
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462   (eval "$ac_try") 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; }; then
8466   :
8467 else
8468   echo "$as_me: program exited with status $ac_status" >&5
8469 echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 ( exit $ac_status )
8473 ac_cv_header_stdc=no
8474 fi
8475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8476 fi
8477
8478
8479 fi
8480 fi
8481 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8482 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8483 if test $ac_cv_header_stdc = yes; then
8484
8485 cat >>confdefs.h <<\_ACEOF
8486 #define STDC_HEADERS 1
8487 _ACEOF
8488
8489 fi
8490
8491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8502                   inttypes.h stdint.h unistd.h
8503 do
8504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8508   echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510   cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516 $ac_includes_default
8517
8518 #include <$ac_header>
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524   *) ac_try_echo=$ac_try;;
8525 esac
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527   (eval "$ac_compile") 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } && {
8534          test -z "$ac_c_werror_flag" ||
8535          test ! -s conftest.err
8536        } && test -s conftest.$ac_objext; then
8537   eval "$as_ac_Header=yes"
8538 else
8539   echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542         eval "$as_ac_Header=no"
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 fi
8547 ac_res=`eval echo '${'$as_ac_Header'}'`
8548                { echo "$as_me:$LINENO: result: $ac_res" >&5
8549 echo "${ECHO_T}$ac_res" >&6; }
8550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8551   cat >>confdefs.h <<_ACEOF
8552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8553 _ACEOF
8554
8555 fi
8556
8557 done
8558
8559
8560
8561 for ac_header in dlfcn.h
8562 do
8563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8565   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8568   echo $ECHO_N "(cached) $ECHO_C" >&6
8569 fi
8570 ac_res=`eval echo '${'$as_ac_Header'}'`
8571                { echo "$as_me:$LINENO: result: $ac_res" >&5
8572 echo "${ECHO_T}$ac_res" >&6; }
8573 else
8574   # Is the header compilable?
8575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8577 cat >conftest.$ac_ext <<_ACEOF
8578 /* confdefs.h.  */
8579 _ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h.  */
8583 $ac_includes_default
8584 #include <$ac_header>
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8588 case "(($ac_try" in
8589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590   *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593   (eval "$ac_compile") 2>conftest.er1
8594   ac_status=$?
8595   grep -v '^ *+' conftest.er1 >conftest.err
8596   rm -f conftest.er1
8597   cat conftest.err >&5
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); } && {
8600          test -z "$ac_c_werror_flag" ||
8601          test ! -s conftest.err
8602        } && test -s conftest.$ac_objext; then
8603   ac_header_compiler=yes
8604 else
8605   echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8607
8608         ac_header_compiler=no
8609 fi
8610
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8613 echo "${ECHO_T}$ac_header_compiler" >&6; }
8614
8615 # Is the header present?
8616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h.  */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h.  */
8624 #include <$ac_header>
8625 _ACEOF
8626 if { (ac_try="$ac_cpp conftest.$ac_ext"
8627 case "(($ac_try" in
8628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629   *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } >/dev/null && {
8639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8640          test ! -s conftest.err
8641        }; then
8642   ac_header_preproc=yes
8643 else
8644   echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647   ac_header_preproc=no
8648 fi
8649
8650 rm -f conftest.err conftest.$ac_ext
8651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8652 echo "${ECHO_T}$ac_header_preproc" >&6; }
8653
8654 # So?  What about this header?
8655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8656   yes:no: )
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8661     ac_header_preproc=yes
8662     ;;
8663   no:yes:* )
8664     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8666     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8667 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8668     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8670     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8671 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8672     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8674     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8676
8677     ;;
8678 esac
8679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8682   echo $ECHO_N "(cached) $ECHO_C" >&6
8683 else
8684   eval "$as_ac_Header=\$ac_header_preproc"
8685 fi
8686 ac_res=`eval echo '${'$as_ac_Header'}'`
8687                { echo "$as_me:$LINENO: result: $ac_res" >&5
8688 echo "${ECHO_T}$ac_res" >&6; }
8689
8690 fi
8691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8692   cat >>confdefs.h <<_ACEOF
8693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8694 _ACEOF
8695
8696 fi
8697
8698 done
8699
8700 ac_ext=f
8701 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8702 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8704 if test -n "$ac_tool_prefix"; then
8705   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
8706   do
8707     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8711 if test "${ac_cv_prog_F77+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   if test -n "$F77"; then
8715   ac_cv_prog_F77="$F77" # Let the user override the test.
8716 else
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in $PATH
8719 do
8720   IFS=$as_save_IFS
8721   test -z "$as_dir" && as_dir=.
8722   for ac_exec_ext in '' $ac_executable_extensions; do
8723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726     break 2
8727   fi
8728 done
8729 done
8730 IFS=$as_save_IFS
8731
8732 fi
8733 fi
8734 F77=$ac_cv_prog_F77
8735 if test -n "$F77"; then
8736   { echo "$as_me:$LINENO: result: $F77" >&5
8737 echo "${ECHO_T}$F77" >&6; }
8738 else
8739   { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8741 fi
8742
8743
8744     test -n "$F77" && break
8745   done
8746 fi
8747 if test -z "$F77"; then
8748   ac_ct_F77=$F77
8749   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
8750 do
8751   # Extract the first word of "$ac_prog", so it can be a program name with args.
8752 set dummy $ac_prog; ac_word=$2
8753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8755 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8756   echo $ECHO_N "(cached) $ECHO_C" >&6
8757 else
8758   if test -n "$ac_ct_F77"; then
8759   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8760 else
8761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762 for as_dir in $PATH
8763 do
8764   IFS=$as_save_IFS
8765   test -z "$as_dir" && as_dir=.
8766   for ac_exec_ext in '' $ac_executable_extensions; do
8767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8768     ac_cv_prog_ac_ct_F77="$ac_prog"
8769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8770     break 2
8771   fi
8772 done
8773 done
8774 IFS=$as_save_IFS
8775
8776 fi
8777 fi
8778 ac_ct_F77=$ac_cv_prog_ac_ct_F77
8779 if test -n "$ac_ct_F77"; then
8780   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8781 echo "${ECHO_T}$ac_ct_F77" >&6; }
8782 else
8783   { echo "$as_me:$LINENO: result: no" >&5
8784 echo "${ECHO_T}no" >&6; }
8785 fi
8786
8787
8788   test -n "$ac_ct_F77" && break
8789 done
8790
8791   if test "x$ac_ct_F77" = x; then
8792     F77=""
8793   else
8794     case $cross_compiling:$ac_tool_warned in
8795 yes:)
8796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8797 whose name does not start with the host triplet.  If you think this
8798 configuration is useful to you, please write to autoconf@gnu.org." >&5
8799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8800 whose name does not start with the host triplet.  If you think this
8801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8802 ac_tool_warned=yes ;;
8803 esac
8804     F77=$ac_ct_F77
8805   fi
8806 fi
8807
8808
8809 # Provide some information about the compiler.
8810 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8811 ac_compiler=`set X $ac_compile; echo $2`
8812 { (ac_try="$ac_compiler --version >&5"
8813 case "(($ac_try" in
8814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815   *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818   (eval "$ac_compiler --version >&5") 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }
8822 { (ac_try="$ac_compiler -v >&5"
8823 case "(($ac_try" in
8824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825   *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828   (eval "$ac_compiler -v >&5") 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }
8832 { (ac_try="$ac_compiler -V >&5"
8833 case "(($ac_try" in
8834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835   *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838   (eval "$ac_compiler -V >&5") 2>&5
8839   ac_status=$?
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); }
8842 rm -f a.out
8843
8844 # If we don't use `.F' as extension, the preprocessor is not run on the
8845 # input file.  (Note that this only needs to work for GNU compilers.)
8846 ac_save_ext=$ac_ext
8847 ac_ext=F
8848 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8849 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
8850 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853   cat >conftest.$ac_ext <<_ACEOF
8854       program main
8855 #ifndef __GNUC__
8856        choke me
8857 #endif
8858
8859       end
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8863 case "(($ac_try" in
8864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865   *) ac_try_echo=$ac_try;;
8866 esac
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868   (eval "$ac_compile") 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } && {
8875          test -z "$ac_f77_werror_flag" ||
8876          test ! -s conftest.err
8877        } && test -s conftest.$ac_objext; then
8878   ac_compiler_gnu=yes
8879 else
8880   echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8882
8883         ac_compiler_gnu=no
8884 fi
8885
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8888
8889 fi
8890 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8891 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
8892 ac_ext=$ac_save_ext
8893 ac_test_FFLAGS=${FFLAGS+set}
8894 ac_save_FFLAGS=$FFLAGS
8895 FFLAGS=
8896 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8897 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
8898 if test "${ac_cv_prog_f77_g+set}" = set; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901   FFLAGS=-g
8902 cat >conftest.$ac_ext <<_ACEOF
8903       program main
8904
8905       end
8906 _ACEOF
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914   (eval "$ac_compile") 2>conftest.er1
8915   ac_status=$?
8916   grep -v '^ *+' conftest.er1 >conftest.err
8917   rm -f conftest.er1
8918   cat conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); } && {
8921          test -z "$ac_f77_werror_flag" ||
8922          test ! -s conftest.err
8923        } && test -s conftest.$ac_objext; then
8924   ac_cv_prog_f77_g=yes
8925 else
8926   echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.$ac_ext >&5
8928
8929         ac_cv_prog_f77_g=no
8930 fi
8931
8932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8933
8934 fi
8935 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8936 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
8937 if test "$ac_test_FFLAGS" = set; then
8938   FFLAGS=$ac_save_FFLAGS
8939 elif test $ac_cv_prog_f77_g = yes; then
8940   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8941     FFLAGS="-g -O2"
8942   else
8943     FFLAGS="-g"
8944   fi
8945 else
8946   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8947     FFLAGS="-O2"
8948   else
8949     FFLAGS=
8950   fi
8951 fi
8952
8953 G77=`test $ac_compiler_gnu = yes && echo yes`
8954 ac_ext=c
8955 ac_cpp='$CPP $CPPFLAGS'
8956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8959
8960
8961
8962 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8963
8964 # find the maximum length of command line arguments
8965 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8966 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
8967 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8968   echo $ECHO_N "(cached) $ECHO_C" >&6
8969 else
8970     i=0
8971   testring="ABCD"
8972
8973   case $build_os in
8974   msdosdjgpp*)
8975     # On DJGPP, this test can blow up pretty badly due to problems in libc
8976     # (any single argument exceeding 2000 bytes causes a buffer overrun
8977     # during glob expansion).  Even if it were fixed, the result of this
8978     # check would be larger than it should be.
8979     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8980     ;;
8981
8982   gnu*)
8983     # Under GNU Hurd, this test is not required because there is
8984     # no limit to the length of command line arguments.
8985     # Libtool will interpret -1 as no limit whatsoever
8986     lt_cv_sys_max_cmd_len=-1;
8987     ;;
8988
8989   cygwin* | mingw*)
8990     # On Win9x/ME, this test blows up -- it succeeds, but takes
8991     # about 5 minutes as the teststring grows exponentially.
8992     # Worse, since 9x/ME are not pre-emptively multitasking,
8993     # you end up with a "frozen" computer, even though with patience
8994     # the test eventually succeeds (with a max line length of 256k).
8995     # Instead, let's just punt: use the minimum linelength reported by
8996     # all of the supported platforms: 8192 (on NT/2K/XP).
8997     lt_cv_sys_max_cmd_len=8192;
8998     ;;
8999
9000  *)
9001     # If test is not a shell built-in, we'll probably end up computing a
9002     # maximum length that is only half of the actual maximum length, but
9003     # we can't tell.
9004     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
9005                = "XX$testring") >/dev/null 2>&1 &&
9006             new_result=`expr "X$testring" : ".*" 2>&1` &&
9007             lt_cv_sys_max_cmd_len=$new_result &&
9008             test $i != 17 # 1/2 MB should be enough
9009     do
9010       i=`expr $i + 1`
9011       testring=$testring$testring
9012     done
9013     testring=
9014     # Add a significant safety factor because C++ compilers can tack on massive
9015     # amounts of additional arguments before passing them to the linker.
9016     # It appears as though 1/2 is a usable value.
9017     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9018     ;;
9019   esac
9020
9021 fi
9022
9023 if test -n $lt_cv_sys_max_cmd_len ; then
9024   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9025 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9026 else
9027   { echo "$as_me:$LINENO: result: none" >&5
9028 echo "${ECHO_T}none" >&6; }
9029 fi
9030
9031
9032
9033
9034 # Check for command to grab the raw symbol name followed by C symbol from nm.
9035 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9036 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9037 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040
9041 # These are sane defaults that work on at least a few old systems.
9042 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9043
9044 # Character class describing NM global symbol codes.
9045 symcode='[BCDEGRST]'
9046
9047 # Regexp to match symbols that can be accessed directly from C.
9048 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9049
9050 # Transform the above into a raw symbol and a C symbol.
9051 symxfrm='\1 \2\3 \3'
9052
9053 # Transform an extracted symbol line into a proper C declaration
9054 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9055
9056 # Transform an extracted symbol line into symbol name and symbol address
9057 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'"
9058
9059 # Define system-specific variables.
9060 case $host_os in
9061 aix*)
9062   symcode='[BCDT]'
9063   ;;
9064 cygwin* | mingw* | pw32*)
9065   symcode='[ABCDGISTW]'
9066   ;;
9067 hpux*) # Its linker distinguishes data from code symbols
9068   if test "$host_cpu" = ia64; then
9069     symcode='[ABCDEGRST]'
9070   fi
9071   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9072   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'"
9073   ;;
9074 irix* | nonstopux*)
9075   symcode='[BCDEGRST]'
9076   ;;
9077 osf*)
9078   symcode='[BCDEGQRST]'
9079   ;;
9080 solaris* | sysv5*)
9081   symcode='[BDT]'
9082   ;;
9083 sysv4)
9084   symcode='[DFNSTU]'
9085   ;;
9086 esac
9087
9088 # Handle CRLF in mingw tool chain
9089 opt_cr=
9090 case $build_os in
9091 mingw*)
9092   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9093   ;;
9094 esac
9095
9096 # If we're using GNU nm, then use its standard symbol codes.
9097 case `$NM -V 2>&1` in
9098 *GNU* | *'with BFD'*)
9099   symcode='[ABCDGISTW]' ;;
9100 esac
9101
9102 # Try without a prefix undercore, then with it.
9103 for ac_symprfx in "" "_"; do
9104
9105   # Write the raw and C identifiers.
9106   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9107
9108   # Check to see that the pipe works correctly.
9109   pipe_works=no
9110
9111   rm -f conftest*
9112   cat > conftest.$ac_ext <<EOF
9113 #ifdef __cplusplus
9114 extern "C" {
9115 #endif
9116 char nm_test_var;
9117 void nm_test_func(){}
9118 #ifdef __cplusplus
9119 }
9120 #endif
9121 int main(){nm_test_var='a';nm_test_func();return(0);}
9122 EOF
9123
9124   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125   (eval $ac_compile) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); }; then
9129     # Now try to grab the symbols.
9130     nlist=conftest.nm
9131     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9132   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9133   ac_status=$?
9134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135   (exit $ac_status); } && test -s "$nlist"; then
9136       # Try sorting and uniquifying the output.
9137       if sort "$nlist" | uniq > "$nlist"T; then
9138         mv -f "$nlist"T "$nlist"
9139       else
9140         rm -f "$nlist"T
9141       fi
9142
9143       # Make sure that we snagged all the symbols we need.
9144       if grep ' nm_test_var$' "$nlist" >/dev/null; then
9145         if grep ' nm_test_func$' "$nlist" >/dev/null; then
9146           cat <<EOF > conftest.$ac_ext
9147 #ifdef __cplusplus
9148 extern "C" {
9149 #endif
9150
9151 EOF
9152           # Now generate the symbol file.
9153           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9154
9155           cat <<EOF >> conftest.$ac_ext
9156 #if defined (__STDC__) && __STDC__
9157 # define lt_ptr_t void *
9158 #else
9159 # define lt_ptr_t char *
9160 # define const
9161 #endif
9162
9163 /* The mapping between symbol names and symbols. */
9164 const struct {
9165   const char *name;
9166   lt_ptr_t address;
9167 }
9168 lt_preloaded_symbols[] =
9169 {
9170 EOF
9171           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9172           cat <<\EOF >> conftest.$ac_ext
9173   {0, (lt_ptr_t) 0}
9174 };
9175
9176 #ifdef __cplusplus
9177 }
9178 #endif
9179 EOF
9180           # Now try linking the two files.
9181           mv conftest.$ac_objext conftstm.$ac_objext
9182           lt_save_LIBS="$LIBS"
9183           lt_save_CFLAGS="$CFLAGS"
9184           LIBS="conftstm.$ac_objext"
9185           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9186           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187   (eval $ac_link) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } && test -s conftest${ac_exeext}; then
9191             pipe_works=yes
9192           fi
9193           LIBS="$lt_save_LIBS"
9194           CFLAGS="$lt_save_CFLAGS"
9195         else
9196           echo "cannot find nm_test_func in $nlist" >&5
9197         fi
9198       else
9199         echo "cannot find nm_test_var in $nlist" >&5
9200       fi
9201     else
9202       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9203     fi
9204   else
9205     echo "$progname: failed program was:" >&5
9206     cat conftest.$ac_ext >&5
9207   fi
9208   rm -f conftest* conftst*
9209
9210   # Do not use the global_symbol_pipe unless it works.
9211   if test "$pipe_works" = yes; then
9212     break
9213   else
9214     lt_cv_sys_global_symbol_pipe=
9215   fi
9216 done
9217
9218 fi
9219
9220 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9221   lt_cv_sys_global_symbol_to_cdecl=
9222 fi
9223 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9224   { echo "$as_me:$LINENO: result: failed" >&5
9225 echo "${ECHO_T}failed" >&6; }
9226 else
9227   { echo "$as_me:$LINENO: result: ok" >&5
9228 echo "${ECHO_T}ok" >&6; }
9229 fi
9230
9231 { echo "$as_me:$LINENO: checking for objdir" >&5
9232 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9233 if test "${lt_cv_objdir+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   rm -f .libs 2>/dev/null
9237 mkdir .libs 2>/dev/null
9238 if test -d .libs; then
9239   lt_cv_objdir=.libs
9240 else
9241   # MS-DOS does not allow filenames that begin with a dot.
9242   lt_cv_objdir=_libs
9243 fi
9244 rmdir .libs 2>/dev/null
9245 fi
9246 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9247 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9248 objdir=$lt_cv_objdir
9249
9250
9251
9252
9253
9254 case $host_os in
9255 aix3*)
9256   # AIX sometimes has problems with the GCC collect2 program.  For some
9257   # reason, if we set the COLLECT_NAMES environment variable, the problems
9258   # vanish in a puff of smoke.
9259   if test "X${COLLECT_NAMES+set}" != Xset; then
9260     COLLECT_NAMES=
9261     export COLLECT_NAMES
9262   fi
9263   ;;
9264 esac
9265
9266 # Sed substitution that helps us do robust quoting.  It backslashifies
9267 # metacharacters that are still active within double-quoted strings.
9268 Xsed='sed -e s/^X//'
9269 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9270
9271 # Same as above, but do not quote variable references.
9272 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9273
9274 # Sed substitution to delay expansion of an escaped shell variable in a
9275 # double_quote_subst'ed string.
9276 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9277
9278 # Sed substitution to avoid accidental globbing in evaled expressions
9279 no_glob_subst='s/\*/\\\*/g'
9280
9281 # Constants:
9282 rm="rm -f"
9283
9284 # Global variables:
9285 default_ofile=libtool
9286 can_build_shared=yes
9287
9288 # All known linkers require a `.a' archive for static linking (except M$VC,
9289 # which needs '.lib').
9290 libext=a
9291 ltmain="$ac_aux_dir/ltmain.sh"
9292 ofile="$default_ofile"
9293 with_gnu_ld="$lt_cv_prog_gnu_ld"
9294
9295 if test -n "$ac_tool_prefix"; then
9296   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9297 set dummy ${ac_tool_prefix}ar; ac_word=$2
9298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9300 if test "${ac_cv_prog_AR+set}" = set; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303   if test -n "$AR"; then
9304   ac_cv_prog_AR="$AR" # Let the user override the test.
9305 else
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 for as_dir in $PATH
9308 do
9309   IFS=$as_save_IFS
9310   test -z "$as_dir" && as_dir=.
9311   for ac_exec_ext in '' $ac_executable_extensions; do
9312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313     ac_cv_prog_AR="${ac_tool_prefix}ar"
9314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9315     break 2
9316   fi
9317 done
9318 done
9319 IFS=$as_save_IFS
9320
9321 fi
9322 fi
9323 AR=$ac_cv_prog_AR
9324 if test -n "$AR"; then
9325   { echo "$as_me:$LINENO: result: $AR" >&5
9326 echo "${ECHO_T}$AR" >&6; }
9327 else
9328   { echo "$as_me:$LINENO: result: no" >&5
9329 echo "${ECHO_T}no" >&6; }
9330 fi
9331
9332
9333 fi
9334 if test -z "$ac_cv_prog_AR"; then
9335   ac_ct_AR=$AR
9336   # Extract the first word of "ar", so it can be a program name with args.
9337 set dummy ar; ac_word=$2
9338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9340 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9341   echo $ECHO_N "(cached) $ECHO_C" >&6
9342 else
9343   if test -n "$ac_ct_AR"; then
9344   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9345 else
9346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9347 for as_dir in $PATH
9348 do
9349   IFS=$as_save_IFS
9350   test -z "$as_dir" && as_dir=.
9351   for ac_exec_ext in '' $ac_executable_extensions; do
9352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9353     ac_cv_prog_ac_ct_AR="ar"
9354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9355     break 2
9356   fi
9357 done
9358 done
9359 IFS=$as_save_IFS
9360
9361 fi
9362 fi
9363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9364 if test -n "$ac_ct_AR"; then
9365   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9366 echo "${ECHO_T}$ac_ct_AR" >&6; }
9367 else
9368   { echo "$as_me:$LINENO: result: no" >&5
9369 echo "${ECHO_T}no" >&6; }
9370 fi
9371
9372   if test "x$ac_ct_AR" = x; then
9373     AR="false"
9374   else
9375     case $cross_compiling:$ac_tool_warned in
9376 yes:)
9377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9378 whose name does not start with the host triplet.  If you think this
9379 configuration is useful to you, please write to autoconf@gnu.org." >&5
9380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9381 whose name does not start with the host triplet.  If you think this
9382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9383 ac_tool_warned=yes ;;
9384 esac
9385     AR=$ac_ct_AR
9386   fi
9387 else
9388   AR="$ac_cv_prog_AR"
9389 fi
9390
9391 if test -n "$ac_tool_prefix"; then
9392   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9396 if test "${ac_cv_prog_RANLIB+set}" = set; then
9397   echo $ECHO_N "(cached) $ECHO_C" >&6
9398 else
9399   if test -n "$RANLIB"; then
9400   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9401 else
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH
9404 do
9405   IFS=$as_save_IFS
9406   test -z "$as_dir" && as_dir=.
9407   for ac_exec_ext in '' $ac_executable_extensions; do
9408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9411     break 2
9412   fi
9413 done
9414 done
9415 IFS=$as_save_IFS
9416
9417 fi
9418 fi
9419 RANLIB=$ac_cv_prog_RANLIB
9420 if test -n "$RANLIB"; then
9421   { echo "$as_me:$LINENO: result: $RANLIB" >&5
9422 echo "${ECHO_T}$RANLIB" >&6; }
9423 else
9424   { echo "$as_me:$LINENO: result: no" >&5
9425 echo "${ECHO_T}no" >&6; }
9426 fi
9427
9428
9429 fi
9430 if test -z "$ac_cv_prog_RANLIB"; then
9431   ac_ct_RANLIB=$RANLIB
9432   # Extract the first word of "ranlib", so it can be a program name with args.
9433 set dummy ranlib; ac_word=$2
9434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9436 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9437   echo $ECHO_N "(cached) $ECHO_C" >&6
9438 else
9439   if test -n "$ac_ct_RANLIB"; then
9440   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9441 else
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in $PATH
9444 do
9445   IFS=$as_save_IFS
9446   test -z "$as_dir" && as_dir=.
9447   for ac_exec_ext in '' $ac_executable_extensions; do
9448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449     ac_cv_prog_ac_ct_RANLIB="ranlib"
9450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9451     break 2
9452   fi
9453 done
9454 done
9455 IFS=$as_save_IFS
9456
9457 fi
9458 fi
9459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9460 if test -n "$ac_ct_RANLIB"; then
9461   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9462 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9463 else
9464   { echo "$as_me:$LINENO: result: no" >&5
9465 echo "${ECHO_T}no" >&6; }
9466 fi
9467
9468   if test "x$ac_ct_RANLIB" = x; then
9469     RANLIB=":"
9470   else
9471     case $cross_compiling:$ac_tool_warned in
9472 yes:)
9473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9474 whose name does not start with the host triplet.  If you think this
9475 configuration is useful to you, please write to autoconf@gnu.org." >&5
9476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9477 whose name does not start with the host triplet.  If you think this
9478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9479 ac_tool_warned=yes ;;
9480 esac
9481     RANLIB=$ac_ct_RANLIB
9482   fi
9483 else
9484   RANLIB="$ac_cv_prog_RANLIB"
9485 fi
9486
9487 if test -n "$ac_tool_prefix"; then
9488   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9489 set dummy ${ac_tool_prefix}strip; ac_word=$2
9490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9492 if test "${ac_cv_prog_STRIP+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   if test -n "$STRIP"; then
9496   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9497 else
9498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9499 for as_dir in $PATH
9500 do
9501   IFS=$as_save_IFS
9502   test -z "$as_dir" && as_dir=.
9503   for ac_exec_ext in '' $ac_executable_extensions; do
9504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9505     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9507     break 2
9508   fi
9509 done
9510 done
9511 IFS=$as_save_IFS
9512
9513 fi
9514 fi
9515 STRIP=$ac_cv_prog_STRIP
9516 if test -n "$STRIP"; then
9517   { echo "$as_me:$LINENO: result: $STRIP" >&5
9518 echo "${ECHO_T}$STRIP" >&6; }
9519 else
9520   { echo "$as_me:$LINENO: result: no" >&5
9521 echo "${ECHO_T}no" >&6; }
9522 fi
9523
9524
9525 fi
9526 if test -z "$ac_cv_prog_STRIP"; then
9527   ac_ct_STRIP=$STRIP
9528   # Extract the first word of "strip", so it can be a program name with args.
9529 set dummy strip; ac_word=$2
9530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9532 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9533   echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535   if test -n "$ac_ct_STRIP"; then
9536   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9537 else
9538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9539 for as_dir in $PATH
9540 do
9541   IFS=$as_save_IFS
9542   test -z "$as_dir" && as_dir=.
9543   for ac_exec_ext in '' $ac_executable_extensions; do
9544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9545     ac_cv_prog_ac_ct_STRIP="strip"
9546     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9547     break 2
9548   fi
9549 done
9550 done
9551 IFS=$as_save_IFS
9552
9553 fi
9554 fi
9555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9556 if test -n "$ac_ct_STRIP"; then
9557   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9558 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9559 else
9560   { echo "$as_me:$LINENO: result: no" >&5
9561 echo "${ECHO_T}no" >&6; }
9562 fi
9563
9564   if test "x$ac_ct_STRIP" = x; then
9565     STRIP=":"
9566   else
9567     case $cross_compiling:$ac_tool_warned in
9568 yes:)
9569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9570 whose name does not start with the host triplet.  If you think this
9571 configuration is useful to you, please write to autoconf@gnu.org." >&5
9572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9573 whose name does not start with the host triplet.  If you think this
9574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9575 ac_tool_warned=yes ;;
9576 esac
9577     STRIP=$ac_ct_STRIP
9578   fi
9579 else
9580   STRIP="$ac_cv_prog_STRIP"
9581 fi
9582
9583
9584 old_CC="$CC"
9585 old_CFLAGS="$CFLAGS"
9586
9587 # Set sane defaults for various variables
9588 test -z "$AR" && AR=ar
9589 test -z "$AR_FLAGS" && AR_FLAGS=cru
9590 test -z "$AS" && AS=as
9591 test -z "$CC" && CC=cc
9592 test -z "$LTCC" && LTCC=$CC
9593 test -z "$DLLTOOL" && DLLTOOL=dlltool
9594 test -z "$LD" && LD=ld
9595 test -z "$LN_S" && LN_S="ln -s"
9596 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9597 test -z "$NM" && NM=nm
9598 test -z "$SED" && SED=sed
9599 test -z "$OBJDUMP" && OBJDUMP=objdump
9600 test -z "$RANLIB" && RANLIB=:
9601 test -z "$STRIP" && STRIP=:
9602 test -z "$ac_objext" && ac_objext=o
9603
9604 # Determine commands to create old-style static archives.
9605 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9606 old_postinstall_cmds='chmod 644 $oldlib'
9607 old_postuninstall_cmds=
9608
9609 if test -n "$RANLIB"; then
9610   case $host_os in
9611   openbsd*)
9612     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9613     ;;
9614   *)
9615     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9616     ;;
9617   esac
9618   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9619 fi
9620
9621 # Only perform the check for file, if the check method requires it
9622 case $deplibs_check_method in
9623 file_magic*)
9624   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9625     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9626 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9627 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630   case $MAGIC_CMD in
9631 [\\/*] |  ?:[\\/]*)
9632   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9633   ;;
9634 *)
9635   lt_save_MAGIC_CMD="$MAGIC_CMD"
9636   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9637   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9638   for ac_dir in $ac_dummy; do
9639     IFS="$lt_save_ifs"
9640     test -z "$ac_dir" && ac_dir=.
9641     if test -f $ac_dir/${ac_tool_prefix}file; then
9642       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9643       if test -n "$file_magic_test_file"; then
9644         case $deplibs_check_method in
9645         "file_magic "*)
9646           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9647           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9648           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9649             $EGREP "$file_magic_regex" > /dev/null; then
9650             :
9651           else
9652             cat <<EOF 1>&2
9653
9654 *** Warning: the command libtool uses to detect shared libraries,
9655 *** $file_magic_cmd, produces output that libtool cannot recognize.
9656 *** The result is that libtool may fail to recognize shared libraries
9657 *** as such.  This will affect the creation of libtool libraries that
9658 *** depend on shared libraries, but programs linked with such libtool
9659 *** libraries will work regardless of this problem.  Nevertheless, you
9660 *** may want to report the problem to your system manager and/or to
9661 *** bug-libtool@gnu.org
9662
9663 EOF
9664           fi ;;
9665         esac
9666       fi
9667       break
9668     fi
9669   done
9670   IFS="$lt_save_ifs"
9671   MAGIC_CMD="$lt_save_MAGIC_CMD"
9672   ;;
9673 esac
9674 fi
9675
9676 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9677 if test -n "$MAGIC_CMD"; then
9678   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9679 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9680 else
9681   { echo "$as_me:$LINENO: result: no" >&5
9682 echo "${ECHO_T}no" >&6; }
9683 fi
9684
9685 if test -z "$lt_cv_path_MAGIC_CMD"; then
9686   if test -n "$ac_tool_prefix"; then
9687     { echo "$as_me:$LINENO: checking for file" >&5
9688 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9690   echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692   case $MAGIC_CMD in
9693 [\\/*] |  ?:[\\/]*)
9694   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9695   ;;
9696 *)
9697   lt_save_MAGIC_CMD="$MAGIC_CMD"
9698   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9699   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9700   for ac_dir in $ac_dummy; do
9701     IFS="$lt_save_ifs"
9702     test -z "$ac_dir" && ac_dir=.
9703     if test -f $ac_dir/file; then
9704       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9705       if test -n "$file_magic_test_file"; then
9706         case $deplibs_check_method in
9707         "file_magic "*)
9708           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9709           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9710           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9711             $EGREP "$file_magic_regex" > /dev/null; then
9712             :
9713           else
9714             cat <<EOF 1>&2
9715
9716 *** Warning: the command libtool uses to detect shared libraries,
9717 *** $file_magic_cmd, produces output that libtool cannot recognize.
9718 *** The result is that libtool may fail to recognize shared libraries
9719 *** as such.  This will affect the creation of libtool libraries that
9720 *** depend on shared libraries, but programs linked with such libtool
9721 *** libraries will work regardless of this problem.  Nevertheless, you
9722 *** may want to report the problem to your system manager and/or to
9723 *** bug-libtool@gnu.org
9724
9725 EOF
9726           fi ;;
9727         esac
9728       fi
9729       break
9730     fi
9731   done
9732   IFS="$lt_save_ifs"
9733   MAGIC_CMD="$lt_save_MAGIC_CMD"
9734   ;;
9735 esac
9736 fi
9737
9738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9739 if test -n "$MAGIC_CMD"; then
9740   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9741 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9742 else
9743   { echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6; }
9745 fi
9746
9747   else
9748     MAGIC_CMD=:
9749   fi
9750 fi
9751
9752   fi
9753   ;;
9754 esac
9755
9756 enable_dlopen=yes
9757 enable_win32_dll=no
9758
9759 # Check whether --enable-libtool-lock was given.
9760 if test "${enable_libtool_lock+set}" = set; then
9761   enableval=$enable_libtool_lock;
9762 fi
9763
9764 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9765
9766
9767 # Check whether --with-pic was given.
9768 if test "${with_pic+set}" = set; then
9769   withval=$with_pic; pic_mode="$withval"
9770 else
9771   pic_mode=default
9772 fi
9773
9774 test -z "$pic_mode" && pic_mode=default
9775
9776 # Use C for the default configuration in the libtool script
9777 tagname=
9778 lt_save_CC="$CC"
9779 ac_ext=c
9780 ac_cpp='$CPP $CPPFLAGS'
9781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9784
9785
9786 # Source file extension for C test sources.
9787 ac_ext=c
9788
9789 # Object file extension for compiled C test sources.
9790 objext=o
9791 objext=$objext
9792
9793 # Code to be used in simple compile tests
9794 lt_simple_compile_test_code="int some_variable = 0;\n"
9795
9796 # Code to be used in simple link tests
9797 lt_simple_link_test_code='int main(){return(0);}\n'
9798
9799
9800 # If no C compiler was specified, use CC.
9801 LTCC=${LTCC-"$CC"}
9802
9803 # Allow CC to be a program name with arguments.
9804 compiler=$CC
9805
9806
9807 #
9808 # Check for any special shared library compilation flags.
9809 #
9810 lt_prog_cc_shlib=
9811 if test "$GCC" = no; then
9812   case $host_os in
9813   sco3.2v5*)
9814     lt_prog_cc_shlib='-belf'
9815     ;;
9816   esac
9817 fi
9818 if test -n "$lt_prog_cc_shlib"; then
9819   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
9820 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
9821   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
9822   else
9823     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
9824 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
9825     lt_cv_prog_cc_can_build_shared=no
9826   fi
9827 fi
9828
9829
9830 #
9831 # Check to make sure the static flag actually works.
9832 #
9833 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
9834 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
9835 if test "${lt_prog_compiler_static_works+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   lt_prog_compiler_static_works=no
9839    save_LDFLAGS="$LDFLAGS"
9840    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
9841    printf "$lt_simple_link_test_code" > conftest.$ac_ext
9842    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9843      # The compiler can only warn and ignore the option if not recognized
9844      # So say no if there are warnings
9845      if test -s conftest.err; then
9846        # Append any errors to the config.log.
9847        cat conftest.err 1>&5
9848      else
9849        lt_prog_compiler_static_works=yes
9850      fi
9851    fi
9852    $rm conftest*
9853    LDFLAGS="$save_LDFLAGS"
9854
9855 fi
9856 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9857 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
9858
9859 if test x"$lt_prog_compiler_static_works" = xyes; then
9860     :
9861 else
9862     lt_prog_compiler_static=
9863 fi
9864
9865
9866
9867 ## CAVEAT EMPTOR:
9868 ## There is no encapsulation within the following macros, do not change
9869 ## the running order or otherwise move them around unless you know exactly
9870 ## what you are doing...
9871
9872 lt_prog_compiler_no_builtin_flag=
9873
9874 if test "$GCC" = yes; then
9875   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9876
9877
9878 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9879 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9880 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883   lt_cv_prog_compiler_rtti_exceptions=no
9884   ac_outfile=conftest.$ac_objext
9885    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9886    lt_compiler_flag="-fno-rtti -fno-exceptions"
9887    # Insert the option either (1) after the last *FLAGS variable, or
9888    # (2) before a word containing "conftest.", or (3) at the end.
9889    # Note that $ac_compile itself does not contain backslashes and begins
9890    # with a dollar sign (not a hyphen), so the echo should work correctly.
9891    # The option is referenced via a variable to avoid confusing sed.
9892    lt_compile=`echo "$ac_compile" | $SED \
9893    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
9894    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9895    -e 's:$: $lt_compiler_flag:'`
9896    (eval echo "\"\$as_me:9896: $lt_compile\"" >&5)
9897    (eval "$lt_compile" 2>conftest.err)
9898    ac_status=$?
9899    cat conftest.err >&5
9900    echo "$as_me:9900: \$? = $ac_status" >&5
9901    if (exit $ac_status) && test -s "$ac_outfile"; then
9902      # The compiler can only warn and ignore the option if not recognized
9903      # So say no if there are warnings
9904      if test ! -s conftest.err; then
9905        lt_cv_prog_compiler_rtti_exceptions=yes
9906      fi
9907    fi
9908    $rm conftest*
9909
9910 fi
9911 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9912 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9913
9914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9915     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9916 else
9917     :
9918 fi
9919
9920 fi
9921
9922 lt_prog_compiler_wl=
9923 lt_prog_compiler_pic=
9924 lt_prog_compiler_static=
9925
9926 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9927 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9928
9929   if test "$GCC" = yes; then
9930     lt_prog_compiler_wl='-Wl,'
9931     lt_prog_compiler_static='-static'
9932
9933     case $host_os in
9934       aix*)
9935       # All AIX code is PIC.
9936       if test "$host_cpu" = ia64; then
9937         # AIX 5 now supports IA64 processor
9938         lt_prog_compiler_static='-Bstatic'
9939       fi
9940       ;;
9941
9942     amigaos*)
9943       # FIXME: we need at least 68020 code to build shared libraries, but
9944       # adding the `-m68020' flag to GCC prevents building anything better,
9945       # like `-m68040'.
9946       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9947       ;;
9948
9949     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9950       # PIC is the default for these OSes.
9951       ;;
9952
9953     mingw* | pw32* | os2*)
9954       # This hack is so that the source file can tell whether it is being
9955       # built for inclusion in a dll (and should export symbols for example).
9956       lt_prog_compiler_pic='-DDLL_EXPORT'
9957       ;;
9958
9959     darwin* | rhapsody*)
9960       # PIC is the default on this platform
9961       # Common symbols not allowed in MH_DYLIB files
9962       lt_prog_compiler_pic='-fno-common'
9963       ;;
9964
9965     msdosdjgpp*)
9966       # Just because we use GCC doesn't mean we suddenly get shared libraries
9967       # on systems that don't support them.
9968       lt_prog_compiler_can_build_shared=no
9969       enable_shared=no
9970       ;;
9971
9972     sysv4*MP*)
9973       if test -d /usr/nec; then
9974         lt_prog_compiler_pic=-Kconform_pic
9975       fi
9976       ;;
9977
9978     hpux*)
9979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9980       # not for PA HP-UX.
9981       case "$host_cpu" in
9982       hppa*64*|ia64*)
9983         # +Z the default
9984         ;;
9985       *)
9986         lt_prog_compiler_pic='-fPIC'
9987         ;;
9988       esac
9989       ;;
9990
9991     *)
9992       lt_prog_compiler_pic='-fPIC'
9993       ;;
9994     esac
9995   else
9996     # PORTME Check for flag to pass linker flags through the system compiler.
9997     case $host_os in
9998     aix*)
9999       lt_prog_compiler_wl='-Wl,'
10000       if test "$host_cpu" = ia64; then
10001         # AIX 5 now supports IA64 processor
10002         lt_prog_compiler_static='-Bstatic'
10003       else
10004         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10005       fi
10006       ;;
10007
10008     mingw* | pw32* | os2*)
10009       # This hack is so that the source file can tell whether it is being
10010       # built for inclusion in a dll (and should export symbols for example).
10011       lt_prog_compiler_pic='-DDLL_EXPORT'
10012       ;;
10013
10014     hpux9* | hpux10* | hpux11*)
10015       lt_prog_compiler_wl='-Wl,'
10016       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10017       # not for PA HP-UX.
10018       case "$host_cpu" in
10019       hppa*64*|ia64*)
10020         # +Z the default
10021         ;;
10022       *)
10023         lt_prog_compiler_pic='+Z'
10024         ;;
10025       esac
10026       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10027       lt_prog_compiler_static='${wl}-a ${wl}archive'
10028       ;;
10029
10030     irix5* | irix6* | nonstopux*)
10031       lt_prog_compiler_wl='-Wl,'
10032       # PIC (with -KPIC) is the default.
10033       lt_prog_compiler_static='-non_shared'
10034       ;;
10035
10036     newsos6)
10037       lt_prog_compiler_pic='-KPIC'
10038       lt_prog_compiler_static='-Bstatic'
10039       ;;
10040
10041     linux*)
10042       case $CC in
10043       icc* | ecc*)
10044         lt_prog_compiler_wl='-Wl,'
10045         lt_prog_compiler_pic='-KPIC'
10046         lt_prog_compiler_static='-static'
10047         ;;
10048       ccc*)
10049         lt_prog_compiler_wl='-Wl,'
10050         # All Alpha code is PIC.
10051         lt_prog_compiler_static='-non_shared'
10052         ;;
10053       esac
10054       ;;
10055
10056     osf3* | osf4* | osf5*)
10057       lt_prog_compiler_wl='-Wl,'
10058       # All OSF/1 code is PIC.
10059       lt_prog_compiler_static='-non_shared'
10060       ;;
10061
10062     sco3.2v5*)
10063       lt_prog_compiler_pic='-Kpic'
10064       lt_prog_compiler_static='-dn'
10065       ;;
10066
10067     solaris*)
10068       lt_prog_compiler_wl='-Wl,'
10069       lt_prog_compiler_pic='-KPIC'
10070       lt_prog_compiler_static='-Bstatic'
10071       ;;
10072
10073     sunos4*)
10074       lt_prog_compiler_wl='-Qoption ld '
10075       lt_prog_compiler_pic='-PIC'
10076       lt_prog_compiler_static='-Bstatic'
10077       ;;
10078
10079     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10080       lt_prog_compiler_wl='-Wl,'
10081       lt_prog_compiler_pic='-KPIC'
10082       lt_prog_compiler_static='-Bstatic'
10083       ;;
10084
10085     sysv4*MP*)
10086       if test -d /usr/nec ;then
10087         lt_prog_compiler_pic='-Kconform_pic'
10088         lt_prog_compiler_static='-Bstatic'
10089       fi
10090       ;;
10091
10092     uts4*)
10093       lt_prog_compiler_pic='-pic'
10094       lt_prog_compiler_static='-Bstatic'
10095       ;;
10096
10097     *)
10098       lt_prog_compiler_can_build_shared=no
10099       ;;
10100     esac
10101   fi
10102
10103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10104 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10105
10106 #
10107 # Check to make sure the PIC flag actually works.
10108 #
10109 if test -n "$lt_prog_compiler_pic"; then
10110
10111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10113 if test "${lt_prog_compiler_pic_works+set}" = set; then
10114   echo $ECHO_N "(cached) $ECHO_C" >&6
10115 else
10116   lt_prog_compiler_pic_works=no
10117   ac_outfile=conftest.$ac_objext
10118    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10119    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10120    # Insert the option either (1) after the last *FLAGS variable, or
10121    # (2) before a word containing "conftest.", or (3) at the end.
10122    # Note that $ac_compile itself does not contain backslashes and begins
10123    # with a dollar sign (not a hyphen), so the echo should work correctly.
10124    # The option is referenced via a variable to avoid confusing sed.
10125    lt_compile=`echo "$ac_compile" | $SED \
10126    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10127    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10128    -e 's:$: $lt_compiler_flag:'`
10129    (eval echo "\"\$as_me:10129: $lt_compile\"" >&5)
10130    (eval "$lt_compile" 2>conftest.err)
10131    ac_status=$?
10132    cat conftest.err >&5
10133    echo "$as_me:10133: \$? = $ac_status" >&5
10134    if (exit $ac_status) && test -s "$ac_outfile"; then
10135      # The compiler can only warn and ignore the option if not recognized
10136      # So say no if there are warnings
10137      if test ! -s conftest.err; then
10138        lt_prog_compiler_pic_works=yes
10139      fi
10140    fi
10141    $rm conftest*
10142
10143 fi
10144 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10145 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
10146
10147 if test x"$lt_prog_compiler_pic_works" = xyes; then
10148     case $lt_prog_compiler_pic in
10149      "" | " "*) ;;
10150      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10151      esac
10152 else
10153     lt_prog_compiler_pic=
10154      lt_prog_compiler_can_build_shared=no
10155 fi
10156
10157 fi
10158 case "$host_os" in
10159   # For platforms which do not support PIC, -DPIC is meaningless:
10160   *djgpp*)
10161     lt_prog_compiler_pic=
10162     ;;
10163   *)
10164     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10165     ;;
10166 esac
10167
10168 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10169 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10170 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10171   echo $ECHO_N "(cached) $ECHO_C" >&6
10172 else
10173   lt_cv_prog_compiler_c_o=no
10174    $rm -r conftest 2>/dev/null
10175    mkdir conftest
10176    cd conftest
10177    mkdir out
10178    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10179
10180    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10181    # that will create temporary files in the current directory regardless of
10182    # the output directory.  Thus, making CWD read-only will cause this test
10183    # to fail, enabling locking or at least warning the user not to do parallel
10184    # builds.
10185    chmod -w .
10186
10187    lt_compiler_flag="-o out/conftest2.$ac_objext"
10188    # Insert the option either (1) after the last *FLAGS variable, or
10189    # (2) before a word containing "conftest.", or (3) at the end.
10190    # Note that $ac_compile itself does not contain backslashes and begins
10191    # with a dollar sign (not a hyphen), so the echo should work correctly.
10192    lt_compile=`echo "$ac_compile" | $SED \
10193    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10194    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10195    -e 's:$: $lt_compiler_flag:'`
10196    (eval echo "\"\$as_me:10196: $lt_compile\"" >&5)
10197    (eval "$lt_compile" 2>out/conftest.err)
10198    ac_status=$?
10199    cat out/conftest.err >&5
10200    echo "$as_me:10200: \$? = $ac_status" >&5
10201    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10202    then
10203      # The compiler can only warn and ignore the option if not recognized
10204      # So say no if there are warnings
10205      if test ! -s out/conftest.err; then
10206        lt_cv_prog_compiler_c_o=yes
10207      fi
10208    fi
10209    chmod u+w .
10210    $rm conftest* out/*
10211    rmdir out
10212    cd ..
10213    rmdir conftest
10214    $rm conftest*
10215
10216 fi
10217 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10218 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10219
10220
10221 hard_links="nottested"
10222 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10223   # do not overwrite the value of need_locks provided by the user
10224   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10225 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10226   hard_links=yes
10227   $rm conftest*
10228   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10229   touch conftest.a
10230   ln conftest.a conftest.b 2>&5 || hard_links=no
10231   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10232   { echo "$as_me:$LINENO: result: $hard_links" >&5
10233 echo "${ECHO_T}$hard_links" >&6; }
10234   if test "$hard_links" = no; then
10235     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10236 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10237     need_locks=warn
10238   fi
10239 else
10240   need_locks=no
10241 fi
10242
10243 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10244 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10245
10246   runpath_var=
10247   allow_undefined_flag=
10248   enable_shared_with_static_runtimes=no
10249   archive_cmds=
10250   archive_expsym_cmds=
10251   old_archive_From_new_cmds=
10252   old_archive_from_expsyms_cmds=
10253   export_dynamic_flag_spec=
10254   whole_archive_flag_spec=
10255   thread_safe_flag_spec=
10256   hardcode_libdir_flag_spec=
10257   hardcode_libdir_flag_spec_ld=
10258   hardcode_libdir_separator=
10259   hardcode_direct=no
10260   hardcode_minus_L=no
10261   hardcode_shlibpath_var=unsupported
10262   link_all_deplibs=unknown
10263   hardcode_automatic=no
10264   module_cmds=
10265   module_expsym_cmds=
10266   always_export_symbols=no
10267   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10268   # include_expsyms should be a list of space-separated symbols to be *always*
10269   # included in the symbol list
10270   include_expsyms=
10271   # exclude_expsyms can be an extended regexp of symbols to exclude
10272   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10273   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10274   # as well as any symbol that contains `d'.
10275   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10276   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10277   # platforms (ab)use it in PIC code, but their linkers get confused if
10278   # the symbol is explicitly referenced.  Since portable code cannot
10279   # rely on this symbol name, it's probably fine to never include it in
10280   # preloaded symbol tables.
10281   extract_expsyms_cmds=
10282
10283   case $host_os in
10284   cygwin* | mingw* | pw32*)
10285     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10286     # When not using gcc, we currently assume that we are using
10287     # Microsoft Visual C++.
10288     if test "$GCC" != yes; then
10289       with_gnu_ld=no
10290     fi
10291     ;;
10292   openbsd*)
10293     with_gnu_ld=no
10294     ;;
10295   esac
10296
10297   ld_shlibs=yes
10298   if test "$with_gnu_ld" = yes; then
10299     # If archive_cmds runs LD, not CC, wlarc should be empty
10300     wlarc='${wl}'
10301
10302     # See if GNU ld supports shared libraries.
10303     case $host_os in
10304     aix3* | aix4* | aix5*)
10305       # On AIX/PPC, the GNU linker is very broken
10306       if test "$host_cpu" != ia64; then
10307         ld_shlibs=no
10308         cat <<EOF 1>&2
10309
10310 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10311 *** to be unable to reliably create shared libraries on AIX.
10312 *** Therefore, libtool is disabling shared libraries support.  If you
10313 *** really care for shared libraries, you may want to modify your PATH
10314 *** so that a non-GNU linker is found, and then restart.
10315
10316 EOF
10317       fi
10318       ;;
10319
10320     amigaos*)
10321       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)'
10322       hardcode_libdir_flag_spec='-L$libdir'
10323       hardcode_minus_L=yes
10324
10325       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10326       # that the semantics of dynamic libraries on AmigaOS, at least up
10327       # to version 4, is to share data among multiple programs linked
10328       # with the same dynamic library.  Since this doesn't match the
10329       # behavior of shared libraries on other platforms, we can't use
10330       # them.
10331       ld_shlibs=no
10332       ;;
10333
10334     beos*)
10335       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10336         allow_undefined_flag=unsupported
10337         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10338         # support --undefined.  This deserves some investigation.  FIXME
10339         archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10340       else
10341         ld_shlibs=no
10342       fi
10343       ;;
10344
10345     cygwin* | mingw* | pw32*)
10346       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10347       # as there is no search path for DLLs.
10348       hardcode_libdir_flag_spec='-L$libdir'
10349       allow_undefined_flag=no
10350       always_export_symbols=no
10351       enable_shared_with_static_runtimes=yes
10352       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10353
10354       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10355         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10356         # If the export-symbols file already is a .def file (1st line
10357         # is EXPORTS), use it as is; otherwise, prepend...
10358         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10359           cp $export_symbols $output_objdir/$soname.def;
10360         else
10361           echo EXPORTS > $output_objdir/$soname.def;
10362           cat $export_symbols >> $output_objdir/$soname.def;
10363         fi~
10364         $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10365       else
10366         ld_shlibs=no
10367       fi
10368       ;;
10369
10370     netbsd*)
10371       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10372         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10373         wlarc=
10374       else
10375         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10376         archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10377       fi
10378       ;;
10379
10380     solaris* | sysv5*)
10381       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10382         ld_shlibs=no
10383         cat <<EOF 1>&2
10384
10385 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10386 *** create shared libraries on Solaris systems.  Therefore, libtool
10387 *** is disabling shared libraries support.  We urge you to upgrade GNU
10388 *** binutils to release 2.9.1 or newer.  Another option is to modify
10389 *** your PATH or compiler configuration so that the native linker is
10390 *** used, and then restart.
10391
10392 EOF
10393       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10394         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10395         archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10396       else
10397         ld_shlibs=no
10398       fi
10399       ;;
10400
10401     sunos4*)
10402       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10403       wlarc=
10404       hardcode_direct=yes
10405       hardcode_shlibpath_var=no
10406       ;;
10407
10408     *)
10409       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10410         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10411         archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10412       else
10413         ld_shlibs=no
10414       fi
10415       ;;
10416     esac
10417
10418     if test "$ld_shlibs" = yes; then
10419       runpath_var=LD_RUN_PATH
10420       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10421       export_dynamic_flag_spec='${wl}--export-dynamic'
10422       # ancient GNU ld didn't support --whole-archive et. al.
10423       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10424         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10425       else
10426         whole_archive_flag_spec=
10427       fi
10428     fi
10429   else
10430     # PORTME fill in a description of your system's linker (not GNU ld)
10431     case $host_os in
10432     aix3*)
10433       allow_undefined_flag=unsupported
10434       always_export_symbols=yes
10435       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'
10436       # Note: this linker hardcodes the directories in LIBPATH if there
10437       # are no directories specified by -L.
10438       hardcode_minus_L=yes
10439       if test "$GCC" = yes && test -z "$link_static_flag"; then
10440         # Neither direct hardcoding nor static linking is supported with a
10441         # broken collect2.
10442         hardcode_direct=unsupported
10443       fi
10444       ;;
10445
10446     aix4* | aix5*)
10447       if test "$host_cpu" = ia64; then
10448         # On IA64, the linker does run time linking by default, so we don't
10449         # have to do anything special.
10450         aix_use_runtimelinking=no
10451         exp_sym_flag='-Bexport'
10452         no_entry_flag=""
10453       else
10454         # If we're using GNU nm, then we don't want the "-C" option.
10455         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10456         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10457           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'
10458         else
10459           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'
10460         fi
10461
10462         # KDE requires run time linking.  Make it the default.
10463         aix_use_runtimelinking=yes
10464         exp_sym_flag='-bexport'
10465         no_entry_flag='-bnoentry'
10466       fi
10467
10468       # When large executables or shared objects are built, AIX ld can
10469       # have problems creating the table of contents.  If linking a library
10470       # or program results in "error TOC overflow" add -mminimal-toc to
10471       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10472       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10473
10474       archive_cmds=''
10475       hardcode_direct=yes
10476       hardcode_libdir_separator=':'
10477       link_all_deplibs=yes
10478
10479       if test "$GCC" = yes; then
10480         case $host_os in aix4.012|aix4.012.*)
10481         # We only want to do this on AIX 4.2 and lower, the check
10482         # below for broken collect2 doesn't work under 4.3+
10483           collect2name=`${CC} -print-prog-name=collect2`
10484           if test -f "$collect2name" && \
10485            strings "$collect2name" | grep resolve_lib_name >/dev/null
10486           then
10487           # We have reworked collect2
10488           hardcode_direct=yes
10489           else
10490           # We have old collect2
10491           hardcode_direct=unsupported
10492           # It fails to find uninstalled libraries when the uninstalled
10493           # path is not listed in the libpath.  Setting hardcode_minus_L
10494           # to unsupported forces relinking
10495           hardcode_minus_L=yes
10496           hardcode_libdir_flag_spec='-L$libdir'
10497           hardcode_libdir_separator=
10498           fi
10499         esac
10500         shared_flag='-shared'
10501       else
10502         # not using gcc
10503         if test "$host_cpu" = ia64; then
10504         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10505         # chokes on -Wl,-G. The following line is correct:
10506           shared_flag='-G'
10507         else
10508         if test "$aix_use_runtimelinking" = yes; then
10509             shared_flag='-qmkshrobj ${wl}-G'
10510           else
10511             shared_flag='-qmkshrobj'
10512         fi
10513         fi
10514       fi
10515
10516       # Let the compiler handle the export list.
10517       always_export_symbols=no
10518       if test "$aix_use_runtimelinking" = yes; then
10519         # Warning - without using the other runtime loading flags (-brtl),
10520         # -berok will link without error, but may produce a broken library.
10521         allow_undefined_flag='-berok'
10522        # Determine the default libpath from the value encoded in an empty executable.
10523         cat >conftest.$ac_ext <<_ACEOF
10524 /* confdefs.h.  */
10525 _ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h.  */
10529
10530 int
10531 main ()
10532 {
10533
10534   ;
10535   return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542   *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545   (eval "$ac_link") 2>conftest.er1
10546   ac_status=$?
10547   grep -v '^ *+' conftest.er1 >conftest.err
10548   rm -f conftest.er1
10549   cat conftest.err >&5
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } && {
10552          test -z "$ac_c_werror_flag" ||
10553          test ! -s conftest.err
10554        } && test -s conftest$ac_exeext &&
10555        $as_test_x conftest$ac_exeext; then
10556
10557 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10558 }'`
10559 # Check for a 64-bit object if we didn't find anything.
10560 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10561 }'`; fi
10562 else
10563   echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566
10567 fi
10568
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570       conftest$ac_exeext conftest.$ac_ext
10571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10572
10573         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10574         archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10575         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10576        else
10577         if test "$host_cpu" = ia64; then
10578           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10579           allow_undefined_flag="-z nodefs"
10580           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10581         else
10582          # Determine the default libpath from the value encoded in an empty executable.
10583          cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h.  */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h.  */
10589
10590 int
10591 main ()
10592 {
10593
10594   ;
10595   return 0;
10596 }
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (ac_try="$ac_link"
10600 case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_link") 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } && {
10612          test -z "$ac_c_werror_flag" ||
10613          test ! -s conftest.err
10614        } && test -s conftest$ac_exeext &&
10615        $as_test_x conftest$ac_exeext; then
10616
10617 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10618 }'`
10619 # Check for a 64-bit object if we didn't find anything.
10620 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10621 }'`; fi
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626
10627 fi
10628
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630       conftest$ac_exeext conftest.$ac_ext
10631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10632
10633          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10634           # Warning - without using the other run time loading flags,
10635           # -berok will link without error, but may produce a broken library.
10636           no_undefined_flag=' ${wl}-bernotok'
10637           allow_undefined_flag=' ${wl}-berok'
10638           # -bexpall does not export symbols beginning with underscore (_)
10639           always_export_symbols=yes
10640           # Exported symbols can be pulled into shared objects from archives
10641           whole_archive_flag_spec=' '
10642           archive_cmds_need_lc=yes
10643           # This is similar to how AIX traditionally builds it's shared libraries.
10644           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10645         fi
10646       fi
10647       ;;
10648
10649     amigaos*)
10650       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)'
10651       hardcode_libdir_flag_spec='-L$libdir'
10652       hardcode_minus_L=yes
10653       # see comment about different semantics on the GNU ld section
10654       ld_shlibs=no
10655       ;;
10656
10657     bsdi4*)
10658       export_dynamic_flag_spec=-rdynamic
10659       ;;
10660
10661     cygwin* | mingw* | pw32*)
10662       # When not using gcc, we currently assume that we are using
10663       # Microsoft Visual C++.
10664       # hardcode_libdir_flag_spec is actually meaningless, as there is
10665       # no search path for DLLs.
10666       hardcode_libdir_flag_spec=' '
10667       allow_undefined_flag=no
10668       # Tell ltmain to make .lib files, not .a files.
10669       libext=lib
10670       # Tell ltmain to make .dll files, not .so files.
10671       shrext=".dll"
10672       # FIXME: Setting linknames here is a bad hack.
10673       archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10674       # The linker will automatically build a .lib file if we build a DLL.
10675       old_archive_From_new_cmds='true'
10676       # FIXME: Should let the user specify the lib program.
10677       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10678       fix_srcfile_path='`cygpath -w "$srcfile"`'
10679       enable_shared_with_static_runtimes=yes
10680       ;;
10681
10682     darwin* | rhapsody*)
10683     if test "$GXX" = yes ; then
10684       archive_cmds_need_lc=no
10685       case "$host_os" in
10686       rhapsody* | darwin1.[012])
10687         allow_undefined_flag='-Wl,-undefined -Wl,suppress'
10688         ;;
10689       *) # Darwin 1.3 on
10690         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10691           allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10692         else
10693           case ${MACOSX_DEPLOYMENT_TARGET} in
10694             10.012)
10695               allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10696               ;;
10697             10.*)
10698               allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
10699               ;;
10700           esac
10701         fi
10702         ;;
10703       esac
10704         lt_int_apple_cc_single_mod=no
10705         output_verbose_link_cmd='echo'
10706         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10707           lt_int_apple_cc_single_mod=yes
10708         fi
10709         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10710           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
10711         else
10712         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
10713       fi
10714       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
10715       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10716         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10717           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10718         else
10719           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10720         fi
10721           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10722       hardcode_direct=no
10723       hardcode_automatic=yes
10724       hardcode_shlibpath_var=unsupported
10725       whole_archive_flag_spec='-all_load $convenience'
10726       link_all_deplibs=yes
10727     else
10728       ld_shlibs=no
10729     fi
10730       ;;
10731
10732     dgux*)
10733       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10734       hardcode_libdir_flag_spec='-L$libdir'
10735       hardcode_shlibpath_var=no
10736       ;;
10737
10738     freebsd1*)
10739       ld_shlibs=no
10740       ;;
10741
10742     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10743     # support.  Future versions do this automatically, but an explicit c++rt0.o
10744     # does not break anything, and helps significantly (at the cost of a little
10745     # extra space).
10746     freebsd2.2*)
10747       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10748       hardcode_libdir_flag_spec='-R$libdir'
10749       hardcode_direct=yes
10750       hardcode_shlibpath_var=no
10751       ;;
10752
10753     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10754     freebsd2*)
10755       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10756       hardcode_direct=yes
10757       hardcode_minus_L=yes
10758       hardcode_shlibpath_var=no
10759       ;;
10760
10761     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10762     freebsd*)
10763       archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
10764       hardcode_libdir_flag_spec='-R$libdir'
10765       hardcode_direct=yes
10766       hardcode_shlibpath_var=no
10767       ;;
10768
10769     hpux9*)
10770       if test "$GCC" = yes; then
10771         archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10772       else
10773         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'
10774       fi
10775       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10776       hardcode_libdir_separator=:
10777       hardcode_direct=yes
10778
10779       # hardcode_minus_L: Not really in the search PATH,
10780       # but as the default location of the library.
10781       hardcode_minus_L=yes
10782       export_dynamic_flag_spec='${wl}-E'
10783       ;;
10784
10785     hpux10* | hpux11*)
10786       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10787         case "$host_cpu" in
10788         hppa*64*|ia64*)
10789           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10790           ;;
10791         *)
10792           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
10793           ;;
10794         esac
10795       else
10796         case "$host_cpu" in
10797         hppa*64*|ia64*)
10798           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10799           ;;
10800         *)
10801           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10802           ;;
10803         esac
10804       fi
10805       if test "$with_gnu_ld" = no; then
10806         case "$host_cpu" in
10807         hppa*64*)
10808           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10809           hardcode_libdir_flag_spec_ld='+b $libdir'
10810           hardcode_libdir_separator=:
10811           hardcode_direct=no
10812           hardcode_shlibpath_var=no
10813           ;;
10814         ia64*)
10815           hardcode_libdir_flag_spec='-L$libdir'
10816           hardcode_direct=no
10817           hardcode_shlibpath_var=no
10818
10819           # hardcode_minus_L: Not really in the search PATH,
10820           # but as the default location of the library.
10821           hardcode_minus_L=yes
10822           ;;
10823         *)
10824           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10825           hardcode_libdir_separator=:
10826           hardcode_direct=yes
10827           export_dynamic_flag_spec='${wl}-E'
10828
10829           # hardcode_minus_L: Not really in the search PATH,
10830           # but as the default location of the library.
10831           hardcode_minus_L=yes
10832           ;;
10833         esac
10834       fi
10835       ;;
10836
10837     irix5* | irix6* | nonstopux*)
10838       if test "$GCC" = yes; then
10839         archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10840       else
10841         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'
10842         hardcode_libdir_flag_spec_ld='-rpath $libdir'
10843       fi
10844       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10845       hardcode_libdir_separator=:
10846       link_all_deplibs=yes
10847       ;;
10848
10849     netbsd*)
10850       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10851         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10852       else
10853         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10854       fi
10855       hardcode_libdir_flag_spec='-R$libdir'
10856       hardcode_direct=yes
10857       hardcode_shlibpath_var=no
10858       ;;
10859
10860     newsos6)
10861       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10862       hardcode_direct=yes
10863       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10864       hardcode_libdir_separator=:
10865       hardcode_shlibpath_var=no
10866       ;;
10867
10868     openbsd*)
10869       hardcode_direct=yes
10870       hardcode_shlibpath_var=no
10871       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10872         archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10873         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10874         export_dynamic_flag_spec='${wl}-E'
10875       else
10876        case $host_os in
10877          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10878            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10879            hardcode_libdir_flag_spec='-R$libdir'
10880            ;;
10881          *)
10882            archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
10883            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10884            ;;
10885        esac
10886       fi
10887       ;;
10888
10889     os2*)
10890       hardcode_libdir_flag_spec='-L$libdir'
10891       hardcode_minus_L=yes
10892       allow_undefined_flag=unsupported
10893       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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
10894       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10895       ;;
10896
10897     osf3*)
10898       if test "$GCC" = yes; then
10899         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10900         archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10901       else
10902         allow_undefined_flag=' -expect_unresolved \*'
10903         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'
10904       fi
10905       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10906       hardcode_libdir_separator=:
10907       ;;
10908
10909     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10910       if test "$GCC" = yes; then
10911         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10912         archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
10913         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10914       else
10915         allow_undefined_flag=' -expect_unresolved \*'
10916         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'
10917         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10918         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10919
10920         # Both c and cxx compiler support -rpath directly
10921         hardcode_libdir_flag_spec='-rpath $libdir'
10922       fi
10923       hardcode_libdir_separator=:
10924       ;;
10925
10926     sco3.2v5*)
10927       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10928       hardcode_shlibpath_var=no
10929       export_dynamic_flag_spec='${wl}-Bexport'
10930       runpath_var=LD_RUN_PATH
10931       hardcode_runpath_var=yes
10932       ;;
10933
10934     solaris*)
10935       no_undefined_flag=' -z text'
10936       if test "$GCC" = yes; then
10937         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
10938         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10939           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
10940       else
10941         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10942         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10943         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10944       fi
10945       hardcode_libdir_flag_spec='-R$libdir'
10946       hardcode_shlibpath_var=no
10947       case $host_os in
10948       solaris2.[0-5] | solaris2.[0-5].*) ;;
10949       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10950         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10951       esac
10952       link_all_deplibs=yes
10953       ;;
10954
10955     sunos4*)
10956       if test "x$host_vendor" = xsequent; then
10957         # Use $CC to link under sequent, because it throws in some extra .o
10958         # files that make .init and .fini sections work.
10959         archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
10960       else
10961         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10962       fi
10963       hardcode_libdir_flag_spec='-L$libdir'
10964       hardcode_direct=yes
10965       hardcode_minus_L=yes
10966       hardcode_shlibpath_var=no
10967       ;;
10968
10969     sysv4)
10970       case $host_vendor in
10971         sni)
10972           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10973           hardcode_direct=yes # is this really true???
10974         ;;
10975         siemens)
10976           ## LD is ld it makes a PLAMLIB
10977           ## CC just makes a GrossModule.
10978           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10979           reload_cmds='$CC -r -o $output$reload_objs'
10980           hardcode_direct=no
10981         ;;
10982         motorola)
10983           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10984           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10985         ;;
10986       esac
10987       runpath_var='LD_RUN_PATH'
10988       hardcode_shlibpath_var=no
10989       ;;
10990
10991     sysv4.3*)
10992       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10993       hardcode_shlibpath_var=no
10994       export_dynamic_flag_spec='-Bexport'
10995       ;;
10996
10997     sysv4*MP*)
10998       if test -d /usr/nec; then
10999         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000         hardcode_shlibpath_var=no
11001         runpath_var=LD_RUN_PATH
11002         hardcode_runpath_var=yes
11003         ld_shlibs=yes
11004       fi
11005       ;;
11006
11007     sysv4.2uw2*)
11008       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11009       hardcode_direct=yes
11010       hardcode_minus_L=no
11011       hardcode_shlibpath_var=no
11012       hardcode_runpath_var=yes
11013       runpath_var=LD_RUN_PATH
11014       ;;
11015
11016    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
11017       no_undefined_flag='${wl}-z ${wl}text'
11018       if test "$GCC" = yes; then
11019         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11020       else
11021         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11022       fi
11023       runpath_var='LD_RUN_PATH'
11024       hardcode_shlibpath_var=no
11025       ;;
11026
11027     sysv5*)
11028       no_undefined_flag=' -z text'
11029       # $CC -shared without GNU ld will not create a library from C++
11030       # object files and a static libstdc++, better avoid it by now
11031       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11033                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11034       hardcode_libdir_flag_spec=
11035       hardcode_shlibpath_var=no
11036       runpath_var='LD_RUN_PATH'
11037       ;;
11038
11039     uts4*)
11040       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11041       hardcode_libdir_flag_spec='-L$libdir'
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     *)
11046       ld_shlibs=no
11047       ;;
11048     esac
11049   fi
11050
11051 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11052 echo "${ECHO_T}$ld_shlibs" >&6; }
11053 test "$ld_shlibs" = no && can_build_shared=no
11054
11055 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11056 if test "$GCC" = yes; then
11057   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11058 fi
11059
11060 #
11061 # Do we need to explicitly link libc?
11062 #
11063 case "x$archive_cmds_need_lc" in
11064 x|xyes)
11065   # Assume -lc should be added
11066   archive_cmds_need_lc=yes
11067
11068   if test "$enable_shared" = yes && test "$GCC" = yes; then
11069     case $archive_cmds in
11070     *'~'*)
11071       # FIXME: we may have to deal with multi-command sequences.
11072       ;;
11073     '$CC '*)
11074       # Test whether the compiler implicitly links with -lc since on some
11075       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11076       # to ld, don't add -lc before -lgcc.
11077       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11078 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11079       $rm conftest*
11080       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11081
11082       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083   (eval $ac_compile) 2>&5
11084   ac_status=$?
11085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086   (exit $ac_status); } 2>conftest.err; then
11087         soname=conftest
11088         lib=conftest
11089         libobjs=conftest.$ac_objext
11090         deplibs=
11091         wl=$lt_prog_compiler_wl
11092         compiler_flags=-v
11093         linker_flags=-v
11094         verstring=
11095         output_objdir=.
11096         libname=conftest
11097         lt_save_allow_undefined_flag=$allow_undefined_flag
11098         allow_undefined_flag=
11099         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11100   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }
11104         then
11105           archive_cmds_need_lc=no
11106         else
11107           archive_cmds_need_lc=yes
11108         fi
11109         allow_undefined_flag=$lt_save_allow_undefined_flag
11110       else
11111         cat conftest.err 1>&5
11112       fi
11113       $rm conftest*
11114       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11115 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11116       ;;
11117     esac
11118   fi
11119   ;;
11120 esac
11121
11122 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11123 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11124 library_names_spec=
11125 libname_spec='lib$name'
11126 soname_spec=
11127 shrext=".so"
11128 postinstall_cmds=
11129 postuninstall_cmds=
11130 finish_cmds=
11131 finish_eval=
11132 shlibpath_var=
11133 shlibpath_overrides_runpath=unknown
11134 version_type=none
11135 dynamic_linker="$host_os ld.so"
11136 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11137 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11138 need_lib_prefix=unknown
11139 hardcode_into_libs=no
11140
11141 # when you set need_version to no, make sure it does not cause -set_version
11142 # flags to be left without arguments
11143 need_version=unknown
11144
11145 case $host_os in
11146 aix3*)
11147   version_type=linux
11148   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11149   shlibpath_var=LIBPATH
11150
11151   # AIX 3 has no versioning support, so we append a major version to the name.
11152   soname_spec='${libname}${release}${shared_ext}$major'
11153   ;;
11154
11155 aix4* | aix5*)
11156   version_type=linux
11157   need_lib_prefix=no
11158   need_version=no
11159   hardcode_into_libs=yes
11160   if test "$host_cpu" = ia64; then
11161     # AIX 5 supports IA64
11162     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11163     shlibpath_var=LD_LIBRARY_PATH
11164   else
11165     # With GCC up to 2.95.x, collect2 would create an import file
11166     # for dependence libraries.  The import file would start with
11167     # the line `#! .'.  This would cause the generated library to
11168     # depend on `.', always an invalid library.  This was fixed in
11169     # development snapshots of GCC prior to 3.0.
11170     case $host_os in
11171       aix4 | aix4.[01] | aix4.[01].*)
11172       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11173            echo ' yes '
11174            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11175         :
11176       else
11177         can_build_shared=no
11178       fi
11179       ;;
11180     esac
11181     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11182     # soname into executable. Probably we can add versioning support to
11183     # collect2, so additional links can be useful in future.
11184     if test "$aix_use_runtimelinking" = yes; then
11185       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11186       # instead of lib<name>.a to let people know that these are not
11187       # typical AIX shared libraries.
11188       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189     else
11190       # We preserve .a as extension for shared libraries through AIX4.2
11191       # and later when we are not doing run time linking.
11192       library_names_spec='${libname}${release}.a $libname.a'
11193       soname_spec='${libname}${release}${shared_ext}$major'
11194     fi
11195     shlibpath_var=LIBPATH
11196   fi
11197   ;;
11198
11199 amigaos*)
11200   library_names_spec='$libname.ixlibrary $libname.a'
11201   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11202   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'
11203   ;;
11204
11205 beos*)
11206   library_names_spec='${libname}${shared_ext}'
11207   dynamic_linker="$host_os ld.so"
11208   shlibpath_var=LIBRARY_PATH
11209   ;;
11210
11211 bsdi4*)
11212   version_type=linux
11213   need_version=no
11214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215   soname_spec='${libname}${release}${shared_ext}$major'
11216   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11217   shlibpath_var=LD_LIBRARY_PATH
11218   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11219   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11220   # the default ld.so.conf also contains /usr/contrib/lib and
11221   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11222   # libtool to hard-code these into programs
11223   ;;
11224
11225 cygwin* | mingw* | pw32*)
11226   version_type=windows
11227   shrext=".dll"
11228   need_version=no
11229   need_lib_prefix=no
11230
11231   case $GCC,$host_os in
11232   yes,cygwin* | yes,mingw* | yes,pw32*)
11233     library_names_spec='$libname.dll.a'
11234     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11235     postinstall_cmds='base_file=`basename \${file}`~
11236       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11237       dldir=$destdir/`dirname \$dlpath`~
11238       test -d \$dldir || mkdir -p \$dldir~
11239       $install_prog $dir/$dlname \$dldir/$dlname'
11240     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11241       dlpath=$dir/\$dldll~
11242        $rm \$dlpath'
11243     shlibpath_overrides_runpath=yes
11244
11245     case $host_os in
11246     cygwin*)
11247       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11248       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11249       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11250       ;;
11251     mingw*)
11252       # MinGW DLLs use traditional 'lib' prefix
11253       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11254       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11255       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11256         # It is most probably a Windows format PATH printed by
11257         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11258         # path with ; separators, and with drive letters. We can handle the
11259         # drive letters (cygwin fileutils understands them), so leave them,
11260         # especially as we might pass files found there to a mingw objdump,
11261         # which wouldn't understand a cygwinified path. Ahh.
11262         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11263       else
11264         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11265       fi
11266       ;;
11267     pw32*)
11268       # pw32 DLLs use 'pw' prefix rather than 'lib'
11269       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11270       ;;
11271     esac
11272     ;;
11273
11274   *)
11275     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11276     ;;
11277   esac
11278   dynamic_linker='Win32 ld.exe'
11279   # FIXME: first we should search . and the directory the executable is in
11280   shlibpath_var=PATH
11281   ;;
11282
11283 darwin* | rhapsody*)
11284   dynamic_linker="$host_os dyld"
11285   version_type=darwin
11286   need_lib_prefix=no
11287   need_version=no
11288   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11289   soname_spec='${libname}${release}${major}$shared_ext'
11290   shlibpath_overrides_runpath=yes
11291   shlibpath_var=DYLD_LIBRARY_PATH
11292   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11293   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11294   if test "$GCC" = yes; then
11295     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11296   else
11297     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11298   fi
11299   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11300   ;;
11301
11302 dgux*)
11303   version_type=linux
11304   need_lib_prefix=no
11305   need_version=no
11306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11307   soname_spec='${libname}${release}${shared_ext}$major'
11308   shlibpath_var=LD_LIBRARY_PATH
11309   ;;
11310
11311 freebsd1*)
11312   dynamic_linker=no
11313   ;;
11314
11315 freebsd*-gnu*)
11316   version_type=linux
11317   need_lib_prefix=no
11318   need_version=no
11319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11320   soname_spec='${libname}${release}${shared_ext}$major'
11321   shlibpath_var=LD_LIBRARY_PATH
11322   shlibpath_overrides_runpath=no
11323   hardcode_into_libs=yes
11324   dynamic_linker='GNU ld.so'
11325   ;;
11326
11327 freebsd*)
11328   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11329   version_type=freebsd-$objformat
11330   case $version_type in
11331     freebsd-elf*)
11332       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11333       need_version=no
11334       need_lib_prefix=no
11335       ;;
11336     freebsd-*)
11337       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11338       need_version=yes
11339       ;;
11340   esac
11341   shlibpath_var=LD_LIBRARY_PATH
11342   case $host_os in
11343   freebsd2*)
11344     shlibpath_overrides_runpath=yes
11345     ;;
11346   freebsd3.01* | freebsdelf3.01*)
11347     shlibpath_overrides_runpath=yes
11348     hardcode_into_libs=yes
11349     ;;
11350   *) # from 3.2 on
11351     shlibpath_overrides_runpath=no
11352     hardcode_into_libs=yes
11353     ;;
11354   esac
11355   ;;
11356
11357 gnu*)
11358   version_type=linux
11359   need_lib_prefix=no
11360   need_version=no
11361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11362   soname_spec='${libname}${release}${shared_ext}$major'
11363   shlibpath_var=LD_LIBRARY_PATH
11364   hardcode_into_libs=yes
11365   ;;
11366
11367 hpux9* | hpux10* | hpux11*)
11368   # Give a soname corresponding to the major version so that dld.sl refuses to
11369   # link against other versions.
11370   version_type=sunos
11371   need_lib_prefix=no
11372   need_version=no
11373   case "$host_cpu" in
11374   ia64*)
11375     shrext='.so'
11376     hardcode_into_libs=yes
11377     dynamic_linker="$host_os dld.so"
11378     shlibpath_var=LD_LIBRARY_PATH
11379     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11380     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11381     soname_spec='${libname}${release}${shared_ext}$major'
11382     if test "X$HPUX_IA64_MODE" = X32; then
11383       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11384     else
11385       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11386     fi
11387     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11388     ;;
11389    hppa*64*)
11390      shrext='.sl'
11391      hardcode_into_libs=yes
11392      dynamic_linker="$host_os dld.sl"
11393      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11394      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11395      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396      soname_spec='${libname}${release}${shared_ext}$major'
11397      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11398      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11399      ;;
11400    *)
11401     shrext='.sl'
11402     dynamic_linker="$host_os dld.sl"
11403     shlibpath_var=SHLIB_PATH
11404     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11405     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11406     soname_spec='${libname}${release}${shared_ext}$major'
11407     ;;
11408   esac
11409   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11410   postinstall_cmds='chmod 555 $lib'
11411   ;;
11412
11413 irix5* | irix6* | nonstopux*)
11414   case $host_os in
11415     nonstopux*) version_type=nonstopux ;;
11416     *)
11417         if test "$lt_cv_prog_gnu_ld" = yes; then
11418                 version_type=linux
11419         else
11420                 version_type=irix
11421         fi ;;
11422   esac
11423   need_lib_prefix=no
11424   need_version=no
11425   soname_spec='${libname}${release}${shared_ext}$major'
11426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11427   case $host_os in
11428   irix5* | nonstopux*)
11429     libsuff= shlibsuff=
11430     ;;
11431   *)
11432     case $LD in # libtool.m4 will add one of these switches to LD
11433     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11434       libsuff= shlibsuff= libmagic=32-bit;;
11435     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11436       libsuff=32 shlibsuff=N32 libmagic=N32;;
11437     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11438       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11439     *) libsuff= shlibsuff= libmagic=never-match;;
11440     esac
11441     ;;
11442   esac
11443   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11444   shlibpath_overrides_runpath=no
11445   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11446   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11447   hardcode_into_libs=yes
11448   ;;
11449
11450 # No shared lib support for Linux oldld, aout, or coff.
11451 linux*oldld* | linux*aout* | linux*coff*)
11452   dynamic_linker=no
11453   ;;
11454
11455 # This must be Linux ELF.
11456 linux*)
11457   version_type=linux
11458   need_lib_prefix=no
11459   need_version=no
11460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461   soname_spec='${libname}${release}${shared_ext}$major'
11462   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11463   libsuff=
11464   if test "x$LINUX_64_MODE" = x64; then
11465     # Some platforms are per default 64-bit, so there's no /lib64
11466     if test -d /lib64; then
11467       libsuff=64
11468     fi
11469   fi
11470   shlibpath_var=LD_LIBRARY_PATH
11471   shlibpath_overrides_runpath=no
11472   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11473   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11474   # This implies no fast_install, which is unacceptable.
11475   # Some rework will be needed to allow for fast_install
11476   # before this can be enabled.
11477   hardcode_into_libs=yes
11478
11479   # We used to test for /lib/ld.so.1 and disable shared libraries on
11480   # powerpc, because MkLinux only supported shared libraries with the
11481   # GNU dynamic linker.  Since this was broken with cross compilers,
11482   # most powerpc-linux boxes support dynamic linking these days and
11483   # people can always --disable-shared, the test was removed, and we
11484   # assume the GNU/Linux dynamic linker is in use.
11485   dynamic_linker='GNU/Linux ld.so'
11486   ;;
11487
11488 netbsd*)
11489   version_type=sunos
11490   need_lib_prefix=no
11491   need_version=no
11492   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11493     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11494     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11495     dynamic_linker='NetBSD (a.out) ld.so'
11496   else
11497     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11498     soname_spec='${libname}${release}${shared_ext}$major'
11499     dynamic_linker='NetBSD ld.elf_so'
11500   fi
11501   shlibpath_var=LD_LIBRARY_PATH
11502   shlibpath_overrides_runpath=yes
11503   hardcode_into_libs=yes
11504   ;;
11505
11506 newsos6)
11507   version_type=linux
11508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509   shlibpath_var=LD_LIBRARY_PATH
11510   shlibpath_overrides_runpath=yes
11511   ;;
11512
11513 nto-qnx*)
11514   version_type=linux
11515   need_lib_prefix=no
11516   need_version=no
11517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518   soname_spec='${libname}${release}${shared_ext}$major'
11519   shlibpath_var=LD_LIBRARY_PATH
11520   shlibpath_overrides_runpath=yes
11521   ;;
11522
11523 openbsd*)
11524   version_type=sunos
11525   need_lib_prefix=no
11526   need_version=no
11527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11528   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11529   shlibpath_var=LD_LIBRARY_PATH
11530   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11531     case $host_os in
11532       openbsd2.[89] | openbsd2.[89].*)
11533         shlibpath_overrides_runpath=no
11534         ;;
11535       *)
11536         shlibpath_overrides_runpath=yes
11537         ;;
11538       esac
11539   else
11540     shlibpath_overrides_runpath=yes
11541   fi
11542   ;;
11543
11544 os2*)
11545   libname_spec='$name'
11546   shrext=".dll"
11547   need_lib_prefix=no
11548   library_names_spec='$libname${shared_ext} $libname.a'
11549   dynamic_linker='OS/2 ld.exe'
11550   shlibpath_var=LIBPATH
11551   ;;
11552
11553 osf3* | osf4* | osf5*)
11554   version_type=osf
11555   need_lib_prefix=no
11556   need_version=no
11557   soname_spec='${libname}${release}${shared_ext}$major'
11558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559   shlibpath_var=LD_LIBRARY_PATH
11560   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11561   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11562   ;;
11563
11564 sco3.2v5*)
11565   version_type=osf
11566   soname_spec='${libname}${release}${shared_ext}$major'
11567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568   shlibpath_var=LD_LIBRARY_PATH
11569   ;;
11570
11571 solaris*)
11572   version_type=linux
11573   need_lib_prefix=no
11574   need_version=no
11575   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576   soname_spec='${libname}${release}${shared_ext}$major'
11577   shlibpath_var=LD_LIBRARY_PATH
11578   shlibpath_overrides_runpath=yes
11579   hardcode_into_libs=yes
11580   # ldd complains unless libraries are executable
11581   postinstall_cmds='chmod +x $lib'
11582   ;;
11583
11584 sunos4*)
11585   version_type=sunos
11586   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11587   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11588   shlibpath_var=LD_LIBRARY_PATH
11589   shlibpath_overrides_runpath=yes
11590   if test "$with_gnu_ld" = yes; then
11591     need_lib_prefix=no
11592   fi
11593   need_version=yes
11594   ;;
11595
11596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11597   version_type=linux
11598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11599   soname_spec='${libname}${release}${shared_ext}$major'
11600   shlibpath_var=LD_LIBRARY_PATH
11601   case $host_vendor in
11602     sni)
11603       shlibpath_overrides_runpath=no
11604       need_lib_prefix=no
11605       export_dynamic_flag_spec='${wl}-Blargedynsym'
11606       runpath_var=LD_RUN_PATH
11607       ;;
11608     siemens)
11609       need_lib_prefix=no
11610       ;;
11611     motorola)
11612       need_lib_prefix=no
11613       need_version=no
11614       shlibpath_overrides_runpath=no
11615       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11616       ;;
11617   esac
11618   ;;
11619
11620 sysv4*MP*)
11621   if test -d /usr/nec ;then
11622     version_type=linux
11623     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11624     soname_spec='$libname${shared_ext}.$major'
11625     shlibpath_var=LD_LIBRARY_PATH
11626   fi
11627   ;;
11628
11629 uts4*)
11630   version_type=linux
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632   soname_spec='${libname}${release}${shared_ext}$major'
11633   shlibpath_var=LD_LIBRARY_PATH
11634   ;;
11635
11636 *)
11637   dynamic_linker=no
11638   ;;
11639 esac
11640 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11641 echo "${ECHO_T}$dynamic_linker" >&6; }
11642 test "$dynamic_linker" = no && can_build_shared=no
11643
11644 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11645 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11646 hardcode_action=
11647 if test -n "$hardcode_libdir_flag_spec" || \
11648    test -n "$runpath_var " || \
11649    test "X$hardcode_automatic"="Xyes" ; then
11650
11651   # We can hardcode non-existant directories.
11652   if test "$hardcode_direct" != no &&
11653      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11654      # have to relink, otherwise we might link with an installed library
11655      # when we should be linking with a yet-to-be-installed one
11656      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11657      test "$hardcode_minus_L" != no; then
11658     # Linking always hardcodes the temporary library directory.
11659     hardcode_action=relink
11660   else
11661     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11662     hardcode_action=immediate
11663   fi
11664 else
11665   # We cannot hardcode anything, or else we can only hardcode existing
11666   # directories.
11667   hardcode_action=unsupported
11668 fi
11669 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11670 echo "${ECHO_T}$hardcode_action" >&6; }
11671
11672 if test "$hardcode_action" = relink; then
11673   # Fast installation is not supported
11674   enable_fast_install=no
11675 elif test "$shlibpath_overrides_runpath" = yes ||
11676      test "$enable_shared" = no; then
11677   # Fast installation is not necessary
11678   enable_fast_install=needless
11679 fi
11680
11681 striplib=
11682 old_striplib=
11683 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11684 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11685 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11686   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11687   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11688   { echo "$as_me:$LINENO: result: yes" >&5
11689 echo "${ECHO_T}yes" >&6; }
11690 else
11691 # FIXME - insert some real tests, host_os isn't really good enough
11692   case $host_os in
11693    darwin*)
11694        if test -n "$STRIP" ; then
11695          striplib="$STRIP -x"
11696          { echo "$as_me:$LINENO: result: yes" >&5
11697 echo "${ECHO_T}yes" >&6; }
11698        else
11699   { echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6; }
11701 fi
11702        ;;
11703    *)
11704   { echo "$as_me:$LINENO: result: no" >&5
11705 echo "${ECHO_T}no" >&6; }
11706     ;;
11707   esac
11708 fi
11709
11710 if test "x$enable_dlopen" != xyes; then
11711   enable_dlopen=unknown
11712   enable_dlopen_self=unknown
11713   enable_dlopen_self_static=unknown
11714 else
11715   lt_cv_dlopen=no
11716   lt_cv_dlopen_libs=
11717
11718   case $host_os in
11719   beos*)
11720     lt_cv_dlopen="load_add_on"
11721     lt_cv_dlopen_libs=
11722     lt_cv_dlopen_self=yes
11723     ;;
11724
11725   mingw* | pw32*)
11726     lt_cv_dlopen="LoadLibrary"
11727     lt_cv_dlopen_libs=
11728    ;;
11729
11730   cygwin*)
11731     lt_cv_dlopen="dlopen"
11732     lt_cv_dlopen_libs=
11733    ;;
11734
11735   darwin*)
11736   # if libdl is installed we need to link against it
11737     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11738 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11739 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11740   echo $ECHO_N "(cached) $ECHO_C" >&6
11741 else
11742   ac_check_lib_save_LIBS=$LIBS
11743 LIBS="-ldl  $LIBS"
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h.  */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h.  */
11750
11751 /* Override any GCC internal prototype to avoid an error.
11752    Use char because int might match the return type of a GCC
11753    builtin and then its argument prototype would still apply.  */
11754 #ifdef __cplusplus
11755 extern "C"
11756 #endif
11757 char dlopen ();
11758 int
11759 main ()
11760 {
11761 return dlopen ();
11762   ;
11763   return 0;
11764 }
11765 _ACEOF
11766 rm -f conftest.$ac_objext conftest$ac_exeext
11767 if { (ac_try="$ac_link"
11768 case "(($ac_try" in
11769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770   *) ac_try_echo=$ac_try;;
11771 esac
11772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773   (eval "$ac_link") 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } && {
11780          test -z "$ac_c_werror_flag" ||
11781          test ! -s conftest.err
11782        } && test -s conftest$ac_exeext &&
11783        $as_test_x conftest$ac_exeext; then
11784   ac_cv_lib_dl_dlopen=yes
11785 else
11786   echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789         ac_cv_lib_dl_dlopen=no
11790 fi
11791
11792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11793       conftest$ac_exeext conftest.$ac_ext
11794 LIBS=$ac_check_lib_save_LIBS
11795 fi
11796 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11797 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11798 if test $ac_cv_lib_dl_dlopen = yes; then
11799   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11800 else
11801
11802     lt_cv_dlopen="dyld"
11803     lt_cv_dlopen_libs=
11804     lt_cv_dlopen_self=yes
11805
11806 fi
11807
11808    ;;
11809
11810   *)
11811     { echo "$as_me:$LINENO: checking for shl_load" >&5
11812 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11813 if test "${ac_cv_func_shl_load+set}" = set; then
11814   echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816   cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h.  */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h.  */
11822 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11824 #define shl_load innocuous_shl_load
11825
11826 /* System header to define __stub macros and hopefully few prototypes,
11827     which can conflict with char shl_load (); below.
11828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829     <limits.h> exists even on freestanding compilers.  */
11830
11831 #ifdef __STDC__
11832 # include <limits.h>
11833 #else
11834 # include <assert.h>
11835 #endif
11836
11837 #undef shl_load
11838
11839 /* Override any GCC internal prototype to avoid an error.
11840    Use char because int might match the return type of a GCC
11841    builtin and then its argument prototype would still apply.  */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 char shl_load ();
11846 /* The GNU C library defines this for functions which it implements
11847     to always fail with ENOSYS.  Some functions are actually named
11848     something starting with __ and the normal name is an alias.  */
11849 #if defined __stub_shl_load || defined __stub___shl_load
11850 choke me
11851 #endif
11852
11853 int
11854 main ()
11855 {
11856 return shl_load ();
11857   ;
11858   return 0;
11859 }
11860 _ACEOF
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (ac_try="$ac_link"
11863 case "(($ac_try" in
11864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865   *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868   (eval "$ac_link") 2>conftest.er1
11869   ac_status=$?
11870   grep -v '^ *+' conftest.er1 >conftest.err
11871   rm -f conftest.er1
11872   cat conftest.err >&5
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); } && {
11875          test -z "$ac_c_werror_flag" ||
11876          test ! -s conftest.err
11877        } && test -s conftest$ac_exeext &&
11878        $as_test_x conftest$ac_exeext; then
11879   ac_cv_func_shl_load=yes
11880 else
11881   echo "$as_me: failed program was:" >&5
11882 sed 's/^/| /' conftest.$ac_ext >&5
11883
11884         ac_cv_func_shl_load=no
11885 fi
11886
11887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11888       conftest$ac_exeext conftest.$ac_ext
11889 fi
11890 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11891 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11892 if test $ac_cv_func_shl_load = yes; then
11893   lt_cv_dlopen="shl_load"
11894 else
11895   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11896 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11897 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11898   echo $ECHO_N "(cached) $ECHO_C" >&6
11899 else
11900   ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-ldld  $LIBS"
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908
11909 /* Override any GCC internal prototype to avoid an error.
11910    Use char because int might match the return type of a GCC
11911    builtin and then its argument prototype would still apply.  */
11912 #ifdef __cplusplus
11913 extern "C"
11914 #endif
11915 char shl_load ();
11916 int
11917 main ()
11918 {
11919 return shl_load ();
11920   ;
11921   return 0;
11922 }
11923 _ACEOF
11924 rm -f conftest.$ac_objext conftest$ac_exeext
11925 if { (ac_try="$ac_link"
11926 case "(($ac_try" in
11927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928   *) ac_try_echo=$ac_try;;
11929 esac
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931   (eval "$ac_link") 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } && {
11938          test -z "$ac_c_werror_flag" ||
11939          test ! -s conftest.err
11940        } && test -s conftest$ac_exeext &&
11941        $as_test_x conftest$ac_exeext; then
11942   ac_cv_lib_dld_shl_load=yes
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         ac_cv_lib_dld_shl_load=no
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11951       conftest$ac_exeext conftest.$ac_ext
11952 LIBS=$ac_check_lib_save_LIBS
11953 fi
11954 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11955 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11956 if test $ac_cv_lib_dld_shl_load = yes; then
11957   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11958 else
11959   { echo "$as_me:$LINENO: checking for dlopen" >&5
11960 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11961 if test "${ac_cv_func_dlopen+set}" = set; then
11962   echo $ECHO_N "(cached) $ECHO_C" >&6
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11971    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11972 #define dlopen innocuous_dlopen
11973
11974 /* System header to define __stub macros and hopefully few prototypes,
11975     which can conflict with char dlopen (); below.
11976     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11977     <limits.h> exists even on freestanding compilers.  */
11978
11979 #ifdef __STDC__
11980 # include <limits.h>
11981 #else
11982 # include <assert.h>
11983 #endif
11984
11985 #undef dlopen
11986
11987 /* Override any GCC internal prototype to avoid an error.
11988    Use char because int might match the return type of a GCC
11989    builtin and then its argument prototype would still apply.  */
11990 #ifdef __cplusplus
11991 extern "C"
11992 #endif
11993 char dlopen ();
11994 /* The GNU C library defines this for functions which it implements
11995     to always fail with ENOSYS.  Some functions are actually named
11996     something starting with __ and the normal name is an alias.  */
11997 #if defined __stub_dlopen || defined __stub___dlopen
11998 choke me
11999 #endif
12000
12001 int
12002 main ()
12003 {
12004 return dlopen ();
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (ac_try="$ac_link"
12011 case "(($ac_try" in
12012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013   *) ac_try_echo=$ac_try;;
12014 esac
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016   (eval "$ac_link") 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } && {
12023          test -z "$ac_c_werror_flag" ||
12024          test ! -s conftest.err
12025        } && test -s conftest$ac_exeext &&
12026        $as_test_x conftest$ac_exeext; then
12027   ac_cv_func_dlopen=yes
12028 else
12029   echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12031
12032         ac_cv_func_dlopen=no
12033 fi
12034
12035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12036       conftest$ac_exeext conftest.$ac_ext
12037 fi
12038 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12039 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12040 if test $ac_cv_func_dlopen = yes; then
12041   lt_cv_dlopen="dlopen"
12042 else
12043   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12044 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12045 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12046   echo $ECHO_N "(cached) $ECHO_C" >&6
12047 else
12048   ac_check_lib_save_LIBS=$LIBS
12049 LIBS="-ldl  $LIBS"
12050 cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056
12057 /* Override any GCC internal prototype to avoid an error.
12058    Use char because int might match the return type of a GCC
12059    builtin and then its argument prototype would still apply.  */
12060 #ifdef __cplusplus
12061 extern "C"
12062 #endif
12063 char dlopen ();
12064 int
12065 main ()
12066 {
12067 return dlopen ();
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext conftest$ac_exeext
12073 if { (ac_try="$ac_link"
12074 case "(($ac_try" in
12075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076   *) ac_try_echo=$ac_try;;
12077 esac
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079   (eval "$ac_link") 2>conftest.er1
12080   ac_status=$?
12081   grep -v '^ *+' conftest.er1 >conftest.err
12082   rm -f conftest.er1
12083   cat conftest.err >&5
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } && {
12086          test -z "$ac_c_werror_flag" ||
12087          test ! -s conftest.err
12088        } && test -s conftest$ac_exeext &&
12089        $as_test_x conftest$ac_exeext; then
12090   ac_cv_lib_dl_dlopen=yes
12091 else
12092   echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095         ac_cv_lib_dl_dlopen=no
12096 fi
12097
12098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12099       conftest$ac_exeext conftest.$ac_ext
12100 LIBS=$ac_check_lib_save_LIBS
12101 fi
12102 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12103 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12104 if test $ac_cv_lib_dl_dlopen = yes; then
12105   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12106 else
12107   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12108 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12109 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12110   echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112   ac_check_lib_save_LIBS=$LIBS
12113 LIBS="-lsvld  $LIBS"
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h.  */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h.  */
12120
12121 /* Override any GCC internal prototype to avoid an error.
12122    Use char because int might match the return type of a GCC
12123    builtin and then its argument prototype would still apply.  */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 char dlopen ();
12128 int
12129 main ()
12130 {
12131 return dlopen ();
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } && {
12150          test -z "$ac_c_werror_flag" ||
12151          test ! -s conftest.err
12152        } && test -s conftest$ac_exeext &&
12153        $as_test_x conftest$ac_exeext; then
12154   ac_cv_lib_svld_dlopen=yes
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159         ac_cv_lib_svld_dlopen=no
12160 fi
12161
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163       conftest$ac_exeext conftest.$ac_ext
12164 LIBS=$ac_check_lib_save_LIBS
12165 fi
12166 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12167 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12168 if test $ac_cv_lib_svld_dlopen = yes; then
12169   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12170 else
12171   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12172 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12173 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 else
12176   ac_check_lib_save_LIBS=$LIBS
12177 LIBS="-ldld  $LIBS"
12178 cat >conftest.$ac_ext <<_ACEOF
12179 /* confdefs.h.  */
12180 _ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h.  */
12184
12185 /* Override any GCC internal prototype to avoid an error.
12186    Use char because int might match the return type of a GCC
12187    builtin and then its argument prototype would still apply.  */
12188 #ifdef __cplusplus
12189 extern "C"
12190 #endif
12191 char dld_link ();
12192 int
12193 main ()
12194 {
12195 return dld_link ();
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204   *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207   (eval "$ac_link") 2>conftest.er1
12208   ac_status=$?
12209   grep -v '^ *+' conftest.er1 >conftest.err
12210   rm -f conftest.er1
12211   cat conftest.err >&5
12212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213   (exit $ac_status); } && {
12214          test -z "$ac_c_werror_flag" ||
12215          test ! -s conftest.err
12216        } && test -s conftest$ac_exeext &&
12217        $as_test_x conftest$ac_exeext; then
12218   ac_cv_lib_dld_dld_link=yes
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223         ac_cv_lib_dld_dld_link=no
12224 fi
12225
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227       conftest$ac_exeext conftest.$ac_ext
12228 LIBS=$ac_check_lib_save_LIBS
12229 fi
12230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12231 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12232 if test $ac_cv_lib_dld_dld_link = yes; then
12233   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12234 fi
12235
12236
12237 fi
12238
12239
12240 fi
12241
12242
12243 fi
12244
12245
12246 fi
12247
12248
12249 fi
12250
12251     ;;
12252   esac
12253
12254   if test "x$lt_cv_dlopen" != xno; then
12255     enable_dlopen=yes
12256   else
12257     enable_dlopen=no
12258   fi
12259
12260   case $lt_cv_dlopen in
12261   dlopen)
12262     save_CPPFLAGS="$CPPFLAGS"
12263     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12264
12265     save_LDFLAGS="$LDFLAGS"
12266     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12267
12268     save_LIBS="$LIBS"
12269     LIBS="$lt_cv_dlopen_libs $LIBS"
12270
12271     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12272 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12273 if test "${lt_cv_dlopen_self+set}" = set; then
12274   echo $ECHO_N "(cached) $ECHO_C" >&6
12275 else
12276           if test "$cross_compiling" = yes; then :
12277   lt_cv_dlopen_self=cross
12278 else
12279   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12280   lt_status=$lt_dlunknown
12281   cat > conftest.$ac_ext <<EOF
12282 #line 12282 "configure"
12283 #include "confdefs.h"
12284
12285 #if HAVE_DLFCN_H
12286 #include <dlfcn.h>
12287 #endif
12288
12289 #include <stdio.h>
12290
12291 #ifdef RTLD_GLOBAL
12292 #  define LT_DLGLOBAL           RTLD_GLOBAL
12293 #else
12294 #  ifdef DL_GLOBAL
12295 #    define LT_DLGLOBAL         DL_GLOBAL
12296 #  else
12297 #    define LT_DLGLOBAL         0
12298 #  endif
12299 #endif
12300
12301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12302    find out it does not work in some platform. */
12303 #ifndef LT_DLLAZY_OR_NOW
12304 #  ifdef RTLD_LAZY
12305 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12306 #  else
12307 #    ifdef DL_LAZY
12308 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12309 #    else
12310 #      ifdef RTLD_NOW
12311 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12312 #      else
12313 #        ifdef DL_NOW
12314 #          define LT_DLLAZY_OR_NOW      DL_NOW
12315 #        else
12316 #          define LT_DLLAZY_OR_NOW      0
12317 #        endif
12318 #      endif
12319 #    endif
12320 #  endif
12321 #endif
12322
12323 #ifdef __cplusplus
12324 extern "C" void exit (int);
12325 #endif
12326
12327 void fnord() { int i=42;}
12328 int main ()
12329 {
12330   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12331   int status = $lt_dlunknown;
12332
12333   if (self)
12334     {
12335       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12336       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12337       /* dlclose (self); */
12338     }
12339
12340     exit (status);
12341 }
12342 EOF
12343   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12344   (eval $ac_link) 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12348     (./conftest; exit; ) 2>/dev/null
12349     lt_status=$?
12350     case x$lt_status in
12351       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12352       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12353       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12354     esac
12355   else :
12356     # compilation failed
12357     lt_cv_dlopen_self=no
12358   fi
12359 fi
12360 rm -fr conftest*
12361
12362
12363 fi
12364 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12365 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12366
12367     if test "x$lt_cv_dlopen_self" = xyes; then
12368       LDFLAGS="$LDFLAGS $link_static_flag"
12369       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12370 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12371 if test "${lt_cv_dlopen_self_static+set}" = set; then
12372   echo $ECHO_N "(cached) $ECHO_C" >&6
12373 else
12374           if test "$cross_compiling" = yes; then :
12375   lt_cv_dlopen_self_static=cross
12376 else
12377   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12378   lt_status=$lt_dlunknown
12379   cat > conftest.$ac_ext <<EOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12382
12383 #if HAVE_DLFCN_H
12384 #include <dlfcn.h>
12385 #endif
12386
12387 #include <stdio.h>
12388
12389 #ifdef RTLD_GLOBAL
12390 #  define LT_DLGLOBAL           RTLD_GLOBAL
12391 #else
12392 #  ifdef DL_GLOBAL
12393 #    define LT_DLGLOBAL         DL_GLOBAL
12394 #  else
12395 #    define LT_DLGLOBAL         0
12396 #  endif
12397 #endif
12398
12399 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12400    find out it does not work in some platform. */
12401 #ifndef LT_DLLAZY_OR_NOW
12402 #  ifdef RTLD_LAZY
12403 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12404 #  else
12405 #    ifdef DL_LAZY
12406 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12407 #    else
12408 #      ifdef RTLD_NOW
12409 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12410 #      else
12411 #        ifdef DL_NOW
12412 #          define LT_DLLAZY_OR_NOW      DL_NOW
12413 #        else
12414 #          define LT_DLLAZY_OR_NOW      0
12415 #        endif
12416 #      endif
12417 #    endif
12418 #  endif
12419 #endif
12420
12421 #ifdef __cplusplus
12422 extern "C" void exit (int);
12423 #endif
12424
12425 void fnord() { int i=42;}
12426 int main ()
12427 {
12428   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12429   int status = $lt_dlunknown;
12430
12431   if (self)
12432     {
12433       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12434       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12435       /* dlclose (self); */
12436     }
12437
12438     exit (status);
12439 }
12440 EOF
12441   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12442   (eval $ac_link) 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12446     (./conftest; exit; ) 2>/dev/null
12447     lt_status=$?
12448     case x$lt_status in
12449       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12450       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12451       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12452     esac
12453   else :
12454     # compilation failed
12455     lt_cv_dlopen_self_static=no
12456   fi
12457 fi
12458 rm -fr conftest*
12459
12460
12461 fi
12462 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12463 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12464     fi
12465
12466     CPPFLAGS="$save_CPPFLAGS"
12467     LDFLAGS="$save_LDFLAGS"
12468     LIBS="$save_LIBS"
12469     ;;
12470   esac
12471
12472   case $lt_cv_dlopen_self in
12473   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12474   *) enable_dlopen_self=unknown ;;
12475   esac
12476
12477   case $lt_cv_dlopen_self_static in
12478   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12479   *) enable_dlopen_self_static=unknown ;;
12480   esac
12481 fi
12482
12483
12484 # Report which librarie types wil actually be built
12485 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12486 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12487 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12488 echo "${ECHO_T}$can_build_shared" >&6; }
12489
12490 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12491 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12492 test "$can_build_shared" = "no" && enable_shared=no
12493
12494 # On AIX, shared libraries and static libraries use the same namespace, and
12495 # are all built from PIC.
12496 case "$host_os" in
12497 aix3*)
12498   test "$enable_shared" = yes && enable_static=no
12499   if test -n "$RANLIB"; then
12500     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12501     postinstall_cmds='$RANLIB $lib'
12502   fi
12503   ;;
12504
12505 aix4*)
12506   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12507     test "$enable_shared" = yes && enable_static=no
12508   fi
12509   ;;
12510   darwin* | rhapsody*)
12511   if test "$GCC" = yes; then
12512     archive_cmds_need_lc=no
12513     case "$host_os" in
12514     rhapsody* | darwin1.[012])
12515       allow_undefined_flag='-Wl,-undefined -Wl,suppress'
12516       ;;
12517     *) # Darwin 1.3 on
12518       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12519         allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12520       else
12521         case ${MACOSX_DEPLOYMENT_TARGET} in
12522           10.012)
12523             allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12524             ;;
12525           10.*)
12526             allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
12527             ;;
12528         esac
12529       fi
12530       ;;
12531     esac
12532     output_verbose_link_cmd='echo'
12533     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
12534     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
12535     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12536     archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12537     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12538     hardcode_direct=no
12539     hardcode_automatic=yes
12540     hardcode_shlibpath_var=unsupported
12541     whole_archive_flag_spec='-all_load $convenience'
12542     link_all_deplibs=yes
12543   else
12544     ld_shlibs=no
12545   fi
12546     ;;
12547 esac
12548 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12549 echo "${ECHO_T}$enable_shared" >&6; }
12550
12551 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12552 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12553 # Make sure either enable_shared or enable_static is yes.
12554 test "$enable_shared" = yes || enable_static=yes
12555 { echo "$as_me:$LINENO: result: $enable_static" >&5
12556 echo "${ECHO_T}$enable_static" >&6; }
12557
12558 # The else clause should only fire when bootstrapping the
12559 # libtool distribution, otherwise you forgot to ship ltmain.sh
12560 # with your package, and you will get complaints that there are
12561 # no rules to generate ltmain.sh.
12562 if test -f "$ltmain"; then
12563   # See if we are running on zsh, and set the options which allow our commands through
12564   # without removal of \ escapes.
12565   if test -n "${ZSH_VERSION+set}" ; then
12566     setopt NO_GLOB_SUBST
12567   fi
12568   # Now quote all the things that may contain metacharacters while being
12569   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12570   # variables and quote the copies for generation of the libtool script.
12571   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12572     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12573     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12574     deplibs_check_method reload_flag reload_cmds need_locks \
12575     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12576     lt_cv_sys_global_symbol_to_c_name_address \
12577     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12578     old_postinstall_cmds old_postuninstall_cmds \
12579     compiler \
12580     CC \
12581     LD \
12582     lt_prog_compiler_wl \
12583     lt_prog_compiler_pic \
12584     lt_prog_compiler_static \
12585     lt_prog_compiler_no_builtin_flag \
12586     export_dynamic_flag_spec \
12587     thread_safe_flag_spec \
12588     whole_archive_flag_spec \
12589     enable_shared_with_static_runtimes \
12590     old_archive_cmds \
12591     old_archive_from_new_cmds \
12592     predep_objects \
12593     postdep_objects \
12594     predeps \
12595     postdeps \
12596     compiler_lib_search_path \
12597     archive_cmds \
12598     archive_expsym_cmds \
12599     postinstall_cmds \
12600     postuninstall_cmds \
12601     old_archive_from_expsyms_cmds \
12602     allow_undefined_flag \
12603     no_undefined_flag \
12604     export_symbols_cmds \
12605     hardcode_libdir_flag_spec \
12606     hardcode_libdir_flag_spec_ld \
12607     hardcode_libdir_separator \
12608     hardcode_automatic \
12609     module_cmds \
12610     module_expsym_cmds \
12611     lt_cv_prog_compiler_c_o \
12612     exclude_expsyms \
12613     include_expsyms; do
12614
12615     case $var in
12616     old_archive_cmds | \
12617     old_archive_from_new_cmds | \
12618     archive_cmds | \
12619     archive_expsym_cmds | \
12620     module_cmds | \
12621     module_expsym_cmds | \
12622     old_archive_from_expsyms_cmds | \
12623     export_symbols_cmds | \
12624     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12625     postinstall_cmds | postuninstall_cmds | \
12626     old_postinstall_cmds | old_postuninstall_cmds | \
12627     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12628       # Double-quote double-evaled strings.
12629       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12630       ;;
12631     *)
12632       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12633       ;;
12634     esac
12635   done
12636
12637   case $lt_echo in
12638   *'\$0 --fallback-echo"')
12639     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12640     ;;
12641   esac
12642
12643 cfgfile="${ofile}T"
12644   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12645   $rm -f "$cfgfile"
12646   { echo "$as_me:$LINENO: creating $ofile" >&5
12647 echo "$as_me: creating $ofile" >&6;}
12648
12649   cat <<__EOF__ >> "$cfgfile"
12650 #! $SHELL
12651
12652 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12653 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12654 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12655 #
12656 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12657 # Free Software Foundation, Inc.
12658 #
12659 # This file is part of GNU Libtool:
12660 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12661 #
12662 # This program is free software; you can redistribute it and/or modify
12663 # it under the terms of the GNU General Public License as published by
12664 # the Free Software Foundation; either version 2 of the License, or
12665 # (at your option) any later version.
12666 #
12667 # This program is distributed in the hope that it will be useful, but
12668 # WITHOUT ANY WARRANTY; without even the implied warranty of
12669 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12670 # General Public License for more details.
12671 #
12672 # You should have received a copy of the GNU General Public License
12673 # along with this program; if not, write to the Free Software
12674 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
12675 #
12676 # As a special exception to the GNU General Public License, if you
12677 # distribute this file as part of a program that contains a
12678 # configuration script generated by Autoconf, you may include it under
12679 # the same distribution terms that you use for the rest of that program.
12680
12681 # A sed program that does not truncate output.
12682 SED=$lt_SED
12683
12684 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12685 Xsed="$SED -e s/^X//"
12686
12687 # The HP-UX ksh and POSIX shell print the target directory to stdout
12688 # if CDPATH is set.
12689 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
12690
12691 # The names of the tagged configurations supported by this script.
12692 available_tags=
12693
12694 # ### BEGIN LIBTOOL CONFIG
12695
12696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12697
12698 # Shell to use when invoking shell scripts.
12699 SHELL=$lt_SHELL
12700
12701 # Whether or not to build shared libraries.
12702 build_libtool_libs=$enable_shared
12703
12704 # Whether or not to build static libraries.
12705 build_old_libs=$enable_static
12706
12707 # Whether or not to add -lc for building shared libraries.
12708 build_libtool_need_lc=$archive_cmds_need_lc
12709
12710 # Whether or not to disallow shared libs when runtime libs are static
12711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12712
12713 # Whether or not to optimize for fast installation.
12714 fast_install=$enable_fast_install
12715
12716 # The host system.
12717 host_alias=$host_alias
12718 host=$host
12719
12720 # An echo program that does not interpret backslashes.
12721 echo=$lt_echo
12722
12723 # The archiver.
12724 AR=$lt_AR
12725 AR_FLAGS=$lt_AR_FLAGS
12726
12727 # A C compiler.
12728 LTCC=$lt_LTCC
12729
12730 # A language-specific compiler.
12731 CC=$lt_compiler
12732
12733 # Is the compiler the GNU C compiler?
12734 with_gcc=$GCC
12735
12736 # An ERE matcher.
12737 EGREP=$lt_EGREP
12738
12739 # The linker used to build libraries.
12740 LD=$lt_LD
12741
12742 # Whether we need hard or soft links.
12743 LN_S=$lt_LN_S
12744
12745 # A BSD-compatible nm program.
12746 NM=$lt_NM
12747
12748 # A symbol stripping program
12749 STRIP=$STRIP
12750
12751 # Used to examine libraries when file_magic_cmd begins "file"
12752 MAGIC_CMD=$MAGIC_CMD
12753
12754 # Used on cygwin: DLL creation program.
12755 DLLTOOL="$DLLTOOL"
12756
12757 # Used on cygwin: object dumper.
12758 OBJDUMP="$OBJDUMP"
12759
12760 # Used on cygwin: assembler.
12761 AS="$AS"
12762
12763 # The name of the directory that contains temporary libtool files.
12764 objdir=$objdir
12765
12766 # How to create reloadable object files.
12767 reload_flag=$lt_reload_flag
12768 reload_cmds=$lt_reload_cmds
12769
12770 # How to pass a linker flag through the compiler.
12771 wl=$lt_lt_prog_compiler_wl
12772
12773 # Object file suffix (normally "o").
12774 objext="$ac_objext"
12775
12776 # Old archive suffix (normally "a").
12777 libext="$libext"
12778
12779 # Shared library suffix (normally ".so").
12780 shrext='$shrext'
12781
12782 # Executable file suffix (normally "").
12783 exeext="$exeext"
12784
12785 # Additional compiler flags for building library objects.
12786 pic_flag=$lt_lt_prog_compiler_pic
12787 pic_mode=$pic_mode
12788
12789 # What is the maximum length of a command?
12790 max_cmd_len=$lt_cv_sys_max_cmd_len
12791
12792 # Does compiler simultaneously support -c and -o options?
12793 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12794
12795 # Must we lock files when doing compilation ?
12796 need_locks=$lt_need_locks
12797
12798 # Do we need the lib prefix for modules?
12799 need_lib_prefix=$need_lib_prefix
12800
12801 # Do we need a version for libraries?
12802 need_version=$need_version
12803
12804 # Whether dlopen is supported.
12805 dlopen_support=$enable_dlopen
12806
12807 # Whether dlopen of programs is supported.
12808 dlopen_self=$enable_dlopen_self
12809
12810 # Whether dlopen of statically linked programs is supported.
12811 dlopen_self_static=$enable_dlopen_self_static
12812
12813 # Compiler flag to prevent dynamic linking.
12814 link_static_flag=$lt_lt_prog_compiler_static
12815
12816 # Compiler flag to turn off builtin functions.
12817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12818
12819 # Compiler flag to allow reflexive dlopens.
12820 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12821
12822 # Compiler flag to generate shared objects directly from archives.
12823 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12824
12825 # Compiler flag to generate thread-safe objects.
12826 thread_safe_flag_spec=$lt_thread_safe_flag_spec
12827
12828 # Library versioning type.
12829 version_type=$version_type
12830
12831 # Format of library name prefix.
12832 libname_spec=$lt_libname_spec
12833
12834 # List of archive names.  First name is the real one, the rest are links.
12835 # The last name is the one that the linker finds with -lNAME.
12836 library_names_spec=$lt_library_names_spec
12837
12838 # The coded name of the library, if different from the real name.
12839 soname_spec=$lt_soname_spec
12840
12841 # Commands used to build and install an old-style archive.
12842 RANLIB=$lt_RANLIB
12843 old_archive_cmds=$lt_old_archive_cmds
12844 old_postinstall_cmds=$lt_old_postinstall_cmds
12845 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12846
12847 # Create an old-style archive from a shared archive.
12848 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12849
12850 # Create a temporary old-style archive to link instead of a shared archive.
12851 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12852
12853 # Commands used to build and install a shared archive.
12854 archive_cmds=$lt_archive_cmds
12855 archive_expsym_cmds=$lt_archive_expsym_cmds
12856 postinstall_cmds=$lt_postinstall_cmds
12857 postuninstall_cmds=$lt_postuninstall_cmds
12858
12859 # Commands used to build a loadable module (assumed same as above if empty)
12860 module_cmds=$lt_module_cmds
12861 module_expsym_cmds=$lt_module_expsym_cmds
12862
12863 # Commands to strip libraries.
12864 old_striplib=$lt_old_striplib
12865 striplib=$lt_striplib
12866
12867 # Dependencies to place before the objects being linked to create a
12868 # shared library.
12869 predep_objects=$lt_predep_objects
12870
12871 # Dependencies to place after the objects being linked to create a
12872 # shared library.
12873 postdep_objects=$lt_postdep_objects
12874
12875 # Dependencies to place before the objects being linked to create a
12876 # shared library.
12877 predeps=$lt_predeps
12878
12879 # Dependencies to place after the objects being linked to create a
12880 # shared library.
12881 postdeps=$lt_postdeps
12882
12883 # The library search path used internally by the compiler when linking
12884 # a shared library.
12885 compiler_lib_search_path=$lt_compiler_lib_search_path
12886
12887 # Method to check whether dependent libraries are shared objects.
12888 deplibs_check_method=$lt_deplibs_check_method
12889
12890 # Command to use when deplibs_check_method == file_magic.
12891 file_magic_cmd=$lt_file_magic_cmd
12892
12893 # Flag that allows shared libraries with undefined symbols to be built.
12894 allow_undefined_flag=$lt_allow_undefined_flag
12895
12896 # Flag that forces no undefined symbols.
12897 no_undefined_flag=$lt_no_undefined_flag
12898
12899 # Commands used to finish a libtool library installation in a directory.
12900 finish_cmds=$lt_finish_cmds
12901
12902 # Same as above, but a single script fragment to be evaled but not shown.
12903 finish_eval=$lt_finish_eval
12904
12905 # Take the output of nm and produce a listing of raw symbols and C names.
12906 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12907
12908 # Transform the output of nm in a proper C declaration
12909 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12910
12911 # Transform the output of nm in a C name address pair
12912 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12913
12914 # This is the shared library runtime path variable.
12915 runpath_var=$runpath_var
12916
12917 # This is the shared library path variable.
12918 shlibpath_var=$shlibpath_var
12919
12920 # Is shlibpath searched before the hard-coded library search path?
12921 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12922
12923 # How to hardcode a shared library path into an executable.
12924 hardcode_action=$hardcode_action
12925
12926 # Whether we should hardcode library paths into libraries.
12927 hardcode_into_libs=$hardcode_into_libs
12928
12929 # Flag to hardcode \$libdir into a binary during linking.
12930 # This must work even if \$libdir does not exist.
12931 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12932
12933 # If ld is used when linking, flag to hardcode \$libdir into
12934 # a binary during linking. This must work even if \$libdir does
12935 # not exist.
12936 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12937
12938 # Whether we need a single -rpath flag with a separated argument.
12939 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12940
12941 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12942 # resulting binary.
12943 hardcode_direct=$hardcode_direct
12944
12945 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12946 # resulting binary.
12947 hardcode_minus_L=$hardcode_minus_L
12948
12949 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12950 # the resulting binary.
12951 hardcode_shlibpath_var=$hardcode_shlibpath_var
12952
12953 # Set to yes if building a shared library automatically hardcodes DIR into the library
12954 # and all subsequent libraries and executables linked against it.
12955 hardcode_automatic=$hardcode_automatic
12956
12957 # Variables whose values should be saved in libtool wrapper scripts and
12958 # restored at relink time.
12959 variables_saved_for_relink="$variables_saved_for_relink"
12960
12961 # Whether libtool must link a program against all its dependency libraries.
12962 link_all_deplibs=$link_all_deplibs
12963
12964 # Compile-time system search path for libraries
12965 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12966
12967 # Run-time system search path for libraries
12968 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12969
12970 # Fix the shell variable \$srcfile for the compiler.
12971 fix_srcfile_path="$fix_srcfile_path"
12972
12973 # Set to yes if exported symbols are required.
12974 always_export_symbols=$always_export_symbols
12975
12976 # The commands to list exported symbols.
12977 export_symbols_cmds=$lt_export_symbols_cmds
12978
12979 # The commands to extract the exported symbol list from a shared archive.
12980 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12981
12982 # Symbols that should not be listed in the preloaded symbols.
12983 exclude_expsyms=$lt_exclude_expsyms
12984
12985 # Symbols that must always be exported.
12986 include_expsyms=$lt_include_expsyms
12987
12988 # ### END LIBTOOL CONFIG
12989
12990 __EOF__
12991
12992
12993   case $host_os in
12994   aix3*)
12995     cat <<\EOF >> "$cfgfile"
12996
12997 # AIX sometimes has problems with the GCC collect2 program.  For some
12998 # reason, if we set the COLLECT_NAMES environment variable, the problems
12999 # vanish in a puff of smoke.
13000 if test "X${COLLECT_NAMES+set}" != Xset; then
13001   COLLECT_NAMES=
13002   export COLLECT_NAMES
13003 fi
13004 EOF
13005     ;;
13006   esac
13007
13008   # We use sed instead of cat because bash on DJGPP gets confused if
13009   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13010   # text mode, it properly converts lines to CR/LF.  This bash problem
13011   # is reportedly fixed, but why not run on old versions too?
13012   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13013
13014   mv -f "$cfgfile" "$ofile" || \
13015     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13016   chmod +x "$ofile"
13017
13018 else
13019   # If there is no Makefile yet, we rely on a make rule to execute
13020   # `config.status --recheck' to rerun these tests and create the
13021   # libtool script then.
13022   test -f Makefile && make "$ltmain"
13023 fi
13024
13025
13026 ac_ext=c
13027 ac_cpp='$CPP $CPPFLAGS'
13028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13031
13032 CC="$lt_save_CC"
13033
13034
13035 # Check whether --with-tags was given.
13036 if test "${with_tags+set}" = set; then
13037   withval=$with_tags; tagnames="$withval"
13038 fi
13039
13040
13041 if test -f "$ltmain" && test -n "$tagnames"; then
13042   if test ! -f "${ofile}"; then
13043     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13044 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13045   fi
13046
13047   if test -z "$LTCC"; then
13048     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13049     if test -z "$LTCC"; then
13050       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13051 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13052     else
13053       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13054 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13055     fi
13056   fi
13057
13058   # Extract list of available tagged configurations in $ofile.
13059   # Note that this assumes the entire list is on one line.
13060   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13061
13062   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13063   for tagname in $tagnames; do
13064     IFS="$lt_save_ifs"
13065     # Check whether tagname contains only valid characters
13066     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13067     "") ;;
13068     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13069 echo "$as_me: error: invalid tag name: $tagname" >&2;}
13070    { (exit 1); exit 1; }; }
13071         ;;
13072     esac
13073
13074     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13075     then
13076       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13077 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13078    { (exit 1); exit 1; }; }
13079     fi
13080
13081     # Update the list of available tags.
13082     if test -n "$tagname"; then
13083       echo appending configuration tag \"$tagname\" to $ofile
13084
13085       case $tagname in
13086       CXX)
13087         if test -n "$CXX" && test "X$CXX" != "Xno"; then
13088           ac_ext=cpp
13089 ac_cpp='$CXXCPP $CPPFLAGS'
13090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13093
13094
13095
13096
13097 archive_cmds_need_lc_CXX=no
13098 allow_undefined_flag_CXX=
13099 always_export_symbols_CXX=no
13100 archive_expsym_cmds_CXX=
13101 export_dynamic_flag_spec_CXX=
13102 hardcode_direct_CXX=no
13103 hardcode_libdir_flag_spec_CXX=
13104 hardcode_libdir_flag_spec_ld_CXX=
13105 hardcode_libdir_separator_CXX=
13106 hardcode_minus_L_CXX=no
13107 hardcode_automatic_CXX=no
13108 module_cmds_CXX=
13109 module_expsym_cmds_CXX=
13110 link_all_deplibs_CXX=unknown
13111 old_archive_cmds_CXX=$old_archive_cmds
13112 no_undefined_flag_CXX=
13113 whole_archive_flag_spec_CXX=
13114 enable_shared_with_static_runtimes_CXX=no
13115
13116 # Dependencies to place before and after the object being linked:
13117 predep_objects_CXX=
13118 postdep_objects_CXX=
13119 predeps_CXX=
13120 postdeps_CXX=
13121 compiler_lib_search_path_CXX=
13122
13123 # Source file extension for C++ test sources.
13124 ac_ext=cc
13125
13126 # Object file extension for compiled C++ test sources.
13127 objext=o
13128 objext_CXX=$objext
13129
13130 # Code to be used in simple compile tests
13131 lt_simple_compile_test_code="int some_variable = 0;\n"
13132
13133 # Code to be used in simple link tests
13134 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13135
13136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13137
13138 # If no C compiler was specified, use CC.
13139 LTCC=${LTCC-"$CC"}
13140
13141 # Allow CC to be a program name with arguments.
13142 compiler=$CC
13143
13144
13145 # Allow CC to be a program name with arguments.
13146 lt_save_CC=$CC
13147 lt_save_LD=$LD
13148 lt_save_GCC=$GCC
13149 GCC=$GXX
13150 lt_save_with_gnu_ld=$with_gnu_ld
13151 lt_save_path_LD=$lt_cv_path_LD
13152 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13153   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13154 else
13155   unset lt_cv_prog_gnu_ld
13156 fi
13157 if test -n "${lt_cv_path_LDCXX+set}"; then
13158   lt_cv_path_LD=$lt_cv_path_LDCXX
13159 else
13160   unset lt_cv_path_LD
13161 fi
13162 test -z "${LDCXX+set}" || LD=$LDCXX
13163 CC=${CXX-"c++"}
13164 compiler=$CC
13165 compiler_CXX=$CC
13166 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13167
13168 # We don't want -fno-exception wen compiling C++ code, so set the
13169 # no_builtin_flag separately
13170 if test "$GXX" = yes; then
13171   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13172 else
13173   lt_prog_compiler_no_builtin_flag_CXX=
13174 fi
13175
13176 if test "$GXX" = yes; then
13177   # Set up default GNU C++ configuration
13178
13179
13180 # Check whether --with-gnu-ld was given.
13181 if test "${with_gnu_ld+set}" = set; then
13182   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13183 else
13184   with_gnu_ld=no
13185 fi
13186
13187 ac_prog=ld
13188 if test "$GCC" = yes; then
13189   # Check if gcc -print-prog-name=ld gives a path.
13190   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13191 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13192   case $host in
13193   *-*-mingw*)
13194     # gcc leaves a trailing carriage return which upsets mingw
13195     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13196   *)
13197     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13198   esac
13199   case $ac_prog in
13200     # Accept absolute paths.
13201     [\\/]* | ?:[\\/]*)
13202       re_direlt='/[^/][^/]*/\.\./'
13203       # Canonicalize the pathname of ld
13204       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13205       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13206         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13207       done
13208       test -z "$LD" && LD="$ac_prog"
13209       ;;
13210   "")
13211     # If it fails, then pretend we aren't using GCC.
13212     ac_prog=ld
13213     ;;
13214   *)
13215     # If it is relative, then search for the first ld in PATH.
13216     with_gnu_ld=unknown
13217     ;;
13218   esac
13219 elif test "$with_gnu_ld" = yes; then
13220   { echo "$as_me:$LINENO: checking for GNU ld" >&5
13221 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13222 else
13223   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13224 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13225 fi
13226 if test "${lt_cv_path_LD+set}" = set; then
13227   echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229   if test -z "$LD"; then
13230   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13231   for ac_dir in $PATH; do
13232     IFS="$lt_save_ifs"
13233     test -z "$ac_dir" && ac_dir=.
13234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13235       lt_cv_path_LD="$ac_dir/$ac_prog"
13236       # Check to see if the program is GNU ld.  I'd rather use --version,
13237       # but apparently some GNU ld's only accept -v.
13238       # Break only if it was the GNU/non-GNU ld that we prefer.
13239       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13240       *GNU* | *'with BFD'*)
13241         test "$with_gnu_ld" != no && break
13242         ;;
13243       *)
13244         test "$with_gnu_ld" != yes && break
13245         ;;
13246       esac
13247     fi
13248   done
13249   IFS="$lt_save_ifs"
13250 else
13251   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13252 fi
13253 fi
13254
13255 LD="$lt_cv_path_LD"
13256 if test -n "$LD"; then
13257   { echo "$as_me:$LINENO: result: $LD" >&5
13258 echo "${ECHO_T}$LD" >&6; }
13259 else
13260   { echo "$as_me:$LINENO: result: no" >&5
13261 echo "${ECHO_T}no" >&6; }
13262 fi
13263 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13264 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13265    { (exit 1); exit 1; }; }
13266 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13267 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13268 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13269   echo $ECHO_N "(cached) $ECHO_C" >&6
13270 else
13271   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
13272 case `$LD -v 2>&1 </dev/null` in
13273 *GNU* | *'with BFD'*)
13274   lt_cv_prog_gnu_ld=yes
13275   ;;
13276 *)
13277   lt_cv_prog_gnu_ld=no
13278   ;;
13279 esac
13280 fi
13281 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13282 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13283 with_gnu_ld=$lt_cv_prog_gnu_ld
13284
13285
13286
13287   # Check if GNU C++ uses GNU ld as the underlying linker, since the
13288   # archiving commands below assume that GNU ld is being used.
13289   if test "$with_gnu_ld" = yes; then
13290     archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13291     archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13292
13293     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13294     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13295
13296     # If archive_cmds runs LD, not CC, wlarc should be empty
13297     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13298     #     investigate it a little bit more. (MM)
13299     wlarc='${wl}'
13300
13301     # ancient GNU ld didn't support --whole-archive et. al.
13302     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13303         grep 'no-whole-archive' > /dev/null; then
13304       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13305     else
13306       whole_archive_flag_spec_CXX=
13307     fi
13308   else
13309     with_gnu_ld=no
13310     wlarc=
13311
13312     # A generic and very simple default shared library creation
13313     # command for GNU C++ for the case where it uses the native
13314     # linker, instead of GNU ld.  If possible, this setting should
13315     # overridden to take advantage of the native linker features on
13316     # the platform it is being used on.
13317     archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
13318   fi
13319
13320   # Commands to make compiler produce verbose output that lists
13321   # what "hidden" libraries, object files and flags are used when
13322   # linking a shared library.
13323   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13324
13325 else
13326   GXX=no
13327   with_gnu_ld=no
13328   wlarc=
13329 fi
13330
13331 # PORTME: fill in a description of your system's C++ link characteristics
13332 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13333 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13334 ld_shlibs_CXX=yes
13335 case $host_os in
13336   aix3*)
13337     # FIXME: insert proper C++ library support
13338     ld_shlibs_CXX=no
13339     ;;
13340   aix4* | aix5*)
13341     if test "$host_cpu" = ia64; then
13342       # On IA64, the linker does run time linking by default, so we don't
13343       # have to do anything special.
13344       aix_use_runtimelinking=no
13345       exp_sym_flag='-Bexport'
13346       no_entry_flag=""
13347     else
13348       # KDE requires run time linking.  Make it the default.
13349       aix_use_runtimelinking=yes
13350       exp_sym_flag='-bexport'
13351       no_entry_flag='-bnoentry'
13352     fi
13353
13354     # When large executables or shared objects are built, AIX ld can
13355     # have problems creating the table of contents.  If linking a library
13356     # or program results in "error TOC overflow" add -mminimal-toc to
13357     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13358     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13359
13360     archive_cmds_CXX=''
13361     hardcode_direct_CXX=yes
13362     hardcode_libdir_separator_CXX=':'
13363     link_all_deplibs_CXX=yes
13364
13365     if test "$GXX" = yes; then
13366       case $host_os in aix4.012|aix4.012.*)
13367       # We only want to do this on AIX 4.2 and lower, the check
13368       # below for broken collect2 doesn't work under 4.3+
13369         collect2name=`${CC} -print-prog-name=collect2`
13370         if test -f "$collect2name" && \
13371            strings "$collect2name" | grep resolve_lib_name >/dev/null
13372         then
13373           # We have reworked collect2
13374           hardcode_direct_CXX=yes
13375         else
13376           # We have old collect2
13377           hardcode_direct_CXX=unsupported
13378           # It fails to find uninstalled libraries when the uninstalled
13379           # path is not listed in the libpath.  Setting hardcode_minus_L
13380           # to unsupported forces relinking
13381           hardcode_minus_L_CXX=yes
13382           hardcode_libdir_flag_spec_CXX='-L$libdir'
13383           hardcode_libdir_separator_CXX=
13384         fi
13385       esac
13386       shared_flag='-shared'
13387     else
13388       # not using gcc
13389       if test "$host_cpu" = ia64; then
13390         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13391         # chokes on -Wl,-G. The following line is correct:
13392         shared_flag='-G'
13393       else
13394         if test "$aix_use_runtimelinking" = yes; then
13395           shared_flag='-qmkshrobj ${wl}-G'
13396         else
13397           shared_flag='-qmkshrobj'
13398         fi
13399       fi
13400     fi
13401
13402     # Let the compiler handle the export list.
13403     always_export_symbols_CXX=no
13404     if test "$aix_use_runtimelinking" = yes; then
13405       # Warning - without using the other runtime loading flags (-brtl),
13406       # -berok will link without error, but may produce a broken library.
13407       allow_undefined_flag_CXX='-berok'
13408       # Determine the default libpath from the value encoded in an empty executable.
13409       cat >conftest.$ac_ext <<_ACEOF
13410 /* confdefs.h.  */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h.  */
13415
13416 int
13417 main ()
13418 {
13419
13420   ;
13421   return 0;
13422 }
13423 _ACEOF
13424 rm -f conftest.$ac_objext conftest$ac_exeext
13425 if { (ac_try="$ac_link"
13426 case "(($ac_try" in
13427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428   *) ac_try_echo=$ac_try;;
13429 esac
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431   (eval "$ac_link") 2>conftest.er1
13432   ac_status=$?
13433   grep -v '^ *+' conftest.er1 >conftest.err
13434   rm -f conftest.er1
13435   cat conftest.err >&5
13436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437   (exit $ac_status); } && {
13438          test -z "$ac_cxx_werror_flag" ||
13439          test ! -s conftest.err
13440        } && test -s conftest$ac_exeext &&
13441        $as_test_x conftest$ac_exeext; then
13442
13443 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13444 }'`
13445 # Check for a 64-bit object if we didn't find anything.
13446 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13447 }'`; fi
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452
13453 fi
13454
13455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13456       conftest$ac_exeext conftest.$ac_ext
13457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13458
13459       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13460
13461       archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
13462       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13463      else
13464       if test "$host_cpu" = ia64; then
13465         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13466         allow_undefined_flag_CXX="-z nodefs"
13467         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13468       else
13469         # Determine the default libpath from the value encoded in an empty executable.
13470         cat >conftest.$ac_ext <<_ACEOF
13471 /* confdefs.h.  */
13472 _ACEOF
13473 cat confdefs.h >>conftest.$ac_ext
13474 cat >>conftest.$ac_ext <<_ACEOF
13475 /* end confdefs.h.  */
13476
13477 int
13478 main ()
13479 {
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492   (eval "$ac_link") 2>conftest.er1
13493   ac_status=$?
13494   grep -v '^ *+' conftest.er1 >conftest.err
13495   rm -f conftest.er1
13496   cat conftest.err >&5
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } && {
13499          test -z "$ac_cxx_werror_flag" ||
13500          test ! -s conftest.err
13501        } && test -s conftest$ac_exeext &&
13502        $as_test_x conftest$ac_exeext; then
13503
13504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13505 }'`
13506 # Check for a 64-bit object if we didn't find anything.
13507 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13508 }'`; fi
13509 else
13510   echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.$ac_ext >&5
13512
13513
13514 fi
13515
13516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13517       conftest$ac_exeext conftest.$ac_ext
13518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13519
13520         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13521         # Warning - without using the other run time loading flags,
13522         # -berok will link without error, but may produce a broken library.
13523         no_undefined_flag_CXX=' ${wl}-bernotok'
13524         allow_undefined_flag_CXX=' ${wl}-berok'
13525         # -bexpall does not export symbols beginning with underscore (_)
13526         always_export_symbols_CXX=yes
13527         # Exported symbols can be pulled into shared objects from archives
13528         whole_archive_flag_spec_CXX=' '
13529         archive_cmds_need_lc_CXX=yes
13530         # This is similar to how AIX traditionally builds it's shared libraries.
13531         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13532       fi
13533     fi
13534     ;;
13535   chorus*)
13536     case $cc_basename in
13537       *)
13538         # FIXME: insert proper C++ library support
13539         ld_shlibs_CXX=no
13540         ;;
13541     esac
13542     ;;
13543
13544   cygwin* | mingw* | pw32*)
13545     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13546     # as there is no search path for DLLs.
13547     hardcode_libdir_flag_spec_CXX='-L$libdir'
13548     allow_undefined_flag_CXX=no
13549     always_export_symbols_CXX=no
13550     enable_shared_with_static_runtimes_CXX=yes
13551
13552     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13553       archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13554       # If the export-symbols file already is a .def file (1st line
13555       # is EXPORTS), use it as is; otherwise, prepend...
13556       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13557         cp $export_symbols $output_objdir/$soname.def;
13558       else
13559         echo EXPORTS > $output_objdir/$soname.def;
13560         cat $export_symbols >> $output_objdir/$soname.def;
13561       fi~
13562       $CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13563     else
13564       ld_shlibs_CXX=no
13565     fi
13566   ;;
13567
13568   darwin* | rhapsody*)
13569   if test "$GXX" = yes; then
13570     archive_cmds_need_lc_CXX=no
13571     case "$host_os" in
13572     rhapsody* | darwin1.[012])
13573       allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
13574       ;;
13575     *) # Darwin 1.3 on
13576       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13577         allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13578       else
13579         case ${MACOSX_DEPLOYMENT_TARGET} in
13580           10.012)
13581             allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13582             ;;
13583           10.*)
13584             allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
13585             ;;
13586         esac
13587       fi
13588       ;;
13589     esac
13590     lt_int_apple_cc_single_mod=no
13591     output_verbose_link_cmd='echo'
13592     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13593       lt_int_apple_cc_single_mod=yes
13594     fi
13595     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13596       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
13597     else
13598       archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
13599     fi
13600     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
13601
13602     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13603     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13604       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13605     else
13606       archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13607     fi
13608     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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13609     hardcode_direct_CXX=no
13610     hardcode_automatic_CXX=yes
13611     hardcode_shlibpath_var_CXX=unsupported
13612     whole_archive_flag_spec_CXX='-all_load $convenience'
13613     link_all_deplibs_CXX=yes
13614   else
13615     ld_shlibs_CXX=no
13616   fi
13617     ;;
13618
13619   dgux*)
13620     case $cc_basename in
13621       ec++)
13622         # FIXME: insert proper C++ library support
13623         ld_shlibs_CXX=no
13624         ;;
13625       ghcx)
13626         # Green Hills C++ Compiler
13627         # FIXME: insert proper C++ library support
13628         ld_shlibs_CXX=no
13629         ;;
13630       *)
13631         # FIXME: insert proper C++ library support
13632         ld_shlibs_CXX=no
13633         ;;
13634     esac
13635     ;;
13636   freebsd12*)
13637     # C++ shared libraries reported to be fairly broken before switch to ELF
13638     ld_shlibs_CXX=no
13639     ;;
13640   freebsd-elf*)
13641     archive_cmds_need_lc_CXX=no
13642     ;;
13643   freebsd*)
13644     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13645     # conventions
13646     ld_shlibs_CXX=yes
13647     ;;
13648   gnu*)
13649     ;;
13650   hpux9*)
13651     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13652     hardcode_libdir_separator_CXX=:
13653     export_dynamic_flag_spec_CXX='${wl}-E'
13654     hardcode_direct_CXX=yes
13655     hardcode_minus_L_CXX=yes # Not in the search PATH,
13656                                 # but as the default
13657                                 # location of the library.
13658
13659     case $cc_basename in
13660     CC)
13661       # FIXME: insert proper C++ library support
13662       ld_shlibs_CXX=no
13663       ;;
13664     aCC)
13665       archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13666       # Commands to make compiler produce verbose output that lists
13667       # what "hidden" libraries, object files and flags are used when
13668       # linking a shared library.
13669       #
13670       # There doesn't appear to be a way to prevent this compiler from
13671       # explicitly linking system object files so we need to strip them
13672       # from the output so that they don't get included in the library
13673       # dependencies.
13674       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13675       ;;
13676     *)
13677       if test "$GXX" = yes; then
13678         archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13679       else
13680         # FIXME: insert proper C++ library support
13681         ld_shlibs_CXX=no
13682       fi
13683       ;;
13684     esac
13685     ;;
13686   hpux10*|hpux11*)
13687     if test $with_gnu_ld = no; then
13688       case "$host_cpu" in
13689       hppa*64*)
13690         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13691         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13692         hardcode_libdir_separator_CXX=:
13693         ;;
13694       ia64*)
13695         hardcode_libdir_flag_spec_CXX='-L$libdir'
13696         ;;
13697       *)
13698         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13699         hardcode_libdir_separator_CXX=:
13700         export_dynamic_flag_spec_CXX='${wl}-E'
13701         ;;
13702       esac
13703     fi
13704     case "$host_cpu" in
13705     hppa*64*)
13706       hardcode_direct_CXX=no
13707       hardcode_shlibpath_var_CXX=no
13708       ;;
13709     ia64*)
13710       hardcode_direct_CXX=no
13711       hardcode_shlibpath_var_CXX=no
13712       hardcode_minus_L_CXX=yes # Not in the search PATH,
13713                                               # but as the default
13714                                               # location of the library.
13715       ;;
13716     *)
13717       hardcode_direct_CXX=yes
13718       hardcode_minus_L_CXX=yes # Not in the search PATH,
13719                                               # but as the default
13720                                               # location of the library.
13721       ;;
13722     esac
13723
13724     case $cc_basename in
13725       CC)
13726         # FIXME: insert proper C++ library support
13727         ld_shlibs_CXX=no
13728         ;;
13729       aCC)
13730         case "$host_cpu" in
13731         hppa*64*|ia64*)
13732           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13733           ;;
13734         *)
13735           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13736           ;;
13737         esac
13738         # Commands to make compiler produce verbose output that lists
13739         # what "hidden" libraries, object files and flags are used when
13740         # linking a shared library.
13741         #
13742         # There doesn't appear to be a way to prevent this compiler from
13743         # explicitly linking system object files so we need to strip them
13744         # from the output so that they don't get included in the library
13745         # dependencies.
13746         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'
13747         ;;
13748       *)
13749         if test "$GXX" = yes; then
13750           if test $with_gnu_ld = no; then
13751             case "$host_cpu" in
13752             ia64*|hppa*64*)
13753               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13754               ;;
13755             *)
13756               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13757               ;;
13758             esac
13759           fi
13760         else
13761           # FIXME: insert proper C++ library support
13762           ld_shlibs_CXX=no
13763         fi
13764         ;;
13765     esac
13766     ;;
13767   irix5* | irix6*)
13768     case $cc_basename in
13769       CC)
13770         # SGI C++
13771         archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13772
13773         # Archives containing C++ object files must be created using
13774         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13775         # necessary to make sure instantiated templates are included
13776         # in the archive.
13777         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13778         ;;
13779       *)
13780         if test "$GXX" = yes; then
13781           if test "$with_gnu_ld" = no; then
13782             archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13783           else
13784             archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13785           fi
13786         fi
13787         link_all_deplibs_CXX=yes
13788         ;;
13789     esac
13790     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13791     hardcode_libdir_separator_CXX=:
13792     ;;
13793   linux*)
13794     case $cc_basename in
13795       KCC)
13796         # Kuck and Associates, Inc. (KAI) C++ Compiler
13797
13798         # KCC will only create a shared library if the output file
13799         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13800         # to its proper name (with version) after linking.
13801         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13802         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13803         # Commands to make compiler produce verbose output that lists
13804         # what "hidden" libraries, object files and flags are used when
13805         # linking a shared library.
13806         #
13807         # There doesn't appear to be a way to prevent this compiler from
13808         # explicitly linking system object files so we need to strip them
13809         # from the output so that they don't get included in the library
13810         # dependencies.
13811         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'
13812
13813         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13814         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13815
13816         # Archives containing C++ object files must be created using
13817         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13818         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13819         ;;
13820       icpc)
13821         # Intel C++
13822         with_gnu_ld=yes
13823         archive_cmds_need_lc_CXX=no
13824         archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13825         archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13826         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13827         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13828         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13829         ;;
13830       cxx)
13831         # Compaq C++
13832         archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13833         archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13834
13835         runpath_var=LD_RUN_PATH
13836         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13837         hardcode_libdir_separator_CXX=:
13838
13839         # Commands to make compiler produce verbose output that lists
13840         # what "hidden" libraries, object files and flags are used when
13841         # linking a shared library.
13842         #
13843         # There doesn't appear to be a way to prevent this compiler from
13844         # explicitly linking system object files so we need to strip them
13845         # from the output so that they don't get included in the library
13846         # dependencies.
13847         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'
13848         ;;
13849     esac
13850     ;;
13851   lynxos*)
13852     # FIXME: insert proper C++ library support
13853     ld_shlibs_CXX=no
13854     ;;
13855   m88k*)
13856     # FIXME: insert proper C++ library support
13857     ld_shlibs_CXX=no
13858     ;;
13859   mvs*)
13860     case $cc_basename in
13861       cxx)
13862         # FIXME: insert proper C++ library support
13863         ld_shlibs_CXX=no
13864         ;;
13865       *)
13866         # FIXME: insert proper C++ library support
13867         ld_shlibs_CXX=no
13868         ;;
13869     esac
13870     ;;
13871   netbsd*)
13872     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13873       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13874       wlarc=
13875       hardcode_libdir_flag_spec_CXX='-R$libdir'
13876       hardcode_direct_CXX=yes
13877       hardcode_shlibpath_var_CXX=no
13878     fi
13879     # Workaround some broken pre-1.5 toolchains
13880     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13881     ;;
13882   osf3*)
13883     case $cc_basename in
13884       KCC)
13885         # Kuck and Associates, Inc. (KAI) C++ Compiler
13886
13887         # KCC will only create a shared library if the output file
13888         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13889         # to its proper name (with version) after linking.
13890         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13891
13892         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13893         hardcode_libdir_separator_CXX=:
13894
13895         # Archives containing C++ object files must be created using
13896         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13897         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13898
13899         ;;
13900       RCC)
13901         # Rational C++ 2.4.1
13902         # FIXME: insert proper C++ library support
13903         ld_shlibs_CXX=no
13904         ;;
13905       cxx)
13906         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13907         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13908
13909         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13910         hardcode_libdir_separator_CXX=:
13911
13912         # Commands to make compiler produce verbose output that lists
13913         # what "hidden" libraries, object files and flags are used when
13914         # linking a shared library.
13915         #
13916         # There doesn't appear to be a way to prevent this compiler from
13917         # explicitly linking system object files so we need to strip them
13918         # from the output so that they don't get included in the library
13919         # dependencies.
13920         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'
13921         ;;
13922       *)
13923         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13924           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13925           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13926
13927           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13928           hardcode_libdir_separator_CXX=:
13929
13930           # Commands to make compiler produce verbose output that lists
13931           # what "hidden" libraries, object files and flags are used when
13932           # linking a shared library.
13933           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13934
13935         else
13936           # FIXME: insert proper C++ library support
13937           ld_shlibs_CXX=no
13938         fi
13939         ;;
13940     esac
13941     ;;
13942   osf4* | osf5*)
13943     case $cc_basename in
13944       KCC)
13945         # Kuck and Associates, Inc. (KAI) C++ Compiler
13946
13947         # KCC will only create a shared library if the output file
13948         # ends with ".so" (or ".sl" for HP-UX), so rename the library
13949         # to its proper name (with version) after linking.
13950         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 $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
13951
13952         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13953         hardcode_libdir_separator_CXX=:
13954
13955         # Archives containing C++ object files must be created using
13956         # the KAI C++ compiler.
13957         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13958         ;;
13959       RCC)
13960         # Rational C++ 2.4.1
13961         # FIXME: insert proper C++ library support
13962         ld_shlibs_CXX=no
13963         ;;
13964       cxx)
13965         allow_undefined_flag_CXX=' -expect_unresolved \*'
13966         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
13967         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13968           echo "-hidden">> $lib.exp~
13969           $CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
13970           $rm $lib.exp'
13971
13972         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13973         hardcode_libdir_separator_CXX=:
13974
13975         # Commands to make compiler produce verbose output that lists
13976         # what "hidden" libraries, object files and flags are used when
13977         # linking a shared library.
13978         #
13979         # There doesn't appear to be a way to prevent this compiler from
13980         # explicitly linking system object files so we need to strip them
13981         # from the output so that they don't get included in the library
13982         # dependencies.
13983         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'
13984         ;;
13985       *)
13986         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13987           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13988          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
13989
13990           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13991           hardcode_libdir_separator_CXX=:
13992
13993           # Commands to make compiler produce verbose output that lists
13994           # what "hidden" libraries, object files and flags are used when
13995           # linking a shared library.
13996           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13997
13998         else
13999           # FIXME: insert proper C++ library support
14000           ld_shlibs_CXX=no
14001         fi
14002         ;;
14003     esac
14004     ;;
14005   psos*)
14006     # FIXME: insert proper C++ library support
14007     ld_shlibs_CXX=no
14008     ;;
14009   sco*)
14010     archive_cmds_need_lc_CXX=no
14011     case $cc_basename in
14012       CC)
14013         # FIXME: insert proper C++ library support
14014         ld_shlibs_CXX=no
14015         ;;
14016       *)
14017         # FIXME: insert proper C++ library support
14018         ld_shlibs_CXX=no
14019         ;;
14020     esac
14021     ;;
14022   sunos4*)
14023     case $cc_basename in
14024       CC)
14025         # Sun C++ 4.x
14026         # FIXME: insert proper C++ library support
14027         ld_shlibs_CXX=no
14028         ;;
14029       lcc)
14030         # Lucid
14031         # FIXME: insert proper C++ library support
14032         ld_shlibs_CXX=no
14033         ;;
14034       *)
14035         # FIXME: insert proper C++ library support
14036         ld_shlibs_CXX=no
14037         ;;
14038     esac
14039     ;;
14040   solaris*)
14041     case $cc_basename in
14042       CC)
14043         # Sun C++ 4.2, 5.x and Centerline C++
14044         no_undefined_flag_CXX=' -zdefs'
14045         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14046         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14047         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14048
14049         hardcode_libdir_flag_spec_CXX='-R$libdir'
14050         hardcode_shlibpath_var_CXX=no
14051         case $host_os in
14052           solaris2.0-5 | solaris2.0-5.*) ;;
14053           *)
14054             # The C++ compiler is used as linker so we must use $wl
14055             # flag to pass the commands to the underlying system
14056             # linker.
14057             # Supported since Solaris 2.6 (maybe 2.5.1?)
14058             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14059             ;;
14060         esac
14061         link_all_deplibs_CXX=yes
14062
14063         # Commands to make compiler produce verbose output that lists
14064         # what "hidden" libraries, object files and flags are used when
14065         # linking a shared library.
14066         #
14067         # There doesn't appear to be a way to prevent this compiler from
14068         # explicitly linking system object files so we need to strip them
14069         # from the output so that they don't get included in the library
14070         # dependencies.
14071         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14072
14073         # Archives containing C++ object files must be created using
14074         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14075         # necessary to make sure instantiated templates are included
14076         # in the archive.
14077         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14078         ;;
14079       gcx)
14080         # Green Hills C++ Compiler
14081         archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14082
14083         # The C++ compiler must be used to create the archive.
14084         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14085         ;;
14086       *)
14087         # GNU C++ compiler with Solaris linker
14088         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14089           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14090           if $CC --version | grep -v '^2\.7' > /dev/null; then
14091             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14092             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14093                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14094
14095             # Commands to make compiler produce verbose output that lists
14096             # what "hidden" libraries, object files and flags are used when
14097             # linking a shared library.
14098             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14099           else
14100             # g++ 2.7 appears to require `-G' NOT `-shared' on this
14101             # platform.
14102             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14103             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14104                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14105
14106             # Commands to make compiler produce verbose output that lists
14107             # what "hidden" libraries, object files and flags are used when
14108             # linking a shared library.
14109             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14110           fi
14111
14112           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14113         fi
14114         ;;
14115     esac
14116     ;;
14117   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14118     archive_cmds_need_lc_CXX=no
14119     ;;
14120   tandem*)
14121     case $cc_basename in
14122       NCC)
14123         # NonStop-UX NCC 3.20
14124         # FIXME: insert proper C++ library support
14125         ld_shlibs_CXX=no
14126         ;;
14127       *)
14128         # FIXME: insert proper C++ library support
14129         ld_shlibs_CXX=no
14130         ;;
14131     esac
14132     ;;
14133   vxworks*)
14134     # FIXME: insert proper C++ library support
14135     ld_shlibs_CXX=no
14136     ;;
14137   *)
14138     # FIXME: insert proper C++ library support
14139     ld_shlibs_CXX=no
14140     ;;
14141 esac
14142 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14143 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14144 test "$ld_shlibs_CXX" = no && can_build_shared=no
14145
14146 GCC_CXX="$GXX"
14147 LD_CXX="$LD"
14148
14149 ## CAVEAT EMPTOR:
14150 ## There is no encapsulation within the following macros, do not change
14151 ## the running order or otherwise move them around unless you know exactly
14152 ## what you are doing...
14153
14154 cat > conftest.$ac_ext <<EOF
14155 class Foo
14156 {
14157 public:
14158   Foo (void) { a = 0; }
14159 private:
14160   int a;
14161 };
14162 EOF
14163
14164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14165   (eval $ac_compile) 2>&5
14166   ac_status=$?
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); }; then
14169   # Parse the compiler output and extract the necessary
14170   # objects, libraries and library flags.
14171
14172   # Sentinel used to keep track of whether or not we are before
14173   # the conftest object file.
14174   pre_test_object_deps_done=no
14175
14176   # The `*' in the case matches for architectures that use `case' in
14177   # $output_verbose_cmd can trigger glob expansion during the loop
14178   # eval without this substitution.
14179   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14180
14181   for p in `eval $output_verbose_link_cmd`; do
14182     case $p in
14183
14184     -L* | -R* | -l*)
14185        # Some compilers place space between "-{L,R}" and the path.
14186        # Remove the space.
14187        if test $p = "-L" \
14188           || test $p = "-R"; then
14189          prev=$p
14190          continue
14191        else
14192          prev=
14193        fi
14194
14195        if test "$pre_test_object_deps_done" = no; then
14196          case $p in
14197          -L* | -R*)
14198            # Internal compiler library paths should come after those
14199            # provided the user.  The postdeps already come after the
14200            # user supplied libs so there is no need to process them.
14201            if test -z "$compiler_lib_search_path_CXX"; then
14202              compiler_lib_search_path_CXX="${prev}${p}"
14203            else
14204              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14205            fi
14206            ;;
14207          # The "-l" case would never come before the object being
14208          # linked, so don't bother handling this case.
14209          esac
14210        else
14211          if test -z "$postdeps_CXX"; then
14212            postdeps_CXX="${prev}${p}"
14213          else
14214            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14215          fi
14216        fi
14217        ;;
14218
14219     *.$objext|*.$libext)
14220        # This assumes that the test object file only shows up
14221        # once in the compiler output.
14222        if test "$p" = "conftest.$objext"; then
14223          pre_test_object_deps_done=yes
14224          continue
14225        fi
14226
14227        if test "$pre_test_object_deps_done" = no; then
14228          if test -z "$predep_objects_CXX"; then
14229            predep_objects_CXX="$p"
14230          else
14231            predep_objects_CXX="$predep_objects_CXX $p"
14232          fi
14233        else
14234          if test -z "$postdep_objects_CXX"; then
14235            postdep_objects_CXX="$p"
14236          else
14237            postdep_objects_CXX="$postdep_objects_CXX $p"
14238          fi
14239        fi
14240        ;;
14241
14242     *) ;; # Ignore the rest.
14243
14244     esac
14245   done
14246
14247   # Clean up.
14248   rm -f a.out a.exe
14249 else
14250   echo "libtool.m4: error: problem compiling CXX test program"
14251 fi
14252
14253 $rm -f confest.$objext
14254
14255 case " $postdeps_CXX " in
14256 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14257 esac
14258
14259 lt_prog_compiler_wl_CXX=
14260 lt_prog_compiler_pic_CXX=
14261 lt_prog_compiler_static_CXX=
14262
14263 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14264 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14265
14266   # C++ specific cases for pic, static, wl, etc.
14267   if test "$GXX" = yes; then
14268     lt_prog_compiler_wl_CXX='-Wl,'
14269     lt_prog_compiler_static_CXX='-static'
14270
14271     case $host_os in
14272     aix*)
14273       # All AIX code is PIC.
14274       if test "$host_cpu" = ia64; then
14275         # AIX 5 now supports IA64 processor
14276         lt_prog_compiler_static_CXX='-Bstatic'
14277       fi
14278       ;;
14279     amigaos*)
14280       # FIXME: we need at least 68020 code to build shared libraries, but
14281       # adding the `-m68020' flag to GCC prevents building anything better,
14282       # like `-m68040'.
14283       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14284       ;;
14285     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14286       # PIC is the default for these OSes.
14287       ;;
14288     mingw* | os2* | pw32*)
14289       # This hack is so that the source file can tell whether it is being
14290       # built for inclusion in a dll (and should export symbols for example).
14291       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14292       ;;
14293     darwin* | rhapsody*)
14294       # PIC is the default on this platform
14295       # Common symbols not allowed in MH_DYLIB files
14296       lt_prog_compiler_pic_CXX='-fno-common'
14297       ;;
14298     *djgpp*)
14299       # DJGPP does not support shared libraries at all
14300       lt_prog_compiler_pic_CXX=
14301       ;;
14302     sysv4*MP*)
14303       if test -d /usr/nec; then
14304         lt_prog_compiler_pic_CXX=-Kconform_pic
14305       fi
14306       ;;
14307     hpux*)
14308       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14309       # not for PA HP-UX.
14310       case "$host_cpu" in
14311       hppa*64*|ia64*)
14312         ;;
14313       *)
14314         lt_prog_compiler_pic_CXX='-fPIC'
14315         ;;
14316       esac
14317       ;;
14318     *)
14319       lt_prog_compiler_pic_CXX='-fPIC'
14320       ;;
14321     esac
14322   else
14323     case $host_os in
14324       aix4* | aix5*)
14325         # All AIX code is PIC.
14326         if test "$host_cpu" = ia64; then
14327           # AIX 5 now supports IA64 processor
14328           lt_prog_compiler_static_CXX='-Bstatic'
14329         else
14330           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14331         fi
14332         ;;
14333       chorus*)
14334         case $cc_basename in
14335         cxch68)
14336           # Green Hills C++ Compiler
14337           # _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"
14338           ;;
14339         esac
14340         ;;
14341       dgux*)
14342         case $cc_basename in
14343           ec++)
14344             lt_prog_compiler_pic_CXX='-KPIC'
14345             ;;
14346           ghcx)
14347             # Green Hills C++ Compiler
14348             lt_prog_compiler_pic_CXX='-pic'
14349             ;;
14350           *)
14351             ;;
14352         esac
14353         ;;
14354       freebsd*)
14355         # FreeBSD uses GNU C++
14356         ;;
14357       hpux9* | hpux10* | hpux11*)
14358         case $cc_basename in
14359           CC)
14360             lt_prog_compiler_wl_CXX='-Wl,'
14361             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14362             if test "$host_cpu" != ia64; then
14363               lt_prog_compiler_pic_CXX='+Z'
14364             fi
14365             ;;
14366           aCC)
14367             lt_prog_compiler_wl_CXX='-Wl,'
14368             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14369             case "$host_cpu" in
14370             hppa*64*|ia64*)
14371               # +Z the default
14372               ;;
14373             *)
14374               lt_prog_compiler_pic_CXX='+Z'
14375               ;;
14376             esac
14377             ;;
14378           *)
14379             ;;
14380         esac
14381         ;;
14382       irix5* | irix6* | nonstopux*)
14383         case $cc_basename in
14384           CC)
14385             lt_prog_compiler_wl_CXX='-Wl,'
14386             lt_prog_compiler_static_CXX='-non_shared'
14387             # CC pic flag -KPIC is the default.
14388             ;;
14389           *)
14390             ;;
14391         esac
14392         ;;
14393       linux*)
14394         case $cc_basename in
14395           KCC)
14396             # KAI C++ Compiler
14397             lt_prog_compiler_wl_CXX='--backend -Wl,'
14398             lt_prog_compiler_pic_CXX='-fPIC'
14399             ;;
14400           icpc)
14401             # Intel C++
14402             lt_prog_compiler_wl_CXX='-Wl,'
14403             lt_prog_compiler_pic_CXX='-KPIC'
14404             lt_prog_compiler_static_CXX='-static'
14405             ;;
14406           cxx)
14407             # Compaq C++
14408             # Make sure the PIC flag is empty.  It appears that all Alpha
14409             # Linux and Compaq Tru64 Unix objects are PIC.
14410             lt_prog_compiler_pic_CXX=
14411             lt_prog_compiler_static_CXX='-non_shared'
14412             ;;
14413           *)
14414             ;;
14415         esac
14416         ;;
14417       lynxos*)
14418         ;;
14419       m88k*)
14420         ;;
14421       mvs*)
14422         case $cc_basename in
14423           cxx)
14424             lt_prog_compiler_pic_CXX='-W c,exportall'
14425             ;;
14426           *)
14427             ;;
14428         esac
14429         ;;
14430       netbsd*)
14431         ;;
14432       osf3* | osf4* | osf5*)
14433         case $cc_basename in
14434           KCC)
14435             lt_prog_compiler_wl_CXX='--backend -Wl,'
14436             ;;
14437           RCC)
14438             # Rational C++ 2.4.1
14439             lt_prog_compiler_pic_CXX='-pic'
14440             ;;
14441           cxx)
14442             # Digital/Compaq C++
14443             lt_prog_compiler_wl_CXX='-Wl,'
14444             # Make sure the PIC flag is empty.  It appears that all Alpha
14445             # Linux and Compaq Tru64 Unix objects are PIC.
14446             lt_prog_compiler_pic_CXX=
14447             lt_prog_compiler_static_CXX='-non_shared'
14448             ;;
14449           *)
14450             ;;
14451         esac
14452         ;;
14453       psos*)
14454         ;;
14455       sco*)
14456         case $cc_basename in
14457           CC)
14458             lt_prog_compiler_pic_CXX='-fPIC'
14459             ;;
14460           *)
14461             ;;
14462         esac
14463         ;;
14464       solaris*)
14465         case $cc_basename in
14466           CC)
14467             # Sun C++ 4.2, 5.x and Centerline C++
14468             lt_prog_compiler_pic_CXX='-KPIC'
14469             lt_prog_compiler_static_CXX='-Bstatic'
14470             lt_prog_compiler_wl_CXX='-Qoption ld '
14471             ;;
14472           gcx)
14473             # Green Hills C++ Compiler
14474             lt_prog_compiler_pic_CXX='-PIC'
14475             ;;
14476           *)
14477             ;;
14478         esac
14479         ;;
14480       sunos4*)
14481         case $cc_basename in
14482           CC)
14483             # Sun C++ 4.x
14484             lt_prog_compiler_pic_CXX='-pic'
14485             lt_prog_compiler_static_CXX='-Bstatic'
14486             ;;
14487           lcc)
14488             # Lucid
14489             lt_prog_compiler_pic_CXX='-pic'
14490             ;;
14491           *)
14492             ;;
14493         esac
14494         ;;
14495       tandem*)
14496         case $cc_basename in
14497           NCC)
14498             # NonStop-UX NCC 3.20
14499             lt_prog_compiler_pic_CXX='-KPIC'
14500             ;;
14501           *)
14502             ;;
14503         esac
14504         ;;
14505       unixware*)
14506         ;;
14507       vxworks*)
14508         ;;
14509       *)
14510         lt_prog_compiler_can_build_shared_CXX=no
14511         ;;
14512     esac
14513   fi
14514
14515 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14516 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14517
14518 #
14519 # Check to make sure the PIC flag actually works.
14520 #
14521 if test -n "$lt_prog_compiler_pic_CXX"; then
14522
14523 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14524 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14525 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14526   echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528   lt_prog_compiler_pic_works_CXX=no
14529   ac_outfile=conftest.$ac_objext
14530    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14531    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14532    # Insert the option either (1) after the last *FLAGS variable, or
14533    # (2) before a word containing "conftest.", or (3) at the end.
14534    # Note that $ac_compile itself does not contain backslashes and begins
14535    # with a dollar sign (not a hyphen), so the echo should work correctly.
14536    # The option is referenced via a variable to avoid confusing sed.
14537    lt_compile=`echo "$ac_compile" | $SED \
14538    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14540    -e 's:$: $lt_compiler_flag:'`
14541    (eval echo "\"\$as_me:14541: $lt_compile\"" >&5)
14542    (eval "$lt_compile" 2>conftest.err)
14543    ac_status=$?
14544    cat conftest.err >&5
14545    echo "$as_me:14545: \$? = $ac_status" >&5
14546    if (exit $ac_status) && test -s "$ac_outfile"; then
14547      # The compiler can only warn and ignore the option if not recognized
14548      # So say no if there are warnings
14549      if test ! -s conftest.err; then
14550        lt_prog_compiler_pic_works_CXX=yes
14551      fi
14552    fi
14553    $rm conftest*
14554
14555 fi
14556 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14557 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14558
14559 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14560     case $lt_prog_compiler_pic_CXX in
14561      "" | " "*) ;;
14562      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14563      esac
14564 else
14565     lt_prog_compiler_pic_CXX=
14566      lt_prog_compiler_can_build_shared_CXX=no
14567 fi
14568
14569 fi
14570 case "$host_os" in
14571   # For platforms which do not support PIC, -DPIC is meaningless:
14572   *djgpp*)
14573     lt_prog_compiler_pic_CXX=
14574     ;;
14575   *)
14576     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14577     ;;
14578 esac
14579
14580 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14582 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14583   echo $ECHO_N "(cached) $ECHO_C" >&6
14584 else
14585   lt_cv_prog_compiler_c_o_CXX=no
14586    $rm -r conftest 2>/dev/null
14587    mkdir conftest
14588    cd conftest
14589    mkdir out
14590    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14591
14592    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14593    # that will create temporary files in the current directory regardless of
14594    # the output directory.  Thus, making CWD read-only will cause this test
14595    # to fail, enabling locking or at least warning the user not to do parallel
14596    # builds.
14597    chmod -w .
14598
14599    lt_compiler_flag="-o out/conftest2.$ac_objext"
14600    # Insert the option either (1) after the last *FLAGS variable, or
14601    # (2) before a word containing "conftest.", or (3) at the end.
14602    # Note that $ac_compile itself does not contain backslashes and begins
14603    # with a dollar sign (not a hyphen), so the echo should work correctly.
14604    lt_compile=`echo "$ac_compile" | $SED \
14605    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14607    -e 's:$: $lt_compiler_flag:'`
14608    (eval echo "\"\$as_me:14608: $lt_compile\"" >&5)
14609    (eval "$lt_compile" 2>out/conftest.err)
14610    ac_status=$?
14611    cat out/conftest.err >&5
14612    echo "$as_me:14612: \$? = $ac_status" >&5
14613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14614    then
14615      # The compiler can only warn and ignore the option if not recognized
14616      # So say no if there are warnings
14617      if test ! -s out/conftest.err; then
14618        lt_cv_prog_compiler_c_o_CXX=yes
14619      fi
14620    fi
14621    chmod u+w .
14622    $rm conftest* out/*
14623    rmdir out
14624    cd ..
14625    rmdir conftest
14626    $rm conftest*
14627
14628 fi
14629 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14630 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14631
14632
14633 hard_links="nottested"
14634 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14635   # do not overwrite the value of need_locks provided by the user
14636   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14637 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14638   hard_links=yes
14639   $rm conftest*
14640   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14641   touch conftest.a
14642   ln conftest.a conftest.b 2>&5 || hard_links=no
14643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14644   { echo "$as_me:$LINENO: result: $hard_links" >&5
14645 echo "${ECHO_T}$hard_links" >&6; }
14646   if test "$hard_links" = no; then
14647     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14648 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14649     need_locks=warn
14650   fi
14651 else
14652   need_locks=no
14653 fi
14654
14655 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14656 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14657
14658   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14659   case $host_os in
14660   aix4* | aix5*)
14661     # If we're using GNU nm, then we don't want the "-C" option.
14662     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14663     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14664       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'
14665     else
14666       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'
14667     fi
14668     ;;
14669   pw32*)
14670     export_symbols_cmds_CXX="$ltdll_cmds"
14671   ;;
14672   cygwin* | mingw*)
14673     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14674   ;;
14675   *)
14676     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14677   ;;
14678   esac
14679
14680 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14681 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14682 test "$ld_shlibs_CXX" = no && can_build_shared=no
14683
14684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14685 if test "$GCC" = yes; then
14686   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14687 fi
14688
14689 #
14690 # Do we need to explicitly link libc?
14691 #
14692 case "x$archive_cmds_need_lc_CXX" in
14693 x|xyes)
14694   # Assume -lc should be added
14695   archive_cmds_need_lc_CXX=yes
14696
14697   if test "$enable_shared" = yes && test "$GCC" = yes; then
14698     case $archive_cmds_CXX in
14699     *'~'*)
14700       # FIXME: we may have to deal with multi-command sequences.
14701       ;;
14702     '$CC '*)
14703       # Test whether the compiler implicitly links with -lc since on some
14704       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14705       # to ld, don't add -lc before -lgcc.
14706       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14707 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14708       $rm conftest*
14709       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14710
14711       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14712   (eval $ac_compile) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } 2>conftest.err; then
14716         soname=conftest
14717         lib=conftest
14718         libobjs=conftest.$ac_objext
14719         deplibs=
14720         wl=$lt_prog_compiler_wl_CXX
14721         compiler_flags=-v
14722         linker_flags=-v
14723         verstring=
14724         output_objdir=.
14725         libname=conftest
14726         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14727         allow_undefined_flag_CXX=
14728         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14729   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }
14733         then
14734           archive_cmds_need_lc_CXX=no
14735         else
14736           archive_cmds_need_lc_CXX=yes
14737         fi
14738         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14739       else
14740         cat conftest.err 1>&5
14741       fi
14742       $rm conftest*
14743       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14744 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14745       ;;
14746     esac
14747   fi
14748   ;;
14749 esac
14750
14751 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14752 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14753 library_names_spec=
14754 libname_spec='lib$name'
14755 soname_spec=
14756 shrext=".so"
14757 postinstall_cmds=
14758 postuninstall_cmds=
14759 finish_cmds=
14760 finish_eval=
14761 shlibpath_var=
14762 shlibpath_overrides_runpath=unknown
14763 version_type=none
14764 dynamic_linker="$host_os ld.so"
14765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14767 need_lib_prefix=unknown
14768 hardcode_into_libs=no
14769
14770 # when you set need_version to no, make sure it does not cause -set_version
14771 # flags to be left without arguments
14772 need_version=unknown
14773
14774 case $host_os in
14775 aix3*)
14776   version_type=linux
14777   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14778   shlibpath_var=LIBPATH
14779
14780   # AIX 3 has no versioning support, so we append a major version to the name.
14781   soname_spec='${libname}${release}${shared_ext}$major'
14782   ;;
14783
14784 aix4* | aix5*)
14785   version_type=linux
14786   need_lib_prefix=no
14787   need_version=no
14788   hardcode_into_libs=yes
14789   if test "$host_cpu" = ia64; then
14790     # AIX 5 supports IA64
14791     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14792     shlibpath_var=LD_LIBRARY_PATH
14793   else
14794     # With GCC up to 2.95.x, collect2 would create an import file
14795     # for dependence libraries.  The import file would start with
14796     # the line `#! .'.  This would cause the generated library to
14797     # depend on `.', always an invalid library.  This was fixed in
14798     # development snapshots of GCC prior to 3.0.
14799     case $host_os in
14800       aix4 | aix4.[01] | aix4.[01].*)
14801       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14802            echo ' yes '
14803            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14804         :
14805       else
14806         can_build_shared=no
14807       fi
14808       ;;
14809     esac
14810     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14811     # soname into executable. Probably we can add versioning support to
14812     # collect2, so additional links can be useful in future.
14813     if test "$aix_use_runtimelinking" = yes; then
14814       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14815       # instead of lib<name>.a to let people know that these are not
14816       # typical AIX shared libraries.
14817       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14818     else
14819       # We preserve .a as extension for shared libraries through AIX4.2
14820       # and later when we are not doing run time linking.
14821       library_names_spec='${libname}${release}.a $libname.a'
14822       soname_spec='${libname}${release}${shared_ext}$major'
14823     fi
14824     shlibpath_var=LIBPATH
14825   fi
14826   ;;
14827
14828 amigaos*)
14829   library_names_spec='$libname.ixlibrary $libname.a'
14830   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14831   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'
14832   ;;
14833
14834 beos*)
14835   library_names_spec='${libname}${shared_ext}'
14836   dynamic_linker="$host_os ld.so"
14837   shlibpath_var=LIBRARY_PATH
14838   ;;
14839
14840 bsdi4*)
14841   version_type=linux
14842   need_version=no
14843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14844   soname_spec='${libname}${release}${shared_ext}$major'
14845   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14846   shlibpath_var=LD_LIBRARY_PATH
14847   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14848   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14849   # the default ld.so.conf also contains /usr/contrib/lib and
14850   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14851   # libtool to hard-code these into programs
14852   ;;
14853
14854 cygwin* | mingw* | pw32*)
14855   version_type=windows
14856   shrext=".dll"
14857   need_version=no
14858   need_lib_prefix=no
14859
14860   case $GCC,$host_os in
14861   yes,cygwin* | yes,mingw* | yes,pw32*)
14862     library_names_spec='$libname.dll.a'
14863     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14864     postinstall_cmds='base_file=`basename \${file}`~
14865       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14866       dldir=$destdir/`dirname \$dlpath`~
14867       test -d \$dldir || mkdir -p \$dldir~
14868       $install_prog $dir/$dlname \$dldir/$dlname'
14869     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14870       dlpath=$dir/\$dldll~
14871        $rm \$dlpath'
14872     shlibpath_overrides_runpath=yes
14873
14874     case $host_os in
14875     cygwin*)
14876       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14877       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14878       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14879       ;;
14880     mingw*)
14881       # MinGW DLLs use traditional 'lib' prefix
14882       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14883       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14884       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14885         # It is most probably a Windows format PATH printed by
14886         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14887         # path with ; separators, and with drive letters. We can handle the
14888         # drive letters (cygwin fileutils understands them), so leave them,
14889         # especially as we might pass files found there to a mingw objdump,
14890         # which wouldn't understand a cygwinified path. Ahh.
14891         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14892       else
14893         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14894       fi
14895       ;;
14896     pw32*)
14897       # pw32 DLLs use 'pw' prefix rather than 'lib'
14898       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14899       ;;
14900     esac
14901     ;;
14902
14903   *)
14904     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14905     ;;
14906   esac
14907   dynamic_linker='Win32 ld.exe'
14908   # FIXME: first we should search . and the directory the executable is in
14909   shlibpath_var=PATH
14910   ;;
14911
14912 darwin* | rhapsody*)
14913   dynamic_linker="$host_os dyld"
14914   version_type=darwin
14915   need_lib_prefix=no
14916   need_version=no
14917   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14918   soname_spec='${libname}${release}${major}$shared_ext'
14919   shlibpath_overrides_runpath=yes
14920   shlibpath_var=DYLD_LIBRARY_PATH
14921   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14922   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14923   if test "$GCC" = yes; then
14924     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14925   else
14926     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14927   fi
14928   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14929   ;;
14930
14931 dgux*)
14932   version_type=linux
14933   need_lib_prefix=no
14934   need_version=no
14935   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14936   soname_spec='${libname}${release}${shared_ext}$major'
14937   shlibpath_var=LD_LIBRARY_PATH
14938   ;;
14939
14940 freebsd1*)
14941   dynamic_linker=no
14942   ;;
14943
14944 freebsd*-gnu*)
14945   version_type=linux
14946   need_lib_prefix=no
14947   need_version=no
14948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14949   soname_spec='${libname}${release}${shared_ext}$major'
14950   shlibpath_var=LD_LIBRARY_PATH
14951   shlibpath_overrides_runpath=no
14952   hardcode_into_libs=yes
14953   dynamic_linker='GNU ld.so'
14954   ;;
14955
14956 freebsd*)
14957   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14958   version_type=freebsd-$objformat
14959   case $version_type in
14960     freebsd-elf*)
14961       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14962       need_version=no
14963       need_lib_prefix=no
14964       ;;
14965     freebsd-*)
14966       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14967       need_version=yes
14968       ;;
14969   esac
14970   shlibpath_var=LD_LIBRARY_PATH
14971   case $host_os in
14972   freebsd2*)
14973     shlibpath_overrides_runpath=yes
14974     ;;
14975   freebsd3.01* | freebsdelf3.01*)
14976     shlibpath_overrides_runpath=yes
14977     hardcode_into_libs=yes
14978     ;;
14979   *) # from 3.2 on
14980     shlibpath_overrides_runpath=no
14981     hardcode_into_libs=yes
14982     ;;
14983   esac
14984   ;;
14985
14986 gnu*)
14987   version_type=linux
14988   need_lib_prefix=no
14989   need_version=no
14990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14991   soname_spec='${libname}${release}${shared_ext}$major'
14992   shlibpath_var=LD_LIBRARY_PATH
14993   hardcode_into_libs=yes
14994   ;;
14995
14996 hpux9* | hpux10* | hpux11*)
14997   # Give a soname corresponding to the major version so that dld.sl refuses to
14998   # link against other versions.
14999   version_type=sunos
15000   need_lib_prefix=no
15001   need_version=no
15002   case "$host_cpu" in
15003   ia64*)
15004     shrext='.so'
15005     hardcode_into_libs=yes
15006     dynamic_linker="$host_os dld.so"
15007     shlibpath_var=LD_LIBRARY_PATH
15008     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15010     soname_spec='${libname}${release}${shared_ext}$major'
15011     if test "X$HPUX_IA64_MODE" = X32; then
15012       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15013     else
15014       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15015     fi
15016     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15017     ;;
15018    hppa*64*)
15019      shrext='.sl'
15020      hardcode_into_libs=yes
15021      dynamic_linker="$host_os dld.sl"
15022      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15023      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15024      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15025      soname_spec='${libname}${release}${shared_ext}$major'
15026      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15027      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15028      ;;
15029    *)
15030     shrext='.sl'
15031     dynamic_linker="$host_os dld.sl"
15032     shlibpath_var=SHLIB_PATH
15033     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15034     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15035     soname_spec='${libname}${release}${shared_ext}$major'
15036     ;;
15037   esac
15038   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15039   postinstall_cmds='chmod 555 $lib'
15040   ;;
15041
15042 irix5* | irix6* | nonstopux*)
15043   case $host_os in
15044     nonstopux*) version_type=nonstopux ;;
15045     *)
15046         if test "$lt_cv_prog_gnu_ld" = yes; then
15047                 version_type=linux
15048         else
15049                 version_type=irix
15050         fi ;;
15051   esac
15052   need_lib_prefix=no
15053   need_version=no
15054   soname_spec='${libname}${release}${shared_ext}$major'
15055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15056   case $host_os in
15057   irix5* | nonstopux*)
15058     libsuff= shlibsuff=
15059     ;;
15060   *)
15061     case $LD in # libtool.m4 will add one of these switches to LD
15062     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15063       libsuff= shlibsuff= libmagic=32-bit;;
15064     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15065       libsuff=32 shlibsuff=N32 libmagic=N32;;
15066     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15067       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15068     *) libsuff= shlibsuff= libmagic=never-match;;
15069     esac
15070     ;;
15071   esac
15072   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15073   shlibpath_overrides_runpath=no
15074   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15075   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15076   hardcode_into_libs=yes
15077   ;;
15078
15079 # No shared lib support for Linux oldld, aout, or coff.
15080 linux*oldld* | linux*aout* | linux*coff*)
15081   dynamic_linker=no
15082   ;;
15083
15084 # This must be Linux ELF.
15085 linux*)
15086   version_type=linux
15087   need_lib_prefix=no
15088   need_version=no
15089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15090   soname_spec='${libname}${release}${shared_ext}$major'
15091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15092   libsuff=
15093   if test "x$LINUX_64_MODE" = x64; then
15094     # Some platforms are per default 64-bit, so there's no /lib64
15095     if test -d /lib64; then
15096       libsuff=64
15097     fi
15098   fi
15099   shlibpath_var=LD_LIBRARY_PATH
15100   shlibpath_overrides_runpath=no
15101   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15102   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15103   # This implies no fast_install, which is unacceptable.
15104   # Some rework will be needed to allow for fast_install
15105   # before this can be enabled.
15106   hardcode_into_libs=yes
15107
15108   # We used to test for /lib/ld.so.1 and disable shared libraries on
15109   # powerpc, because MkLinux only supported shared libraries with the
15110   # GNU dynamic linker.  Since this was broken with cross compilers,
15111   # most powerpc-linux boxes support dynamic linking these days and
15112   # people can always --disable-shared, the test was removed, and we
15113   # assume the GNU/Linux dynamic linker is in use.
15114   dynamic_linker='GNU/Linux ld.so'
15115   ;;
15116
15117 netbsd*)
15118   version_type=sunos
15119   need_lib_prefix=no
15120   need_version=no
15121   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15123     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15124     dynamic_linker='NetBSD (a.out) ld.so'
15125   else
15126     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15127     soname_spec='${libname}${release}${shared_ext}$major'
15128     dynamic_linker='NetBSD ld.elf_so'
15129   fi
15130   shlibpath_var=LD_LIBRARY_PATH
15131   shlibpath_overrides_runpath=yes
15132   hardcode_into_libs=yes
15133   ;;
15134
15135 newsos6)
15136   version_type=linux
15137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138   shlibpath_var=LD_LIBRARY_PATH
15139   shlibpath_overrides_runpath=yes
15140   ;;
15141
15142 nto-qnx*)
15143   version_type=linux
15144   need_lib_prefix=no
15145   need_version=no
15146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147   soname_spec='${libname}${release}${shared_ext}$major'
15148   shlibpath_var=LD_LIBRARY_PATH
15149   shlibpath_overrides_runpath=yes
15150   ;;
15151
15152 openbsd*)
15153   version_type=sunos
15154   need_lib_prefix=no
15155   need_version=no
15156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15157   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15158   shlibpath_var=LD_LIBRARY_PATH
15159   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15160     case $host_os in
15161       openbsd2.[89] | openbsd2.[89].*)
15162         shlibpath_overrides_runpath=no
15163         ;;
15164       *)
15165         shlibpath_overrides_runpath=yes
15166         ;;
15167       esac
15168   else
15169     shlibpath_overrides_runpath=yes
15170   fi
15171   ;;
15172
15173 os2*)
15174   libname_spec='$name'
15175   shrext=".dll"
15176   need_lib_prefix=no
15177   library_names_spec='$libname${shared_ext} $libname.a'
15178   dynamic_linker='OS/2 ld.exe'
15179   shlibpath_var=LIBPATH
15180   ;;
15181
15182 osf3* | osf4* | osf5*)
15183   version_type=osf
15184   need_lib_prefix=no
15185   need_version=no
15186   soname_spec='${libname}${release}${shared_ext}$major'
15187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15188   shlibpath_var=LD_LIBRARY_PATH
15189   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15190   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15191   ;;
15192
15193 sco3.2v5*)
15194   version_type=osf
15195   soname_spec='${libname}${release}${shared_ext}$major'
15196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197   shlibpath_var=LD_LIBRARY_PATH
15198   ;;
15199
15200 solaris*)
15201   version_type=linux
15202   need_lib_prefix=no
15203   need_version=no
15204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205   soname_spec='${libname}${release}${shared_ext}$major'
15206   shlibpath_var=LD_LIBRARY_PATH
15207   shlibpath_overrides_runpath=yes
15208   hardcode_into_libs=yes
15209   # ldd complains unless libraries are executable
15210   postinstall_cmds='chmod +x $lib'
15211   ;;
15212
15213 sunos4*)
15214   version_type=sunos
15215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15216   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15217   shlibpath_var=LD_LIBRARY_PATH
15218   shlibpath_overrides_runpath=yes
15219   if test "$with_gnu_ld" = yes; then
15220     need_lib_prefix=no
15221   fi
15222   need_version=yes
15223   ;;
15224
15225 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15226   version_type=linux
15227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15228   soname_spec='${libname}${release}${shared_ext}$major'
15229   shlibpath_var=LD_LIBRARY_PATH
15230   case $host_vendor in
15231     sni)
15232       shlibpath_overrides_runpath=no
15233       need_lib_prefix=no
15234       export_dynamic_flag_spec='${wl}-Blargedynsym'
15235       runpath_var=LD_RUN_PATH
15236       ;;
15237     siemens)
15238       need_lib_prefix=no
15239       ;;
15240     motorola)
15241       need_lib_prefix=no
15242       need_version=no
15243       shlibpath_overrides_runpath=no
15244       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15245       ;;
15246   esac
15247   ;;
15248
15249 sysv4*MP*)
15250   if test -d /usr/nec ;then
15251     version_type=linux
15252     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15253     soname_spec='$libname${shared_ext}.$major'
15254     shlibpath_var=LD_LIBRARY_PATH
15255   fi
15256   ;;
15257
15258 uts4*)
15259   version_type=linux
15260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261   soname_spec='${libname}${release}${shared_ext}$major'
15262   shlibpath_var=LD_LIBRARY_PATH
15263   ;;
15264
15265 *)
15266   dynamic_linker=no
15267   ;;
15268 esac
15269 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15270 echo "${ECHO_T}$dynamic_linker" >&6; }
15271 test "$dynamic_linker" = no && can_build_shared=no
15272
15273 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15274 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15275 hardcode_action_CXX=
15276 if test -n "$hardcode_libdir_flag_spec_CXX" || \
15277    test -n "$runpath_var CXX" || \
15278    test "X$hardcode_automatic_CXX"="Xyes" ; then
15279
15280   # We can hardcode non-existant directories.
15281   if test "$hardcode_direct_CXX" != no &&
15282      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15283      # have to relink, otherwise we might link with an installed library
15284      # when we should be linking with a yet-to-be-installed one
15285      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15286      test "$hardcode_minus_L_CXX" != no; then
15287     # Linking always hardcodes the temporary library directory.
15288     hardcode_action_CXX=relink
15289   else
15290     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15291     hardcode_action_CXX=immediate
15292   fi
15293 else
15294   # We cannot hardcode anything, or else we can only hardcode existing
15295   # directories.
15296   hardcode_action_CXX=unsupported
15297 fi
15298 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15299 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15300
15301 if test "$hardcode_action_CXX" = relink; then
15302   # Fast installation is not supported
15303   enable_fast_install=no
15304 elif test "$shlibpath_overrides_runpath" = yes ||
15305      test "$enable_shared" = no; then
15306   # Fast installation is not necessary
15307   enable_fast_install=needless
15308 fi
15309
15310 striplib=
15311 old_striplib=
15312 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15313 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15314 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15315   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15316   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15317   { echo "$as_me:$LINENO: result: yes" >&5
15318 echo "${ECHO_T}yes" >&6; }
15319 else
15320 # FIXME - insert some real tests, host_os isn't really good enough
15321   case $host_os in
15322    darwin*)
15323        if test -n "$STRIP" ; then
15324          striplib="$STRIP -x"
15325          { echo "$as_me:$LINENO: result: yes" >&5
15326 echo "${ECHO_T}yes" >&6; }
15327        else
15328   { echo "$as_me:$LINENO: result: no" >&5
15329 echo "${ECHO_T}no" >&6; }
15330 fi
15331        ;;
15332    *)
15333   { echo "$as_me:$LINENO: result: no" >&5
15334 echo "${ECHO_T}no" >&6; }
15335     ;;
15336   esac
15337 fi
15338
15339 if test "x$enable_dlopen" != xyes; then
15340   enable_dlopen=unknown
15341   enable_dlopen_self=unknown
15342   enable_dlopen_self_static=unknown
15343 else
15344   lt_cv_dlopen=no
15345   lt_cv_dlopen_libs=
15346
15347   case $host_os in
15348   beos*)
15349     lt_cv_dlopen="load_add_on"
15350     lt_cv_dlopen_libs=
15351     lt_cv_dlopen_self=yes
15352     ;;
15353
15354   mingw* | pw32*)
15355     lt_cv_dlopen="LoadLibrary"
15356     lt_cv_dlopen_libs=
15357    ;;
15358
15359   cygwin*)
15360     lt_cv_dlopen="dlopen"
15361     lt_cv_dlopen_libs=
15362    ;;
15363
15364   darwin*)
15365   # if libdl is installed we need to link against it
15366     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15367 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15368 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   ac_check_lib_save_LIBS=$LIBS
15372 LIBS="-ldl  $LIBS"
15373 cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379
15380 /* Override any GCC internal prototype to avoid an error.
15381    Use char because int might match the return type of a GCC
15382    builtin and then its argument prototype would still apply.  */
15383 #ifdef __cplusplus
15384 extern "C"
15385 #endif
15386 char dlopen ();
15387 int
15388 main ()
15389 {
15390 return dlopen ();
15391   ;
15392   return 0;
15393 }
15394 _ACEOF
15395 rm -f conftest.$ac_objext conftest$ac_exeext
15396 if { (ac_try="$ac_link"
15397 case "(($ac_try" in
15398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399   *) ac_try_echo=$ac_try;;
15400 esac
15401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15402   (eval "$ac_link") 2>conftest.er1
15403   ac_status=$?
15404   grep -v '^ *+' conftest.er1 >conftest.err
15405   rm -f conftest.er1
15406   cat conftest.err >&5
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); } && {
15409          test -z "$ac_cxx_werror_flag" ||
15410          test ! -s conftest.err
15411        } && test -s conftest$ac_exeext &&
15412        $as_test_x conftest$ac_exeext; then
15413   ac_cv_lib_dl_dlopen=yes
15414 else
15415   echo "$as_me: failed program was:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15417
15418         ac_cv_lib_dl_dlopen=no
15419 fi
15420
15421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15422       conftest$ac_exeext conftest.$ac_ext
15423 LIBS=$ac_check_lib_save_LIBS
15424 fi
15425 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15426 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15427 if test $ac_cv_lib_dl_dlopen = yes; then
15428   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15429 else
15430
15431     lt_cv_dlopen="dyld"
15432     lt_cv_dlopen_libs=
15433     lt_cv_dlopen_self=yes
15434
15435 fi
15436
15437    ;;
15438
15439   *)
15440     { echo "$as_me:$LINENO: checking for shl_load" >&5
15441 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15442 if test "${ac_cv_func_shl_load+set}" = set; then
15443   echo $ECHO_N "(cached) $ECHO_C" >&6
15444 else
15445   cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15453 #define shl_load innocuous_shl_load
15454
15455 /* System header to define __stub macros and hopefully few prototypes,
15456     which can conflict with char shl_load (); below.
15457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15458     <limits.h> exists even on freestanding compilers.  */
15459
15460 #ifdef __STDC__
15461 # include <limits.h>
15462 #else
15463 # include <assert.h>
15464 #endif
15465
15466 #undef shl_load
15467
15468 /* Override any GCC internal prototype to avoid an error.
15469    Use char because int might match the return type of a GCC
15470    builtin and then its argument prototype would still apply.  */
15471 #ifdef __cplusplus
15472 extern "C"
15473 #endif
15474 char shl_load ();
15475 /* The GNU C library defines this for functions which it implements
15476     to always fail with ENOSYS.  Some functions are actually named
15477     something starting with __ and the normal name is an alias.  */
15478 #if defined __stub_shl_load || defined __stub___shl_load
15479 choke me
15480 #endif
15481
15482 int
15483 main ()
15484 {
15485 return shl_load ();
15486   ;
15487   return 0;
15488 }
15489 _ACEOF
15490 rm -f conftest.$ac_objext conftest$ac_exeext
15491 if { (ac_try="$ac_link"
15492 case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_link") 2>conftest.er1
15498   ac_status=$?
15499   grep -v '^ *+' conftest.er1 >conftest.err
15500   rm -f conftest.er1
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); } && {
15504          test -z "$ac_cxx_werror_flag" ||
15505          test ! -s conftest.err
15506        } && test -s conftest$ac_exeext &&
15507        $as_test_x conftest$ac_exeext; then
15508   ac_cv_func_shl_load=yes
15509 else
15510   echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513         ac_cv_func_shl_load=no
15514 fi
15515
15516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15517       conftest$ac_exeext conftest.$ac_ext
15518 fi
15519 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15520 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15521 if test $ac_cv_func_shl_load = yes; then
15522   lt_cv_dlopen="shl_load"
15523 else
15524   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15525 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15526 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15527   echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529   ac_check_lib_save_LIBS=$LIBS
15530 LIBS="-ldld  $LIBS"
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537
15538 /* Override any GCC internal prototype to avoid an error.
15539    Use char because int might match the return type of a GCC
15540    builtin and then its argument prototype would still apply.  */
15541 #ifdef __cplusplus
15542 extern "C"
15543 #endif
15544 char shl_load ();
15545 int
15546 main ()
15547 {
15548 return shl_load ();
15549   ;
15550   return 0;
15551 }
15552 _ACEOF
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_link") 2>conftest.er1
15561   ac_status=$?
15562   grep -v '^ *+' conftest.er1 >conftest.err
15563   rm -f conftest.er1
15564   cat conftest.err >&5
15565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566   (exit $ac_status); } && {
15567          test -z "$ac_cxx_werror_flag" ||
15568          test ! -s conftest.err
15569        } && test -s conftest$ac_exeext &&
15570        $as_test_x conftest$ac_exeext; then
15571   ac_cv_lib_dld_shl_load=yes
15572 else
15573   echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576         ac_cv_lib_dld_shl_load=no
15577 fi
15578
15579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15580       conftest$ac_exeext conftest.$ac_ext
15581 LIBS=$ac_check_lib_save_LIBS
15582 fi
15583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15584 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15585 if test $ac_cv_lib_dld_shl_load = yes; then
15586   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15587 else
15588   { echo "$as_me:$LINENO: checking for dlopen" >&5
15589 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15590 if test "${ac_cv_func_dlopen+set}" = set; then
15591   echo $ECHO_N "(cached) $ECHO_C" >&6
15592 else
15593   cat >conftest.$ac_ext <<_ACEOF
15594 /* confdefs.h.  */
15595 _ACEOF
15596 cat confdefs.h >>conftest.$ac_ext
15597 cat >>conftest.$ac_ext <<_ACEOF
15598 /* end confdefs.h.  */
15599 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15601 #define dlopen innocuous_dlopen
15602
15603 /* System header to define __stub macros and hopefully few prototypes,
15604     which can conflict with char dlopen (); below.
15605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15606     <limits.h> exists even on freestanding compilers.  */
15607
15608 #ifdef __STDC__
15609 # include <limits.h>
15610 #else
15611 # include <assert.h>
15612 #endif
15613
15614 #undef dlopen
15615
15616 /* Override any GCC internal prototype to avoid an error.
15617    Use char because int might match the return type of a GCC
15618    builtin and then its argument prototype would still apply.  */
15619 #ifdef __cplusplus
15620 extern "C"
15621 #endif
15622 char dlopen ();
15623 /* The GNU C library defines this for functions which it implements
15624     to always fail with ENOSYS.  Some functions are actually named
15625     something starting with __ and the normal name is an alias.  */
15626 #if defined __stub_dlopen || defined __stub___dlopen
15627 choke me
15628 #endif
15629
15630 int
15631 main ()
15632 {
15633 return dlopen ();
15634   ;
15635   return 0;
15636 }
15637 _ACEOF
15638 rm -f conftest.$ac_objext conftest$ac_exeext
15639 if { (ac_try="$ac_link"
15640 case "(($ac_try" in
15641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642   *) ac_try_echo=$ac_try;;
15643 esac
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645   (eval "$ac_link") 2>conftest.er1
15646   ac_status=$?
15647   grep -v '^ *+' conftest.er1 >conftest.err
15648   rm -f conftest.er1
15649   cat conftest.err >&5
15650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651   (exit $ac_status); } && {
15652          test -z "$ac_cxx_werror_flag" ||
15653          test ! -s conftest.err
15654        } && test -s conftest$ac_exeext &&
15655        $as_test_x conftest$ac_exeext; then
15656   ac_cv_func_dlopen=yes
15657 else
15658   echo "$as_me: failed program was:" >&5
15659 sed 's/^/| /' conftest.$ac_ext >&5
15660
15661         ac_cv_func_dlopen=no
15662 fi
15663
15664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15665       conftest$ac_exeext conftest.$ac_ext
15666 fi
15667 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15668 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15669 if test $ac_cv_func_dlopen = yes; then
15670   lt_cv_dlopen="dlopen"
15671 else
15672   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15673 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15674 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   ac_check_lib_save_LIBS=$LIBS
15678 LIBS="-ldl  $LIBS"
15679 cat >conftest.$ac_ext <<_ACEOF
15680 /* confdefs.h.  */
15681 _ACEOF
15682 cat confdefs.h >>conftest.$ac_ext
15683 cat >>conftest.$ac_ext <<_ACEOF
15684 /* end confdefs.h.  */
15685
15686 /* Override any GCC internal prototype to avoid an error.
15687    Use char because int might match the return type of a GCC
15688    builtin and then its argument prototype would still apply.  */
15689 #ifdef __cplusplus
15690 extern "C"
15691 #endif
15692 char dlopen ();
15693 int
15694 main ()
15695 {
15696 return dlopen ();
15697   ;
15698   return 0;
15699 }
15700 _ACEOF
15701 rm -f conftest.$ac_objext conftest$ac_exeext
15702 if { (ac_try="$ac_link"
15703 case "(($ac_try" in
15704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705   *) ac_try_echo=$ac_try;;
15706 esac
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708   (eval "$ac_link") 2>conftest.er1
15709   ac_status=$?
15710   grep -v '^ *+' conftest.er1 >conftest.err
15711   rm -f conftest.er1
15712   cat conftest.err >&5
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); } && {
15715          test -z "$ac_cxx_werror_flag" ||
15716          test ! -s conftest.err
15717        } && test -s conftest$ac_exeext &&
15718        $as_test_x conftest$ac_exeext; then
15719   ac_cv_lib_dl_dlopen=yes
15720 else
15721   echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724         ac_cv_lib_dl_dlopen=no
15725 fi
15726
15727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15728       conftest$ac_exeext conftest.$ac_ext
15729 LIBS=$ac_check_lib_save_LIBS
15730 fi
15731 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15732 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15733 if test $ac_cv_lib_dl_dlopen = yes; then
15734   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15735 else
15736   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15737 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15738 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15739   echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741   ac_check_lib_save_LIBS=$LIBS
15742 LIBS="-lsvld  $LIBS"
15743 cat >conftest.$ac_ext <<_ACEOF
15744 /* confdefs.h.  */
15745 _ACEOF
15746 cat confdefs.h >>conftest.$ac_ext
15747 cat >>conftest.$ac_ext <<_ACEOF
15748 /* end confdefs.h.  */
15749
15750 /* Override any GCC internal prototype to avoid an error.
15751    Use char because int might match the return type of a GCC
15752    builtin and then its argument prototype would still apply.  */
15753 #ifdef __cplusplus
15754 extern "C"
15755 #endif
15756 char dlopen ();
15757 int
15758 main ()
15759 {
15760 return dlopen ();
15761   ;
15762   return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_link") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } && {
15779          test -z "$ac_cxx_werror_flag" ||
15780          test ! -s conftest.err
15781        } && test -s conftest$ac_exeext &&
15782        $as_test_x conftest$ac_exeext; then
15783   ac_cv_lib_svld_dlopen=yes
15784 else
15785   echo "$as_me: failed program was:" >&5
15786 sed 's/^/| /' conftest.$ac_ext >&5
15787
15788         ac_cv_lib_svld_dlopen=no
15789 fi
15790
15791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15792       conftest$ac_exeext conftest.$ac_ext
15793 LIBS=$ac_check_lib_save_LIBS
15794 fi
15795 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15796 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
15797 if test $ac_cv_lib_svld_dlopen = yes; then
15798   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15799 else
15800   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15801 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
15802 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805   ac_check_lib_save_LIBS=$LIBS
15806 LIBS="-ldld  $LIBS"
15807 cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813
15814 /* Override any GCC internal prototype to avoid an error.
15815    Use char because int might match the return type of a GCC
15816    builtin and then its argument prototype would still apply.  */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 char dld_link ();
15821 int
15822 main ()
15823 {
15824 return dld_link ();
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (ac_try="$ac_link"
15831 case "(($ac_try" in
15832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833   *) ac_try_echo=$ac_try;;
15834 esac
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836   (eval "$ac_link") 2>conftest.er1
15837   ac_status=$?
15838   grep -v '^ *+' conftest.er1 >conftest.err
15839   rm -f conftest.er1
15840   cat conftest.err >&5
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } && {
15843          test -z "$ac_cxx_werror_flag" ||
15844          test ! -s conftest.err
15845        } && test -s conftest$ac_exeext &&
15846        $as_test_x conftest$ac_exeext; then
15847   ac_cv_lib_dld_dld_link=yes
15848 else
15849   echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852         ac_cv_lib_dld_dld_link=no
15853 fi
15854
15855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15856       conftest$ac_exeext conftest.$ac_ext
15857 LIBS=$ac_check_lib_save_LIBS
15858 fi
15859 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15860 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
15861 if test $ac_cv_lib_dld_dld_link = yes; then
15862   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15863 fi
15864
15865
15866 fi
15867
15868
15869 fi
15870
15871
15872 fi
15873
15874
15875 fi
15876
15877
15878 fi
15879
15880     ;;
15881   esac
15882
15883   if test "x$lt_cv_dlopen" != xno; then
15884     enable_dlopen=yes
15885   else
15886     enable_dlopen=no
15887   fi
15888
15889   case $lt_cv_dlopen in
15890   dlopen)
15891     save_CPPFLAGS="$CPPFLAGS"
15892     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15893
15894     save_LDFLAGS="$LDFLAGS"
15895     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15896
15897     save_LIBS="$LIBS"
15898     LIBS="$lt_cv_dlopen_libs $LIBS"
15899
15900     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15901 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
15902 if test "${lt_cv_dlopen_self+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905           if test "$cross_compiling" = yes; then :
15906   lt_cv_dlopen_self=cross
15907 else
15908   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15909   lt_status=$lt_dlunknown
15910   cat > conftest.$ac_ext <<EOF
15911 #line 15911 "configure"
15912 #include "confdefs.h"
15913
15914 #if HAVE_DLFCN_H
15915 #include <dlfcn.h>
15916 #endif
15917
15918 #include <stdio.h>
15919
15920 #ifdef RTLD_GLOBAL
15921 #  define LT_DLGLOBAL           RTLD_GLOBAL
15922 #else
15923 #  ifdef DL_GLOBAL
15924 #    define LT_DLGLOBAL         DL_GLOBAL
15925 #  else
15926 #    define LT_DLGLOBAL         0
15927 #  endif
15928 #endif
15929
15930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15931    find out it does not work in some platform. */
15932 #ifndef LT_DLLAZY_OR_NOW
15933 #  ifdef RTLD_LAZY
15934 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15935 #  else
15936 #    ifdef DL_LAZY
15937 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15938 #    else
15939 #      ifdef RTLD_NOW
15940 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15941 #      else
15942 #        ifdef DL_NOW
15943 #          define LT_DLLAZY_OR_NOW      DL_NOW
15944 #        else
15945 #          define LT_DLLAZY_OR_NOW      0
15946 #        endif
15947 #      endif
15948 #    endif
15949 #  endif
15950 #endif
15951
15952 #ifdef __cplusplus
15953 extern "C" void exit (int);
15954 #endif
15955
15956 void fnord() { int i=42;}
15957 int main ()
15958 {
15959   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15960   int status = $lt_dlunknown;
15961
15962   if (self)
15963     {
15964       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15965       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15966       /* dlclose (self); */
15967     }
15968
15969     exit (status);
15970 }
15971 EOF
15972   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15973   (eval $ac_link) 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15977     (./conftest; exit; ) 2>/dev/null
15978     lt_status=$?
15979     case x$lt_status in
15980       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15981       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15982       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15983     esac
15984   else :
15985     # compilation failed
15986     lt_cv_dlopen_self=no
15987   fi
15988 fi
15989 rm -fr conftest*
15990
15991
15992 fi
15993 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15994 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
15995
15996     if test "x$lt_cv_dlopen_self" = xyes; then
15997       LDFLAGS="$LDFLAGS $link_static_flag"
15998       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15999 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16000 if test "${lt_cv_dlopen_self_static+set}" = set; then
16001   echo $ECHO_N "(cached) $ECHO_C" >&6
16002 else
16003           if test "$cross_compiling" = yes; then :
16004   lt_cv_dlopen_self_static=cross
16005 else
16006   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16007   lt_status=$lt_dlunknown
16008   cat > conftest.$ac_ext <<EOF
16009 #line 16009 "configure"
16010 #include "confdefs.h"
16011
16012 #if HAVE_DLFCN_H
16013 #include <dlfcn.h>
16014 #endif
16015
16016 #include <stdio.h>
16017
16018 #ifdef RTLD_GLOBAL
16019 #  define LT_DLGLOBAL           RTLD_GLOBAL
16020 #else
16021 #  ifdef DL_GLOBAL
16022 #    define LT_DLGLOBAL         DL_GLOBAL
16023 #  else
16024 #    define LT_DLGLOBAL         0
16025 #  endif
16026 #endif
16027
16028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16029    find out it does not work in some platform. */
16030 #ifndef LT_DLLAZY_OR_NOW
16031 #  ifdef RTLD_LAZY
16032 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16033 #  else
16034 #    ifdef DL_LAZY
16035 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16036 #    else
16037 #      ifdef RTLD_NOW
16038 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16039 #      else
16040 #        ifdef DL_NOW
16041 #          define LT_DLLAZY_OR_NOW      DL_NOW
16042 #        else
16043 #          define LT_DLLAZY_OR_NOW      0
16044 #        endif
16045 #      endif
16046 #    endif
16047 #  endif
16048 #endif
16049
16050 #ifdef __cplusplus
16051 extern "C" void exit (int);
16052 #endif
16053
16054 void fnord() { int i=42;}
16055 int main ()
16056 {
16057   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16058   int status = $lt_dlunknown;
16059
16060   if (self)
16061     {
16062       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16063       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16064       /* dlclose (self); */
16065     }
16066
16067     exit (status);
16068 }
16069 EOF
16070   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16071   (eval $ac_link) 2>&5
16072   ac_status=$?
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16075     (./conftest; exit; ) 2>/dev/null
16076     lt_status=$?
16077     case x$lt_status in
16078       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16079       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16080       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16081     esac
16082   else :
16083     # compilation failed
16084     lt_cv_dlopen_self_static=no
16085   fi
16086 fi
16087 rm -fr conftest*
16088
16089
16090 fi
16091 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16092 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16093     fi
16094
16095     CPPFLAGS="$save_CPPFLAGS"
16096     LDFLAGS="$save_LDFLAGS"
16097     LIBS="$save_LIBS"
16098     ;;
16099   esac
16100
16101   case $lt_cv_dlopen_self in
16102   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16103   *) enable_dlopen_self=unknown ;;
16104   esac
16105
16106   case $lt_cv_dlopen_self_static in
16107   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16108   *) enable_dlopen_self_static=unknown ;;
16109   esac
16110 fi
16111
16112
16113 # The else clause should only fire when bootstrapping the
16114 # libtool distribution, otherwise you forgot to ship ltmain.sh
16115 # with your package, and you will get complaints that there are
16116 # no rules to generate ltmain.sh.
16117 if test -f "$ltmain"; then
16118   # See if we are running on zsh, and set the options which allow our commands through
16119   # without removal of \ escapes.
16120   if test -n "${ZSH_VERSION+set}" ; then
16121     setopt NO_GLOB_SUBST
16122   fi
16123   # Now quote all the things that may contain metacharacters while being
16124   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16125   # variables and quote the copies for generation of the libtool script.
16126   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16127     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16128     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16129     deplibs_check_method reload_flag reload_cmds need_locks \
16130     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16131     lt_cv_sys_global_symbol_to_c_name_address \
16132     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16133     old_postinstall_cmds old_postuninstall_cmds \
16134     compiler_CXX \
16135     CC_CXX \
16136     LD_CXX \
16137     lt_prog_compiler_wl_CXX \
16138     lt_prog_compiler_pic_CXX \
16139     lt_prog_compiler_static_CXX \
16140     lt_prog_compiler_no_builtin_flag_CXX \
16141     export_dynamic_flag_spec_CXX \
16142     thread_safe_flag_spec_CXX \
16143     whole_archive_flag_spec_CXX \
16144     enable_shared_with_static_runtimes_CXX \
16145     old_archive_cmds_CXX \
16146     old_archive_from_new_cmds_CXX \
16147     predep_objects_CXX \
16148     postdep_objects_CXX \
16149     predeps_CXX \
16150     postdeps_CXX \
16151     compiler_lib_search_path_CXX \
16152     archive_cmds_CXX \
16153     archive_expsym_cmds_CXX \
16154     postinstall_cmds_CXX \
16155     postuninstall_cmds_CXX \
16156     old_archive_from_expsyms_cmds_CXX \
16157     allow_undefined_flag_CXX \
16158     no_undefined_flag_CXX \
16159     export_symbols_cmds_CXX \
16160     hardcode_libdir_flag_spec_CXX \
16161     hardcode_libdir_flag_spec_ld_CXX \
16162     hardcode_libdir_separator_CXX \
16163     hardcode_automatic_CXX \
16164     module_cmds_CXX \
16165     module_expsym_cmds_CXX \
16166     lt_cv_prog_compiler_c_o_CXX \
16167     exclude_expsyms_CXX \
16168     include_expsyms_CXX; do
16169
16170     case $var in
16171     old_archive_cmds_CXX | \
16172     old_archive_from_new_cmds_CXX | \
16173     archive_cmds_CXX | \
16174     archive_expsym_cmds_CXX | \
16175     module_cmds_CXX | \
16176     module_expsym_cmds_CXX | \
16177     old_archive_from_expsyms_cmds_CXX | \
16178     export_symbols_cmds_CXX | \
16179     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16180     postinstall_cmds | postuninstall_cmds | \
16181     old_postinstall_cmds | old_postuninstall_cmds | \
16182     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16183       # Double-quote double-evaled strings.
16184       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16185       ;;
16186     *)
16187       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16188       ;;
16189     esac
16190   done
16191
16192   case $lt_echo in
16193   *'\$0 --fallback-echo"')
16194     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16195     ;;
16196   esac
16197
16198 cfgfile="$ofile"
16199
16200   cat <<__EOF__ >> "$cfgfile"
16201 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16202
16203 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16204
16205 # Shell to use when invoking shell scripts.
16206 SHELL=$lt_SHELL
16207
16208 # Whether or not to build shared libraries.
16209 build_libtool_libs=$enable_shared
16210
16211 # Whether or not to build static libraries.
16212 build_old_libs=$enable_static
16213
16214 # Whether or not to add -lc for building shared libraries.
16215 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16216
16217 # Whether or not to disallow shared libs when runtime libs are static
16218 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16219
16220 # Whether or not to optimize for fast installation.
16221 fast_install=$enable_fast_install
16222
16223 # The host system.
16224 host_alias=$host_alias
16225 host=$host
16226
16227 # An echo program that does not interpret backslashes.
16228 echo=$lt_echo
16229
16230 # The archiver.
16231 AR=$lt_AR
16232 AR_FLAGS=$lt_AR_FLAGS
16233
16234 # A C compiler.
16235 LTCC=$lt_LTCC
16236
16237 # A language-specific compiler.
16238 CC=$lt_compiler_CXX
16239
16240 # Is the compiler the GNU C compiler?
16241 with_gcc=$GCC_CXX
16242
16243 # An ERE matcher.
16244 EGREP=$lt_EGREP
16245
16246 # The linker used to build libraries.
16247 LD=$lt_LD_CXX
16248
16249 # Whether we need hard or soft links.
16250 LN_S=$lt_LN_S
16251
16252 # A BSD-compatible nm program.
16253 NM=$lt_NM
16254
16255 # A symbol stripping program
16256 STRIP=$STRIP
16257
16258 # Used to examine libraries when file_magic_cmd begins "file"
16259 MAGIC_CMD=$MAGIC_CMD
16260
16261 # Used on cygwin: DLL creation program.
16262 DLLTOOL="$DLLTOOL"
16263
16264 # Used on cygwin: object dumper.
16265 OBJDUMP="$OBJDUMP"
16266
16267 # Used on cygwin: assembler.
16268 AS="$AS"
16269
16270 # The name of the directory that contains temporary libtool files.
16271 objdir=$objdir
16272
16273 # How to create reloadable object files.
16274 reload_flag=$lt_reload_flag
16275 reload_cmds=$lt_reload_cmds
16276
16277 # How to pass a linker flag through the compiler.
16278 wl=$lt_lt_prog_compiler_wl_CXX
16279
16280 # Object file suffix (normally "o").
16281 objext="$ac_objext"
16282
16283 # Old archive suffix (normally "a").
16284 libext="$libext"
16285
16286 # Shared library suffix (normally ".so").
16287 shrext='$shrext'
16288
16289 # Executable file suffix (normally "").
16290 exeext="$exeext"
16291
16292 # Additional compiler flags for building library objects.
16293 pic_flag=$lt_lt_prog_compiler_pic_CXX
16294 pic_mode=$pic_mode
16295
16296 # What is the maximum length of a command?
16297 max_cmd_len=$lt_cv_sys_max_cmd_len
16298
16299 # Does compiler simultaneously support -c and -o options?
16300 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16301
16302 # Must we lock files when doing compilation ?
16303 need_locks=$lt_need_locks
16304
16305 # Do we need the lib prefix for modules?
16306 need_lib_prefix=$need_lib_prefix
16307
16308 # Do we need a version for libraries?
16309 need_version=$need_version
16310
16311 # Whether dlopen is supported.
16312 dlopen_support=$enable_dlopen
16313
16314 # Whether dlopen of programs is supported.
16315 dlopen_self=$enable_dlopen_self
16316
16317 # Whether dlopen of statically linked programs is supported.
16318 dlopen_self_static=$enable_dlopen_self_static
16319
16320 # Compiler flag to prevent dynamic linking.
16321 link_static_flag=$lt_lt_prog_compiler_static_CXX
16322
16323 # Compiler flag to turn off builtin functions.
16324 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16325
16326 # Compiler flag to allow reflexive dlopens.
16327 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16328
16329 # Compiler flag to generate shared objects directly from archives.
16330 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16331
16332 # Compiler flag to generate thread-safe objects.
16333 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16334
16335 # Library versioning type.
16336 version_type=$version_type
16337
16338 # Format of library name prefix.
16339 libname_spec=$lt_libname_spec
16340
16341 # List of archive names.  First name is the real one, the rest are links.
16342 # The last name is the one that the linker finds with -lNAME.
16343 library_names_spec=$lt_library_names_spec
16344
16345 # The coded name of the library, if different from the real name.
16346 soname_spec=$lt_soname_spec
16347
16348 # Commands used to build and install an old-style archive.
16349 RANLIB=$lt_RANLIB
16350 old_archive_cmds=$lt_old_archive_cmds_CXX
16351 old_postinstall_cmds=$lt_old_postinstall_cmds
16352 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16353
16354 # Create an old-style archive from a shared archive.
16355 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16356
16357 # Create a temporary old-style archive to link instead of a shared archive.
16358 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16359
16360 # Commands used to build and install a shared archive.
16361 archive_cmds=$lt_archive_cmds_CXX
16362 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16363 postinstall_cmds=$lt_postinstall_cmds
16364 postuninstall_cmds=$lt_postuninstall_cmds
16365
16366 # Commands used to build a loadable module (assumed same as above if empty)
16367 module_cmds=$lt_module_cmds_CXX
16368 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16369
16370 # Commands to strip libraries.
16371 old_striplib=$lt_old_striplib
16372 striplib=$lt_striplib
16373
16374 # Dependencies to place before the objects being linked to create a
16375 # shared library.
16376 predep_objects=$lt_predep_objects_CXX
16377
16378 # Dependencies to place after the objects being linked to create a
16379 # shared library.
16380 postdep_objects=$lt_postdep_objects_CXX
16381
16382 # Dependencies to place before the objects being linked to create a
16383 # shared library.
16384 predeps=$lt_predeps_CXX
16385
16386 # Dependencies to place after the objects being linked to create a
16387 # shared library.
16388 postdeps=$lt_postdeps_CXX
16389
16390 # The library search path used internally by the compiler when linking
16391 # a shared library.
16392 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16393
16394 # Method to check whether dependent libraries are shared objects.
16395 deplibs_check_method=$lt_deplibs_check_method
16396
16397 # Command to use when deplibs_check_method == file_magic.
16398 file_magic_cmd=$lt_file_magic_cmd
16399
16400 # Flag that allows shared libraries with undefined symbols to be built.
16401 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16402
16403 # Flag that forces no undefined symbols.
16404 no_undefined_flag=$lt_no_undefined_flag_CXX
16405
16406 # Commands used to finish a libtool library installation in a directory.
16407 finish_cmds=$lt_finish_cmds
16408
16409 # Same as above, but a single script fragment to be evaled but not shown.
16410 finish_eval=$lt_finish_eval
16411
16412 # Take the output of nm and produce a listing of raw symbols and C names.
16413 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16414
16415 # Transform the output of nm in a proper C declaration
16416 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16417
16418 # Transform the output of nm in a C name address pair
16419 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16420
16421 # This is the shared library runtime path variable.
16422 runpath_var=$runpath_var
16423
16424 # This is the shared library path variable.
16425 shlibpath_var=$shlibpath_var
16426
16427 # Is shlibpath searched before the hard-coded library search path?
16428 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16429
16430 # How to hardcode a shared library path into an executable.
16431 hardcode_action=$hardcode_action_CXX
16432
16433 # Whether we should hardcode library paths into libraries.
16434 hardcode_into_libs=$hardcode_into_libs
16435
16436 # Flag to hardcode \$libdir into a binary during linking.
16437 # This must work even if \$libdir does not exist.
16438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16439
16440 # If ld is used when linking, flag to hardcode \$libdir into
16441 # a binary during linking. This must work even if \$libdir does
16442 # not exist.
16443 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16444
16445 # Whether we need a single -rpath flag with a separated argument.
16446 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16447
16448 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16449 # resulting binary.
16450 hardcode_direct=$hardcode_direct_CXX
16451
16452 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16453 # resulting binary.
16454 hardcode_minus_L=$hardcode_minus_L_CXX
16455
16456 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16457 # the resulting binary.
16458 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16459
16460 # Set to yes if building a shared library automatically hardcodes DIR into the library
16461 # and all subsequent libraries and executables linked against it.
16462 hardcode_automatic=$hardcode_automatic_CXX
16463
16464 # Variables whose values should be saved in libtool wrapper scripts and
16465 # restored at relink time.
16466 variables_saved_for_relink="$variables_saved_for_relink"
16467
16468 # Whether libtool must link a program against all its dependency libraries.
16469 link_all_deplibs=$link_all_deplibs_CXX
16470
16471 # Compile-time system search path for libraries
16472 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16473
16474 # Run-time system search path for libraries
16475 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16476
16477 # Fix the shell variable \$srcfile for the compiler.
16478 fix_srcfile_path="$fix_srcfile_path_CXX"
16479
16480 # Set to yes if exported symbols are required.
16481 always_export_symbols=$always_export_symbols_CXX
16482
16483 # The commands to list exported symbols.
16484 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16485
16486 # The commands to extract the exported symbol list from a shared archive.
16487 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16488
16489 # Symbols that should not be listed in the preloaded symbols.
16490 exclude_expsyms=$lt_exclude_expsyms_CXX
16491
16492 # Symbols that must always be exported.
16493 include_expsyms=$lt_include_expsyms_CXX
16494
16495 # ### END LIBTOOL TAG CONFIG: $tagname
16496
16497 __EOF__
16498
16499
16500 else
16501   # If there is no Makefile yet, we rely on a make rule to execute
16502   # `config.status --recheck' to rerun these tests and create the
16503   # libtool script then.
16504   test -f Makefile && make "$ltmain"
16505 fi
16506
16507
16508 ac_ext=c
16509 ac_cpp='$CPP $CPPFLAGS'
16510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16513
16514 CC=$lt_save_CC
16515 LDCXX=$LD
16516 LD=$lt_save_LD
16517 GCC=$lt_save_GCC
16518 with_gnu_ldcxx=$with_gnu_ld
16519 with_gnu_ld=$lt_save_with_gnu_ld
16520 lt_cv_path_LDCXX=$lt_cv_path_LD
16521 lt_cv_path_LD=$lt_save_path_LD
16522 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16523 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16524
16525         else
16526           tagname=""
16527         fi
16528         ;;
16529
16530       F77)
16531         if test -n "$F77" && test "X$F77" != "Xno"; then
16532
16533 ac_ext=f
16534 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16535 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16536 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16537
16538
16539 archive_cmds_need_lc_F77=no
16540 allow_undefined_flag_F77=
16541 always_export_symbols_F77=no
16542 archive_expsym_cmds_F77=
16543 export_dynamic_flag_spec_F77=
16544 hardcode_direct_F77=no
16545 hardcode_libdir_flag_spec_F77=
16546 hardcode_libdir_flag_spec_ld_F77=
16547 hardcode_libdir_separator_F77=
16548 hardcode_minus_L_F77=no
16549 hardcode_automatic_F77=no
16550 module_cmds_F77=
16551 module_expsym_cmds_F77=
16552 link_all_deplibs_F77=unknown
16553 old_archive_cmds_F77=$old_archive_cmds
16554 no_undefined_flag_F77=
16555 whole_archive_flag_spec_F77=
16556 enable_shared_with_static_runtimes_F77=no
16557
16558 # Source file extension for f77 test sources.
16559 ac_ext=f
16560
16561 # Object file extension for compiled f77 test sources.
16562 objext=o
16563 objext_F77=$objext
16564
16565 # Code to be used in simple compile tests
16566 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16567
16568 # Code to be used in simple link tests
16569 lt_simple_link_test_code="      program t\n      end\n"
16570
16571 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16572
16573 # If no C compiler was specified, use CC.
16574 LTCC=${LTCC-"$CC"}
16575
16576 # Allow CC to be a program name with arguments.
16577 compiler=$CC
16578
16579
16580 # Allow CC to be a program name with arguments.
16581 lt_save_CC="$CC"
16582 CC=${F77-"f77"}
16583 compiler=$CC
16584 compiler_F77=$CC
16585 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16586
16587 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16588 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16589 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16590 echo "${ECHO_T}$can_build_shared" >&6; }
16591
16592 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16593 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16594 test "$can_build_shared" = "no" && enable_shared=no
16595
16596 # On AIX, shared libraries and static libraries use the same namespace, and
16597 # are all built from PIC.
16598 case "$host_os" in
16599 aix3*)
16600   test "$enable_shared" = yes && enable_static=no
16601   if test -n "$RANLIB"; then
16602     archive_cmds="$archive_cmds~\$RANLIB \$lib"
16603     postinstall_cmds='$RANLIB $lib'
16604   fi
16605   ;;
16606 aix4*)
16607   test "$enable_shared" = yes && enable_static=no
16608   ;;
16609 esac
16610 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16611 echo "${ECHO_T}$enable_shared" >&6; }
16612
16613 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16614 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16615 # Make sure either enable_shared or enable_static is yes.
16616 test "$enable_shared" = yes || enable_static=yes
16617 { echo "$as_me:$LINENO: result: $enable_static" >&5
16618 echo "${ECHO_T}$enable_static" >&6; }
16619
16620 test "$ld_shlibs_F77" = no && can_build_shared=no
16621
16622 GCC_F77="$G77"
16623 LD_F77="$LD"
16624
16625 lt_prog_compiler_wl_F77=
16626 lt_prog_compiler_pic_F77=
16627 lt_prog_compiler_static_F77=
16628
16629 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16630 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16631
16632   if test "$GCC" = yes; then
16633     lt_prog_compiler_wl_F77='-Wl,'
16634     lt_prog_compiler_static_F77='-static'
16635
16636     case $host_os in
16637       aix*)
16638       # All AIX code is PIC.
16639       if test "$host_cpu" = ia64; then
16640         # AIX 5 now supports IA64 processor
16641         lt_prog_compiler_static_F77='-Bstatic'
16642       fi
16643       ;;
16644
16645     amigaos*)
16646       # FIXME: we need at least 68020 code to build shared libraries, but
16647       # adding the `-m68020' flag to GCC prevents building anything better,
16648       # like `-m68040'.
16649       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16650       ;;
16651
16652     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16653       # PIC is the default for these OSes.
16654       ;;
16655
16656     mingw* | pw32* | os2*)
16657       # This hack is so that the source file can tell whether it is being
16658       # built for inclusion in a dll (and should export symbols for example).
16659       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16660       ;;
16661
16662     darwin* | rhapsody*)
16663       # PIC is the default on this platform
16664       # Common symbols not allowed in MH_DYLIB files
16665       lt_prog_compiler_pic_F77='-fno-common'
16666       ;;
16667
16668     msdosdjgpp*)
16669       # Just because we use GCC doesn't mean we suddenly get shared libraries
16670       # on systems that don't support them.
16671       lt_prog_compiler_can_build_shared_F77=no
16672       enable_shared=no
16673       ;;
16674
16675     sysv4*MP*)
16676       if test -d /usr/nec; then
16677         lt_prog_compiler_pic_F77=-Kconform_pic
16678       fi
16679       ;;
16680
16681     hpux*)
16682       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16683       # not for PA HP-UX.
16684       case "$host_cpu" in
16685       hppa*64*|ia64*)
16686         # +Z the default
16687         ;;
16688       *)
16689         lt_prog_compiler_pic_F77='-fPIC'
16690         ;;
16691       esac
16692       ;;
16693
16694     *)
16695       lt_prog_compiler_pic_F77='-fPIC'
16696       ;;
16697     esac
16698   else
16699     # PORTME Check for flag to pass linker flags through the system compiler.
16700     case $host_os in
16701     aix*)
16702       lt_prog_compiler_wl_F77='-Wl,'
16703       if test "$host_cpu" = ia64; then
16704         # AIX 5 now supports IA64 processor
16705         lt_prog_compiler_static_F77='-Bstatic'
16706       else
16707         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16708       fi
16709       ;;
16710
16711     mingw* | pw32* | os2*)
16712       # This hack is so that the source file can tell whether it is being
16713       # built for inclusion in a dll (and should export symbols for example).
16714       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16715       ;;
16716
16717     hpux9* | hpux10* | hpux11*)
16718       lt_prog_compiler_wl_F77='-Wl,'
16719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16720       # not for PA HP-UX.
16721       case "$host_cpu" in
16722       hppa*64*|ia64*)
16723         # +Z the default
16724         ;;
16725       *)
16726         lt_prog_compiler_pic_F77='+Z'
16727         ;;
16728       esac
16729       # Is there a better lt_prog_compiler_static that works with the bundled CC?
16730       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16731       ;;
16732
16733     irix5* | irix6* | nonstopux*)
16734       lt_prog_compiler_wl_F77='-Wl,'
16735       # PIC (with -KPIC) is the default.
16736       lt_prog_compiler_static_F77='-non_shared'
16737       ;;
16738
16739     newsos6)
16740       lt_prog_compiler_pic_F77='-KPIC'
16741       lt_prog_compiler_static_F77='-Bstatic'
16742       ;;
16743
16744     linux*)
16745       case $CC in
16746       icc* | ecc*)
16747         lt_prog_compiler_wl_F77='-Wl,'
16748         lt_prog_compiler_pic_F77='-KPIC'
16749         lt_prog_compiler_static_F77='-static'
16750         ;;
16751       ccc*)
16752         lt_prog_compiler_wl_F77='-Wl,'
16753         # All Alpha code is PIC.
16754         lt_prog_compiler_static_F77='-non_shared'
16755         ;;
16756       esac
16757       ;;
16758
16759     osf3* | osf4* | osf5*)
16760       lt_prog_compiler_wl_F77='-Wl,'
16761       # All OSF/1 code is PIC.
16762       lt_prog_compiler_static_F77='-non_shared'
16763       ;;
16764
16765     sco3.2v5*)
16766       lt_prog_compiler_pic_F77='-Kpic'
16767       lt_prog_compiler_static_F77='-dn'
16768       ;;
16769
16770     solaris*)
16771       lt_prog_compiler_wl_F77='-Wl,'
16772       lt_prog_compiler_pic_F77='-KPIC'
16773       lt_prog_compiler_static_F77='-Bstatic'
16774       ;;
16775
16776     sunos4*)
16777       lt_prog_compiler_wl_F77='-Qoption ld '
16778       lt_prog_compiler_pic_F77='-PIC'
16779       lt_prog_compiler_static_F77='-Bstatic'
16780       ;;
16781
16782     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16783       lt_prog_compiler_wl_F77='-Wl,'
16784       lt_prog_compiler_pic_F77='-KPIC'
16785       lt_prog_compiler_static_F77='-Bstatic'
16786       ;;
16787
16788     sysv4*MP*)
16789       if test -d /usr/nec ;then
16790         lt_prog_compiler_pic_F77='-Kconform_pic'
16791         lt_prog_compiler_static_F77='-Bstatic'
16792       fi
16793       ;;
16794
16795     uts4*)
16796       lt_prog_compiler_pic_F77='-pic'
16797       lt_prog_compiler_static_F77='-Bstatic'
16798       ;;
16799
16800     *)
16801       lt_prog_compiler_can_build_shared_F77=no
16802       ;;
16803     esac
16804   fi
16805
16806 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16807 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
16808
16809 #
16810 # Check to make sure the PIC flag actually works.
16811 #
16812 if test -n "$lt_prog_compiler_pic_F77"; then
16813
16814 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16815 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
16816 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   lt_prog_compiler_pic_works_F77=no
16820   ac_outfile=conftest.$ac_objext
16821    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16822    lt_compiler_flag="$lt_prog_compiler_pic_F77"
16823    # Insert the option either (1) after the last *FLAGS variable, or
16824    # (2) before a word containing "conftest.", or (3) at the end.
16825    # Note that $ac_compile itself does not contain backslashes and begins
16826    # with a dollar sign (not a hyphen), so the echo should work correctly.
16827    # The option is referenced via a variable to avoid confusing sed.
16828    lt_compile=`echo "$ac_compile" | $SED \
16829    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16831    -e 's:$: $lt_compiler_flag:'`
16832    (eval echo "\"\$as_me:16832: $lt_compile\"" >&5)
16833    (eval "$lt_compile" 2>conftest.err)
16834    ac_status=$?
16835    cat conftest.err >&5
16836    echo "$as_me:16836: \$? = $ac_status" >&5
16837    if (exit $ac_status) && test -s "$ac_outfile"; then
16838      # The compiler can only warn and ignore the option if not recognized
16839      # So say no if there are warnings
16840      if test ! -s conftest.err; then
16841        lt_prog_compiler_pic_works_F77=yes
16842      fi
16843    fi
16844    $rm conftest*
16845
16846 fi
16847 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16848 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
16849
16850 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16851     case $lt_prog_compiler_pic_F77 in
16852      "" | " "*) ;;
16853      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16854      esac
16855 else
16856     lt_prog_compiler_pic_F77=
16857      lt_prog_compiler_can_build_shared_F77=no
16858 fi
16859
16860 fi
16861 case "$host_os" in
16862   # For platforms which do not support PIC, -DPIC is meaningless:
16863   *djgpp*)
16864     lt_prog_compiler_pic_F77=
16865     ;;
16866   *)
16867     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16868     ;;
16869 esac
16870
16871 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16872 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16873 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16874   echo $ECHO_N "(cached) $ECHO_C" >&6
16875 else
16876   lt_cv_prog_compiler_c_o_F77=no
16877    $rm -r conftest 2>/dev/null
16878    mkdir conftest
16879    cd conftest
16880    mkdir out
16881    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16882
16883    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
16884    # that will create temporary files in the current directory regardless of
16885    # the output directory.  Thus, making CWD read-only will cause this test
16886    # to fail, enabling locking or at least warning the user not to do parallel
16887    # builds.
16888    chmod -w .
16889
16890    lt_compiler_flag="-o out/conftest2.$ac_objext"
16891    # Insert the option either (1) after the last *FLAGS variable, or
16892    # (2) before a word containing "conftest.", or (3) at the end.
16893    # Note that $ac_compile itself does not contain backslashes and begins
16894    # with a dollar sign (not a hyphen), so the echo should work correctly.
16895    lt_compile=`echo "$ac_compile" | $SED \
16896    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16897    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16898    -e 's:$: $lt_compiler_flag:'`
16899    (eval echo "\"\$as_me:16899: $lt_compile\"" >&5)
16900    (eval "$lt_compile" 2>out/conftest.err)
16901    ac_status=$?
16902    cat out/conftest.err >&5
16903    echo "$as_me:16903: \$? = $ac_status" >&5
16904    if (exit $ac_status) && test -s out/conftest2.$ac_objext
16905    then
16906      # The compiler can only warn and ignore the option if not recognized
16907      # So say no if there are warnings
16908      if test ! -s out/conftest.err; then
16909        lt_cv_prog_compiler_c_o_F77=yes
16910      fi
16911    fi
16912    chmod u+w .
16913    $rm conftest* out/*
16914    rmdir out
16915    cd ..
16916    rmdir conftest
16917    $rm conftest*
16918
16919 fi
16920 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16921 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
16922
16923
16924 hard_links="nottested"
16925 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16926   # do not overwrite the value of need_locks provided by the user
16927   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16928 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16929   hard_links=yes
16930   $rm conftest*
16931   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16932   touch conftest.a
16933   ln conftest.a conftest.b 2>&5 || hard_links=no
16934   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16935   { echo "$as_me:$LINENO: result: $hard_links" >&5
16936 echo "${ECHO_T}$hard_links" >&6; }
16937   if test "$hard_links" = no; then
16938     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16939 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16940     need_locks=warn
16941   fi
16942 else
16943   need_locks=no
16944 fi
16945
16946 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16947 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16948
16949   runpath_var=
16950   allow_undefined_flag_F77=
16951   enable_shared_with_static_runtimes_F77=no
16952   archive_cmds_F77=
16953   archive_expsym_cmds_F77=
16954   old_archive_From_new_cmds_F77=
16955   old_archive_from_expsyms_cmds_F77=
16956   export_dynamic_flag_spec_F77=
16957   whole_archive_flag_spec_F77=
16958   thread_safe_flag_spec_F77=
16959   hardcode_libdir_flag_spec_F77=
16960   hardcode_libdir_flag_spec_ld_F77=
16961   hardcode_libdir_separator_F77=
16962   hardcode_direct_F77=no
16963   hardcode_minus_L_F77=no
16964   hardcode_shlibpath_var_F77=unsupported
16965   link_all_deplibs_F77=unknown
16966   hardcode_automatic_F77=no
16967   module_cmds_F77=
16968   module_expsym_cmds_F77=
16969   always_export_symbols_F77=no
16970   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16971   # include_expsyms should be a list of space-separated symbols to be *always*
16972   # included in the symbol list
16973   include_expsyms_F77=
16974   # exclude_expsyms can be an extended regexp of symbols to exclude
16975   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16976   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16977   # as well as any symbol that contains `d'.
16978   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16979   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16980   # platforms (ab)use it in PIC code, but their linkers get confused if
16981   # the symbol is explicitly referenced.  Since portable code cannot
16982   # rely on this symbol name, it's probably fine to never include it in
16983   # preloaded symbol tables.
16984   extract_expsyms_cmds=
16985
16986   case $host_os in
16987   cygwin* | mingw* | pw32*)
16988     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16989     # When not using gcc, we currently assume that we are using
16990     # Microsoft Visual C++.
16991     if test "$GCC" != yes; then
16992       with_gnu_ld=no
16993     fi
16994     ;;
16995   openbsd*)
16996     with_gnu_ld=no
16997     ;;
16998   esac
16999
17000   ld_shlibs_F77=yes
17001   if test "$with_gnu_ld" = yes; then
17002     # If archive_cmds runs LD, not CC, wlarc should be empty
17003     wlarc='${wl}'
17004
17005     # See if GNU ld supports shared libraries.
17006     case $host_os in
17007     aix3* | aix4* | aix5*)
17008       # On AIX/PPC, the GNU linker is very broken
17009       if test "$host_cpu" != ia64; then
17010         ld_shlibs_F77=no
17011         cat <<EOF 1>&2
17012
17013 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17014 *** to be unable to reliably create shared libraries on AIX.
17015 *** Therefore, libtool is disabling shared libraries support.  If you
17016 *** really care for shared libraries, you may want to modify your PATH
17017 *** so that a non-GNU linker is found, and then restart.
17018
17019 EOF
17020       fi
17021       ;;
17022
17023     amigaos*)
17024       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)'
17025       hardcode_libdir_flag_spec_F77='-L$libdir'
17026       hardcode_minus_L_F77=yes
17027
17028       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17029       # that the semantics of dynamic libraries on AmigaOS, at least up
17030       # to version 4, is to share data among multiple programs linked
17031       # with the same dynamic library.  Since this doesn't match the
17032       # behavior of shared libraries on other platforms, we can't use
17033       # them.
17034       ld_shlibs_F77=no
17035       ;;
17036
17037     beos*)
17038       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17039         allow_undefined_flag_F77=unsupported
17040         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17041         # support --undefined.  This deserves some investigation.  FIXME
17042         archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17043       else
17044         ld_shlibs_F77=no
17045       fi
17046       ;;
17047
17048     cygwin* | mingw* | pw32*)
17049       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17050       # as there is no search path for DLLs.
17051       hardcode_libdir_flag_spec_F77='-L$libdir'
17052       allow_undefined_flag_F77=no
17053       always_export_symbols_F77=no
17054       enable_shared_with_static_runtimes_F77=yes
17055       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17056
17057       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17058         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17059         # If the export-symbols file already is a .def file (1st line
17060         # is EXPORTS), use it as is; otherwise, prepend...
17061         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17062           cp $export_symbols $output_objdir/$soname.def;
17063         else
17064           echo EXPORTS > $output_objdir/$soname.def;
17065           cat $export_symbols >> $output_objdir/$soname.def;
17066         fi~
17067         $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17068       else
17069         ld_shlibs=no
17070       fi
17071       ;;
17072
17073     netbsd*)
17074       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17075         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17076         wlarc=
17077       else
17078         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17079         archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17080       fi
17081       ;;
17082
17083     solaris* | sysv5*)
17084       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17085         ld_shlibs_F77=no
17086         cat <<EOF 1>&2
17087
17088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17089 *** create shared libraries on Solaris systems.  Therefore, libtool
17090 *** is disabling shared libraries support.  We urge you to upgrade GNU
17091 *** binutils to release 2.9.1 or newer.  Another option is to modify
17092 *** your PATH or compiler configuration so that the native linker is
17093 *** used, and then restart.
17094
17095 EOF
17096       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17097         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17098         archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17099       else
17100         ld_shlibs_F77=no
17101       fi
17102       ;;
17103
17104     sunos4*)
17105       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17106       wlarc=
17107       hardcode_direct_F77=yes
17108       hardcode_shlibpath_var_F77=no
17109       ;;
17110
17111     *)
17112       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17113         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17114         archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17115       else
17116         ld_shlibs_F77=no
17117       fi
17118       ;;
17119     esac
17120
17121     if test "$ld_shlibs_F77" = yes; then
17122       runpath_var=LD_RUN_PATH
17123       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17124       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17125       # ancient GNU ld didn't support --whole-archive et. al.
17126       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17127         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17128       else
17129         whole_archive_flag_spec_F77=
17130       fi
17131     fi
17132   else
17133     # PORTME fill in a description of your system's linker (not GNU ld)
17134     case $host_os in
17135     aix3*)
17136       allow_undefined_flag_F77=unsupported
17137       always_export_symbols_F77=yes
17138       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'
17139       # Note: this linker hardcodes the directories in LIBPATH if there
17140       # are no directories specified by -L.
17141       hardcode_minus_L_F77=yes
17142       if test "$GCC" = yes && test -z "$link_static_flag"; then
17143         # Neither direct hardcoding nor static linking is supported with a
17144         # broken collect2.
17145         hardcode_direct_F77=unsupported
17146       fi
17147       ;;
17148
17149     aix4* | aix5*)
17150       if test "$host_cpu" = ia64; then
17151         # On IA64, the linker does run time linking by default, so we don't
17152         # have to do anything special.
17153         aix_use_runtimelinking=no
17154         exp_sym_flag='-Bexport'
17155         no_entry_flag=""
17156       else
17157         # If we're using GNU nm, then we don't want the "-C" option.
17158         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17159         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17160           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'
17161         else
17162           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'
17163         fi
17164
17165         # KDE requires run time linking.  Make it the default.
17166         aix_use_runtimelinking=yes
17167         exp_sym_flag='-bexport'
17168         no_entry_flag='-bnoentry'
17169       fi
17170
17171       # When large executables or shared objects are built, AIX ld can
17172       # have problems creating the table of contents.  If linking a library
17173       # or program results in "error TOC overflow" add -mminimal-toc to
17174       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17175       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17176
17177       archive_cmds_F77=''
17178       hardcode_direct_F77=yes
17179       hardcode_libdir_separator_F77=':'
17180       link_all_deplibs_F77=yes
17181
17182       if test "$GCC" = yes; then
17183         case $host_os in aix4.012|aix4.012.*)
17184         # We only want to do this on AIX 4.2 and lower, the check
17185         # below for broken collect2 doesn't work under 4.3+
17186           collect2name=`${CC} -print-prog-name=collect2`
17187           if test -f "$collect2name" && \
17188            strings "$collect2name" | grep resolve_lib_name >/dev/null
17189           then
17190           # We have reworked collect2
17191           hardcode_direct_F77=yes
17192           else
17193           # We have old collect2
17194           hardcode_direct_F77=unsupported
17195           # It fails to find uninstalled libraries when the uninstalled
17196           # path is not listed in the libpath.  Setting hardcode_minus_L
17197           # to unsupported forces relinking
17198           hardcode_minus_L_F77=yes
17199           hardcode_libdir_flag_spec_F77='-L$libdir'
17200           hardcode_libdir_separator_F77=
17201           fi
17202         esac
17203         shared_flag='-shared'
17204       else
17205         # not using gcc
17206         if test "$host_cpu" = ia64; then
17207         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17208         # chokes on -Wl,-G. The following line is correct:
17209           shared_flag='-G'
17210         else
17211         if test "$aix_use_runtimelinking" = yes; then
17212             shared_flag='-qmkshrobj ${wl}-G'
17213           else
17214             shared_flag='-qmkshrobj'
17215         fi
17216         fi
17217       fi
17218
17219       # Let the compiler handle the export list.
17220       always_export_symbols_F77=no
17221       if test "$aix_use_runtimelinking" = yes; then
17222         # Warning - without using the other runtime loading flags (-brtl),
17223         # -berok will link without error, but may produce a broken library.
17224         allow_undefined_flag_F77='-berok'
17225        # Determine the default libpath from the value encoded in an empty executable.
17226         cat >conftest.$ac_ext <<_ACEOF
17227       program main
17228
17229       end
17230 _ACEOF
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (ac_try="$ac_link"
17233 case "(($ac_try" in
17234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235   *) ac_try_echo=$ac_try;;
17236 esac
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238   (eval "$ac_link") 2>conftest.er1
17239   ac_status=$?
17240   grep -v '^ *+' conftest.er1 >conftest.err
17241   rm -f conftest.er1
17242   cat conftest.err >&5
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); } && {
17245          test -z "$ac_f77_werror_flag" ||
17246          test ! -s conftest.err
17247        } && test -s conftest$ac_exeext &&
17248        $as_test_x conftest$ac_exeext; then
17249
17250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17251 }'`
17252 # Check for a 64-bit object if we didn't find anything.
17253 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17254 }'`; fi
17255 else
17256   echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258
17259
17260 fi
17261
17262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17263       conftest$ac_exeext conftest.$ac_ext
17264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17265
17266         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17267         archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
17268         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17269        else
17270         if test "$host_cpu" = ia64; then
17271           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17272           allow_undefined_flag_F77="-z nodefs"
17273           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17274         else
17275          # Determine the default libpath from the value encoded in an empty executable.
17276          cat >conftest.$ac_ext <<_ACEOF
17277       program main
17278
17279       end
17280 _ACEOF
17281 rm -f conftest.$ac_objext conftest$ac_exeext
17282 if { (ac_try="$ac_link"
17283 case "(($ac_try" in
17284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285   *) ac_try_echo=$ac_try;;
17286 esac
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288   (eval "$ac_link") 2>conftest.er1
17289   ac_status=$?
17290   grep -v '^ *+' conftest.er1 >conftest.err
17291   rm -f conftest.er1
17292   cat conftest.err >&5
17293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294   (exit $ac_status); } && {
17295          test -z "$ac_f77_werror_flag" ||
17296          test ! -s conftest.err
17297        } && test -s conftest$ac_exeext &&
17298        $as_test_x conftest$ac_exeext; then
17299
17300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17301 }'`
17302 # Check for a 64-bit object if we didn't find anything.
17303 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17304 }'`; fi
17305 else
17306   echo "$as_me: failed program was:" >&5
17307 sed 's/^/| /' conftest.$ac_ext >&5
17308
17309
17310 fi
17311
17312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17313       conftest$ac_exeext conftest.$ac_ext
17314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17315
17316          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17317           # Warning - without using the other run time loading flags,
17318           # -berok will link without error, but may produce a broken library.
17319           no_undefined_flag_F77=' ${wl}-bernotok'
17320           allow_undefined_flag_F77=' ${wl}-berok'
17321           # -bexpall does not export symbols beginning with underscore (_)
17322           always_export_symbols_F77=yes
17323           # Exported symbols can be pulled into shared objects from archives
17324           whole_archive_flag_spec_F77=' '
17325           archive_cmds_need_lc_F77=yes
17326           # This is similar to how AIX traditionally builds it's shared libraries.
17327           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17328         fi
17329       fi
17330       ;;
17331
17332     amigaos*)
17333       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)'
17334       hardcode_libdir_flag_spec_F77='-L$libdir'
17335       hardcode_minus_L_F77=yes
17336       # see comment about different semantics on the GNU ld section
17337       ld_shlibs_F77=no
17338       ;;
17339
17340     bsdi4*)
17341       export_dynamic_flag_spec_F77=-rdynamic
17342       ;;
17343
17344     cygwin* | mingw* | pw32*)
17345       # When not using gcc, we currently assume that we are using
17346       # Microsoft Visual C++.
17347       # hardcode_libdir_flag_spec is actually meaningless, as there is
17348       # no search path for DLLs.
17349       hardcode_libdir_flag_spec_F77=' '
17350       allow_undefined_flag_F77=no
17351       # Tell ltmain to make .lib files, not .a files.
17352       libext=lib
17353       # Tell ltmain to make .dll files, not .so files.
17354       shrext=".dll"
17355       # FIXME: Setting linknames here is a bad hack.
17356       archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17357       # The linker will automatically build a .lib file if we build a DLL.
17358       old_archive_From_new_cmds_F77='true'
17359       # FIXME: Should let the user specify the lib program.
17360       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17361       fix_srcfile_path='`cygpath -w "$srcfile"`'
17362       enable_shared_with_static_runtimes_F77=yes
17363       ;;
17364
17365     darwin* | rhapsody*)
17366     if test "$GXX" = yes ; then
17367       archive_cmds_need_lc_F77=no
17368       case "$host_os" in
17369       rhapsody* | darwin1.[012])
17370         allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
17371         ;;
17372       *) # Darwin 1.3 on
17373         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17374           allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17375         else
17376           case ${MACOSX_DEPLOYMENT_TARGET} in
17377             10.012)
17378               allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17379               ;;
17380             10.*)
17381               allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
17382               ;;
17383           esac
17384         fi
17385         ;;
17386       esac
17387         lt_int_apple_cc_single_mod=no
17388         output_verbose_link_cmd='echo'
17389         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17390           lt_int_apple_cc_single_mod=yes
17391         fi
17392         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17393           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
17394         else
17395         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
17396       fi
17397       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
17398       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17399         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17400           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17401         else
17402           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17403         fi
17404           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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17405       hardcode_direct_F77=no
17406       hardcode_automatic_F77=yes
17407       hardcode_shlibpath_var_F77=unsupported
17408       whole_archive_flag_spec_F77='-all_load $convenience'
17409       link_all_deplibs_F77=yes
17410     else
17411       ld_shlibs_F77=no
17412     fi
17413       ;;
17414
17415     dgux*)
17416       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17417       hardcode_libdir_flag_spec_F77='-L$libdir'
17418       hardcode_shlibpath_var_F77=no
17419       ;;
17420
17421     freebsd1*)
17422       ld_shlibs_F77=no
17423       ;;
17424
17425     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17426     # support.  Future versions do this automatically, but an explicit c++rt0.o
17427     # does not break anything, and helps significantly (at the cost of a little
17428     # extra space).
17429     freebsd2.2*)
17430       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17431       hardcode_libdir_flag_spec_F77='-R$libdir'
17432       hardcode_direct_F77=yes
17433       hardcode_shlibpath_var_F77=no
17434       ;;
17435
17436     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17437     freebsd2*)
17438       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17439       hardcode_direct_F77=yes
17440       hardcode_minus_L_F77=yes
17441       hardcode_shlibpath_var_F77=no
17442       ;;
17443
17444     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17445     freebsd*)
17446       archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
17447       hardcode_libdir_flag_spec_F77='-R$libdir'
17448       hardcode_direct_F77=yes
17449       hardcode_shlibpath_var_F77=no
17450       ;;
17451
17452     hpux9*)
17453       if test "$GCC" = yes; then
17454         archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17455       else
17456         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'
17457       fi
17458       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17459       hardcode_libdir_separator_F77=:
17460       hardcode_direct_F77=yes
17461
17462       # hardcode_minus_L: Not really in the search PATH,
17463       # but as the default location of the library.
17464       hardcode_minus_L_F77=yes
17465       export_dynamic_flag_spec_F77='${wl}-E'
17466       ;;
17467
17468     hpux10* | hpux11*)
17469       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17470         case "$host_cpu" in
17471         hppa*64*|ia64*)
17472           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17473           ;;
17474         *)
17475           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
17476           ;;
17477         esac
17478       else
17479         case "$host_cpu" in
17480         hppa*64*|ia64*)
17481           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17482           ;;
17483         *)
17484           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17485           ;;
17486         esac
17487       fi
17488       if test "$with_gnu_ld" = no; then
17489         case "$host_cpu" in
17490         hppa*64*)
17491           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17492           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17493           hardcode_libdir_separator_F77=:
17494           hardcode_direct_F77=no
17495           hardcode_shlibpath_var_F77=no
17496           ;;
17497         ia64*)
17498           hardcode_libdir_flag_spec_F77='-L$libdir'
17499           hardcode_direct_F77=no
17500           hardcode_shlibpath_var_F77=no
17501
17502           # hardcode_minus_L: Not really in the search PATH,
17503           # but as the default location of the library.
17504           hardcode_minus_L_F77=yes
17505           ;;
17506         *)
17507           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17508           hardcode_libdir_separator_F77=:
17509           hardcode_direct_F77=yes
17510           export_dynamic_flag_spec_F77='${wl}-E'
17511
17512           # hardcode_minus_L: Not really in the search PATH,
17513           # but as the default location of the library.
17514           hardcode_minus_L_F77=yes
17515           ;;
17516         esac
17517       fi
17518       ;;
17519
17520     irix5* | irix6* | nonstopux*)
17521       if test "$GCC" = yes; then
17522         archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17523       else
17524         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'
17525         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17526       fi
17527       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17528       hardcode_libdir_separator_F77=:
17529       link_all_deplibs_F77=yes
17530       ;;
17531
17532     netbsd*)
17533       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17535       else
17536         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17537       fi
17538       hardcode_libdir_flag_spec_F77='-R$libdir'
17539       hardcode_direct_F77=yes
17540       hardcode_shlibpath_var_F77=no
17541       ;;
17542
17543     newsos6)
17544       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17545       hardcode_direct_F77=yes
17546       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17547       hardcode_libdir_separator_F77=:
17548       hardcode_shlibpath_var_F77=no
17549       ;;
17550
17551     openbsd*)
17552       hardcode_direct_F77=yes
17553       hardcode_shlibpath_var_F77=no
17554       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17555         archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17556         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17557         export_dynamic_flag_spec_F77='${wl}-E'
17558       else
17559        case $host_os in
17560          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17561            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17562            hardcode_libdir_flag_spec_F77='-R$libdir'
17563            ;;
17564          *)
17565            archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17566            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17567            ;;
17568        esac
17569       fi
17570       ;;
17571
17572     os2*)
17573       hardcode_libdir_flag_spec_F77='-L$libdir'
17574       hardcode_minus_L_F77=yes
17575       allow_undefined_flag_F77=unsupported
17576       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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
17577       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17578       ;;
17579
17580     osf3*)
17581       if test "$GCC" = yes; then
17582         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17583         archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17584       else
17585         allow_undefined_flag_F77=' -expect_unresolved \*'
17586         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'
17587       fi
17588       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17589       hardcode_libdir_separator_F77=:
17590       ;;
17591
17592     osf4* | osf5*)      # as osf3* with the addition of -msym flag
17593       if test "$GCC" = yes; then
17594         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17595         archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
17596         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17597       else
17598         allow_undefined_flag_F77=' -expect_unresolved \*'
17599         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'
17600         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~
17601         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17602
17603         # Both c and cxx compiler support -rpath directly
17604         hardcode_libdir_flag_spec_F77='-rpath $libdir'
17605       fi
17606       hardcode_libdir_separator_F77=:
17607       ;;
17608
17609     sco3.2v5*)
17610       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17611       hardcode_shlibpath_var_F77=no
17612       export_dynamic_flag_spec_F77='${wl}-Bexport'
17613       runpath_var=LD_RUN_PATH
17614       hardcode_runpath_var=yes
17615       ;;
17616
17617     solaris*)
17618       no_undefined_flag_F77=' -z text'
17619       if test "$GCC" = yes; then
17620         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17621         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17622           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
17623       else
17624         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17625         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17626         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17627       fi
17628       hardcode_libdir_flag_spec_F77='-R$libdir'
17629       hardcode_shlibpath_var_F77=no
17630       case $host_os in
17631       solaris2.[0-5] | solaris2.[0-5].*) ;;
17632       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17633         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17634       esac
17635       link_all_deplibs_F77=yes
17636       ;;
17637
17638     sunos4*)
17639       if test "x$host_vendor" = xsequent; then
17640         # Use $CC to link under sequent, because it throws in some extra .o
17641         # files that make .init and .fini sections work.
17642         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
17643       else
17644         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17645       fi
17646       hardcode_libdir_flag_spec_F77='-L$libdir'
17647       hardcode_direct_F77=yes
17648       hardcode_minus_L_F77=yes
17649       hardcode_shlibpath_var_F77=no
17650       ;;
17651
17652     sysv4)
17653       case $host_vendor in
17654         sni)
17655           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656           hardcode_direct_F77=yes # is this really true???
17657         ;;
17658         siemens)
17659           ## LD is ld it makes a PLAMLIB
17660           ## CC just makes a GrossModule.
17661           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17662           reload_cmds_F77='$CC -r -o $output$reload_objs'
17663           hardcode_direct_F77=no
17664         ;;
17665         motorola)
17666           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17667           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17668         ;;
17669       esac
17670       runpath_var='LD_RUN_PATH'
17671       hardcode_shlibpath_var_F77=no
17672       ;;
17673
17674     sysv4.3*)
17675       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17676       hardcode_shlibpath_var_F77=no
17677       export_dynamic_flag_spec_F77='-Bexport'
17678       ;;
17679
17680     sysv4*MP*)
17681       if test -d /usr/nec; then
17682         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17683         hardcode_shlibpath_var_F77=no
17684         runpath_var=LD_RUN_PATH
17685         hardcode_runpath_var=yes
17686         ld_shlibs_F77=yes
17687       fi
17688       ;;
17689
17690     sysv4.2uw2*)
17691       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17692       hardcode_direct_F77=yes
17693       hardcode_minus_L_F77=no
17694       hardcode_shlibpath_var_F77=no
17695       hardcode_runpath_var=yes
17696       runpath_var=LD_RUN_PATH
17697       ;;
17698
17699    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
17700       no_undefined_flag_F77='${wl}-z ${wl}text'
17701       if test "$GCC" = yes; then
17702         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17703       else
17704         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17705       fi
17706       runpath_var='LD_RUN_PATH'
17707       hardcode_shlibpath_var_F77=no
17708       ;;
17709
17710     sysv5*)
17711       no_undefined_flag_F77=' -z text'
17712       # $CC -shared without GNU ld will not create a library from C++
17713       # object files and a static libstdc++, better avoid it by now
17714       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17715       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17716                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17717       hardcode_libdir_flag_spec_F77=
17718       hardcode_shlibpath_var_F77=no
17719       runpath_var='LD_RUN_PATH'
17720       ;;
17721
17722     uts4*)
17723       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17724       hardcode_libdir_flag_spec_F77='-L$libdir'
17725       hardcode_shlibpath_var_F77=no
17726       ;;
17727
17728     *)
17729       ld_shlibs_F77=no
17730       ;;
17731     esac
17732   fi
17733
17734 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17735 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17736 test "$ld_shlibs_F77" = no && can_build_shared=no
17737
17738 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17739 if test "$GCC" = yes; then
17740   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17741 fi
17742
17743 #
17744 # Do we need to explicitly link libc?
17745 #
17746 case "x$archive_cmds_need_lc_F77" in
17747 x|xyes)
17748   # Assume -lc should be added
17749   archive_cmds_need_lc_F77=yes
17750
17751   if test "$enable_shared" = yes && test "$GCC" = yes; then
17752     case $archive_cmds_F77 in
17753     *'~'*)
17754       # FIXME: we may have to deal with multi-command sequences.
17755       ;;
17756     '$CC '*)
17757       # Test whether the compiler implicitly links with -lc since on some
17758       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17759       # to ld, don't add -lc before -lgcc.
17760       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17761 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17762       $rm conftest*
17763       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17764
17765       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17766   (eval $ac_compile) 2>&5
17767   ac_status=$?
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } 2>conftest.err; then
17770         soname=conftest
17771         lib=conftest
17772         libobjs=conftest.$ac_objext
17773         deplibs=
17774         wl=$lt_prog_compiler_wl_F77
17775         compiler_flags=-v
17776         linker_flags=-v
17777         verstring=
17778         output_objdir=.
17779         libname=conftest
17780         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17781         allow_undefined_flag_F77=
17782         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17783   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17784   ac_status=$?
17785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786   (exit $ac_status); }
17787         then
17788           archive_cmds_need_lc_F77=no
17789         else
17790           archive_cmds_need_lc_F77=yes
17791         fi
17792         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17793       else
17794         cat conftest.err 1>&5
17795       fi
17796       $rm conftest*
17797       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17798 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
17799       ;;
17800     esac
17801   fi
17802   ;;
17803 esac
17804
17805 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17806 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17807 library_names_spec=
17808 libname_spec='lib$name'
17809 soname_spec=
17810 shrext=".so"
17811 postinstall_cmds=
17812 postuninstall_cmds=
17813 finish_cmds=
17814 finish_eval=
17815 shlibpath_var=
17816 shlibpath_overrides_runpath=unknown
17817 version_type=none
17818 dynamic_linker="$host_os ld.so"
17819 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17821 need_lib_prefix=unknown
17822 hardcode_into_libs=no
17823
17824 # when you set need_version to no, make sure it does not cause -set_version
17825 # flags to be left without arguments
17826 need_version=unknown
17827
17828 case $host_os in
17829 aix3*)
17830   version_type=linux
17831   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17832   shlibpath_var=LIBPATH
17833
17834   # AIX 3 has no versioning support, so we append a major version to the name.
17835   soname_spec='${libname}${release}${shared_ext}$major'
17836   ;;
17837
17838 aix4* | aix5*)
17839   version_type=linux
17840   need_lib_prefix=no
17841   need_version=no
17842   hardcode_into_libs=yes
17843   if test "$host_cpu" = ia64; then
17844     # AIX 5 supports IA64
17845     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17846     shlibpath_var=LD_LIBRARY_PATH
17847   else
17848     # With GCC up to 2.95.x, collect2 would create an import file
17849     # for dependence libraries.  The import file would start with
17850     # the line `#! .'.  This would cause the generated library to
17851     # depend on `.', always an invalid library.  This was fixed in
17852     # development snapshots of GCC prior to 3.0.
17853     case $host_os in
17854       aix4 | aix4.[01] | aix4.[01].*)
17855       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17856            echo ' yes '
17857            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17858         :
17859       else
17860         can_build_shared=no
17861       fi
17862       ;;
17863     esac
17864     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17865     # soname into executable. Probably we can add versioning support to
17866     # collect2, so additional links can be useful in future.
17867     if test "$aix_use_runtimelinking" = yes; then
17868       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17869       # instead of lib<name>.a to let people know that these are not
17870       # typical AIX shared libraries.
17871       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17872     else
17873       # We preserve .a as extension for shared libraries through AIX4.2
17874       # and later when we are not doing run time linking.
17875       library_names_spec='${libname}${release}.a $libname.a'
17876       soname_spec='${libname}${release}${shared_ext}$major'
17877     fi
17878     shlibpath_var=LIBPATH
17879   fi
17880   ;;
17881
17882 amigaos*)
17883   library_names_spec='$libname.ixlibrary $libname.a'
17884   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17885   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'
17886   ;;
17887
17888 beos*)
17889   library_names_spec='${libname}${shared_ext}'
17890   dynamic_linker="$host_os ld.so"
17891   shlibpath_var=LIBRARY_PATH
17892   ;;
17893
17894 bsdi4*)
17895   version_type=linux
17896   need_version=no
17897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17898   soname_spec='${libname}${release}${shared_ext}$major'
17899   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17900   shlibpath_var=LD_LIBRARY_PATH
17901   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17902   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17903   # the default ld.so.conf also contains /usr/contrib/lib and
17904   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17905   # libtool to hard-code these into programs
17906   ;;
17907
17908 cygwin* | mingw* | pw32*)
17909   version_type=windows
17910   shrext=".dll"
17911   need_version=no
17912   need_lib_prefix=no
17913
17914   case $GCC,$host_os in
17915   yes,cygwin* | yes,mingw* | yes,pw32*)
17916     library_names_spec='$libname.dll.a'
17917     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17918     postinstall_cmds='base_file=`basename \${file}`~
17919       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17920       dldir=$destdir/`dirname \$dlpath`~
17921       test -d \$dldir || mkdir -p \$dldir~
17922       $install_prog $dir/$dlname \$dldir/$dlname'
17923     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17924       dlpath=$dir/\$dldll~
17925        $rm \$dlpath'
17926     shlibpath_overrides_runpath=yes
17927
17928     case $host_os in
17929     cygwin*)
17930       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17931       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17932       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17933       ;;
17934     mingw*)
17935       # MinGW DLLs use traditional 'lib' prefix
17936       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17937       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17938       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17939         # It is most probably a Windows format PATH printed by
17940         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17941         # path with ; separators, and with drive letters. We can handle the
17942         # drive letters (cygwin fileutils understands them), so leave them,
17943         # especially as we might pass files found there to a mingw objdump,
17944         # which wouldn't understand a cygwinified path. Ahh.
17945         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17946       else
17947         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17948       fi
17949       ;;
17950     pw32*)
17951       # pw32 DLLs use 'pw' prefix rather than 'lib'
17952       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17953       ;;
17954     esac
17955     ;;
17956
17957   *)
17958     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17959     ;;
17960   esac
17961   dynamic_linker='Win32 ld.exe'
17962   # FIXME: first we should search . and the directory the executable is in
17963   shlibpath_var=PATH
17964   ;;
17965
17966 darwin* | rhapsody*)
17967   dynamic_linker="$host_os dyld"
17968   version_type=darwin
17969   need_lib_prefix=no
17970   need_version=no
17971   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17972   soname_spec='${libname}${release}${major}$shared_ext'
17973   shlibpath_overrides_runpath=yes
17974   shlibpath_var=DYLD_LIBRARY_PATH
17975   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17976   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17977   if test "$GCC" = yes; then
17978     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17979   else
17980     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17981   fi
17982   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17983   ;;
17984
17985 dgux*)
17986   version_type=linux
17987   need_lib_prefix=no
17988   need_version=no
17989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17990   soname_spec='${libname}${release}${shared_ext}$major'
17991   shlibpath_var=LD_LIBRARY_PATH
17992   ;;
17993
17994 freebsd1*)
17995   dynamic_linker=no
17996   ;;
17997
17998 freebsd*-gnu*)
17999   version_type=linux
18000   need_lib_prefix=no
18001   need_version=no
18002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18003   soname_spec='${libname}${release}${shared_ext}$major'
18004   shlibpath_var=LD_LIBRARY_PATH
18005   shlibpath_overrides_runpath=no
18006   hardcode_into_libs=yes
18007   dynamic_linker='GNU ld.so'
18008   ;;
18009
18010 freebsd*)
18011   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18012   version_type=freebsd-$objformat
18013   case $version_type in
18014     freebsd-elf*)
18015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18016       need_version=no
18017       need_lib_prefix=no
18018       ;;
18019     freebsd-*)
18020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18021       need_version=yes
18022       ;;
18023   esac
18024   shlibpath_var=LD_LIBRARY_PATH
18025   case $host_os in
18026   freebsd2*)
18027     shlibpath_overrides_runpath=yes
18028     ;;
18029   freebsd3.01* | freebsdelf3.01*)
18030     shlibpath_overrides_runpath=yes
18031     hardcode_into_libs=yes
18032     ;;
18033   *) # from 3.2 on
18034     shlibpath_overrides_runpath=no
18035     hardcode_into_libs=yes
18036     ;;
18037   esac
18038   ;;
18039
18040 gnu*)
18041   version_type=linux
18042   need_lib_prefix=no
18043   need_version=no
18044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18045   soname_spec='${libname}${release}${shared_ext}$major'
18046   shlibpath_var=LD_LIBRARY_PATH
18047   hardcode_into_libs=yes
18048   ;;
18049
18050 hpux9* | hpux10* | hpux11*)
18051   # Give a soname corresponding to the major version so that dld.sl refuses to
18052   # link against other versions.
18053   version_type=sunos
18054   need_lib_prefix=no
18055   need_version=no
18056   case "$host_cpu" in
18057   ia64*)
18058     shrext='.so'
18059     hardcode_into_libs=yes
18060     dynamic_linker="$host_os dld.so"
18061     shlibpath_var=LD_LIBRARY_PATH
18062     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18063     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18064     soname_spec='${libname}${release}${shared_ext}$major'
18065     if test "X$HPUX_IA64_MODE" = X32; then
18066       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18067     else
18068       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18069     fi
18070     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18071     ;;
18072    hppa*64*)
18073      shrext='.sl'
18074      hardcode_into_libs=yes
18075      dynamic_linker="$host_os dld.sl"
18076      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18077      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18078      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18079      soname_spec='${libname}${release}${shared_ext}$major'
18080      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18081      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18082      ;;
18083    *)
18084     shrext='.sl'
18085     dynamic_linker="$host_os dld.sl"
18086     shlibpath_var=SHLIB_PATH
18087     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18088     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18089     soname_spec='${libname}${release}${shared_ext}$major'
18090     ;;
18091   esac
18092   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18093   postinstall_cmds='chmod 555 $lib'
18094   ;;
18095
18096 irix5* | irix6* | nonstopux*)
18097   case $host_os in
18098     nonstopux*) version_type=nonstopux ;;
18099     *)
18100         if test "$lt_cv_prog_gnu_ld" = yes; then
18101                 version_type=linux
18102         else
18103                 version_type=irix
18104         fi ;;
18105   esac
18106   need_lib_prefix=no
18107   need_version=no
18108   soname_spec='${libname}${release}${shared_ext}$major'
18109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18110   case $host_os in
18111   irix5* | nonstopux*)
18112     libsuff= shlibsuff=
18113     ;;
18114   *)
18115     case $LD in # libtool.m4 will add one of these switches to LD
18116     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18117       libsuff= shlibsuff= libmagic=32-bit;;
18118     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18119       libsuff=32 shlibsuff=N32 libmagic=N32;;
18120     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18121       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18122     *) libsuff= shlibsuff= libmagic=never-match;;
18123     esac
18124     ;;
18125   esac
18126   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18127   shlibpath_overrides_runpath=no
18128   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18129   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18130   hardcode_into_libs=yes
18131   ;;
18132
18133 # No shared lib support for Linux oldld, aout, or coff.
18134 linux*oldld* | linux*aout* | linux*coff*)
18135   dynamic_linker=no
18136   ;;
18137
18138 # This must be Linux ELF.
18139 linux*)
18140   version_type=linux
18141   need_lib_prefix=no
18142   need_version=no
18143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18144   soname_spec='${libname}${release}${shared_ext}$major'
18145   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18146   libsuff=
18147   if test "x$LINUX_64_MODE" = x64; then
18148     # Some platforms are per default 64-bit, so there's no /lib64
18149     if test -d /lib64; then
18150       libsuff=64
18151     fi
18152   fi
18153   shlibpath_var=LD_LIBRARY_PATH
18154   shlibpath_overrides_runpath=no
18155   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18156   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18157   # This implies no fast_install, which is unacceptable.
18158   # Some rework will be needed to allow for fast_install
18159   # before this can be enabled.
18160   hardcode_into_libs=yes
18161
18162   # We used to test for /lib/ld.so.1 and disable shared libraries on
18163   # powerpc, because MkLinux only supported shared libraries with the
18164   # GNU dynamic linker.  Since this was broken with cross compilers,
18165   # most powerpc-linux boxes support dynamic linking these days and
18166   # people can always --disable-shared, the test was removed, and we
18167   # assume the GNU/Linux dynamic linker is in use.
18168   dynamic_linker='GNU/Linux ld.so'
18169   ;;
18170
18171 netbsd*)
18172   version_type=sunos
18173   need_lib_prefix=no
18174   need_version=no
18175   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18176     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18177     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18178     dynamic_linker='NetBSD (a.out) ld.so'
18179   else
18180     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18181     soname_spec='${libname}${release}${shared_ext}$major'
18182     dynamic_linker='NetBSD ld.elf_so'
18183   fi
18184   shlibpath_var=LD_LIBRARY_PATH
18185   shlibpath_overrides_runpath=yes
18186   hardcode_into_libs=yes
18187   ;;
18188
18189 newsos6)
18190   version_type=linux
18191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192   shlibpath_var=LD_LIBRARY_PATH
18193   shlibpath_overrides_runpath=yes
18194   ;;
18195
18196 nto-qnx*)
18197   version_type=linux
18198   need_lib_prefix=no
18199   need_version=no
18200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18201   soname_spec='${libname}${release}${shared_ext}$major'
18202   shlibpath_var=LD_LIBRARY_PATH
18203   shlibpath_overrides_runpath=yes
18204   ;;
18205
18206 openbsd*)
18207   version_type=sunos
18208   need_lib_prefix=no
18209   need_version=no
18210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18211   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18212   shlibpath_var=LD_LIBRARY_PATH
18213   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18214     case $host_os in
18215       openbsd2.[89] | openbsd2.[89].*)
18216         shlibpath_overrides_runpath=no
18217         ;;
18218       *)
18219         shlibpath_overrides_runpath=yes
18220         ;;
18221       esac
18222   else
18223     shlibpath_overrides_runpath=yes
18224   fi
18225   ;;
18226
18227 os2*)
18228   libname_spec='$name'
18229   shrext=".dll"
18230   need_lib_prefix=no
18231   library_names_spec='$libname${shared_ext} $libname.a'
18232   dynamic_linker='OS/2 ld.exe'
18233   shlibpath_var=LIBPATH
18234   ;;
18235
18236 osf3* | osf4* | osf5*)
18237   version_type=osf
18238   need_lib_prefix=no
18239   need_version=no
18240   soname_spec='${libname}${release}${shared_ext}$major'
18241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18242   shlibpath_var=LD_LIBRARY_PATH
18243   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18244   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18245   ;;
18246
18247 sco3.2v5*)
18248   version_type=osf
18249   soname_spec='${libname}${release}${shared_ext}$major'
18250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18251   shlibpath_var=LD_LIBRARY_PATH
18252   ;;
18253
18254 solaris*)
18255   version_type=linux
18256   need_lib_prefix=no
18257   need_version=no
18258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18259   soname_spec='${libname}${release}${shared_ext}$major'
18260   shlibpath_var=LD_LIBRARY_PATH
18261   shlibpath_overrides_runpath=yes
18262   hardcode_into_libs=yes
18263   # ldd complains unless libraries are executable
18264   postinstall_cmds='chmod +x $lib'
18265   ;;
18266
18267 sunos4*)
18268   version_type=sunos
18269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18270   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18271   shlibpath_var=LD_LIBRARY_PATH
18272   shlibpath_overrides_runpath=yes
18273   if test "$with_gnu_ld" = yes; then
18274     need_lib_prefix=no
18275   fi
18276   need_version=yes
18277   ;;
18278
18279 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18280   version_type=linux
18281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18282   soname_spec='${libname}${release}${shared_ext}$major'
18283   shlibpath_var=LD_LIBRARY_PATH
18284   case $host_vendor in
18285     sni)
18286       shlibpath_overrides_runpath=no
18287       need_lib_prefix=no
18288       export_dynamic_flag_spec='${wl}-Blargedynsym'
18289       runpath_var=LD_RUN_PATH
18290       ;;
18291     siemens)
18292       need_lib_prefix=no
18293       ;;
18294     motorola)
18295       need_lib_prefix=no
18296       need_version=no
18297       shlibpath_overrides_runpath=no
18298       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18299       ;;
18300   esac
18301   ;;
18302
18303 sysv4*MP*)
18304   if test -d /usr/nec ;then
18305     version_type=linux
18306     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18307     soname_spec='$libname${shared_ext}.$major'
18308     shlibpath_var=LD_LIBRARY_PATH
18309   fi
18310   ;;
18311
18312 uts4*)
18313   version_type=linux
18314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18315   soname_spec='${libname}${release}${shared_ext}$major'
18316   shlibpath_var=LD_LIBRARY_PATH
18317   ;;
18318
18319 *)
18320   dynamic_linker=no
18321   ;;
18322 esac
18323 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18324 echo "${ECHO_T}$dynamic_linker" >&6; }
18325 test "$dynamic_linker" = no && can_build_shared=no
18326
18327 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18328 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18329 hardcode_action_F77=
18330 if test -n "$hardcode_libdir_flag_spec_F77" || \
18331    test -n "$runpath_var F77" || \
18332    test "X$hardcode_automatic_F77"="Xyes" ; then
18333
18334   # We can hardcode non-existant directories.
18335   if test "$hardcode_direct_F77" != no &&
18336      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18337      # have to relink, otherwise we might link with an installed library
18338      # when we should be linking with a yet-to-be-installed one
18339      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18340      test "$hardcode_minus_L_F77" != no; then
18341     # Linking always hardcodes the temporary library directory.
18342     hardcode_action_F77=relink
18343   else
18344     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18345     hardcode_action_F77=immediate
18346   fi
18347 else
18348   # We cannot hardcode anything, or else we can only hardcode existing
18349   # directories.
18350   hardcode_action_F77=unsupported
18351 fi
18352 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18353 echo "${ECHO_T}$hardcode_action_F77" >&6; }
18354
18355 if test "$hardcode_action_F77" = relink; then
18356   # Fast installation is not supported
18357   enable_fast_install=no
18358 elif test "$shlibpath_overrides_runpath" = yes ||
18359      test "$enable_shared" = no; then
18360   # Fast installation is not necessary
18361   enable_fast_install=needless
18362 fi
18363
18364 striplib=
18365 old_striplib=
18366 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18367 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18368 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18369   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18370   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18371   { echo "$as_me:$LINENO: result: yes" >&5
18372 echo "${ECHO_T}yes" >&6; }
18373 else
18374 # FIXME - insert some real tests, host_os isn't really good enough
18375   case $host_os in
18376    darwin*)
18377        if test -n "$STRIP" ; then
18378          striplib="$STRIP -x"
18379          { echo "$as_me:$LINENO: result: yes" >&5
18380 echo "${ECHO_T}yes" >&6; }
18381        else
18382   { echo "$as_me:$LINENO: result: no" >&5
18383 echo "${ECHO_T}no" >&6; }
18384 fi
18385        ;;
18386    *)
18387   { echo "$as_me:$LINENO: result: no" >&5
18388 echo "${ECHO_T}no" >&6; }
18389     ;;
18390   esac
18391 fi
18392
18393
18394
18395 # The else clause should only fire when bootstrapping the
18396 # libtool distribution, otherwise you forgot to ship ltmain.sh
18397 # with your package, and you will get complaints that there are
18398 # no rules to generate ltmain.sh.
18399 if test -f "$ltmain"; then
18400   # See if we are running on zsh, and set the options which allow our commands through
18401   # without removal of \ escapes.
18402   if test -n "${ZSH_VERSION+set}" ; then
18403     setopt NO_GLOB_SUBST
18404   fi
18405   # Now quote all the things that may contain metacharacters while being
18406   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18407   # variables and quote the copies for generation of the libtool script.
18408   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18409     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18410     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18411     deplibs_check_method reload_flag reload_cmds need_locks \
18412     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18413     lt_cv_sys_global_symbol_to_c_name_address \
18414     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18415     old_postinstall_cmds old_postuninstall_cmds \
18416     compiler_F77 \
18417     CC_F77 \
18418     LD_F77 \
18419     lt_prog_compiler_wl_F77 \
18420     lt_prog_compiler_pic_F77 \
18421     lt_prog_compiler_static_F77 \
18422     lt_prog_compiler_no_builtin_flag_F77 \
18423     export_dynamic_flag_spec_F77 \
18424     thread_safe_flag_spec_F77 \
18425     whole_archive_flag_spec_F77 \
18426     enable_shared_with_static_runtimes_F77 \
18427     old_archive_cmds_F77 \
18428     old_archive_from_new_cmds_F77 \
18429     predep_objects_F77 \
18430     postdep_objects_F77 \
18431     predeps_F77 \
18432     postdeps_F77 \
18433     compiler_lib_search_path_F77 \
18434     archive_cmds_F77 \
18435     archive_expsym_cmds_F77 \
18436     postinstall_cmds_F77 \
18437     postuninstall_cmds_F77 \
18438     old_archive_from_expsyms_cmds_F77 \
18439     allow_undefined_flag_F77 \
18440     no_undefined_flag_F77 \
18441     export_symbols_cmds_F77 \
18442     hardcode_libdir_flag_spec_F77 \
18443     hardcode_libdir_flag_spec_ld_F77 \
18444     hardcode_libdir_separator_F77 \
18445     hardcode_automatic_F77 \
18446     module_cmds_F77 \
18447     module_expsym_cmds_F77 \
18448     lt_cv_prog_compiler_c_o_F77 \
18449     exclude_expsyms_F77 \
18450     include_expsyms_F77; do
18451
18452     case $var in
18453     old_archive_cmds_F77 | \
18454     old_archive_from_new_cmds_F77 | \
18455     archive_cmds_F77 | \
18456     archive_expsym_cmds_F77 | \
18457     module_cmds_F77 | \
18458     module_expsym_cmds_F77 | \
18459     old_archive_from_expsyms_cmds_F77 | \
18460     export_symbols_cmds_F77 | \
18461     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18462     postinstall_cmds | postuninstall_cmds | \
18463     old_postinstall_cmds | old_postuninstall_cmds | \
18464     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18465       # Double-quote double-evaled strings.
18466       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18467       ;;
18468     *)
18469       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18470       ;;
18471     esac
18472   done
18473
18474   case $lt_echo in
18475   *'\$0 --fallback-echo"')
18476     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18477     ;;
18478   esac
18479
18480 cfgfile="$ofile"
18481
18482   cat <<__EOF__ >> "$cfgfile"
18483 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18484
18485 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18486
18487 # Shell to use when invoking shell scripts.
18488 SHELL=$lt_SHELL
18489
18490 # Whether or not to build shared libraries.
18491 build_libtool_libs=$enable_shared
18492
18493 # Whether or not to build static libraries.
18494 build_old_libs=$enable_static
18495
18496 # Whether or not to add -lc for building shared libraries.
18497 build_libtool_need_lc=$archive_cmds_need_lc_F77
18498
18499 # Whether or not to disallow shared libs when runtime libs are static
18500 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18501
18502 # Whether or not to optimize for fast installation.
18503 fast_install=$enable_fast_install
18504
18505 # The host system.
18506 host_alias=$host_alias
18507 host=$host
18508
18509 # An echo program that does not interpret backslashes.
18510 echo=$lt_echo
18511
18512 # The archiver.
18513 AR=$lt_AR
18514 AR_FLAGS=$lt_AR_FLAGS
18515
18516 # A C compiler.
18517 LTCC=$lt_LTCC
18518
18519 # A language-specific compiler.
18520 CC=$lt_compiler_F77
18521
18522 # Is the compiler the GNU C compiler?
18523 with_gcc=$GCC_F77
18524
18525 # An ERE matcher.
18526 EGREP=$lt_EGREP
18527
18528 # The linker used to build libraries.
18529 LD=$lt_LD_F77
18530
18531 # Whether we need hard or soft links.
18532 LN_S=$lt_LN_S
18533
18534 # A BSD-compatible nm program.
18535 NM=$lt_NM
18536
18537 # A symbol stripping program
18538 STRIP=$STRIP
18539
18540 # Used to examine libraries when file_magic_cmd begins "file"
18541 MAGIC_CMD=$MAGIC_CMD
18542
18543 # Used on cygwin: DLL creation program.
18544 DLLTOOL="$DLLTOOL"
18545
18546 # Used on cygwin: object dumper.
18547 OBJDUMP="$OBJDUMP"
18548
18549 # Used on cygwin: assembler.
18550 AS="$AS"
18551
18552 # The name of the directory that contains temporary libtool files.
18553 objdir=$objdir
18554
18555 # How to create reloadable object files.
18556 reload_flag=$lt_reload_flag
18557 reload_cmds=$lt_reload_cmds
18558
18559 # How to pass a linker flag through the compiler.
18560 wl=$lt_lt_prog_compiler_wl_F77
18561
18562 # Object file suffix (normally "o").
18563 objext="$ac_objext"
18564
18565 # Old archive suffix (normally "a").
18566 libext="$libext"
18567
18568 # Shared library suffix (normally ".so").
18569 shrext='$shrext'
18570
18571 # Executable file suffix (normally "").
18572 exeext="$exeext"
18573
18574 # Additional compiler flags for building library objects.
18575 pic_flag=$lt_lt_prog_compiler_pic_F77
18576 pic_mode=$pic_mode
18577
18578 # What is the maximum length of a command?
18579 max_cmd_len=$lt_cv_sys_max_cmd_len
18580
18581 # Does compiler simultaneously support -c and -o options?
18582 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18583
18584 # Must we lock files when doing compilation ?
18585 need_locks=$lt_need_locks
18586
18587 # Do we need the lib prefix for modules?
18588 need_lib_prefix=$need_lib_prefix
18589
18590 # Do we need a version for libraries?
18591 need_version=$need_version
18592
18593 # Whether dlopen is supported.
18594 dlopen_support=$enable_dlopen
18595
18596 # Whether dlopen of programs is supported.
18597 dlopen_self=$enable_dlopen_self
18598
18599 # Whether dlopen of statically linked programs is supported.
18600 dlopen_self_static=$enable_dlopen_self_static
18601
18602 # Compiler flag to prevent dynamic linking.
18603 link_static_flag=$lt_lt_prog_compiler_static_F77
18604
18605 # Compiler flag to turn off builtin functions.
18606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18607
18608 # Compiler flag to allow reflexive dlopens.
18609 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18610
18611 # Compiler flag to generate shared objects directly from archives.
18612 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18613
18614 # Compiler flag to generate thread-safe objects.
18615 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18616
18617 # Library versioning type.
18618 version_type=$version_type
18619
18620 # Format of library name prefix.
18621 libname_spec=$lt_libname_spec
18622
18623 # List of archive names.  First name is the real one, the rest are links.
18624 # The last name is the one that the linker finds with -lNAME.
18625 library_names_spec=$lt_library_names_spec
18626
18627 # The coded name of the library, if different from the real name.
18628 soname_spec=$lt_soname_spec
18629
18630 # Commands used to build and install an old-style archive.
18631 RANLIB=$lt_RANLIB
18632 old_archive_cmds=$lt_old_archive_cmds_F77
18633 old_postinstall_cmds=$lt_old_postinstall_cmds
18634 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18635
18636 # Create an old-style archive from a shared archive.
18637 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18638
18639 # Create a temporary old-style archive to link instead of a shared archive.
18640 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18641
18642 # Commands used to build and install a shared archive.
18643 archive_cmds=$lt_archive_cmds_F77
18644 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18645 postinstall_cmds=$lt_postinstall_cmds
18646 postuninstall_cmds=$lt_postuninstall_cmds
18647
18648 # Commands used to build a loadable module (assumed same as above if empty)
18649 module_cmds=$lt_module_cmds_F77
18650 module_expsym_cmds=$lt_module_expsym_cmds_F77
18651
18652 # Commands to strip libraries.
18653 old_striplib=$lt_old_striplib
18654 striplib=$lt_striplib
18655
18656 # Dependencies to place before the objects being linked to create a
18657 # shared library.
18658 predep_objects=$lt_predep_objects_F77
18659
18660 # Dependencies to place after the objects being linked to create a
18661 # shared library.
18662 postdep_objects=$lt_postdep_objects_F77
18663
18664 # Dependencies to place before the objects being linked to create a
18665 # shared library.
18666 predeps=$lt_predeps_F77
18667
18668 # Dependencies to place after the objects being linked to create a
18669 # shared library.
18670 postdeps=$lt_postdeps_F77
18671
18672 # The library search path used internally by the compiler when linking
18673 # a shared library.
18674 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18675
18676 # Method to check whether dependent libraries are shared objects.
18677 deplibs_check_method=$lt_deplibs_check_method
18678
18679 # Command to use when deplibs_check_method == file_magic.
18680 file_magic_cmd=$lt_file_magic_cmd
18681
18682 # Flag that allows shared libraries with undefined symbols to be built.
18683 allow_undefined_flag=$lt_allow_undefined_flag_F77
18684
18685 # Flag that forces no undefined symbols.
18686 no_undefined_flag=$lt_no_undefined_flag_F77
18687
18688 # Commands used to finish a libtool library installation in a directory.
18689 finish_cmds=$lt_finish_cmds
18690
18691 # Same as above, but a single script fragment to be evaled but not shown.
18692 finish_eval=$lt_finish_eval
18693
18694 # Take the output of nm and produce a listing of raw symbols and C names.
18695 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18696
18697 # Transform the output of nm in a proper C declaration
18698 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18699
18700 # Transform the output of nm in a C name address pair
18701 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18702
18703 # This is the shared library runtime path variable.
18704 runpath_var=$runpath_var
18705
18706 # This is the shared library path variable.
18707 shlibpath_var=$shlibpath_var
18708
18709 # Is shlibpath searched before the hard-coded library search path?
18710 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18711
18712 # How to hardcode a shared library path into an executable.
18713 hardcode_action=$hardcode_action_F77
18714
18715 # Whether we should hardcode library paths into libraries.
18716 hardcode_into_libs=$hardcode_into_libs
18717
18718 # Flag to hardcode \$libdir into a binary during linking.
18719 # This must work even if \$libdir does not exist.
18720 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18721
18722 # If ld is used when linking, flag to hardcode \$libdir into
18723 # a binary during linking. This must work even if \$libdir does
18724 # not exist.
18725 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18726
18727 # Whether we need a single -rpath flag with a separated argument.
18728 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18729
18730 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18731 # resulting binary.
18732 hardcode_direct=$hardcode_direct_F77
18733
18734 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18735 # resulting binary.
18736 hardcode_minus_L=$hardcode_minus_L_F77
18737
18738 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18739 # the resulting binary.
18740 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18741
18742 # Set to yes if building a shared library automatically hardcodes DIR into the library
18743 # and all subsequent libraries and executables linked against it.
18744 hardcode_automatic=$hardcode_automatic_F77
18745
18746 # Variables whose values should be saved in libtool wrapper scripts and
18747 # restored at relink time.
18748 variables_saved_for_relink="$variables_saved_for_relink"
18749
18750 # Whether libtool must link a program against all its dependency libraries.
18751 link_all_deplibs=$link_all_deplibs_F77
18752
18753 # Compile-time system search path for libraries
18754 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18755
18756 # Run-time system search path for libraries
18757 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18758
18759 # Fix the shell variable \$srcfile for the compiler.
18760 fix_srcfile_path="$fix_srcfile_path_F77"
18761
18762 # Set to yes if exported symbols are required.
18763 always_export_symbols=$always_export_symbols_F77
18764
18765 # The commands to list exported symbols.
18766 export_symbols_cmds=$lt_export_symbols_cmds_F77
18767
18768 # The commands to extract the exported symbol list from a shared archive.
18769 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18770
18771 # Symbols that should not be listed in the preloaded symbols.
18772 exclude_expsyms=$lt_exclude_expsyms_F77
18773
18774 # Symbols that must always be exported.
18775 include_expsyms=$lt_include_expsyms_F77
18776
18777 # ### END LIBTOOL TAG CONFIG: $tagname
18778
18779 __EOF__
18780
18781
18782 else
18783   # If there is no Makefile yet, we rely on a make rule to execute
18784   # `config.status --recheck' to rerun these tests and create the
18785   # libtool script then.
18786   test -f Makefile && make "$ltmain"
18787 fi
18788
18789
18790 ac_ext=c
18791 ac_cpp='$CPP $CPPFLAGS'
18792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18795
18796 CC="$lt_save_CC"
18797
18798         else
18799           tagname=""
18800         fi
18801         ;;
18802
18803       GCJ)
18804         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18805
18806
18807 # Source file extension for Java test sources.
18808 ac_ext=java
18809
18810 # Object file extension for compiled Java test sources.
18811 objext=o
18812 objext_GCJ=$objext
18813
18814 # Code to be used in simple compile tests
18815 lt_simple_compile_test_code="class foo {}\n"
18816
18817 # Code to be used in simple link tests
18818 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
18819
18820 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18821
18822 # If no C compiler was specified, use CC.
18823 LTCC=${LTCC-"$CC"}
18824
18825 # Allow CC to be a program name with arguments.
18826 compiler=$CC
18827
18828
18829 # Allow CC to be a program name with arguments.
18830 lt_save_CC="$CC"
18831 CC=${GCJ-"gcj"}
18832 compiler=$CC
18833 compiler_GCJ=$CC
18834
18835 # GCJ did not exist at the time GCC didn't implicitly link libc in.
18836 archive_cmds_need_lc_GCJ=no
18837
18838 ## CAVEAT EMPTOR:
18839 ## There is no encapsulation within the following macros, do not change
18840 ## the running order or otherwise move them around unless you know exactly
18841 ## what you are doing...
18842
18843 lt_prog_compiler_no_builtin_flag_GCJ=
18844
18845 if test "$GCC" = yes; then
18846   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18847
18848
18849 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18850 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
18851 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18852   echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854   lt_cv_prog_compiler_rtti_exceptions=no
18855   ac_outfile=conftest.$ac_objext
18856    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18857    lt_compiler_flag="-fno-rtti -fno-exceptions"
18858    # Insert the option either (1) after the last *FLAGS variable, or
18859    # (2) before a word containing "conftest.", or (3) at the end.
18860    # Note that $ac_compile itself does not contain backslashes and begins
18861    # with a dollar sign (not a hyphen), so the echo should work correctly.
18862    # The option is referenced via a variable to avoid confusing sed.
18863    lt_compile=`echo "$ac_compile" | $SED \
18864    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18866    -e 's:$: $lt_compiler_flag:'`
18867    (eval echo "\"\$as_me:18867: $lt_compile\"" >&5)
18868    (eval "$lt_compile" 2>conftest.err)
18869    ac_status=$?
18870    cat conftest.err >&5
18871    echo "$as_me:18871: \$? = $ac_status" >&5
18872    if (exit $ac_status) && test -s "$ac_outfile"; then
18873      # The compiler can only warn and ignore the option if not recognized
18874      # So say no if there are warnings
18875      if test ! -s conftest.err; then
18876        lt_cv_prog_compiler_rtti_exceptions=yes
18877      fi
18878    fi
18879    $rm conftest*
18880
18881 fi
18882 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18883 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18884
18885 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18886     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18887 else
18888     :
18889 fi
18890
18891 fi
18892
18893 lt_prog_compiler_wl_GCJ=
18894 lt_prog_compiler_pic_GCJ=
18895 lt_prog_compiler_static_GCJ=
18896
18897 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18898 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18899
18900   if test "$GCC" = yes; then
18901     lt_prog_compiler_wl_GCJ='-Wl,'
18902     lt_prog_compiler_static_GCJ='-static'
18903
18904     case $host_os in
18905       aix*)
18906       # All AIX code is PIC.
18907       if test "$host_cpu" = ia64; then
18908         # AIX 5 now supports IA64 processor
18909         lt_prog_compiler_static_GCJ='-Bstatic'
18910       fi
18911       ;;
18912
18913     amigaos*)
18914       # FIXME: we need at least 68020 code to build shared libraries, but
18915       # adding the `-m68020' flag to GCC prevents building anything better,
18916       # like `-m68040'.
18917       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18918       ;;
18919
18920     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18921       # PIC is the default for these OSes.
18922       ;;
18923
18924     mingw* | pw32* | os2*)
18925       # This hack is so that the source file can tell whether it is being
18926       # built for inclusion in a dll (and should export symbols for example).
18927       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18928       ;;
18929
18930     darwin* | rhapsody*)
18931       # PIC is the default on this platform
18932       # Common symbols not allowed in MH_DYLIB files
18933       lt_prog_compiler_pic_GCJ='-fno-common'
18934       ;;
18935
18936     msdosdjgpp*)
18937       # Just because we use GCC doesn't mean we suddenly get shared libraries
18938       # on systems that don't support them.
18939       lt_prog_compiler_can_build_shared_GCJ=no
18940       enable_shared=no
18941       ;;
18942
18943     sysv4*MP*)
18944       if test -d /usr/nec; then
18945         lt_prog_compiler_pic_GCJ=-Kconform_pic
18946       fi
18947       ;;
18948
18949     hpux*)
18950       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18951       # not for PA HP-UX.
18952       case "$host_cpu" in
18953       hppa*64*|ia64*)
18954         # +Z the default
18955         ;;
18956       *)
18957         lt_prog_compiler_pic_GCJ='-fPIC'
18958         ;;
18959       esac
18960       ;;
18961
18962     *)
18963       lt_prog_compiler_pic_GCJ='-fPIC'
18964       ;;
18965     esac
18966   else
18967     # PORTME Check for flag to pass linker flags through the system compiler.
18968     case $host_os in
18969     aix*)
18970       lt_prog_compiler_wl_GCJ='-Wl,'
18971       if test "$host_cpu" = ia64; then
18972         # AIX 5 now supports IA64 processor
18973         lt_prog_compiler_static_GCJ='-Bstatic'
18974       else
18975         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18976       fi
18977       ;;
18978
18979     mingw* | pw32* | os2*)
18980       # This hack is so that the source file can tell whether it is being
18981       # built for inclusion in a dll (and should export symbols for example).
18982       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18983       ;;
18984
18985     hpux9* | hpux10* | hpux11*)
18986       lt_prog_compiler_wl_GCJ='-Wl,'
18987       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18988       # not for PA HP-UX.
18989       case "$host_cpu" in
18990       hppa*64*|ia64*)
18991         # +Z the default
18992         ;;
18993       *)
18994         lt_prog_compiler_pic_GCJ='+Z'
18995         ;;
18996       esac
18997       # Is there a better lt_prog_compiler_static that works with the bundled CC?
18998       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18999       ;;
19000
19001     irix5* | irix6* | nonstopux*)
19002       lt_prog_compiler_wl_GCJ='-Wl,'
19003       # PIC (with -KPIC) is the default.
19004       lt_prog_compiler_static_GCJ='-non_shared'
19005       ;;
19006
19007     newsos6)
19008       lt_prog_compiler_pic_GCJ='-KPIC'
19009       lt_prog_compiler_static_GCJ='-Bstatic'
19010       ;;
19011
19012     linux*)
19013       case $CC in
19014       icc* | ecc*)
19015         lt_prog_compiler_wl_GCJ='-Wl,'
19016         lt_prog_compiler_pic_GCJ='-KPIC'
19017         lt_prog_compiler_static_GCJ='-static'
19018         ;;
19019       ccc*)
19020         lt_prog_compiler_wl_GCJ='-Wl,'
19021         # All Alpha code is PIC.
19022         lt_prog_compiler_static_GCJ='-non_shared'
19023         ;;
19024       esac
19025       ;;
19026
19027     osf3* | osf4* | osf5*)
19028       lt_prog_compiler_wl_GCJ='-Wl,'
19029       # All OSF/1 code is PIC.
19030       lt_prog_compiler_static_GCJ='-non_shared'
19031       ;;
19032
19033     sco3.2v5*)
19034       lt_prog_compiler_pic_GCJ='-Kpic'
19035       lt_prog_compiler_static_GCJ='-dn'
19036       ;;
19037
19038     solaris*)
19039       lt_prog_compiler_wl_GCJ='-Wl,'
19040       lt_prog_compiler_pic_GCJ='-KPIC'
19041       lt_prog_compiler_static_GCJ='-Bstatic'
19042       ;;
19043
19044     sunos4*)
19045       lt_prog_compiler_wl_GCJ='-Qoption ld '
19046       lt_prog_compiler_pic_GCJ='-PIC'
19047       lt_prog_compiler_static_GCJ='-Bstatic'
19048       ;;
19049
19050     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19051       lt_prog_compiler_wl_GCJ='-Wl,'
19052       lt_prog_compiler_pic_GCJ='-KPIC'
19053       lt_prog_compiler_static_GCJ='-Bstatic'
19054       ;;
19055
19056     sysv4*MP*)
19057       if test -d /usr/nec ;then
19058         lt_prog_compiler_pic_GCJ='-Kconform_pic'
19059         lt_prog_compiler_static_GCJ='-Bstatic'
19060       fi
19061       ;;
19062
19063     uts4*)
19064       lt_prog_compiler_pic_GCJ='-pic'
19065       lt_prog_compiler_static_GCJ='-Bstatic'
19066       ;;
19067
19068     *)
19069       lt_prog_compiler_can_build_shared_GCJ=no
19070       ;;
19071     esac
19072   fi
19073
19074 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19075 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
19076
19077 #
19078 # Check to make sure the PIC flag actually works.
19079 #
19080 if test -n "$lt_prog_compiler_pic_GCJ"; then
19081
19082 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19083 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19084 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19085   echo $ECHO_N "(cached) $ECHO_C" >&6
19086 else
19087   lt_prog_compiler_pic_works_GCJ=no
19088   ac_outfile=conftest.$ac_objext
19089    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19090    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19091    # Insert the option either (1) after the last *FLAGS variable, or
19092    # (2) before a word containing "conftest.", or (3) at the end.
19093    # Note that $ac_compile itself does not contain backslashes and begins
19094    # with a dollar sign (not a hyphen), so the echo should work correctly.
19095    # The option is referenced via a variable to avoid confusing sed.
19096    lt_compile=`echo "$ac_compile" | $SED \
19097    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19098    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19099    -e 's:$: $lt_compiler_flag:'`
19100    (eval echo "\"\$as_me:19100: $lt_compile\"" >&5)
19101    (eval "$lt_compile" 2>conftest.err)
19102    ac_status=$?
19103    cat conftest.err >&5
19104    echo "$as_me:19104: \$? = $ac_status" >&5
19105    if (exit $ac_status) && test -s "$ac_outfile"; then
19106      # The compiler can only warn and ignore the option if not recognized
19107      # So say no if there are warnings
19108      if test ! -s conftest.err; then
19109        lt_prog_compiler_pic_works_GCJ=yes
19110      fi
19111    fi
19112    $rm conftest*
19113
19114 fi
19115 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19116 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
19117
19118 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19119     case $lt_prog_compiler_pic_GCJ in
19120      "" | " "*) ;;
19121      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19122      esac
19123 else
19124     lt_prog_compiler_pic_GCJ=
19125      lt_prog_compiler_can_build_shared_GCJ=no
19126 fi
19127
19128 fi
19129 case "$host_os" in
19130   # For platforms which do not support PIC, -DPIC is meaningless:
19131   *djgpp*)
19132     lt_prog_compiler_pic_GCJ=
19133     ;;
19134   *)
19135     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19136     ;;
19137 esac
19138
19139 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19140 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19141 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19142   echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144   lt_cv_prog_compiler_c_o_GCJ=no
19145    $rm -r conftest 2>/dev/null
19146    mkdir conftest
19147    cd conftest
19148    mkdir out
19149    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19150
19151    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19152    # that will create temporary files in the current directory regardless of
19153    # the output directory.  Thus, making CWD read-only will cause this test
19154    # to fail, enabling locking or at least warning the user not to do parallel
19155    # builds.
19156    chmod -w .
19157
19158    lt_compiler_flag="-o out/conftest2.$ac_objext"
19159    # Insert the option either (1) after the last *FLAGS variable, or
19160    # (2) before a word containing "conftest.", or (3) at the end.
19161    # Note that $ac_compile itself does not contain backslashes and begins
19162    # with a dollar sign (not a hyphen), so the echo should work correctly.
19163    lt_compile=`echo "$ac_compile" | $SED \
19164    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19165    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19166    -e 's:$: $lt_compiler_flag:'`
19167    (eval echo "\"\$as_me:19167: $lt_compile\"" >&5)
19168    (eval "$lt_compile" 2>out/conftest.err)
19169    ac_status=$?
19170    cat out/conftest.err >&5
19171    echo "$as_me:19171: \$? = $ac_status" >&5
19172    if (exit $ac_status) && test -s out/conftest2.$ac_objext
19173    then
19174      # The compiler can only warn and ignore the option if not recognized
19175      # So say no if there are warnings
19176      if test ! -s out/conftest.err; then
19177        lt_cv_prog_compiler_c_o_GCJ=yes
19178      fi
19179    fi
19180    chmod u+w .
19181    $rm conftest* out/*
19182    rmdir out
19183    cd ..
19184    rmdir conftest
19185    $rm conftest*
19186
19187 fi
19188 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19189 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19190
19191
19192 hard_links="nottested"
19193 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19194   # do not overwrite the value of need_locks provided by the user
19195   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19196 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19197   hard_links=yes
19198   $rm conftest*
19199   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19200   touch conftest.a
19201   ln conftest.a conftest.b 2>&5 || hard_links=no
19202   ln conftest.a conftest.b 2>/dev/null && hard_links=no
19203   { echo "$as_me:$LINENO: result: $hard_links" >&5
19204 echo "${ECHO_T}$hard_links" >&6; }
19205   if test "$hard_links" = no; then
19206     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19207 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19208     need_locks=warn
19209   fi
19210 else
19211   need_locks=no
19212 fi
19213
19214 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19215 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19216
19217   runpath_var=
19218   allow_undefined_flag_GCJ=
19219   enable_shared_with_static_runtimes_GCJ=no
19220   archive_cmds_GCJ=
19221   archive_expsym_cmds_GCJ=
19222   old_archive_From_new_cmds_GCJ=
19223   old_archive_from_expsyms_cmds_GCJ=
19224   export_dynamic_flag_spec_GCJ=
19225   whole_archive_flag_spec_GCJ=
19226   thread_safe_flag_spec_GCJ=
19227   hardcode_libdir_flag_spec_GCJ=
19228   hardcode_libdir_flag_spec_ld_GCJ=
19229   hardcode_libdir_separator_GCJ=
19230   hardcode_direct_GCJ=no
19231   hardcode_minus_L_GCJ=no
19232   hardcode_shlibpath_var_GCJ=unsupported
19233   link_all_deplibs_GCJ=unknown
19234   hardcode_automatic_GCJ=no
19235   module_cmds_GCJ=
19236   module_expsym_cmds_GCJ=
19237   always_export_symbols_GCJ=no
19238   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19239   # include_expsyms should be a list of space-separated symbols to be *always*
19240   # included in the symbol list
19241   include_expsyms_GCJ=
19242   # exclude_expsyms can be an extended regexp of symbols to exclude
19243   # it will be wrapped by ` (' and `)$', so one must not match beginning or
19244   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19245   # as well as any symbol that contains `d'.
19246   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19247   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19248   # platforms (ab)use it in PIC code, but their linkers get confused if
19249   # the symbol is explicitly referenced.  Since portable code cannot
19250   # rely on this symbol name, it's probably fine to never include it in
19251   # preloaded symbol tables.
19252   extract_expsyms_cmds=
19253
19254   case $host_os in
19255   cygwin* | mingw* | pw32*)
19256     # FIXME: the MSVC++ port hasn't been tested in a loooong time
19257     # When not using gcc, we currently assume that we are using
19258     # Microsoft Visual C++.
19259     if test "$GCC" != yes; then
19260       with_gnu_ld=no
19261     fi
19262     ;;
19263   openbsd*)
19264     with_gnu_ld=no
19265     ;;
19266   esac
19267
19268   ld_shlibs_GCJ=yes
19269   if test "$with_gnu_ld" = yes; then
19270     # If archive_cmds runs LD, not CC, wlarc should be empty
19271     wlarc='${wl}'
19272
19273     # See if GNU ld supports shared libraries.
19274     case $host_os in
19275     aix3* | aix4* | aix5*)
19276       # On AIX/PPC, the GNU linker is very broken
19277       if test "$host_cpu" != ia64; then
19278         ld_shlibs_GCJ=no
19279         cat <<EOF 1>&2
19280
19281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19282 *** to be unable to reliably create shared libraries on AIX.
19283 *** Therefore, libtool is disabling shared libraries support.  If you
19284 *** really care for shared libraries, you may want to modify your PATH
19285 *** so that a non-GNU linker is found, and then restart.
19286
19287 EOF
19288       fi
19289       ;;
19290
19291     amigaos*)
19292       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)'
19293       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19294       hardcode_minus_L_GCJ=yes
19295
19296       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19297       # that the semantics of dynamic libraries on AmigaOS, at least up
19298       # to version 4, is to share data among multiple programs linked
19299       # with the same dynamic library.  Since this doesn't match the
19300       # behavior of shared libraries on other platforms, we can't use
19301       # them.
19302       ld_shlibs_GCJ=no
19303       ;;
19304
19305     beos*)
19306       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19307         allow_undefined_flag_GCJ=unsupported
19308         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19309         # support --undefined.  This deserves some investigation.  FIXME
19310         archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19311       else
19312         ld_shlibs_GCJ=no
19313       fi
19314       ;;
19315
19316     cygwin* | mingw* | pw32*)
19317       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19318       # as there is no search path for DLLs.
19319       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19320       allow_undefined_flag_GCJ=no
19321       always_export_symbols_GCJ=no
19322       enable_shared_with_static_runtimes_GCJ=yes
19323       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19324
19325       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19326         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19327         # If the export-symbols file already is a .def file (1st line
19328         # is EXPORTS), use it as is; otherwise, prepend...
19329         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19330           cp $export_symbols $output_objdir/$soname.def;
19331         else
19332           echo EXPORTS > $output_objdir/$soname.def;
19333           cat $export_symbols >> $output_objdir/$soname.def;
19334         fi~
19335         $CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
19336       else
19337         ld_shlibs=no
19338       fi
19339       ;;
19340
19341     netbsd*)
19342       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19343         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19344         wlarc=
19345       else
19346         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19347         archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19348       fi
19349       ;;
19350
19351     solaris* | sysv5*)
19352       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19353         ld_shlibs_GCJ=no
19354         cat <<EOF 1>&2
19355
19356 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19357 *** create shared libraries on Solaris systems.  Therefore, libtool
19358 *** is disabling shared libraries support.  We urge you to upgrade GNU
19359 *** binutils to release 2.9.1 or newer.  Another option is to modify
19360 *** your PATH or compiler configuration so that the native linker is
19361 *** used, and then restart.
19362
19363 EOF
19364       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19365         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19366         archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19367       else
19368         ld_shlibs_GCJ=no
19369       fi
19370       ;;
19371
19372     sunos4*)
19373       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19374       wlarc=
19375       hardcode_direct_GCJ=yes
19376       hardcode_shlibpath_var_GCJ=no
19377       ;;
19378
19379     *)
19380       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19381         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19382         archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19383       else
19384         ld_shlibs_GCJ=no
19385       fi
19386       ;;
19387     esac
19388
19389     if test "$ld_shlibs_GCJ" = yes; then
19390       runpath_var=LD_RUN_PATH
19391       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19392       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19393       # ancient GNU ld didn't support --whole-archive et. al.
19394       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19395         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19396       else
19397         whole_archive_flag_spec_GCJ=
19398       fi
19399     fi
19400   else
19401     # PORTME fill in a description of your system's linker (not GNU ld)
19402     case $host_os in
19403     aix3*)
19404       allow_undefined_flag_GCJ=unsupported
19405       always_export_symbols_GCJ=yes
19406       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'
19407       # Note: this linker hardcodes the directories in LIBPATH if there
19408       # are no directories specified by -L.
19409       hardcode_minus_L_GCJ=yes
19410       if test "$GCC" = yes && test -z "$link_static_flag"; then
19411         # Neither direct hardcoding nor static linking is supported with a
19412         # broken collect2.
19413         hardcode_direct_GCJ=unsupported
19414       fi
19415       ;;
19416
19417     aix4* | aix5*)
19418       if test "$host_cpu" = ia64; then
19419         # On IA64, the linker does run time linking by default, so we don't
19420         # have to do anything special.
19421         aix_use_runtimelinking=no
19422         exp_sym_flag='-Bexport'
19423         no_entry_flag=""
19424       else
19425         # If we're using GNU nm, then we don't want the "-C" option.
19426         # -C means demangle to AIX nm, but means don't demangle with GNU nm
19427         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19428           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'
19429         else
19430           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'
19431         fi
19432
19433         # KDE requires run time linking.  Make it the default.
19434         aix_use_runtimelinking=yes
19435         exp_sym_flag='-bexport'
19436         no_entry_flag='-bnoentry'
19437       fi
19438
19439       # When large executables or shared objects are built, AIX ld can
19440       # have problems creating the table of contents.  If linking a library
19441       # or program results in "error TOC overflow" add -mminimal-toc to
19442       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19443       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19444
19445       archive_cmds_GCJ=''
19446       hardcode_direct_GCJ=yes
19447       hardcode_libdir_separator_GCJ=':'
19448       link_all_deplibs_GCJ=yes
19449
19450       if test "$GCC" = yes; then
19451         case $host_os in aix4.012|aix4.012.*)
19452         # We only want to do this on AIX 4.2 and lower, the check
19453         # below for broken collect2 doesn't work under 4.3+
19454           collect2name=`${CC} -print-prog-name=collect2`
19455           if test -f "$collect2name" && \
19456            strings "$collect2name" | grep resolve_lib_name >/dev/null
19457           then
19458           # We have reworked collect2
19459           hardcode_direct_GCJ=yes
19460           else
19461           # We have old collect2
19462           hardcode_direct_GCJ=unsupported
19463           # It fails to find uninstalled libraries when the uninstalled
19464           # path is not listed in the libpath.  Setting hardcode_minus_L
19465           # to unsupported forces relinking
19466           hardcode_minus_L_GCJ=yes
19467           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19468           hardcode_libdir_separator_GCJ=
19469           fi
19470         esac
19471         shared_flag='-shared'
19472       else
19473         # not using gcc
19474         if test "$host_cpu" = ia64; then
19475         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19476         # chokes on -Wl,-G. The following line is correct:
19477           shared_flag='-G'
19478         else
19479         if test "$aix_use_runtimelinking" = yes; then
19480             shared_flag='-qmkshrobj ${wl}-G'
19481           else
19482             shared_flag='-qmkshrobj'
19483         fi
19484         fi
19485       fi
19486
19487       # Let the compiler handle the export list.
19488       always_export_symbols_GCJ=no
19489       if test "$aix_use_runtimelinking" = yes; then
19490         # Warning - without using the other runtime loading flags (-brtl),
19491         # -berok will link without error, but may produce a broken library.
19492         allow_undefined_flag_GCJ='-berok'
19493        # Determine the default libpath from the value encoded in an empty executable.
19494         cat >conftest.$ac_ext <<_ACEOF
19495 /* confdefs.h.  */
19496 _ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h.  */
19500
19501 int
19502 main ()
19503 {
19504
19505   ;
19506   return 0;
19507 }
19508 _ACEOF
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513   *) ac_try_echo=$ac_try;;
19514 esac
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516   (eval "$ac_link") 2>conftest.er1
19517   ac_status=$?
19518   grep -v '^ *+' conftest.er1 >conftest.err
19519   rm -f conftest.er1
19520   cat conftest.err >&5
19521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522   (exit $ac_status); } && {
19523          test -z "$ac_c_werror_flag" ||
19524          test ! -s conftest.err
19525        } && test -s conftest$ac_exeext &&
19526        $as_test_x conftest$ac_exeext; then
19527
19528 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19529 }'`
19530 # Check for a 64-bit object if we didn't find anything.
19531 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19532 }'`; fi
19533 else
19534   echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537
19538 fi
19539
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541       conftest$ac_exeext conftest.$ac_ext
19542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19543
19544         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19545         archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
19546         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19547        else
19548         if test "$host_cpu" = ia64; then
19549           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19550           allow_undefined_flag_GCJ="-z nodefs"
19551           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19552         else
19553          # Determine the default libpath from the value encoded in an empty executable.
19554          cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h.  */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h.  */
19560
19561 int
19562 main ()
19563 {
19564
19565   ;
19566   return 0;
19567 }
19568 _ACEOF
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (ac_try="$ac_link"
19571 case "(($ac_try" in
19572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573   *) ac_try_echo=$ac_try;;
19574 esac
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576   (eval "$ac_link") 2>conftest.er1
19577   ac_status=$?
19578   grep -v '^ *+' conftest.er1 >conftest.err
19579   rm -f conftest.er1
19580   cat conftest.err >&5
19581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582   (exit $ac_status); } && {
19583          test -z "$ac_c_werror_flag" ||
19584          test ! -s conftest.err
19585        } && test -s conftest$ac_exeext &&
19586        $as_test_x conftest$ac_exeext; then
19587
19588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19589 }'`
19590 # Check for a 64-bit object if we didn't find anything.
19591 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19592 }'`; fi
19593 else
19594   echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19596
19597
19598 fi
19599
19600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19601       conftest$ac_exeext conftest.$ac_ext
19602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19603
19604          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19605           # Warning - without using the other run time loading flags,
19606           # -berok will link without error, but may produce a broken library.
19607           no_undefined_flag_GCJ=' ${wl}-bernotok'
19608           allow_undefined_flag_GCJ=' ${wl}-berok'
19609           # -bexpall does not export symbols beginning with underscore (_)
19610           always_export_symbols_GCJ=yes
19611           # Exported symbols can be pulled into shared objects from archives
19612           whole_archive_flag_spec_GCJ=' '
19613           archive_cmds_need_lc_GCJ=yes
19614           # This is similar to how AIX traditionally builds it's shared libraries.
19615           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19616         fi
19617       fi
19618       ;;
19619
19620     amigaos*)
19621       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)'
19622       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19623       hardcode_minus_L_GCJ=yes
19624       # see comment about different semantics on the GNU ld section
19625       ld_shlibs_GCJ=no
19626       ;;
19627
19628     bsdi4*)
19629       export_dynamic_flag_spec_GCJ=-rdynamic
19630       ;;
19631
19632     cygwin* | mingw* | pw32*)
19633       # When not using gcc, we currently assume that we are using
19634       # Microsoft Visual C++.
19635       # hardcode_libdir_flag_spec is actually meaningless, as there is
19636       # no search path for DLLs.
19637       hardcode_libdir_flag_spec_GCJ=' '
19638       allow_undefined_flag_GCJ=no
19639       # Tell ltmain to make .lib files, not .a files.
19640       libext=lib
19641       # Tell ltmain to make .dll files, not .so files.
19642       shrext=".dll"
19643       # FIXME: Setting linknames here is a bad hack.
19644       archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19645       # The linker will automatically build a .lib file if we build a DLL.
19646       old_archive_From_new_cmds_GCJ='true'
19647       # FIXME: Should let the user specify the lib program.
19648       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19649       fix_srcfile_path='`cygpath -w "$srcfile"`'
19650       enable_shared_with_static_runtimes_GCJ=yes
19651       ;;
19652
19653     darwin* | rhapsody*)
19654     if test "$GXX" = yes ; then
19655       archive_cmds_need_lc_GCJ=no
19656       case "$host_os" in
19657       rhapsody* | darwin1.[012])
19658         allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
19659         ;;
19660       *) # Darwin 1.3 on
19661         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19662           allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19663         else
19664           case ${MACOSX_DEPLOYMENT_TARGET} in
19665             10.012)
19666               allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19667               ;;
19668             10.*)
19669               allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
19670               ;;
19671           esac
19672         fi
19673         ;;
19674       esac
19675         lt_int_apple_cc_single_mod=no
19676         output_verbose_link_cmd='echo'
19677         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19678           lt_int_apple_cc_single_mod=yes
19679         fi
19680         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19681           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
19682         else
19683         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
19684       fi
19685       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
19686       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19687         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19688           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19689         else
19690           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19691         fi
19692           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 $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19693       hardcode_direct_GCJ=no
19694       hardcode_automatic_GCJ=yes
19695       hardcode_shlibpath_var_GCJ=unsupported
19696       whole_archive_flag_spec_GCJ='-all_load $convenience'
19697       link_all_deplibs_GCJ=yes
19698     else
19699       ld_shlibs_GCJ=no
19700     fi
19701       ;;
19702
19703     dgux*)
19704       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19705       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19706       hardcode_shlibpath_var_GCJ=no
19707       ;;
19708
19709     freebsd1*)
19710       ld_shlibs_GCJ=no
19711       ;;
19712
19713     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19714     # support.  Future versions do this automatically, but an explicit c++rt0.o
19715     # does not break anything, and helps significantly (at the cost of a little
19716     # extra space).
19717     freebsd2.2*)
19718       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19719       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19720       hardcode_direct_GCJ=yes
19721       hardcode_shlibpath_var_GCJ=no
19722       ;;
19723
19724     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19725     freebsd2*)
19726       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19727       hardcode_direct_GCJ=yes
19728       hardcode_minus_L_GCJ=yes
19729       hardcode_shlibpath_var_GCJ=no
19730       ;;
19731
19732     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19733     freebsd*)
19734       archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
19735       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19736       hardcode_direct_GCJ=yes
19737       hardcode_shlibpath_var_GCJ=no
19738       ;;
19739
19740     hpux9*)
19741       if test "$GCC" = yes; then
19742         archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19743       else
19744         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'
19745       fi
19746       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19747       hardcode_libdir_separator_GCJ=:
19748       hardcode_direct_GCJ=yes
19749
19750       # hardcode_minus_L: Not really in the search PATH,
19751       # but as the default location of the library.
19752       hardcode_minus_L_GCJ=yes
19753       export_dynamic_flag_spec_GCJ='${wl}-E'
19754       ;;
19755
19756     hpux10* | hpux11*)
19757       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19758         case "$host_cpu" in
19759         hppa*64*|ia64*)
19760           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19761           ;;
19762         *)
19763           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
19764           ;;
19765         esac
19766       else
19767         case "$host_cpu" in
19768         hppa*64*|ia64*)
19769           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19770           ;;
19771         *)
19772           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19773           ;;
19774         esac
19775       fi
19776       if test "$with_gnu_ld" = no; then
19777         case "$host_cpu" in
19778         hppa*64*)
19779           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19780           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19781           hardcode_libdir_separator_GCJ=:
19782           hardcode_direct_GCJ=no
19783           hardcode_shlibpath_var_GCJ=no
19784           ;;
19785         ia64*)
19786           hardcode_libdir_flag_spec_GCJ='-L$libdir'
19787           hardcode_direct_GCJ=no
19788           hardcode_shlibpath_var_GCJ=no
19789
19790           # hardcode_minus_L: Not really in the search PATH,
19791           # but as the default location of the library.
19792           hardcode_minus_L_GCJ=yes
19793           ;;
19794         *)
19795           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19796           hardcode_libdir_separator_GCJ=:
19797           hardcode_direct_GCJ=yes
19798           export_dynamic_flag_spec_GCJ='${wl}-E'
19799
19800           # hardcode_minus_L: Not really in the search PATH,
19801           # but as the default location of the library.
19802           hardcode_minus_L_GCJ=yes
19803           ;;
19804         esac
19805       fi
19806       ;;
19807
19808     irix5* | irix6* | nonstopux*)
19809       if test "$GCC" = yes; then
19810         archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19811       else
19812         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'
19813         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19814       fi
19815       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19816       hardcode_libdir_separator_GCJ=:
19817       link_all_deplibs_GCJ=yes
19818       ;;
19819
19820     netbsd*)
19821       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19822         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19823       else
19824         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19825       fi
19826       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19827       hardcode_direct_GCJ=yes
19828       hardcode_shlibpath_var_GCJ=no
19829       ;;
19830
19831     newsos6)
19832       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19833       hardcode_direct_GCJ=yes
19834       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19835       hardcode_libdir_separator_GCJ=:
19836       hardcode_shlibpath_var_GCJ=no
19837       ;;
19838
19839     openbsd*)
19840       hardcode_direct_GCJ=yes
19841       hardcode_shlibpath_var_GCJ=no
19842       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19843         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19844         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19845         export_dynamic_flag_spec_GCJ='${wl}-E'
19846       else
19847        case $host_os in
19848          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19849            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19850            hardcode_libdir_flag_spec_GCJ='-R$libdir'
19851            ;;
19852          *)
19853            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
19854            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19855            ;;
19856        esac
19857       fi
19858       ;;
19859
19860     os2*)
19861       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19862       hardcode_minus_L_GCJ=yes
19863       allow_undefined_flag_GCJ=unsupported
19864       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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
19865       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19866       ;;
19867
19868     osf3*)
19869       if test "$GCC" = yes; then
19870         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19871         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19872       else
19873         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19874         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'
19875       fi
19876       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19877       hardcode_libdir_separator_GCJ=:
19878       ;;
19879
19880     osf4* | osf5*)      # as osf3* with the addition of -msym flag
19881       if test "$GCC" = yes; then
19882         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19883         archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
19884         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19885       else
19886         allow_undefined_flag_GCJ=' -expect_unresolved \*'
19887         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'
19888         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~
19889         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19890
19891         # Both c and cxx compiler support -rpath directly
19892         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19893       fi
19894       hardcode_libdir_separator_GCJ=:
19895       ;;
19896
19897     sco3.2v5*)
19898       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19899       hardcode_shlibpath_var_GCJ=no
19900       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19901       runpath_var=LD_RUN_PATH
19902       hardcode_runpath_var=yes
19903       ;;
19904
19905     solaris*)
19906       no_undefined_flag_GCJ=' -z text'
19907       if test "$GCC" = yes; then
19908         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19909         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19910           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
19911       else
19912         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19913         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19914         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19915       fi
19916       hardcode_libdir_flag_spec_GCJ='-R$libdir'
19917       hardcode_shlibpath_var_GCJ=no
19918       case $host_os in
19919       solaris2.[0-5] | solaris2.[0-5].*) ;;
19920       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19921         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19922       esac
19923       link_all_deplibs_GCJ=yes
19924       ;;
19925
19926     sunos4*)
19927       if test "x$host_vendor" = xsequent; then
19928         # Use $CC to link under sequent, because it throws in some extra .o
19929         # files that make .init and .fini sections work.
19930         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
19931       else
19932         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19933       fi
19934       hardcode_libdir_flag_spec_GCJ='-L$libdir'
19935       hardcode_direct_GCJ=yes
19936       hardcode_minus_L_GCJ=yes
19937       hardcode_shlibpath_var_GCJ=no
19938       ;;
19939
19940     sysv4)
19941       case $host_vendor in
19942         sni)
19943           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19944           hardcode_direct_GCJ=yes # is this really true???
19945         ;;
19946         siemens)
19947           ## LD is ld it makes a PLAMLIB
19948           ## CC just makes a GrossModule.
19949           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19950           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19951           hardcode_direct_GCJ=no
19952         ;;
19953         motorola)
19954           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19955           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19956         ;;
19957       esac
19958       runpath_var='LD_RUN_PATH'
19959       hardcode_shlibpath_var_GCJ=no
19960       ;;
19961
19962     sysv4.3*)
19963       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19964       hardcode_shlibpath_var_GCJ=no
19965       export_dynamic_flag_spec_GCJ='-Bexport'
19966       ;;
19967
19968     sysv4*MP*)
19969       if test -d /usr/nec; then
19970         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971         hardcode_shlibpath_var_GCJ=no
19972         runpath_var=LD_RUN_PATH
19973         hardcode_runpath_var=yes
19974         ld_shlibs_GCJ=yes
19975       fi
19976       ;;
19977
19978     sysv4.2uw2*)
19979       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19980       hardcode_direct_GCJ=yes
19981       hardcode_minus_L_GCJ=no
19982       hardcode_shlibpath_var_GCJ=no
19983       hardcode_runpath_var=yes
19984       runpath_var=LD_RUN_PATH
19985       ;;
19986
19987    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
19988       no_undefined_flag_GCJ='${wl}-z ${wl}text'
19989       if test "$GCC" = yes; then
19990         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19991       else
19992         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
19993       fi
19994       runpath_var='LD_RUN_PATH'
19995       hardcode_shlibpath_var_GCJ=no
19996       ;;
19997
19998     sysv5*)
19999       no_undefined_flag_GCJ=' -z text'
20000       # $CC -shared without GNU ld will not create a library from C++
20001       # object files and a static libstdc++, better avoid it by now
20002       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20003       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20004                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20005       hardcode_libdir_flag_spec_GCJ=
20006       hardcode_shlibpath_var_GCJ=no
20007       runpath_var='LD_RUN_PATH'
20008       ;;
20009
20010     uts4*)
20011       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20012       hardcode_libdir_flag_spec_GCJ='-L$libdir'
20013       hardcode_shlibpath_var_GCJ=no
20014       ;;
20015
20016     *)
20017       ld_shlibs_GCJ=no
20018       ;;
20019     esac
20020   fi
20021
20022 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20023 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20024 test "$ld_shlibs_GCJ" = no && can_build_shared=no
20025
20026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20027 if test "$GCC" = yes; then
20028   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20029 fi
20030
20031 #
20032 # Do we need to explicitly link libc?
20033 #
20034 case "x$archive_cmds_need_lc_GCJ" in
20035 x|xyes)
20036   # Assume -lc should be added
20037   archive_cmds_need_lc_GCJ=yes
20038
20039   if test "$enable_shared" = yes && test "$GCC" = yes; then
20040     case $archive_cmds_GCJ in
20041     *'~'*)
20042       # FIXME: we may have to deal with multi-command sequences.
20043       ;;
20044     '$CC '*)
20045       # Test whether the compiler implicitly links with -lc since on some
20046       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20047       # to ld, don't add -lc before -lgcc.
20048       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20049 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20050       $rm conftest*
20051       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20052
20053       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20054   (eval $ac_compile) 2>&5
20055   ac_status=$?
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } 2>conftest.err; then
20058         soname=conftest
20059         lib=conftest
20060         libobjs=conftest.$ac_objext
20061         deplibs=
20062         wl=$lt_prog_compiler_wl_GCJ
20063         compiler_flags=-v
20064         linker_flags=-v
20065         verstring=
20066         output_objdir=.
20067         libname=conftest
20068         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20069         allow_undefined_flag_GCJ=
20070         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20071   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20072   ac_status=$?
20073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074   (exit $ac_status); }
20075         then
20076           archive_cmds_need_lc_GCJ=no
20077         else
20078           archive_cmds_need_lc_GCJ=yes
20079         fi
20080         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20081       else
20082         cat conftest.err 1>&5
20083       fi
20084       $rm conftest*
20085       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20086 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20087       ;;
20088     esac
20089   fi
20090   ;;
20091 esac
20092
20093 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20094 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20095 library_names_spec=
20096 libname_spec='lib$name'
20097 soname_spec=
20098 shrext=".so"
20099 postinstall_cmds=
20100 postuninstall_cmds=
20101 finish_cmds=
20102 finish_eval=
20103 shlibpath_var=
20104 shlibpath_overrides_runpath=unknown
20105 version_type=none
20106 dynamic_linker="$host_os ld.so"
20107 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20108 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20109 need_lib_prefix=unknown
20110 hardcode_into_libs=no
20111
20112 # when you set need_version to no, make sure it does not cause -set_version
20113 # flags to be left without arguments
20114 need_version=unknown
20115
20116 case $host_os in
20117 aix3*)
20118   version_type=linux
20119   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20120   shlibpath_var=LIBPATH
20121
20122   # AIX 3 has no versioning support, so we append a major version to the name.
20123   soname_spec='${libname}${release}${shared_ext}$major'
20124   ;;
20125
20126 aix4* | aix5*)
20127   version_type=linux
20128   need_lib_prefix=no
20129   need_version=no
20130   hardcode_into_libs=yes
20131   if test "$host_cpu" = ia64; then
20132     # AIX 5 supports IA64
20133     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20134     shlibpath_var=LD_LIBRARY_PATH
20135   else
20136     # With GCC up to 2.95.x, collect2 would create an import file
20137     # for dependence libraries.  The import file would start with
20138     # the line `#! .'.  This would cause the generated library to
20139     # depend on `.', always an invalid library.  This was fixed in
20140     # development snapshots of GCC prior to 3.0.
20141     case $host_os in
20142       aix4 | aix4.[01] | aix4.[01].*)
20143       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20144            echo ' yes '
20145            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20146         :
20147       else
20148         can_build_shared=no
20149       fi
20150       ;;
20151     esac
20152     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20153     # soname into executable. Probably we can add versioning support to
20154     # collect2, so additional links can be useful in future.
20155     if test "$aix_use_runtimelinking" = yes; then
20156       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20157       # instead of lib<name>.a to let people know that these are not
20158       # typical AIX shared libraries.
20159       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20160     else
20161       # We preserve .a as extension for shared libraries through AIX4.2
20162       # and later when we are not doing run time linking.
20163       library_names_spec='${libname}${release}.a $libname.a'
20164       soname_spec='${libname}${release}${shared_ext}$major'
20165     fi
20166     shlibpath_var=LIBPATH
20167   fi
20168   ;;
20169
20170 amigaos*)
20171   library_names_spec='$libname.ixlibrary $libname.a'
20172   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20173   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'
20174   ;;
20175
20176 beos*)
20177   library_names_spec='${libname}${shared_ext}'
20178   dynamic_linker="$host_os ld.so"
20179   shlibpath_var=LIBRARY_PATH
20180   ;;
20181
20182 bsdi4*)
20183   version_type=linux
20184   need_version=no
20185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20186   soname_spec='${libname}${release}${shared_ext}$major'
20187   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20188   shlibpath_var=LD_LIBRARY_PATH
20189   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20190   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20191   # the default ld.so.conf also contains /usr/contrib/lib and
20192   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20193   # libtool to hard-code these into programs
20194   ;;
20195
20196 cygwin* | mingw* | pw32*)
20197   version_type=windows
20198   shrext=".dll"
20199   need_version=no
20200   need_lib_prefix=no
20201
20202   case $GCC,$host_os in
20203   yes,cygwin* | yes,mingw* | yes,pw32*)
20204     library_names_spec='$libname.dll.a'
20205     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20206     postinstall_cmds='base_file=`basename \${file}`~
20207       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20208       dldir=$destdir/`dirname \$dlpath`~
20209       test -d \$dldir || mkdir -p \$dldir~
20210       $install_prog $dir/$dlname \$dldir/$dlname'
20211     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20212       dlpath=$dir/\$dldll~
20213        $rm \$dlpath'
20214     shlibpath_overrides_runpath=yes
20215
20216     case $host_os in
20217     cygwin*)
20218       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20219       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20220       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20221       ;;
20222     mingw*)
20223       # MinGW DLLs use traditional 'lib' prefix
20224       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20225       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20226       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20227         # It is most probably a Windows format PATH printed by
20228         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20229         # path with ; separators, and with drive letters. We can handle the
20230         # drive letters (cygwin fileutils understands them), so leave them,
20231         # especially as we might pass files found there to a mingw objdump,
20232         # which wouldn't understand a cygwinified path. Ahh.
20233         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20234       else
20235         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20236       fi
20237       ;;
20238     pw32*)
20239       # pw32 DLLs use 'pw' prefix rather than 'lib'
20240       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20241       ;;
20242     esac
20243     ;;
20244
20245   *)
20246     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20247     ;;
20248   esac
20249   dynamic_linker='Win32 ld.exe'
20250   # FIXME: first we should search . and the directory the executable is in
20251   shlibpath_var=PATH
20252   ;;
20253
20254 darwin* | rhapsody*)
20255   dynamic_linker="$host_os dyld"
20256   version_type=darwin
20257   need_lib_prefix=no
20258   need_version=no
20259   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20260   soname_spec='${libname}${release}${major}$shared_ext'
20261   shlibpath_overrides_runpath=yes
20262   shlibpath_var=DYLD_LIBRARY_PATH
20263   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
20264   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20265   if test "$GCC" = yes; then
20266     sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20267   else
20268     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20269   fi
20270   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20271   ;;
20272
20273 dgux*)
20274   version_type=linux
20275   need_lib_prefix=no
20276   need_version=no
20277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20278   soname_spec='${libname}${release}${shared_ext}$major'
20279   shlibpath_var=LD_LIBRARY_PATH
20280   ;;
20281
20282 freebsd1*)
20283   dynamic_linker=no
20284   ;;
20285
20286 freebsd*-gnu*)
20287   version_type=linux
20288   need_lib_prefix=no
20289   need_version=no
20290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20291   soname_spec='${libname}${release}${shared_ext}$major'
20292   shlibpath_var=LD_LIBRARY_PATH
20293   shlibpath_overrides_runpath=no
20294   hardcode_into_libs=yes
20295   dynamic_linker='GNU ld.so'
20296   ;;
20297
20298 freebsd*)
20299   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20300   version_type=freebsd-$objformat
20301   case $version_type in
20302     freebsd-elf*)
20303       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20304       need_version=no
20305       need_lib_prefix=no
20306       ;;
20307     freebsd-*)
20308       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20309       need_version=yes
20310       ;;
20311   esac
20312   shlibpath_var=LD_LIBRARY_PATH
20313   case $host_os in
20314   freebsd2*)
20315     shlibpath_overrides_runpath=yes
20316     ;;
20317   freebsd3.01* | freebsdelf3.01*)
20318     shlibpath_overrides_runpath=yes
20319     hardcode_into_libs=yes
20320     ;;
20321   *) # from 3.2 on
20322     shlibpath_overrides_runpath=no
20323     hardcode_into_libs=yes
20324     ;;
20325   esac
20326   ;;
20327
20328 gnu*)
20329   version_type=linux
20330   need_lib_prefix=no
20331   need_version=no
20332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20333   soname_spec='${libname}${release}${shared_ext}$major'
20334   shlibpath_var=LD_LIBRARY_PATH
20335   hardcode_into_libs=yes
20336   ;;
20337
20338 hpux9* | hpux10* | hpux11*)
20339   # Give a soname corresponding to the major version so that dld.sl refuses to
20340   # link against other versions.
20341   version_type=sunos
20342   need_lib_prefix=no
20343   need_version=no
20344   case "$host_cpu" in
20345   ia64*)
20346     shrext='.so'
20347     hardcode_into_libs=yes
20348     dynamic_linker="$host_os dld.so"
20349     shlibpath_var=LD_LIBRARY_PATH
20350     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20351     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20352     soname_spec='${libname}${release}${shared_ext}$major'
20353     if test "X$HPUX_IA64_MODE" = X32; then
20354       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20355     else
20356       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20357     fi
20358     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20359     ;;
20360    hppa*64*)
20361      shrext='.sl'
20362      hardcode_into_libs=yes
20363      dynamic_linker="$host_os dld.sl"
20364      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20365      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20366      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20367      soname_spec='${libname}${release}${shared_ext}$major'
20368      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20369      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20370      ;;
20371    *)
20372     shrext='.sl'
20373     dynamic_linker="$host_os dld.sl"
20374     shlibpath_var=SHLIB_PATH
20375     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20376     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377     soname_spec='${libname}${release}${shared_ext}$major'
20378     ;;
20379   esac
20380   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20381   postinstall_cmds='chmod 555 $lib'
20382   ;;
20383
20384 irix5* | irix6* | nonstopux*)
20385   case $host_os in
20386     nonstopux*) version_type=nonstopux ;;
20387     *)
20388         if test "$lt_cv_prog_gnu_ld" = yes; then
20389                 version_type=linux
20390         else
20391                 version_type=irix
20392         fi ;;
20393   esac
20394   need_lib_prefix=no
20395   need_version=no
20396   soname_spec='${libname}${release}${shared_ext}$major'
20397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20398   case $host_os in
20399   irix5* | nonstopux*)
20400     libsuff= shlibsuff=
20401     ;;
20402   *)
20403     case $LD in # libtool.m4 will add one of these switches to LD
20404     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20405       libsuff= shlibsuff= libmagic=32-bit;;
20406     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20407       libsuff=32 shlibsuff=N32 libmagic=N32;;
20408     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20409       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20410     *) libsuff= shlibsuff= libmagic=never-match;;
20411     esac
20412     ;;
20413   esac
20414   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20415   shlibpath_overrides_runpath=no
20416   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20417   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20418   hardcode_into_libs=yes
20419   ;;
20420
20421 # No shared lib support for Linux oldld, aout, or coff.
20422 linux*oldld* | linux*aout* | linux*coff*)
20423   dynamic_linker=no
20424   ;;
20425
20426 # This must be Linux ELF.
20427 linux*)
20428   version_type=linux
20429   need_lib_prefix=no
20430   need_version=no
20431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20432   soname_spec='${libname}${release}${shared_ext}$major'
20433   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20434   libsuff=
20435   if test "x$LINUX_64_MODE" = x64; then
20436     # Some platforms are per default 64-bit, so there's no /lib64
20437     if test -d /lib64; then
20438       libsuff=64
20439     fi
20440   fi
20441   shlibpath_var=LD_LIBRARY_PATH
20442   shlibpath_overrides_runpath=no
20443   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20444   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20445   # This implies no fast_install, which is unacceptable.
20446   # Some rework will be needed to allow for fast_install
20447   # before this can be enabled.
20448   hardcode_into_libs=yes
20449
20450   # We used to test for /lib/ld.so.1 and disable shared libraries on
20451   # powerpc, because MkLinux only supported shared libraries with the
20452   # GNU dynamic linker.  Since this was broken with cross compilers,
20453   # most powerpc-linux boxes support dynamic linking these days and
20454   # people can always --disable-shared, the test was removed, and we
20455   # assume the GNU/Linux dynamic linker is in use.
20456   dynamic_linker='GNU/Linux ld.so'
20457   ;;
20458
20459 netbsd*)
20460   version_type=sunos
20461   need_lib_prefix=no
20462   need_version=no
20463   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20464     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20465     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20466     dynamic_linker='NetBSD (a.out) ld.so'
20467   else
20468     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
20469     soname_spec='${libname}${release}${shared_ext}$major'
20470     dynamic_linker='NetBSD ld.elf_so'
20471   fi
20472   shlibpath_var=LD_LIBRARY_PATH
20473   shlibpath_overrides_runpath=yes
20474   hardcode_into_libs=yes
20475   ;;
20476
20477 newsos6)
20478   version_type=linux
20479   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480   shlibpath_var=LD_LIBRARY_PATH
20481   shlibpath_overrides_runpath=yes
20482   ;;
20483
20484 nto-qnx*)
20485   version_type=linux
20486   need_lib_prefix=no
20487   need_version=no
20488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20489   soname_spec='${libname}${release}${shared_ext}$major'
20490   shlibpath_var=LD_LIBRARY_PATH
20491   shlibpath_overrides_runpath=yes
20492   ;;
20493
20494 openbsd*)
20495   version_type=sunos
20496   need_lib_prefix=no
20497   need_version=no
20498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20499   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20500   shlibpath_var=LD_LIBRARY_PATH
20501   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20502     case $host_os in
20503       openbsd2.[89] | openbsd2.[89].*)
20504         shlibpath_overrides_runpath=no
20505         ;;
20506       *)
20507         shlibpath_overrides_runpath=yes
20508         ;;
20509       esac
20510   else
20511     shlibpath_overrides_runpath=yes
20512   fi
20513   ;;
20514
20515 os2*)
20516   libname_spec='$name'
20517   shrext=".dll"
20518   need_lib_prefix=no
20519   library_names_spec='$libname${shared_ext} $libname.a'
20520   dynamic_linker='OS/2 ld.exe'
20521   shlibpath_var=LIBPATH
20522   ;;
20523
20524 osf3* | osf4* | osf5*)
20525   version_type=osf
20526   need_lib_prefix=no
20527   need_version=no
20528   soname_spec='${libname}${release}${shared_ext}$major'
20529   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20530   shlibpath_var=LD_LIBRARY_PATH
20531   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20532   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20533   ;;
20534
20535 sco3.2v5*)
20536   version_type=osf
20537   soname_spec='${libname}${release}${shared_ext}$major'
20538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539   shlibpath_var=LD_LIBRARY_PATH
20540   ;;
20541
20542 solaris*)
20543   version_type=linux
20544   need_lib_prefix=no
20545   need_version=no
20546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20547   soname_spec='${libname}${release}${shared_ext}$major'
20548   shlibpath_var=LD_LIBRARY_PATH
20549   shlibpath_overrides_runpath=yes
20550   hardcode_into_libs=yes
20551   # ldd complains unless libraries are executable
20552   postinstall_cmds='chmod +x $lib'
20553   ;;
20554
20555 sunos4*)
20556   version_type=sunos
20557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20558   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20559   shlibpath_var=LD_LIBRARY_PATH
20560   shlibpath_overrides_runpath=yes
20561   if test "$with_gnu_ld" = yes; then
20562     need_lib_prefix=no
20563   fi
20564   need_version=yes
20565   ;;
20566
20567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20568   version_type=linux
20569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570   soname_spec='${libname}${release}${shared_ext}$major'
20571   shlibpath_var=LD_LIBRARY_PATH
20572   case $host_vendor in
20573     sni)
20574       shlibpath_overrides_runpath=no
20575       need_lib_prefix=no
20576       export_dynamic_flag_spec='${wl}-Blargedynsym'
20577       runpath_var=LD_RUN_PATH
20578       ;;
20579     siemens)
20580       need_lib_prefix=no
20581       ;;
20582     motorola)
20583       need_lib_prefix=no
20584       need_version=no
20585       shlibpath_overrides_runpath=no
20586       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20587       ;;
20588   esac
20589   ;;
20590
20591 sysv4*MP*)
20592   if test -d /usr/nec ;then
20593     version_type=linux
20594     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20595     soname_spec='$libname${shared_ext}.$major'
20596     shlibpath_var=LD_LIBRARY_PATH
20597   fi
20598   ;;
20599
20600 uts4*)
20601   version_type=linux
20602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20603   soname_spec='${libname}${release}${shared_ext}$major'
20604   shlibpath_var=LD_LIBRARY_PATH
20605   ;;
20606
20607 *)
20608   dynamic_linker=no
20609   ;;
20610 esac
20611 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20612 echo "${ECHO_T}$dynamic_linker" >&6; }
20613 test "$dynamic_linker" = no && can_build_shared=no
20614
20615 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20617 hardcode_action_GCJ=
20618 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20619    test -n "$runpath_var GCJ" || \
20620    test "X$hardcode_automatic_GCJ"="Xyes" ; then
20621
20622   # We can hardcode non-existant directories.
20623   if test "$hardcode_direct_GCJ" != no &&
20624      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20625      # have to relink, otherwise we might link with an installed library
20626      # when we should be linking with a yet-to-be-installed one
20627      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20628      test "$hardcode_minus_L_GCJ" != no; then
20629     # Linking always hardcodes the temporary library directory.
20630     hardcode_action_GCJ=relink
20631   else
20632     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20633     hardcode_action_GCJ=immediate
20634   fi
20635 else
20636   # We cannot hardcode anything, or else we can only hardcode existing
20637   # directories.
20638   hardcode_action_GCJ=unsupported
20639 fi
20640 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20641 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20642
20643 if test "$hardcode_action_GCJ" = relink; then
20644   # Fast installation is not supported
20645   enable_fast_install=no
20646 elif test "$shlibpath_overrides_runpath" = yes ||
20647      test "$enable_shared" = no; then
20648   # Fast installation is not necessary
20649   enable_fast_install=needless
20650 fi
20651
20652 striplib=
20653 old_striplib=
20654 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20655 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
20656 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20657   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20658   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20659   { echo "$as_me:$LINENO: result: yes" >&5
20660 echo "${ECHO_T}yes" >&6; }
20661 else
20662 # FIXME - insert some real tests, host_os isn't really good enough
20663   case $host_os in
20664    darwin*)
20665        if test -n "$STRIP" ; then
20666          striplib="$STRIP -x"
20667          { echo "$as_me:$LINENO: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6; }
20669        else
20670   { echo "$as_me:$LINENO: result: no" >&5
20671 echo "${ECHO_T}no" >&6; }
20672 fi
20673        ;;
20674    *)
20675   { echo "$as_me:$LINENO: result: no" >&5
20676 echo "${ECHO_T}no" >&6; }
20677     ;;
20678   esac
20679 fi
20680
20681 if test "x$enable_dlopen" != xyes; then
20682   enable_dlopen=unknown
20683   enable_dlopen_self=unknown
20684   enable_dlopen_self_static=unknown
20685 else
20686   lt_cv_dlopen=no
20687   lt_cv_dlopen_libs=
20688
20689   case $host_os in
20690   beos*)
20691     lt_cv_dlopen="load_add_on"
20692     lt_cv_dlopen_libs=
20693     lt_cv_dlopen_self=yes
20694     ;;
20695
20696   mingw* | pw32*)
20697     lt_cv_dlopen="LoadLibrary"
20698     lt_cv_dlopen_libs=
20699    ;;
20700
20701   cygwin*)
20702     lt_cv_dlopen="dlopen"
20703     lt_cv_dlopen_libs=
20704    ;;
20705
20706   darwin*)
20707   # if libdl is installed we need to link against it
20708     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20709 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20710 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20711   echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713   ac_check_lib_save_LIBS=$LIBS
20714 LIBS="-ldl  $LIBS"
20715 cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721
20722 /* Override any GCC internal prototype to avoid an error.
20723    Use char because int might match the return type of a GCC
20724    builtin and then its argument prototype would still apply.  */
20725 #ifdef __cplusplus
20726 extern "C"
20727 #endif
20728 char dlopen ();
20729 int
20730 main ()
20731 {
20732 return dlopen ();
20733   ;
20734   return 0;
20735 }
20736 _ACEOF
20737 rm -f conftest.$ac_objext conftest$ac_exeext
20738 if { (ac_try="$ac_link"
20739 case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_link") 2>conftest.er1
20745   ac_status=$?
20746   grep -v '^ *+' conftest.er1 >conftest.err
20747   rm -f conftest.er1
20748   cat conftest.err >&5
20749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750   (exit $ac_status); } && {
20751          test -z "$ac_c_werror_flag" ||
20752          test ! -s conftest.err
20753        } && test -s conftest$ac_exeext &&
20754        $as_test_x conftest$ac_exeext; then
20755   ac_cv_lib_dl_dlopen=yes
20756 else
20757   echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20759
20760         ac_cv_lib_dl_dlopen=no
20761 fi
20762
20763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20764       conftest$ac_exeext conftest.$ac_ext
20765 LIBS=$ac_check_lib_save_LIBS
20766 fi
20767 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20768 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
20769 if test $ac_cv_lib_dl_dlopen = yes; then
20770   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20771 else
20772
20773     lt_cv_dlopen="dyld"
20774     lt_cv_dlopen_libs=
20775     lt_cv_dlopen_self=yes
20776
20777 fi
20778
20779    ;;
20780
20781   *)
20782     { echo "$as_me:$LINENO: checking for shl_load" >&5
20783 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
20784 if test "${ac_cv_func_shl_load+set}" = set; then
20785   echo $ECHO_N "(cached) $ECHO_C" >&6
20786 else
20787   cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h.  */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h.  */
20793 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20795 #define shl_load innocuous_shl_load
20796
20797 /* System header to define __stub macros and hopefully few prototypes,
20798     which can conflict with char shl_load (); below.
20799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20800     <limits.h> exists even on freestanding compilers.  */
20801
20802 #ifdef __STDC__
20803 # include <limits.h>
20804 #else
20805 # include <assert.h>
20806 #endif
20807
20808 #undef shl_load
20809
20810 /* Override any GCC internal prototype to avoid an error.
20811    Use char because int might match the return type of a GCC
20812    builtin and then its argument prototype would still apply.  */
20813 #ifdef __cplusplus
20814 extern "C"
20815 #endif
20816 char shl_load ();
20817 /* The GNU C library defines this for functions which it implements
20818     to always fail with ENOSYS.  Some functions are actually named
20819     something starting with __ and the normal name is an alias.  */
20820 #if defined __stub_shl_load || defined __stub___shl_load
20821 choke me
20822 #endif
20823
20824 int
20825 main ()
20826 {
20827 return shl_load ();
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 rm -f conftest.$ac_objext conftest$ac_exeext
20833 if { (ac_try="$ac_link"
20834 case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_link") 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } && {
20846          test -z "$ac_c_werror_flag" ||
20847          test ! -s conftest.err
20848        } && test -s conftest$ac_exeext &&
20849        $as_test_x conftest$ac_exeext; then
20850   ac_cv_func_shl_load=yes
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         ac_cv_func_shl_load=no
20856 fi
20857
20858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20859       conftest$ac_exeext conftest.$ac_ext
20860 fi
20861 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20862 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
20863 if test $ac_cv_func_shl_load = yes; then
20864   lt_cv_dlopen="shl_load"
20865 else
20866   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20867 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
20868 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20869   echo $ECHO_N "(cached) $ECHO_C" >&6
20870 else
20871   ac_check_lib_save_LIBS=$LIBS
20872 LIBS="-ldld  $LIBS"
20873 cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h.  */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
20878 /* end confdefs.h.  */
20879
20880 /* Override any GCC internal prototype to avoid an error.
20881    Use char because int might match the return type of a GCC
20882    builtin and then its argument prototype would still apply.  */
20883 #ifdef __cplusplus
20884 extern "C"
20885 #endif
20886 char shl_load ();
20887 int
20888 main ()
20889 {
20890 return shl_load ();
20891   ;
20892   return 0;
20893 }
20894 _ACEOF
20895 rm -f conftest.$ac_objext conftest$ac_exeext
20896 if { (ac_try="$ac_link"
20897 case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_link") 2>conftest.er1
20903   ac_status=$?
20904   grep -v '^ *+' conftest.er1 >conftest.err
20905   rm -f conftest.er1
20906   cat conftest.err >&5
20907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908   (exit $ac_status); } && {
20909          test -z "$ac_c_werror_flag" ||
20910          test ! -s conftest.err
20911        } && test -s conftest$ac_exeext &&
20912        $as_test_x conftest$ac_exeext; then
20913   ac_cv_lib_dld_shl_load=yes
20914 else
20915   echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918         ac_cv_lib_dld_shl_load=no
20919 fi
20920
20921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20922       conftest$ac_exeext conftest.$ac_ext
20923 LIBS=$ac_check_lib_save_LIBS
20924 fi
20925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
20927 if test $ac_cv_lib_dld_shl_load = yes; then
20928   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20929 else
20930   { echo "$as_me:$LINENO: checking for dlopen" >&5
20931 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
20932 if test "${ac_cv_func_dlopen+set}" = set; then
20933   echo $ECHO_N "(cached) $ECHO_C" >&6
20934 else
20935   cat >conftest.$ac_ext <<_ACEOF
20936 /* confdefs.h.  */
20937 _ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h.  */
20941 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20943 #define dlopen innocuous_dlopen
20944
20945 /* System header to define __stub macros and hopefully few prototypes,
20946     which can conflict with char dlopen (); below.
20947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20948     <limits.h> exists even on freestanding compilers.  */
20949
20950 #ifdef __STDC__
20951 # include <limits.h>
20952 #else
20953 # include <assert.h>
20954 #endif
20955
20956 #undef dlopen
20957
20958 /* Override any GCC internal prototype to avoid an error.
20959    Use char because int might match the return type of a GCC
20960    builtin and then its argument prototype would still apply.  */
20961 #ifdef __cplusplus
20962 extern "C"
20963 #endif
20964 char dlopen ();
20965 /* The GNU C library defines this for functions which it implements
20966     to always fail with ENOSYS.  Some functions are actually named
20967     something starting with __ and the normal name is an alias.  */
20968 #if defined __stub_dlopen || defined __stub___dlopen
20969 choke me
20970 #endif
20971
20972 int
20973 main ()
20974 {
20975 return dlopen ();
20976   ;
20977   return 0;
20978 }
20979 _ACEOF
20980 rm -f conftest.$ac_objext conftest$ac_exeext
20981 if { (ac_try="$ac_link"
20982 case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_link") 2>conftest.er1
20988   ac_status=$?
20989   grep -v '^ *+' conftest.er1 >conftest.err
20990   rm -f conftest.er1
20991   cat conftest.err >&5
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } && {
20994          test -z "$ac_c_werror_flag" ||
20995          test ! -s conftest.err
20996        } && test -s conftest$ac_exeext &&
20997        $as_test_x conftest$ac_exeext; then
20998   ac_cv_func_dlopen=yes
20999 else
21000   echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003         ac_cv_func_dlopen=no
21004 fi
21005
21006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21007       conftest$ac_exeext conftest.$ac_ext
21008 fi
21009 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21010 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
21011 if test $ac_cv_func_dlopen = yes; then
21012   lt_cv_dlopen="dlopen"
21013 else
21014   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21015 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21016 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21017   echo $ECHO_N "(cached) $ECHO_C" >&6
21018 else
21019   ac_check_lib_save_LIBS=$LIBS
21020 LIBS="-ldl  $LIBS"
21021 cat >conftest.$ac_ext <<_ACEOF
21022 /* confdefs.h.  */
21023 _ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h.  */
21027
21028 /* Override any GCC internal prototype to avoid an error.
21029    Use char because int might match the return type of a GCC
21030    builtin and then its argument prototype would still apply.  */
21031 #ifdef __cplusplus
21032 extern "C"
21033 #endif
21034 char dlopen ();
21035 int
21036 main ()
21037 {
21038 return dlopen ();
21039   ;
21040   return 0;
21041 }
21042 _ACEOF
21043 rm -f conftest.$ac_objext conftest$ac_exeext
21044 if { (ac_try="$ac_link"
21045 case "(($ac_try" in
21046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047   *) ac_try_echo=$ac_try;;
21048 esac
21049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050   (eval "$ac_link") 2>conftest.er1
21051   ac_status=$?
21052   grep -v '^ *+' conftest.er1 >conftest.err
21053   rm -f conftest.er1
21054   cat conftest.err >&5
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); } && {
21057          test -z "$ac_c_werror_flag" ||
21058          test ! -s conftest.err
21059        } && test -s conftest$ac_exeext &&
21060        $as_test_x conftest$ac_exeext; then
21061   ac_cv_lib_dl_dlopen=yes
21062 else
21063   echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21065
21066         ac_cv_lib_dl_dlopen=no
21067 fi
21068
21069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21070       conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21072 fi
21073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21075 if test $ac_cv_lib_dl_dlopen = yes; then
21076   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21077 else
21078   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
21080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21081   echo $ECHO_N "(cached) $ECHO_C" >&6
21082 else
21083   ac_check_lib_save_LIBS=$LIBS
21084 LIBS="-lsvld  $LIBS"
21085 cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h.  */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h.  */
21091
21092 /* Override any GCC internal prototype to avoid an error.
21093    Use char because int might match the return type of a GCC
21094    builtin and then its argument prototype would still apply.  */
21095 #ifdef __cplusplus
21096 extern "C"
21097 #endif
21098 char dlopen ();
21099 int
21100 main ()
21101 {
21102 return dlopen ();
21103   ;
21104   return 0;
21105 }
21106 _ACEOF
21107 rm -f conftest.$ac_objext conftest$ac_exeext
21108 if { (ac_try="$ac_link"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21114   (eval "$ac_link") 2>conftest.er1
21115   ac_status=$?
21116   grep -v '^ *+' conftest.er1 >conftest.err
21117   rm -f conftest.er1
21118   cat conftest.err >&5
21119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120   (exit $ac_status); } && {
21121          test -z "$ac_c_werror_flag" ||
21122          test ! -s conftest.err
21123        } && test -s conftest$ac_exeext &&
21124        $as_test_x conftest$ac_exeext; then
21125   ac_cv_lib_svld_dlopen=yes
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130         ac_cv_lib_svld_dlopen=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21134       conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21136 fi
21137 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21138 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
21139 if test $ac_cv_lib_svld_dlopen = yes; then
21140   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21141 else
21142   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21143 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
21144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21145   echo $ECHO_N "(cached) $ECHO_C" >&6
21146 else
21147   ac_check_lib_save_LIBS=$LIBS
21148 LIBS="-ldld  $LIBS"
21149 cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155
21156 /* Override any GCC internal prototype to avoid an error.
21157    Use char because int might match the return type of a GCC
21158    builtin and then its argument prototype would still apply.  */
21159 #ifdef __cplusplus
21160 extern "C"
21161 #endif
21162 char dld_link ();
21163 int
21164 main ()
21165 {
21166 return dld_link ();
21167   ;
21168   return 0;
21169 }
21170 _ACEOF
21171 rm -f conftest.$ac_objext conftest$ac_exeext
21172 if { (ac_try="$ac_link"
21173 case "(($ac_try" in
21174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175   *) ac_try_echo=$ac_try;;
21176 esac
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178   (eval "$ac_link") 2>conftest.er1
21179   ac_status=$?
21180   grep -v '^ *+' conftest.er1 >conftest.err
21181   rm -f conftest.er1
21182   cat conftest.err >&5
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); } && {
21185          test -z "$ac_c_werror_flag" ||
21186          test ! -s conftest.err
21187        } && test -s conftest$ac_exeext &&
21188        $as_test_x conftest$ac_exeext; then
21189   ac_cv_lib_dld_dld_link=yes
21190 else
21191   echo "$as_me: failed program was:" >&5
21192 sed 's/^/| /' conftest.$ac_ext >&5
21193
21194         ac_cv_lib_dld_dld_link=no
21195 fi
21196
21197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21198       conftest$ac_exeext conftest.$ac_ext
21199 LIBS=$ac_check_lib_save_LIBS
21200 fi
21201 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21202 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21203 if test $ac_cv_lib_dld_dld_link = yes; then
21204   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21205 fi
21206
21207
21208 fi
21209
21210
21211 fi
21212
21213
21214 fi
21215
21216
21217 fi
21218
21219
21220 fi
21221
21222     ;;
21223   esac
21224
21225   if test "x$lt_cv_dlopen" != xno; then
21226     enable_dlopen=yes
21227   else
21228     enable_dlopen=no
21229   fi
21230
21231   case $lt_cv_dlopen in
21232   dlopen)
21233     save_CPPFLAGS="$CPPFLAGS"
21234     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21235
21236     save_LDFLAGS="$LDFLAGS"
21237     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21238
21239     save_LIBS="$LIBS"
21240     LIBS="$lt_cv_dlopen_libs $LIBS"
21241
21242     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21243 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
21244 if test "${lt_cv_dlopen_self+set}" = set; then
21245   echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247           if test "$cross_compiling" = yes; then :
21248   lt_cv_dlopen_self=cross
21249 else
21250   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21251   lt_status=$lt_dlunknown
21252   cat > conftest.$ac_ext <<EOF
21253 #line 21253 "configure"
21254 #include "confdefs.h"
21255
21256 #if HAVE_DLFCN_H
21257 #include <dlfcn.h>
21258 #endif
21259
21260 #include <stdio.h>
21261
21262 #ifdef RTLD_GLOBAL
21263 #  define LT_DLGLOBAL           RTLD_GLOBAL
21264 #else
21265 #  ifdef DL_GLOBAL
21266 #    define LT_DLGLOBAL         DL_GLOBAL
21267 #  else
21268 #    define LT_DLGLOBAL         0
21269 #  endif
21270 #endif
21271
21272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21273    find out it does not work in some platform. */
21274 #ifndef LT_DLLAZY_OR_NOW
21275 #  ifdef RTLD_LAZY
21276 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21277 #  else
21278 #    ifdef DL_LAZY
21279 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21280 #    else
21281 #      ifdef RTLD_NOW
21282 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21283 #      else
21284 #        ifdef DL_NOW
21285 #          define LT_DLLAZY_OR_NOW      DL_NOW
21286 #        else
21287 #          define LT_DLLAZY_OR_NOW      0
21288 #        endif
21289 #      endif
21290 #    endif
21291 #  endif
21292 #endif
21293
21294 #ifdef __cplusplus
21295 extern "C" void exit (int);
21296 #endif
21297
21298 void fnord() { int i=42;}
21299 int main ()
21300 {
21301   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21302   int status = $lt_dlunknown;
21303
21304   if (self)
21305     {
21306       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21307       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21308       /* dlclose (self); */
21309     }
21310
21311     exit (status);
21312 }
21313 EOF
21314   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21315   (eval $ac_link) 2>&5
21316   ac_status=$?
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21319     (./conftest; exit; ) 2>/dev/null
21320     lt_status=$?
21321     case x$lt_status in
21322       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21323       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21324       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21325     esac
21326   else :
21327     # compilation failed
21328     lt_cv_dlopen_self=no
21329   fi
21330 fi
21331 rm -fr conftest*
21332
21333
21334 fi
21335 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21336 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
21337
21338     if test "x$lt_cv_dlopen_self" = xyes; then
21339       LDFLAGS="$LDFLAGS $link_static_flag"
21340       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21341 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
21342 if test "${lt_cv_dlopen_self_static+set}" = set; then
21343   echo $ECHO_N "(cached) $ECHO_C" >&6
21344 else
21345           if test "$cross_compiling" = yes; then :
21346   lt_cv_dlopen_self_static=cross
21347 else
21348   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21349   lt_status=$lt_dlunknown
21350   cat > conftest.$ac_ext <<EOF
21351 #line 21351 "configure"
21352 #include "confdefs.h"
21353
21354 #if HAVE_DLFCN_H
21355 #include <dlfcn.h>
21356 #endif
21357
21358 #include <stdio.h>
21359
21360 #ifdef RTLD_GLOBAL
21361 #  define LT_DLGLOBAL           RTLD_GLOBAL
21362 #else
21363 #  ifdef DL_GLOBAL
21364 #    define LT_DLGLOBAL         DL_GLOBAL
21365 #  else
21366 #    define LT_DLGLOBAL         0
21367 #  endif
21368 #endif
21369
21370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21371    find out it does not work in some platform. */
21372 #ifndef LT_DLLAZY_OR_NOW
21373 #  ifdef RTLD_LAZY
21374 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21375 #  else
21376 #    ifdef DL_LAZY
21377 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21378 #    else
21379 #      ifdef RTLD_NOW
21380 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21381 #      else
21382 #        ifdef DL_NOW
21383 #          define LT_DLLAZY_OR_NOW      DL_NOW
21384 #        else
21385 #          define LT_DLLAZY_OR_NOW      0
21386 #        endif
21387 #      endif
21388 #    endif
21389 #  endif
21390 #endif
21391
21392 #ifdef __cplusplus
21393 extern "C" void exit (int);
21394 #endif
21395
21396 void fnord() { int i=42;}
21397 int main ()
21398 {
21399   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21400   int status = $lt_dlunknown;
21401
21402   if (self)
21403     {
21404       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21405       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21406       /* dlclose (self); */
21407     }
21408
21409     exit (status);
21410 }
21411 EOF
21412   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413   (eval $ac_link) 2>&5
21414   ac_status=$?
21415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21417     (./conftest; exit; ) 2>/dev/null
21418     lt_status=$?
21419     case x$lt_status in
21420       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21421       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21422       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21423     esac
21424   else :
21425     # compilation failed
21426     lt_cv_dlopen_self_static=no
21427   fi
21428 fi
21429 rm -fr conftest*
21430
21431
21432 fi
21433 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
21435     fi
21436
21437     CPPFLAGS="$save_CPPFLAGS"
21438     LDFLAGS="$save_LDFLAGS"
21439     LIBS="$save_LIBS"
21440     ;;
21441   esac
21442
21443   case $lt_cv_dlopen_self in
21444   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21445   *) enable_dlopen_self=unknown ;;
21446   esac
21447
21448   case $lt_cv_dlopen_self_static in
21449   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21450   *) enable_dlopen_self_static=unknown ;;
21451   esac
21452 fi
21453
21454
21455 # The else clause should only fire when bootstrapping the
21456 # libtool distribution, otherwise you forgot to ship ltmain.sh
21457 # with your package, and you will get complaints that there are
21458 # no rules to generate ltmain.sh.
21459 if test -f "$ltmain"; then
21460   # See if we are running on zsh, and set the options which allow our commands through
21461   # without removal of \ escapes.
21462   if test -n "${ZSH_VERSION+set}" ; then
21463     setopt NO_GLOB_SUBST
21464   fi
21465   # Now quote all the things that may contain metacharacters while being
21466   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21467   # variables and quote the copies for generation of the libtool script.
21468   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21469     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21470     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21471     deplibs_check_method reload_flag reload_cmds need_locks \
21472     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21473     lt_cv_sys_global_symbol_to_c_name_address \
21474     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21475     old_postinstall_cmds old_postuninstall_cmds \
21476     compiler_GCJ \
21477     CC_GCJ \
21478     LD_GCJ \
21479     lt_prog_compiler_wl_GCJ \
21480     lt_prog_compiler_pic_GCJ \
21481     lt_prog_compiler_static_GCJ \
21482     lt_prog_compiler_no_builtin_flag_GCJ \
21483     export_dynamic_flag_spec_GCJ \
21484     thread_safe_flag_spec_GCJ \
21485     whole_archive_flag_spec_GCJ \
21486     enable_shared_with_static_runtimes_GCJ \
21487     old_archive_cmds_GCJ \
21488     old_archive_from_new_cmds_GCJ \
21489     predep_objects_GCJ \
21490     postdep_objects_GCJ \
21491     predeps_GCJ \
21492     postdeps_GCJ \
21493     compiler_lib_search_path_GCJ \
21494     archive_cmds_GCJ \
21495     archive_expsym_cmds_GCJ \
21496     postinstall_cmds_GCJ \
21497     postuninstall_cmds_GCJ \
21498     old_archive_from_expsyms_cmds_GCJ \
21499     allow_undefined_flag_GCJ \
21500     no_undefined_flag_GCJ \
21501     export_symbols_cmds_GCJ \
21502     hardcode_libdir_flag_spec_GCJ \
21503     hardcode_libdir_flag_spec_ld_GCJ \
21504     hardcode_libdir_separator_GCJ \
21505     hardcode_automatic_GCJ \
21506     module_cmds_GCJ \
21507     module_expsym_cmds_GCJ \
21508     lt_cv_prog_compiler_c_o_GCJ \
21509     exclude_expsyms_GCJ \
21510     include_expsyms_GCJ; do
21511
21512     case $var in
21513     old_archive_cmds_GCJ | \
21514     old_archive_from_new_cmds_GCJ | \
21515     archive_cmds_GCJ | \
21516     archive_expsym_cmds_GCJ | \
21517     module_cmds_GCJ | \
21518     module_expsym_cmds_GCJ | \
21519     old_archive_from_expsyms_cmds_GCJ | \
21520     export_symbols_cmds_GCJ | \
21521     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21522     postinstall_cmds | postuninstall_cmds | \
21523     old_postinstall_cmds | old_postuninstall_cmds | \
21524     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21525       # Double-quote double-evaled strings.
21526       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21527       ;;
21528     *)
21529       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21530       ;;
21531     esac
21532   done
21533
21534   case $lt_echo in
21535   *'\$0 --fallback-echo"')
21536     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21537     ;;
21538   esac
21539
21540 cfgfile="$ofile"
21541
21542   cat <<__EOF__ >> "$cfgfile"
21543 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21544
21545 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21546
21547 # Shell to use when invoking shell scripts.
21548 SHELL=$lt_SHELL
21549
21550 # Whether or not to build shared libraries.
21551 build_libtool_libs=$enable_shared
21552
21553 # Whether or not to build static libraries.
21554 build_old_libs=$enable_static
21555
21556 # Whether or not to add -lc for building shared libraries.
21557 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21558
21559 # Whether or not to disallow shared libs when runtime libs are static
21560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21561
21562 # Whether or not to optimize for fast installation.
21563 fast_install=$enable_fast_install
21564
21565 # The host system.
21566 host_alias=$host_alias
21567 host=$host
21568
21569 # An echo program that does not interpret backslashes.
21570 echo=$lt_echo
21571
21572 # The archiver.
21573 AR=$lt_AR
21574 AR_FLAGS=$lt_AR_FLAGS
21575
21576 # A C compiler.
21577 LTCC=$lt_LTCC
21578
21579 # A language-specific compiler.
21580 CC=$lt_compiler_GCJ
21581
21582 # Is the compiler the GNU C compiler?
21583 with_gcc=$GCC_GCJ
21584
21585 # An ERE matcher.
21586 EGREP=$lt_EGREP
21587
21588 # The linker used to build libraries.
21589 LD=$lt_LD_GCJ
21590
21591 # Whether we need hard or soft links.
21592 LN_S=$lt_LN_S
21593
21594 # A BSD-compatible nm program.
21595 NM=$lt_NM
21596
21597 # A symbol stripping program
21598 STRIP=$STRIP
21599
21600 # Used to examine libraries when file_magic_cmd begins "file"
21601 MAGIC_CMD=$MAGIC_CMD
21602
21603 # Used on cygwin: DLL creation program.
21604 DLLTOOL="$DLLTOOL"
21605
21606 # Used on cygwin: object dumper.
21607 OBJDUMP="$OBJDUMP"
21608
21609 # Used on cygwin: assembler.
21610 AS="$AS"
21611
21612 # The name of the directory that contains temporary libtool files.
21613 objdir=$objdir
21614
21615 # How to create reloadable object files.
21616 reload_flag=$lt_reload_flag
21617 reload_cmds=$lt_reload_cmds
21618
21619 # How to pass a linker flag through the compiler.
21620 wl=$lt_lt_prog_compiler_wl_GCJ
21621
21622 # Object file suffix (normally "o").
21623 objext="$ac_objext"
21624
21625 # Old archive suffix (normally "a").
21626 libext="$libext"
21627
21628 # Shared library suffix (normally ".so").
21629 shrext='$shrext'
21630
21631 # Executable file suffix (normally "").
21632 exeext="$exeext"
21633
21634 # Additional compiler flags for building library objects.
21635 pic_flag=$lt_lt_prog_compiler_pic_GCJ
21636 pic_mode=$pic_mode
21637
21638 # What is the maximum length of a command?
21639 max_cmd_len=$lt_cv_sys_max_cmd_len
21640
21641 # Does compiler simultaneously support -c and -o options?
21642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21643
21644 # Must we lock files when doing compilation ?
21645 need_locks=$lt_need_locks
21646
21647 # Do we need the lib prefix for modules?
21648 need_lib_prefix=$need_lib_prefix
21649
21650 # Do we need a version for libraries?
21651 need_version=$need_version
21652
21653 # Whether dlopen is supported.
21654 dlopen_support=$enable_dlopen
21655
21656 # Whether dlopen of programs is supported.
21657 dlopen_self=$enable_dlopen_self
21658
21659 # Whether dlopen of statically linked programs is supported.
21660 dlopen_self_static=$enable_dlopen_self_static
21661
21662 # Compiler flag to prevent dynamic linking.
21663 link_static_flag=$lt_lt_prog_compiler_static_GCJ
21664
21665 # Compiler flag to turn off builtin functions.
21666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21667
21668 # Compiler flag to allow reflexive dlopens.
21669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21670
21671 # Compiler flag to generate shared objects directly from archives.
21672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21673
21674 # Compiler flag to generate thread-safe objects.
21675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21676
21677 # Library versioning type.
21678 version_type=$version_type
21679
21680 # Format of library name prefix.
21681 libname_spec=$lt_libname_spec
21682
21683 # List of archive names.  First name is the real one, the rest are links.
21684 # The last name is the one that the linker finds with -lNAME.
21685 library_names_spec=$lt_library_names_spec
21686
21687 # The coded name of the library, if different from the real name.
21688 soname_spec=$lt_soname_spec
21689
21690 # Commands used to build and install an old-style archive.
21691 RANLIB=$lt_RANLIB
21692 old_archive_cmds=$lt_old_archive_cmds_GCJ
21693 old_postinstall_cmds=$lt_old_postinstall_cmds
21694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21695
21696 # Create an old-style archive from a shared archive.
21697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21698
21699 # Create a temporary old-style archive to link instead of a shared archive.
21700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21701
21702 # Commands used to build and install a shared archive.
21703 archive_cmds=$lt_archive_cmds_GCJ
21704 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21705 postinstall_cmds=$lt_postinstall_cmds
21706 postuninstall_cmds=$lt_postuninstall_cmds
21707
21708 # Commands used to build a loadable module (assumed same as above if empty)
21709 module_cmds=$lt_module_cmds_GCJ
21710 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21711
21712 # Commands to strip libraries.
21713 old_striplib=$lt_old_striplib
21714 striplib=$lt_striplib
21715
21716 # Dependencies to place before the objects being linked to create a
21717 # shared library.
21718 predep_objects=$lt_predep_objects_GCJ
21719
21720 # Dependencies to place after the objects being linked to create a
21721 # shared library.
21722 postdep_objects=$lt_postdep_objects_GCJ
21723
21724 # Dependencies to place before the objects being linked to create a
21725 # shared library.
21726 predeps=$lt_predeps_GCJ
21727
21728 # Dependencies to place after the objects being linked to create a
21729 # shared library.
21730 postdeps=$lt_postdeps_GCJ
21731
21732 # The library search path used internally by the compiler when linking
21733 # a shared library.
21734 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21735
21736 # Method to check whether dependent libraries are shared objects.
21737 deplibs_check_method=$lt_deplibs_check_method
21738
21739 # Command to use when deplibs_check_method == file_magic.
21740 file_magic_cmd=$lt_file_magic_cmd
21741
21742 # Flag that allows shared libraries with undefined symbols to be built.
21743 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21744
21745 # Flag that forces no undefined symbols.
21746 no_undefined_flag=$lt_no_undefined_flag_GCJ
21747
21748 # Commands used to finish a libtool library installation in a directory.
21749 finish_cmds=$lt_finish_cmds
21750
21751 # Same as above, but a single script fragment to be evaled but not shown.
21752 finish_eval=$lt_finish_eval
21753
21754 # Take the output of nm and produce a listing of raw symbols and C names.
21755 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21756
21757 # Transform the output of nm in a proper C declaration
21758 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21759
21760 # Transform the output of nm in a C name address pair
21761 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21762
21763 # This is the shared library runtime path variable.
21764 runpath_var=$runpath_var
21765
21766 # This is the shared library path variable.
21767 shlibpath_var=$shlibpath_var
21768
21769 # Is shlibpath searched before the hard-coded library search path?
21770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21771
21772 # How to hardcode a shared library path into an executable.
21773 hardcode_action=$hardcode_action_GCJ
21774
21775 # Whether we should hardcode library paths into libraries.
21776 hardcode_into_libs=$hardcode_into_libs
21777
21778 # Flag to hardcode \$libdir into a binary during linking.
21779 # This must work even if \$libdir does not exist.
21780 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21781
21782 # If ld is used when linking, flag to hardcode \$libdir into
21783 # a binary during linking. This must work even if \$libdir does
21784 # not exist.
21785 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21786
21787 # Whether we need a single -rpath flag with a separated argument.
21788 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21789
21790 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21791 # resulting binary.
21792 hardcode_direct=$hardcode_direct_GCJ
21793
21794 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21795 # resulting binary.
21796 hardcode_minus_L=$hardcode_minus_L_GCJ
21797
21798 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21799 # the resulting binary.
21800 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21801
21802 # Set to yes if building a shared library automatically hardcodes DIR into the library
21803 # and all subsequent libraries and executables linked against it.
21804 hardcode_automatic=$hardcode_automatic_GCJ
21805
21806 # Variables whose values should be saved in libtool wrapper scripts and
21807 # restored at relink time.
21808 variables_saved_for_relink="$variables_saved_for_relink"
21809
21810 # Whether libtool must link a program against all its dependency libraries.
21811 link_all_deplibs=$link_all_deplibs_GCJ
21812
21813 # Compile-time system search path for libraries
21814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21815
21816 # Run-time system search path for libraries
21817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21818
21819 # Fix the shell variable \$srcfile for the compiler.
21820 fix_srcfile_path="$fix_srcfile_path_GCJ"
21821
21822 # Set to yes if exported symbols are required.
21823 always_export_symbols=$always_export_symbols_GCJ
21824
21825 # The commands to list exported symbols.
21826 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21827
21828 # The commands to extract the exported symbol list from a shared archive.
21829 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21830
21831 # Symbols that should not be listed in the preloaded symbols.
21832 exclude_expsyms=$lt_exclude_expsyms_GCJ
21833
21834 # Symbols that must always be exported.
21835 include_expsyms=$lt_include_expsyms_GCJ
21836
21837 # ### END LIBTOOL TAG CONFIG: $tagname
21838
21839 __EOF__
21840
21841
21842 else
21843   # If there is no Makefile yet, we rely on a make rule to execute
21844   # `config.status --recheck' to rerun these tests and create the
21845   # libtool script then.
21846   test -f Makefile && make "$ltmain"
21847 fi
21848
21849
21850 ac_ext=c
21851 ac_cpp='$CPP $CPPFLAGS'
21852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21855
21856 CC="$lt_save_CC"
21857
21858         else
21859           tagname=""
21860         fi
21861         ;;
21862
21863       RC)
21864
21865
21866 # Source file extension for RC test sources.
21867 ac_ext=rc
21868
21869 # Object file extension for compiled RC test sources.
21870 objext=o
21871 objext_RC=$objext
21872
21873 # Code to be used in simple compile tests
21874 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21875
21876 # Code to be used in simple link tests
21877 lt_simple_link_test_code="$lt_simple_compile_test_code"
21878
21879 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21880
21881 # If no C compiler was specified, use CC.
21882 LTCC=${LTCC-"$CC"}
21883
21884 # Allow CC to be a program name with arguments.
21885 compiler=$CC
21886
21887
21888 # Allow CC to be a program name with arguments.
21889 lt_save_CC="$CC"
21890 CC=${RC-"windres"}
21891 compiler=$CC
21892 compiler_RC=$CC
21893 lt_cv_prog_compiler_c_o_RC=yes
21894
21895 # The else clause should only fire when bootstrapping the
21896 # libtool distribution, otherwise you forgot to ship ltmain.sh
21897 # with your package, and you will get complaints that there are
21898 # no rules to generate ltmain.sh.
21899 if test -f "$ltmain"; then
21900   # See if we are running on zsh, and set the options which allow our commands through
21901   # without removal of \ escapes.
21902   if test -n "${ZSH_VERSION+set}" ; then
21903     setopt NO_GLOB_SUBST
21904   fi
21905   # Now quote all the things that may contain metacharacters while being
21906   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21907   # variables and quote the copies for generation of the libtool script.
21908   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21909     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21910     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21911     deplibs_check_method reload_flag reload_cmds need_locks \
21912     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21913     lt_cv_sys_global_symbol_to_c_name_address \
21914     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21915     old_postinstall_cmds old_postuninstall_cmds \
21916     compiler_RC \
21917     CC_RC \
21918     LD_RC \
21919     lt_prog_compiler_wl_RC \
21920     lt_prog_compiler_pic_RC \
21921     lt_prog_compiler_static_RC \
21922     lt_prog_compiler_no_builtin_flag_RC \
21923     export_dynamic_flag_spec_RC \
21924     thread_safe_flag_spec_RC \
21925     whole_archive_flag_spec_RC \
21926     enable_shared_with_static_runtimes_RC \
21927     old_archive_cmds_RC \
21928     old_archive_from_new_cmds_RC \
21929     predep_objects_RC \
21930     postdep_objects_RC \
21931     predeps_RC \
21932     postdeps_RC \
21933     compiler_lib_search_path_RC \
21934     archive_cmds_RC \
21935     archive_expsym_cmds_RC \
21936     postinstall_cmds_RC \
21937     postuninstall_cmds_RC \
21938     old_archive_from_expsyms_cmds_RC \
21939     allow_undefined_flag_RC \
21940     no_undefined_flag_RC \
21941     export_symbols_cmds_RC \
21942     hardcode_libdir_flag_spec_RC \
21943     hardcode_libdir_flag_spec_ld_RC \
21944     hardcode_libdir_separator_RC \
21945     hardcode_automatic_RC \
21946     module_cmds_RC \
21947     module_expsym_cmds_RC \
21948     lt_cv_prog_compiler_c_o_RC \
21949     exclude_expsyms_RC \
21950     include_expsyms_RC; do
21951
21952     case $var in
21953     old_archive_cmds_RC | \
21954     old_archive_from_new_cmds_RC | \
21955     archive_cmds_RC | \
21956     archive_expsym_cmds_RC | \
21957     module_cmds_RC | \
21958     module_expsym_cmds_RC | \
21959     old_archive_from_expsyms_cmds_RC | \
21960     export_symbols_cmds_RC | \
21961     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21962     postinstall_cmds | postuninstall_cmds | \
21963     old_postinstall_cmds | old_postuninstall_cmds | \
21964     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21965       # Double-quote double-evaled strings.
21966       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21967       ;;
21968     *)
21969       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21970       ;;
21971     esac
21972   done
21973
21974   case $lt_echo in
21975   *'\$0 --fallback-echo"')
21976     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21977     ;;
21978   esac
21979
21980 cfgfile="$ofile"
21981
21982   cat <<__EOF__ >> "$cfgfile"
21983 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21984
21985 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21986
21987 # Shell to use when invoking shell scripts.
21988 SHELL=$lt_SHELL
21989
21990 # Whether or not to build shared libraries.
21991 build_libtool_libs=$enable_shared
21992
21993 # Whether or not to build static libraries.
21994 build_old_libs=$enable_static
21995
21996 # Whether or not to add -lc for building shared libraries.
21997 build_libtool_need_lc=$archive_cmds_need_lc_RC
21998
21999 # Whether or not to disallow shared libs when runtime libs are static
22000 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22001
22002 # Whether or not to optimize for fast installation.
22003 fast_install=$enable_fast_install
22004
22005 # The host system.
22006 host_alias=$host_alias
22007 host=$host
22008
22009 # An echo program that does not interpret backslashes.
22010 echo=$lt_echo
22011
22012 # The archiver.
22013 AR=$lt_AR
22014 AR_FLAGS=$lt_AR_FLAGS
22015
22016 # A C compiler.
22017 LTCC=$lt_LTCC
22018
22019 # A language-specific compiler.
22020 CC=$lt_compiler_RC
22021
22022 # Is the compiler the GNU C compiler?
22023 with_gcc=$GCC_RC
22024
22025 # An ERE matcher.
22026 EGREP=$lt_EGREP
22027
22028 # The linker used to build libraries.
22029 LD=$lt_LD_RC
22030
22031 # Whether we need hard or soft links.
22032 LN_S=$lt_LN_S
22033
22034 # A BSD-compatible nm program.
22035 NM=$lt_NM
22036
22037 # A symbol stripping program
22038 STRIP=$STRIP
22039
22040 # Used to examine libraries when file_magic_cmd begins "file"
22041 MAGIC_CMD=$MAGIC_CMD
22042
22043 # Used on cygwin: DLL creation program.
22044 DLLTOOL="$DLLTOOL"
22045
22046 # Used on cygwin: object dumper.
22047 OBJDUMP="$OBJDUMP"
22048
22049 # Used on cygwin: assembler.
22050 AS="$AS"
22051
22052 # The name of the directory that contains temporary libtool files.
22053 objdir=$objdir
22054
22055 # How to create reloadable object files.
22056 reload_flag=$lt_reload_flag
22057 reload_cmds=$lt_reload_cmds
22058
22059 # How to pass a linker flag through the compiler.
22060 wl=$lt_lt_prog_compiler_wl_RC
22061
22062 # Object file suffix (normally "o").
22063 objext="$ac_objext"
22064
22065 # Old archive suffix (normally "a").
22066 libext="$libext"
22067
22068 # Shared library suffix (normally ".so").
22069 shrext='$shrext'
22070
22071 # Executable file suffix (normally "").
22072 exeext="$exeext"
22073
22074 # Additional compiler flags for building library objects.
22075 pic_flag=$lt_lt_prog_compiler_pic_RC
22076 pic_mode=$pic_mode
22077
22078 # What is the maximum length of a command?
22079 max_cmd_len=$lt_cv_sys_max_cmd_len
22080
22081 # Does compiler simultaneously support -c and -o options?
22082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22083
22084 # Must we lock files when doing compilation ?
22085 need_locks=$lt_need_locks
22086
22087 # Do we need the lib prefix for modules?
22088 need_lib_prefix=$need_lib_prefix
22089
22090 # Do we need a version for libraries?
22091 need_version=$need_version
22092
22093 # Whether dlopen is supported.
22094 dlopen_support=$enable_dlopen
22095
22096 # Whether dlopen of programs is supported.
22097 dlopen_self=$enable_dlopen_self
22098
22099 # Whether dlopen of statically linked programs is supported.
22100 dlopen_self_static=$enable_dlopen_self_static
22101
22102 # Compiler flag to prevent dynamic linking.
22103 link_static_flag=$lt_lt_prog_compiler_static_RC
22104
22105 # Compiler flag to turn off builtin functions.
22106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22107
22108 # Compiler flag to allow reflexive dlopens.
22109 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22110
22111 # Compiler flag to generate shared objects directly from archives.
22112 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22113
22114 # Compiler flag to generate thread-safe objects.
22115 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22116
22117 # Library versioning type.
22118 version_type=$version_type
22119
22120 # Format of library name prefix.
22121 libname_spec=$lt_libname_spec
22122
22123 # List of archive names.  First name is the real one, the rest are links.
22124 # The last name is the one that the linker finds with -lNAME.
22125 library_names_spec=$lt_library_names_spec
22126
22127 # The coded name of the library, if different from the real name.
22128 soname_spec=$lt_soname_spec
22129
22130 # Commands used to build and install an old-style archive.
22131 RANLIB=$lt_RANLIB
22132 old_archive_cmds=$lt_old_archive_cmds_RC
22133 old_postinstall_cmds=$lt_old_postinstall_cmds
22134 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22135
22136 # Create an old-style archive from a shared archive.
22137 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22138
22139 # Create a temporary old-style archive to link instead of a shared archive.
22140 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22141
22142 # Commands used to build and install a shared archive.
22143 archive_cmds=$lt_archive_cmds_RC
22144 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22145 postinstall_cmds=$lt_postinstall_cmds
22146 postuninstall_cmds=$lt_postuninstall_cmds
22147
22148 # Commands used to build a loadable module (assumed same as above if empty)
22149 module_cmds=$lt_module_cmds_RC
22150 module_expsym_cmds=$lt_module_expsym_cmds_RC
22151
22152 # Commands to strip libraries.
22153 old_striplib=$lt_old_striplib
22154 striplib=$lt_striplib
22155
22156 # Dependencies to place before the objects being linked to create a
22157 # shared library.
22158 predep_objects=$lt_predep_objects_RC
22159
22160 # Dependencies to place after the objects being linked to create a
22161 # shared library.
22162 postdep_objects=$lt_postdep_objects_RC
22163
22164 # Dependencies to place before the objects being linked to create a
22165 # shared library.
22166 predeps=$lt_predeps_RC
22167
22168 # Dependencies to place after the objects being linked to create a
22169 # shared library.
22170 postdeps=$lt_postdeps_RC
22171
22172 # The library search path used internally by the compiler when linking
22173 # a shared library.
22174 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22175
22176 # Method to check whether dependent libraries are shared objects.
22177 deplibs_check_method=$lt_deplibs_check_method
22178
22179 # Command to use when deplibs_check_method == file_magic.
22180 file_magic_cmd=$lt_file_magic_cmd
22181
22182 # Flag that allows shared libraries with undefined symbols to be built.
22183 allow_undefined_flag=$lt_allow_undefined_flag_RC
22184
22185 # Flag that forces no undefined symbols.
22186 no_undefined_flag=$lt_no_undefined_flag_RC
22187
22188 # Commands used to finish a libtool library installation in a directory.
22189 finish_cmds=$lt_finish_cmds
22190
22191 # Same as above, but a single script fragment to be evaled but not shown.
22192 finish_eval=$lt_finish_eval
22193
22194 # Take the output of nm and produce a listing of raw symbols and C names.
22195 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22196
22197 # Transform the output of nm in a proper C declaration
22198 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22199
22200 # Transform the output of nm in a C name address pair
22201 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22202
22203 # This is the shared library runtime path variable.
22204 runpath_var=$runpath_var
22205
22206 # This is the shared library path variable.
22207 shlibpath_var=$shlibpath_var
22208
22209 # Is shlibpath searched before the hard-coded library search path?
22210 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22211
22212 # How to hardcode a shared library path into an executable.
22213 hardcode_action=$hardcode_action_RC
22214
22215 # Whether we should hardcode library paths into libraries.
22216 hardcode_into_libs=$hardcode_into_libs
22217
22218 # Flag to hardcode \$libdir into a binary during linking.
22219 # This must work even if \$libdir does not exist.
22220 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22221
22222 # If ld is used when linking, flag to hardcode \$libdir into
22223 # a binary during linking. This must work even if \$libdir does
22224 # not exist.
22225 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22226
22227 # Whether we need a single -rpath flag with a separated argument.
22228 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22229
22230 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22231 # resulting binary.
22232 hardcode_direct=$hardcode_direct_RC
22233
22234 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22235 # resulting binary.
22236 hardcode_minus_L=$hardcode_minus_L_RC
22237
22238 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22239 # the resulting binary.
22240 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22241
22242 # Set to yes if building a shared library automatically hardcodes DIR into the library
22243 # and all subsequent libraries and executables linked against it.
22244 hardcode_automatic=$hardcode_automatic_RC
22245
22246 # Variables whose values should be saved in libtool wrapper scripts and
22247 # restored at relink time.
22248 variables_saved_for_relink="$variables_saved_for_relink"
22249
22250 # Whether libtool must link a program against all its dependency libraries.
22251 link_all_deplibs=$link_all_deplibs_RC
22252
22253 # Compile-time system search path for libraries
22254 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22255
22256 # Run-time system search path for libraries
22257 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22258
22259 # Fix the shell variable \$srcfile for the compiler.
22260 fix_srcfile_path="$fix_srcfile_path_RC"
22261
22262 # Set to yes if exported symbols are required.
22263 always_export_symbols=$always_export_symbols_RC
22264
22265 # The commands to list exported symbols.
22266 export_symbols_cmds=$lt_export_symbols_cmds_RC
22267
22268 # The commands to extract the exported symbol list from a shared archive.
22269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22270
22271 # Symbols that should not be listed in the preloaded symbols.
22272 exclude_expsyms=$lt_exclude_expsyms_RC
22273
22274 # Symbols that must always be exported.
22275 include_expsyms=$lt_include_expsyms_RC
22276
22277 # ### END LIBTOOL TAG CONFIG: $tagname
22278
22279 __EOF__
22280
22281
22282 else
22283   # If there is no Makefile yet, we rely on a make rule to execute
22284   # `config.status --recheck' to rerun these tests and create the
22285   # libtool script then.
22286   test -f Makefile && make "$ltmain"
22287 fi
22288
22289
22290 ac_ext=c
22291 ac_cpp='$CPP $CPPFLAGS'
22292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22295
22296 CC="$lt_save_CC"
22297
22298         ;;
22299
22300       *)
22301         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22302 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22303    { (exit 1); exit 1; }; }
22304         ;;
22305       esac
22306
22307       # Append the new tag name to the list of available tags.
22308       if test -n "$tagname" ; then
22309       available_tags="$available_tags $tagname"
22310     fi
22311     fi
22312   done
22313   IFS="$lt_save_ifs"
22314
22315   # Now substitute the updated list of available tags.
22316   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22317     mv "${ofile}T" "$ofile"
22318     chmod +x "$ofile"
22319   else
22320     rm -f "${ofile}T"
22321     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22322 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22323    { (exit 1); exit 1; }; }
22324   fi
22325 fi
22326
22327
22328
22329 # This can be used to rebuild libtool when needed
22330 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22331
22332 # Always use our own libtool.
22333 LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
22334
22335 # Prevent multiple expansion
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370 LIBTOOL_SHELL="/bin/sh ./libtool"
22371 #  LIBTOOL="$LIBTOOL --silent"
22372 KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
22373
22374
22375 # we patch configure quite some so we better keep that consistent for incremental runs
22376 AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
22377
22378
22379
22380
22381
22382     # Extract the first word of "msgfmt", so it can be a program name with args.
22383 set dummy msgfmt; ac_word=$2
22384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22386 if test "${ac_cv_path_MSGFMT+set}" = set; then
22387   echo $ECHO_N "(cached) $ECHO_C" >&6
22388 else
22389   case "$MSGFMT" in
22390   /*)
22391   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22392   ;;
22393   *)
22394   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22395   for ac_dir in $PATH; do
22396     test -z "$ac_dir" && ac_dir=.
22397     if test -f $ac_dir/$ac_word; then
22398       if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
22399         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22400         break
22401       fi
22402     fi
22403   done
22404   IFS="$ac_save_ifs"
22405   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
22406   ;;
22407 esac
22408 fi
22409 MSGFMT="$ac_cv_path_MSGFMT"
22410 if test -n "$MSGFMT"; then
22411   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
22412 echo "${ECHO_T}$MSGFMT" >&6; }
22413 else
22414   { echo "$as_me:$LINENO: result: no" >&5
22415 echo "${ECHO_T}no" >&6; }
22416 fi
22417
22418     # Extract the first word of "gmsgfmt", so it can be a program name with args.
22419 set dummy gmsgfmt; ac_word=$2
22420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22422 if test "${ac_cv_path_GMSGFMT+set}" = set; then
22423   echo $ECHO_N "(cached) $ECHO_C" >&6
22424 else
22425   case $GMSGFMT in
22426   [\\/]* | ?:[\\/]*)
22427   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22428   ;;
22429   *)
22430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431 for as_dir in $PATH
22432 do
22433   IFS=$as_save_IFS
22434   test -z "$as_dir" && as_dir=.
22435   for ac_exec_ext in '' $ac_executable_extensions; do
22436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22437     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22439     break 2
22440   fi
22441 done
22442 done
22443 IFS=$as_save_IFS
22444
22445   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22446   ;;
22447 esac
22448 fi
22449 GMSGFMT=$ac_cv_path_GMSGFMT
22450 if test -n "$GMSGFMT"; then
22451   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22452 echo "${ECHO_T}$GMSGFMT" >&6; }
22453 else
22454   { echo "$as_me:$LINENO: result: no" >&5
22455 echo "${ECHO_T}no" >&6; }
22456 fi
22457
22458
22459
22460      if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
22461         { echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
22462 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6; }
22463         GMSGFMT=":"
22464       fi
22465       MSGFMT=$GMSGFMT
22466
22467
22468
22469       # Extract the first word of "xgettext", so it can be a program name with args.
22470 set dummy xgettext; ac_word=$2
22471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22473 if test "${ac_cv_path_XGETTEXT+set}" = set; then
22474   echo $ECHO_N "(cached) $ECHO_C" >&6
22475 else
22476   case "$XGETTEXT" in
22477   /*)
22478   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22479   ;;
22480   *)
22481   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22482   for ac_dir in $PATH; do
22483     test -z "$ac_dir" && ac_dir=.
22484     if test -f $ac_dir/$ac_word; then
22485       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22486         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22487         break
22488       fi
22489     fi
22490   done
22491   IFS="$ac_save_ifs"
22492   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22493   ;;
22494 esac
22495 fi
22496 XGETTEXT="$ac_cv_path_XGETTEXT"
22497 if test -n "$XGETTEXT"; then
22498   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22499 echo "${ECHO_T}$XGETTEXT" >&6; }
22500 else
22501   { echo "$as_me:$LINENO: result: no" >&5
22502 echo "${ECHO_T}no" >&6; }
22503 fi
22504
22505
22506             if test "$XGETTEXT" != ":"; then
22507                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22508           : ;
22509         else
22510           { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
22511 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
22512           XGETTEXT=":"
22513         fi
22514       fi
22515
22516
22517
22518
22519
22520 if test -z "$REQUIRED_KDE_VERSION"; then
22521   # Current default Qt version: 3.3
22522   kde_qtver=3
22523   kde_qtsubver=3
22524 else
22525   kde_qtsubver=`echo "$REQUIRED_KDE_VERSION" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
22526   # following is the check if subversion isnt found in passed argument
22527   if test "$kde_qtsubver" = "$REQUIRED_KDE_VERSION"; then
22528     kde_qtsubver=1
22529   fi
22530   kde_qtver=`echo "$REQUIRED_KDE_VERSION" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
22531   if test "$kde_qtver" = "1"; then
22532     kde_qtsubver=42
22533   fi
22534 fi
22535
22536 if test -z ""; then
22537   if test "$kde_qtver" = "2"; then
22538     if test $kde_qtsubver -gt 0; then
22539       kde_qt_minversion=">= Qt 2.2.2"
22540     else
22541       kde_qt_minversion=">= Qt 2.0.2"
22542     fi
22543   fi
22544   if test "$kde_qtver" = "3"; then
22545     if test $kde_qtsubver -gt 0; then
22546          if test $kde_qtsubver -gt 1; then
22547             if test $kde_qtsubver -gt 2; then
22548                 kde_qt_minversion=">= Qt 3.3"
22549             else
22550                 kde_qt_minversion=">= Qt 3.2"
22551             fi
22552          else
22553             kde_qt_minversion=">= Qt 3.1 (20021021)"
22554          fi
22555     else
22556       kde_qt_minversion=">= Qt 3.0"
22557     fi
22558   fi
22559   if test "$kde_qtver" = "1"; then
22560     kde_qt_minversion=">= 1.42 and < 2.0"
22561   fi
22562 else
22563    kde_qt_minversion=""
22564 fi
22565
22566 if test -z ""; then
22567    if test $kde_qtver = 3; then
22568      if test $kde_qtsubver -gt 0; then
22569        kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
22570        qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
22571        kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
22572      else
22573        kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
22574      fi
22575    fi
22576    if test $kde_qtver = 2; then
22577      if test $kde_qtsubver -gt 0; then
22578        kde_qt_verstring="QT_VERSION >= 222"
22579      else
22580        kde_qt_verstring="QT_VERSION >= 200"
22581      fi
22582    fi
22583    if test $kde_qtver = 1; then
22584     kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
22585    fi
22586 else
22587    kde_qt_verstring=""
22588 fi
22589
22590 if test $kde_qtver = 3; then
22591   kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
22592 fi
22593 if test $kde_qtver = 2; then
22594    kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
22595 fi
22596 if test $kde_qtver = 1; then
22597    kde_qt_dirs="$QTDIR /usr/lib/qt"
22598 fi
22599
22600
22601
22602      ac_ext=cpp
22603 ac_cpp='$CXXCPP $CPPFLAGS'
22604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22607
22608 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22609
22610
22611     ac_save_CXXFLAGS="$CXXFLAGS"
22612     CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
22613
22614     { echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
22615 echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6; }
22616     if test "${kde_cv_stl_works+set}" = set; then
22617   echo $ECHO_N "(cached) $ECHO_C" >&6
22618 else
22619
22620       cat >conftest.$ac_ext <<_ACEOF
22621 /* confdefs.h.  */
22622 _ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h.  */
22626
22627 #include <string>
22628 using namespace std;
22629
22630 int
22631 main ()
22632 {
22633
22634   string astring="Hallo Welt.";
22635   astring.erase(0, 6); // now astring is "Welt"
22636   return 0;
22637
22638   ;
22639   return 0;
22640 }
22641 _ACEOF
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646   *) ac_try_echo=$ac_try;;
22647 esac
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649   (eval "$ac_compile") 2>conftest.er1
22650   ac_status=$?
22651   grep -v '^ *+' conftest.er1 >conftest.err
22652   rm -f conftest.er1
22653   cat conftest.err >&5
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } && {
22656          test -z "$ac_cxx_werror_flag" ||
22657          test ! -s conftest.err
22658        } && test -s conftest.$ac_objext; then
22659   kde_cv_stl_works=yes
22660 else
22661   echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22663
22664         kde_cv_stl_works=no
22665 fi
22666
22667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22668
22669 fi
22670
22671
22672    { echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
22673 echo "${ECHO_T}$kde_cv_stl_works" >&6; }
22674
22675    if test "$kde_cv_stl_works" = "yes"; then
22676      # back compatible
22677
22678 cat >>confdefs.h <<_ACEOF
22679 #define HAVE_SGI_STL 1
22680 _ACEOF
22681
22682    else
22683          { { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
22684 Check config.log for details - if you're using a Linux distribution you might miss
22685 a package named similar to libstdc++-dev." >&5
22686 echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
22687 Check config.log for details - if you're using a Linux distribution you might miss
22688 a package named similar to libstdc++-dev." >&2;}
22689    { (exit 1); exit 1; }; }
22690    fi
22691
22692    CXXFLAGS="$ac_save_CXXFLAGS"
22693    ac_ext=c
22694 ac_cpp='$CPP $CPPFLAGS'
22695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22698
22699
22700
22701
22702 { echo "$as_me:$LINENO: checking for strlcat" >&5
22703 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
22704 if test "${kde_cv_func_strlcat+set}" = set; then
22705   echo $ECHO_N "(cached) $ECHO_C" >&6
22706 else
22707
22708
22709  ac_ext=cpp
22710 ac_cpp='$CXXCPP $CPPFLAGS'
22711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22714
22715 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22716
22717
22718 save_CXXFLAGS="$CXXFLAGS"
22719 kde_safe_LIBS="$LIBS"
22720 LIBS="$LIBS $X_EXTRA_LIBS"
22721 if test "$GXX" = "yes"; then
22722 CXXFLAGS="$CXXFLAGS -pedantic-errors"
22723 fi
22724 cat >conftest.$ac_ext <<_ACEOF
22725 /* confdefs.h.  */
22726 _ACEOF
22727 cat confdefs.h >>conftest.$ac_ext
22728 cat >>conftest.$ac_ext <<_ACEOF
22729 /* end confdefs.h.  */
22730
22731
22732 #include <string.h>
22733
22734
22735 int
22736 main ()
22737 {
22738
22739  char buf[20];
22740   buf[0]='\0';
22741   strlcat(buf, "KDE function test", sizeof(buf));
22742
22743
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 rm -f conftest.$ac_objext
22749 if { (ac_try="$ac_compile"
22750 case "(($ac_try" in
22751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22752   *) ac_try_echo=$ac_try;;
22753 esac
22754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22755   (eval "$ac_compile") 2>conftest.er1
22756   ac_status=$?
22757   grep -v '^ *+' conftest.er1 >conftest.err
22758   rm -f conftest.er1
22759   cat conftest.err >&5
22760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761   (exit $ac_status); } && {
22762          test -z "$ac_cxx_werror_flag" ||
22763          test ! -s conftest.err
22764        } && test -s conftest.$ac_objext; then
22765   kde_cv_func_strlcat=yes
22766 else
22767   echo "$as_me: failed program was:" >&5
22768 sed 's/^/| /' conftest.$ac_ext >&5
22769
22770         kde_cv_func_strlcat=no
22771 fi
22772
22773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 CXXFLAGS="$save_CXXFLAGS"
22775 LIBS="$kde_safe_LIBS"
22776 ac_ext=c
22777 ac_cpp='$CPP $CPPFLAGS'
22778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22781
22782
22783 fi
22784
22785
22786 { echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
22787 echo "${ECHO_T}$kde_cv_func_strlcat" >&6; }
22788
22789 { echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
22790 echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6; }
22791 if test "${kde_cv_proto_strlcat+set}" = set; then
22792   echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794
22795 if test "x$kde_cv_func_strlcat" = xyes; then
22796   kde_cv_proto_strlcat=no
22797 else
22798   case "strlcat" in
22799         setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
22800                 kde_cv_proto_strlcat="yes - in libkdefakes"
22801                 ;;
22802         *)
22803                 kde_cv_proto_strlcat=unknown
22804                 ;;
22805   esac
22806 fi
22807
22808 if test "x$kde_cv_proto_strlcat" = xunknown; then
22809
22810
22811  ac_ext=cpp
22812 ac_cpp='$CXXCPP $CPPFLAGS'
22813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22816
22817 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22818
22819
22820   kde_safe_libs=$LIBS
22821   LIBS="$LIBS $X_EXTRA_LIBS"
22822   cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828
22829
22830 #include <string.h>
22831
22832
22833 extern "C" unsigned long strlcat(char*, const char*, unsigned long);
22834
22835 int
22836 main ()
22837 {
22838
22839  char buf[20];
22840   buf[0]='\0';
22841   strlcat(buf, "KDE function test", sizeof(buf));
22842
22843
22844   ;
22845   return 0;
22846 }
22847 _ACEOF
22848 rm -f conftest.$ac_objext conftest$ac_exeext
22849 if { (ac_try="$ac_link"
22850 case "(($ac_try" in
22851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852   *) ac_try_echo=$ac_try;;
22853 esac
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855   (eval "$ac_link") 2>conftest.er1
22856   ac_status=$?
22857   grep -v '^ *+' conftest.er1 >conftest.err
22858   rm -f conftest.er1
22859   cat conftest.err >&5
22860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861   (exit $ac_status); } && {
22862          test -z "$ac_cxx_werror_flag" ||
22863          test ! -s conftest.err
22864        } && test -s conftest$ac_exeext &&
22865        $as_test_x conftest$ac_exeext; then
22866    kde_cv_func_strlcat=yes
22867   kde_cv_proto_strlcat=yes
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         kde_cv_proto_strlcat="strlcat unavailable"
22873
22874 fi
22875
22876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22877       conftest$ac_exeext conftest.$ac_ext
22878 LIBS=$kde_safe_libs
22879 ac_ext=c
22880 ac_cpp='$CPP $CPPFLAGS'
22881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22884
22885 fi
22886
22887 fi
22888
22889 { echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
22890 echo "${ECHO_T}$kde_cv_proto_strlcat" >&6; }
22891
22892 if test "x$kde_cv_func_strlcat" = xyes; then
22893
22894 cat >>confdefs.h <<\_ACEOF
22895 #define HAVE_STRLCAT 1
22896 _ACEOF
22897
22898
22899 fi
22900 if test "x$kde_cv_proto_strlcat" = xno; then
22901
22902 cat >>confdefs.h <<\_ACEOF
22903 #define HAVE_STRLCAT_PROTO 1
22904 _ACEOF
22905
22906 fi
22907
22908
22909
22910
22911
22912
22913
22914 { echo "$as_me:$LINENO: checking for strlcpy" >&5
22915 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
22916 if test "${kde_cv_func_strlcpy+set}" = set; then
22917   echo $ECHO_N "(cached) $ECHO_C" >&6
22918 else
22919
22920
22921  ac_ext=cpp
22922 ac_cpp='$CXXCPP $CPPFLAGS'
22923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22926
22927 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22928
22929
22930 save_CXXFLAGS="$CXXFLAGS"
22931 kde_safe_LIBS="$LIBS"
22932 LIBS="$LIBS $X_EXTRA_LIBS"
22933 if test "$GXX" = "yes"; then
22934 CXXFLAGS="$CXXFLAGS -pedantic-errors"
22935 fi
22936 cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h.  */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h.  */
22942
22943
22944 #include <string.h>
22945
22946
22947 int
22948 main ()
22949 {
22950
22951  char buf[20];
22952   strlcpy(buf, "KDE function test", sizeof(buf));
22953
22954
22955   ;
22956   return 0;
22957 }
22958 _ACEOF
22959 rm -f conftest.$ac_objext
22960 if { (ac_try="$ac_compile"
22961 case "(($ac_try" in
22962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963   *) ac_try_echo=$ac_try;;
22964 esac
22965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22966   (eval "$ac_compile") 2>conftest.er1
22967   ac_status=$?
22968   grep -v '^ *+' conftest.er1 >conftest.err
22969   rm -f conftest.er1
22970   cat conftest.err >&5
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); } && {
22973          test -z "$ac_cxx_werror_flag" ||
22974          test ! -s conftest.err
22975        } && test -s conftest.$ac_objext; then
22976   kde_cv_func_strlcpy=yes
22977 else
22978   echo "$as_me: failed program was:" >&5
22979 sed 's/^/| /' conftest.$ac_ext >&5
22980
22981         kde_cv_func_strlcpy=no
22982 fi
22983
22984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985 CXXFLAGS="$save_CXXFLAGS"
22986 LIBS="$kde_safe_LIBS"
22987 ac_ext=c
22988 ac_cpp='$CPP $CPPFLAGS'
22989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22992
22993
22994 fi
22995
22996
22997 { echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
22998 echo "${ECHO_T}$kde_cv_func_strlcpy" >&6; }
22999
23000 { echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
23001 echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6; }
23002 if test "${kde_cv_proto_strlcpy+set}" = set; then
23003   echo $ECHO_N "(cached) $ECHO_C" >&6
23004 else
23005
23006 if test "x$kde_cv_func_strlcpy" = xyes; then
23007   kde_cv_proto_strlcpy=no
23008 else
23009   case "strlcpy" in
23010         setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23011                 kde_cv_proto_strlcpy="yes - in libkdefakes"
23012                 ;;
23013         *)
23014                 kde_cv_proto_strlcpy=unknown
23015                 ;;
23016   esac
23017 fi
23018
23019 if test "x$kde_cv_proto_strlcpy" = xunknown; then
23020
23021
23022  ac_ext=cpp
23023 ac_cpp='$CXXCPP $CPPFLAGS'
23024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23027
23028 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23029
23030
23031   kde_safe_libs=$LIBS
23032   LIBS="$LIBS $X_EXTRA_LIBS"
23033   cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h.  */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h.  */
23039
23040
23041 #include <string.h>
23042
23043
23044 extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
23045
23046 int
23047 main ()
23048 {
23049
23050  char buf[20];
23051   strlcpy(buf, "KDE function test", sizeof(buf));
23052
23053
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext conftest$ac_exeext
23059 if { (ac_try="$ac_link"
23060 case "(($ac_try" in
23061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062   *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065   (eval "$ac_link") 2>conftest.er1
23066   ac_status=$?
23067   grep -v '^ *+' conftest.er1 >conftest.err
23068   rm -f conftest.er1
23069   cat conftest.err >&5
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } && {
23072          test -z "$ac_cxx_werror_flag" ||
23073          test ! -s conftest.err
23074        } && test -s conftest$ac_exeext &&
23075        $as_test_x conftest$ac_exeext; then
23076    kde_cv_func_strlcpy=yes
23077   kde_cv_proto_strlcpy=yes
23078 else
23079   echo "$as_me: failed program was:" >&5
23080 sed 's/^/| /' conftest.$ac_ext >&5
23081
23082         kde_cv_proto_strlcpy="strlcpy unavailable"
23083
23084 fi
23085
23086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23087       conftest$ac_exeext conftest.$ac_ext
23088 LIBS=$kde_safe_libs
23089 ac_ext=c
23090 ac_cpp='$CPP $CPPFLAGS'
23091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23094
23095 fi
23096
23097 fi
23098
23099 { echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
23100 echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6; }
23101
23102 if test "x$kde_cv_func_strlcpy" = xyes; then
23103
23104 cat >>confdefs.h <<\_ACEOF
23105 #define HAVE_STRLCPY 1
23106 _ACEOF
23107
23108
23109 fi
23110 if test "x$kde_cv_proto_strlcpy" = xno; then
23111
23112 cat >>confdefs.h <<\_ACEOF
23113 #define HAVE_STRLCPY_PROTO 1
23114 _ACEOF
23115
23116 fi
23117
23118
23119
23120
23121
23122
23123       { echo "$as_me:$LINENO: checking for main in -lutil" >&5
23124 echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6; }
23125 if test "${ac_cv_lib_util_main+set}" = set; then
23126   echo $ECHO_N "(cached) $ECHO_C" >&6
23127 else
23128   ac_check_lib_save_LIBS=$LIBS
23129 LIBS="-lutil  $LIBS"
23130 cat >conftest.$ac_ext <<_ACEOF
23131 /* confdefs.h.  */
23132 _ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h.  */
23136
23137
23138 int
23139 main ()
23140 {
23141 return main ();
23142   ;
23143   return 0;
23144 }
23145 _ACEOF
23146 rm -f conftest.$ac_objext conftest$ac_exeext
23147 if { (ac_try="$ac_link"
23148 case "(($ac_try" in
23149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150   *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153   (eval "$ac_link") 2>conftest.er1
23154   ac_status=$?
23155   grep -v '^ *+' conftest.er1 >conftest.err
23156   rm -f conftest.er1
23157   cat conftest.err >&5
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); } && {
23160          test -z "$ac_c_werror_flag" ||
23161          test ! -s conftest.err
23162        } && test -s conftest$ac_exeext &&
23163        $as_test_x conftest$ac_exeext; then
23164   ac_cv_lib_util_main=yes
23165 else
23166   echo "$as_me: failed program was:" >&5
23167 sed 's/^/| /' conftest.$ac_ext >&5
23168
23169         ac_cv_lib_util_main=no
23170 fi
23171
23172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23173       conftest$ac_exeext conftest.$ac_ext
23174 LIBS=$ac_check_lib_save_LIBS
23175 fi
23176 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
23177 echo "${ECHO_T}$ac_cv_lib_util_main" >&6; }
23178 if test $ac_cv_lib_util_main = yes; then
23179   LIBUTIL="-lutil"
23180 fi
23181
23182    { echo "$as_me:$LINENO: checking for main in -lcompat" >&5
23183 echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6; }
23184 if test "${ac_cv_lib_compat_main+set}" = set; then
23185   echo $ECHO_N "(cached) $ECHO_C" >&6
23186 else
23187   ac_check_lib_save_LIBS=$LIBS
23188 LIBS="-lcompat  $LIBS"
23189 cat >conftest.$ac_ext <<_ACEOF
23190 /* confdefs.h.  */
23191 _ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h.  */
23195
23196
23197 int
23198 main ()
23199 {
23200 return main ();
23201   ;
23202   return 0;
23203 }
23204 _ACEOF
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (ac_try="$ac_link"
23207 case "(($ac_try" in
23208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209   *) ac_try_echo=$ac_try;;
23210 esac
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212   (eval "$ac_link") 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } && {
23219          test -z "$ac_c_werror_flag" ||
23220          test ! -s conftest.err
23221        } && test -s conftest$ac_exeext &&
23222        $as_test_x conftest$ac_exeext; then
23223   ac_cv_lib_compat_main=yes
23224 else
23225   echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23227
23228         ac_cv_lib_compat_main=no
23229 fi
23230
23231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23232       conftest$ac_exeext conftest.$ac_ext
23233 LIBS=$ac_check_lib_save_LIBS
23234 fi
23235 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
23236 echo "${ECHO_T}$ac_cv_lib_compat_main" >&6; }
23237 if test $ac_cv_lib_compat_main = yes; then
23238   LIBCOMPAT="-lcompat"
23239 fi
23240
23241    kde_have_crypt=
23242    { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23243 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23244 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23245   echo $ECHO_N "(cached) $ECHO_C" >&6
23246 else
23247   ac_check_lib_save_LIBS=$LIBS
23248 LIBS="-lcrypt  $LIBS"
23249 cat >conftest.$ac_ext <<_ACEOF
23250 /* confdefs.h.  */
23251 _ACEOF
23252 cat confdefs.h >>conftest.$ac_ext
23253 cat >>conftest.$ac_ext <<_ACEOF
23254 /* end confdefs.h.  */
23255
23256 /* Override any GCC internal prototype to avoid an error.
23257    Use char because int might match the return type of a GCC
23258    builtin and then its argument prototype would still apply.  */
23259 #ifdef __cplusplus
23260 extern "C"
23261 #endif
23262 char crypt ();
23263 int
23264 main ()
23265 {
23266 return crypt ();
23267   ;
23268   return 0;
23269 }
23270 _ACEOF
23271 rm -f conftest.$ac_objext conftest$ac_exeext
23272 if { (ac_try="$ac_link"
23273 case "(($ac_try" in
23274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23275   *) ac_try_echo=$ac_try;;
23276 esac
23277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23278   (eval "$ac_link") 2>conftest.er1
23279   ac_status=$?
23280   grep -v '^ *+' conftest.er1 >conftest.err
23281   rm -f conftest.er1
23282   cat conftest.err >&5
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); } && {
23285          test -z "$ac_c_werror_flag" ||
23286          test ! -s conftest.err
23287        } && test -s conftest$ac_exeext &&
23288        $as_test_x conftest$ac_exeext; then
23289   ac_cv_lib_crypt_crypt=yes
23290 else
23291   echo "$as_me: failed program was:" >&5
23292 sed 's/^/| /' conftest.$ac_ext >&5
23293
23294         ac_cv_lib_crypt_crypt=no
23295 fi
23296
23297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23298       conftest$ac_exeext conftest.$ac_ext
23299 LIBS=$ac_check_lib_save_LIBS
23300 fi
23301 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23302 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23303 if test $ac_cv_lib_crypt_crypt = yes; then
23304   LIBCRYPT="-lcrypt"; kde_have_crypt=yes
23305 else
23306   { echo "$as_me:$LINENO: checking for crypt in -lc" >&5
23307 echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
23308 if test "${ac_cv_lib_c_crypt+set}" = set; then
23309   echo $ECHO_N "(cached) $ECHO_C" >&6
23310 else
23311   ac_check_lib_save_LIBS=$LIBS
23312 LIBS="-lc  $LIBS"
23313 cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319
23320 /* Override any GCC internal prototype to avoid an error.
23321    Use char because int might match the return type of a GCC
23322    builtin and then its argument prototype would still apply.  */
23323 #ifdef __cplusplus
23324 extern "C"
23325 #endif
23326 char crypt ();
23327 int
23328 main ()
23329 {
23330 return crypt ();
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext conftest$ac_exeext
23336 if { (ac_try="$ac_link"
23337 case "(($ac_try" in
23338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23339   *) ac_try_echo=$ac_try;;
23340 esac
23341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23342   (eval "$ac_link") 2>conftest.er1
23343   ac_status=$?
23344   grep -v '^ *+' conftest.er1 >conftest.err
23345   rm -f conftest.er1
23346   cat conftest.err >&5
23347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); } && {
23349          test -z "$ac_c_werror_flag" ||
23350          test ! -s conftest.err
23351        } && test -s conftest$ac_exeext &&
23352        $as_test_x conftest$ac_exeext; then
23353   ac_cv_lib_c_crypt=yes
23354 else
23355   echo "$as_me: failed program was:" >&5
23356 sed 's/^/| /' conftest.$ac_ext >&5
23357
23358         ac_cv_lib_c_crypt=no
23359 fi
23360
23361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23362       conftest$ac_exeext conftest.$ac_ext
23363 LIBS=$ac_check_lib_save_LIBS
23364 fi
23365 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
23366 echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
23367 if test $ac_cv_lib_c_crypt = yes; then
23368   kde_have_crypt=yes
23369 else
23370
23371         { echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
23372 You should install libcrypt from another source or configure with PAM
23373 support" >&5
23374 echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
23375 You should install libcrypt from another source or configure with PAM
23376 support" >&2;}
23377         kde_have_crypt=no
23378
23379 fi
23380
23381 fi
23382
23383
23384    if test $kde_have_crypt = yes; then
23385
23386 cat >>confdefs.h <<_ACEOF
23387 #define HAVE_CRYPT 1
23388 _ACEOF
23389
23390    fi
23391
23392    { echo "$as_me:$LINENO: checking for socklen_t" >&5
23393 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23394    if test "${kde_cv_socklen_t+set}" = set; then
23395   echo $ECHO_N "(cached) $ECHO_C" >&6
23396 else
23397
23398       ac_ext=cpp
23399 ac_cpp='$CXXCPP $CPPFLAGS'
23400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23403
23404       kde_cv_socklen_t=no
23405       cat >conftest.$ac_ext <<_ACEOF
23406 /* confdefs.h.  */
23407 _ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h.  */
23411
23412          #include <sys/types.h>
23413          #include <sys/socket.h>
23414
23415 int
23416 main ()
23417 {
23418
23419          socklen_t len;
23420          getpeername(0,0,&len);
23421
23422   ;
23423   return 0;
23424 }
23425 _ACEOF
23426 rm -f conftest.$ac_objext
23427 if { (ac_try="$ac_compile"
23428 case "(($ac_try" in
23429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430   *) ac_try_echo=$ac_try;;
23431 esac
23432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23433   (eval "$ac_compile") 2>conftest.er1
23434   ac_status=$?
23435   grep -v '^ *+' conftest.er1 >conftest.err
23436   rm -f conftest.er1
23437   cat conftest.err >&5
23438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439   (exit $ac_status); } && {
23440          test -z "$ac_cxx_werror_flag" ||
23441          test ! -s conftest.err
23442        } && test -s conftest.$ac_objext; then
23443
23444          kde_cv_socklen_t=yes
23445          kde_cv_socklen_t_equiv=socklen_t
23446
23447 else
23448   echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23450
23451
23452 fi
23453
23454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23455       ac_ext=c
23456 ac_cpp='$CPP $CPPFLAGS'
23457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23460
23461
23462 fi
23463
23464    { echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
23465 echo "${ECHO_T}$kde_cv_socklen_t" >&6; }
23466    if test $kde_cv_socklen_t = no; then
23467       { echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
23468 echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6; }
23469       if test "${kde_cv_socklen_t_equiv+set}" = set; then
23470   echo $ECHO_N "(cached) $ECHO_C" >&6
23471 else
23472
23473          kde_cv_socklen_t_equiv=int
23474          ac_ext=cpp
23475 ac_cpp='$CXXCPP $CPPFLAGS'
23476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23479
23480          for t in int size_t unsigned long "unsigned long"; do
23481             cat >conftest.$ac_ext <<_ACEOF
23482 /* confdefs.h.  */
23483 _ACEOF
23484 cat confdefs.h >>conftest.$ac_ext
23485 cat >>conftest.$ac_ext <<_ACEOF
23486 /* end confdefs.h.  */
23487
23488                #include <sys/types.h>
23489                #include <sys/socket.h>
23490
23491 int
23492 main ()
23493 {
23494
23495                $t len;
23496                getpeername(0,0,&len);
23497
23498   ;
23499   return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest.$ac_objext
23503 if { (ac_try="$ac_compile"
23504 case "(($ac_try" in
23505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506   *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509   (eval "$ac_compile") 2>conftest.er1
23510   ac_status=$?
23511   grep -v '^ *+' conftest.er1 >conftest.err
23512   rm -f conftest.er1
23513   cat conftest.err >&5
23514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515   (exit $ac_status); } && {
23516          test -z "$ac_cxx_werror_flag" ||
23517          test ! -s conftest.err
23518        } && test -s conftest.$ac_objext; then
23519
23520                kde_cv_socklen_t_equiv="$t"
23521                break
23522
23523 else
23524   echo "$as_me: failed program was:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23526
23527
23528 fi
23529
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531          done
23532          ac_ext=c
23533 ac_cpp='$CPP $CPPFLAGS'
23534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23537
23538
23539 fi
23540
23541       { echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
23542 echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6; }
23543    fi
23544
23545 cat >>confdefs.h <<_ACEOF
23546 #define kde_socklen_t $kde_cv_socklen_t_equiv
23547 _ACEOF
23548
23549
23550 cat >>confdefs.h <<_ACEOF
23551 #define ksize_t $kde_cv_socklen_t_equiv
23552 _ACEOF
23553
23554
23555    { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23556 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23557 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23558   echo $ECHO_N "(cached) $ECHO_C" >&6
23559 else
23560   ac_check_lib_save_LIBS=$LIBS
23561 LIBS="-ldnet  $LIBS"
23562 cat >conftest.$ac_ext <<_ACEOF
23563 /* confdefs.h.  */
23564 _ACEOF
23565 cat confdefs.h >>conftest.$ac_ext
23566 cat >>conftest.$ac_ext <<_ACEOF
23567 /* end confdefs.h.  */
23568
23569 /* Override any GCC internal prototype to avoid an error.
23570    Use char because int might match the return type of a GCC
23571    builtin and then its argument prototype would still apply.  */
23572 #ifdef __cplusplus
23573 extern "C"
23574 #endif
23575 char dnet_ntoa ();
23576 int
23577 main ()
23578 {
23579 return dnet_ntoa ();
23580   ;
23581   return 0;
23582 }
23583 _ACEOF
23584 rm -f conftest.$ac_objext conftest$ac_exeext
23585 if { (ac_try="$ac_link"
23586 case "(($ac_try" in
23587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588   *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591   (eval "$ac_link") 2>conftest.er1
23592   ac_status=$?
23593   grep -v '^ *+' conftest.er1 >conftest.err
23594   rm -f conftest.er1
23595   cat conftest.err >&5
23596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597   (exit $ac_status); } && {
23598          test -z "$ac_c_werror_flag" ||
23599          test ! -s conftest.err
23600        } && test -s conftest$ac_exeext &&
23601        $as_test_x conftest$ac_exeext; then
23602   ac_cv_lib_dnet_dnet_ntoa=yes
23603 else
23604   echo "$as_me: failed program was:" >&5
23605 sed 's/^/| /' conftest.$ac_ext >&5
23606
23607         ac_cv_lib_dnet_dnet_ntoa=no
23608 fi
23609
23610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23611       conftest$ac_exeext conftest.$ac_ext
23612 LIBS=$ac_check_lib_save_LIBS
23613 fi
23614 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23615 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23616 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23617   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23618 fi
23619
23620    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23621       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23622 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23623 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23624   echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626   ac_check_lib_save_LIBS=$LIBS
23627 LIBS="-ldnet_stub  $LIBS"
23628 cat >conftest.$ac_ext <<_ACEOF
23629 /* confdefs.h.  */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h.  */
23634
23635 /* Override any GCC internal prototype to avoid an error.
23636    Use char because int might match the return type of a GCC
23637    builtin and then its argument prototype would still apply.  */
23638 #ifdef __cplusplus
23639 extern "C"
23640 #endif
23641 char dnet_ntoa ();
23642 int
23643 main ()
23644 {
23645 return dnet_ntoa ();
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (ac_try="$ac_link"
23652 case "(($ac_try" in
23653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654   *) ac_try_echo=$ac_try;;
23655 esac
23656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23657   (eval "$ac_link") 2>conftest.er1
23658   ac_status=$?
23659   grep -v '^ *+' conftest.er1 >conftest.err
23660   rm -f conftest.er1
23661   cat conftest.err >&5
23662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663   (exit $ac_status); } && {
23664          test -z "$ac_c_werror_flag" ||
23665          test ! -s conftest.err
23666        } && test -s conftest$ac_exeext &&
23667        $as_test_x conftest$ac_exeext; then
23668   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23669 else
23670   echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673         ac_cv_lib_dnet_stub_dnet_ntoa=no
23674 fi
23675
23676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23677       conftest$ac_exeext conftest.$ac_ext
23678 LIBS=$ac_check_lib_save_LIBS
23679 fi
23680 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23681 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23682 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23683   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23684 fi
23685
23686    fi
23687    { echo "$as_me:$LINENO: checking for inet_ntoa" >&5
23688 echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; }
23689 if test "${ac_cv_func_inet_ntoa+set}" = set; then
23690   echo $ECHO_N "(cached) $ECHO_C" >&6
23691 else
23692   cat >conftest.$ac_ext <<_ACEOF
23693 /* confdefs.h.  */
23694 _ACEOF
23695 cat confdefs.h >>conftest.$ac_ext
23696 cat >>conftest.$ac_ext <<_ACEOF
23697 /* end confdefs.h.  */
23698 /* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
23699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23700 #define inet_ntoa innocuous_inet_ntoa
23701
23702 /* System header to define __stub macros and hopefully few prototypes,
23703     which can conflict with char inet_ntoa (); below.
23704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23705     <limits.h> exists even on freestanding compilers.  */
23706
23707 #ifdef __STDC__
23708 # include <limits.h>
23709 #else
23710 # include <assert.h>
23711 #endif
23712
23713 #undef inet_ntoa
23714
23715 /* Override any GCC internal prototype to avoid an error.
23716    Use char because int might match the return type of a GCC
23717    builtin and then its argument prototype would still apply.  */
23718 #ifdef __cplusplus
23719 extern "C"
23720 #endif
23721 char inet_ntoa ();
23722 /* The GNU C library defines this for functions which it implements
23723     to always fail with ENOSYS.  Some functions are actually named
23724     something starting with __ and the normal name is an alias.  */
23725 #if defined __stub_inet_ntoa || defined __stub___inet_ntoa
23726 choke me
23727 #endif
23728
23729 int
23730 main ()
23731 {
23732 return inet_ntoa ();
23733   ;
23734   return 0;
23735 }
23736 _ACEOF
23737 rm -f conftest.$ac_objext conftest$ac_exeext
23738 if { (ac_try="$ac_link"
23739 case "(($ac_try" in
23740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741   *) ac_try_echo=$ac_try;;
23742 esac
23743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744   (eval "$ac_link") 2>conftest.er1
23745   ac_status=$?
23746   grep -v '^ *+' conftest.er1 >conftest.err
23747   rm -f conftest.er1
23748   cat conftest.err >&5
23749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750   (exit $ac_status); } && {
23751          test -z "$ac_c_werror_flag" ||
23752          test ! -s conftest.err
23753        } && test -s conftest$ac_exeext &&
23754        $as_test_x conftest$ac_exeext; then
23755   ac_cv_func_inet_ntoa=yes
23756 else
23757   echo "$as_me: failed program was:" >&5
23758 sed 's/^/| /' conftest.$ac_ext >&5
23759
23760         ac_cv_func_inet_ntoa=no
23761 fi
23762
23763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23764       conftest$ac_exeext conftest.$ac_ext
23765 fi
23766 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
23767 echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; }
23768
23769    if test $ac_cv_func_inet_ntoa = no; then
23770      { echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
23771 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
23772 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
23773   echo $ECHO_N "(cached) $ECHO_C" >&6
23774 else
23775   ac_check_lib_save_LIBS=$LIBS
23776 LIBS="-lnsl  $LIBS"
23777 cat >conftest.$ac_ext <<_ACEOF
23778 /* confdefs.h.  */
23779 _ACEOF
23780 cat confdefs.h >>conftest.$ac_ext
23781 cat >>conftest.$ac_ext <<_ACEOF
23782 /* end confdefs.h.  */
23783
23784 /* Override any GCC internal prototype to avoid an error.
23785    Use char because int might match the return type of a GCC
23786    builtin and then its argument prototype would still apply.  */
23787 #ifdef __cplusplus
23788 extern "C"
23789 #endif
23790 char inet_ntoa ();
23791 int
23792 main ()
23793 {
23794 return inet_ntoa ();
23795   ;
23796   return 0;
23797 }
23798 _ACEOF
23799 rm -f conftest.$ac_objext conftest$ac_exeext
23800 if { (ac_try="$ac_link"
23801 case "(($ac_try" in
23802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803   *) ac_try_echo=$ac_try;;
23804 esac
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806   (eval "$ac_link") 2>conftest.er1
23807   ac_status=$?
23808   grep -v '^ *+' conftest.er1 >conftest.err
23809   rm -f conftest.er1
23810   cat conftest.err >&5
23811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812   (exit $ac_status); } && {
23813          test -z "$ac_c_werror_flag" ||
23814          test ! -s conftest.err
23815        } && test -s conftest$ac_exeext &&
23816        $as_test_x conftest$ac_exeext; then
23817   ac_cv_lib_nsl_inet_ntoa=yes
23818 else
23819   echo "$as_me: failed program was:" >&5
23820 sed 's/^/| /' conftest.$ac_ext >&5
23821
23822         ac_cv_lib_nsl_inet_ntoa=no
23823 fi
23824
23825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23826       conftest$ac_exeext conftest.$ac_ext
23827 LIBS=$ac_check_lib_save_LIBS
23828 fi
23829 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
23830 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
23831 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
23832   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23833 fi
23834
23835    fi
23836    { echo "$as_me:$LINENO: checking for connect" >&5
23837 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
23838 if test "${ac_cv_func_connect+set}" = set; then
23839   echo $ECHO_N "(cached) $ECHO_C" >&6
23840 else
23841   cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h.  */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h.  */
23847 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23849 #define connect innocuous_connect
23850
23851 /* System header to define __stub macros and hopefully few prototypes,
23852     which can conflict with char connect (); below.
23853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23854     <limits.h> exists even on freestanding compilers.  */
23855
23856 #ifdef __STDC__
23857 # include <limits.h>
23858 #else
23859 # include <assert.h>
23860 #endif
23861
23862 #undef connect
23863
23864 /* Override any GCC internal prototype to avoid an error.
23865    Use char because int might match the return type of a GCC
23866    builtin and then its argument prototype would still apply.  */
23867 #ifdef __cplusplus
23868 extern "C"
23869 #endif
23870 char connect ();
23871 /* The GNU C library defines this for functions which it implements
23872     to always fail with ENOSYS.  Some functions are actually named
23873     something starting with __ and the normal name is an alias.  */
23874 #if defined __stub_connect || defined __stub___connect
23875 choke me
23876 #endif
23877
23878 int
23879 main ()
23880 {
23881 return connect ();
23882   ;
23883   return 0;
23884 }
23885 _ACEOF
23886 rm -f conftest.$ac_objext conftest$ac_exeext
23887 if { (ac_try="$ac_link"
23888 case "(($ac_try" in
23889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23890   *) ac_try_echo=$ac_try;;
23891 esac
23892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23893   (eval "$ac_link") 2>conftest.er1
23894   ac_status=$?
23895   grep -v '^ *+' conftest.er1 >conftest.err
23896   rm -f conftest.er1
23897   cat conftest.err >&5
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); } && {
23900          test -z "$ac_c_werror_flag" ||
23901          test ! -s conftest.err
23902        } && test -s conftest$ac_exeext &&
23903        $as_test_x conftest$ac_exeext; then
23904   ac_cv_func_connect=yes
23905 else
23906   echo "$as_me: failed program was:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23908
23909         ac_cv_func_connect=no
23910 fi
23911
23912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23913       conftest$ac_exeext conftest.$ac_ext
23914 fi
23915 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23916 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
23917
23918    if test $ac_cv_func_connect = no; then
23919       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23920 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
23921 if test "${ac_cv_lib_socket_connect+set}" = set; then
23922   echo $ECHO_N "(cached) $ECHO_C" >&6
23923 else
23924   ac_check_lib_save_LIBS=$LIBS
23925 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h.  */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h.  */
23932
23933 /* Override any GCC internal prototype to avoid an error.
23934    Use char because int might match the return type of a GCC
23935    builtin and then its argument prototype would still apply.  */
23936 #ifdef __cplusplus
23937 extern "C"
23938 #endif
23939 char connect ();
23940 int
23941 main ()
23942 {
23943 return connect ();
23944   ;
23945   return 0;
23946 }
23947 _ACEOF
23948 rm -f conftest.$ac_objext conftest$ac_exeext
23949 if { (ac_try="$ac_link"
23950 case "(($ac_try" in
23951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23952   *) ac_try_echo=$ac_try;;
23953 esac
23954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23955   (eval "$ac_link") 2>conftest.er1
23956   ac_status=$?
23957   grep -v '^ *+' conftest.er1 >conftest.err
23958   rm -f conftest.er1
23959   cat conftest.err >&5
23960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961   (exit $ac_status); } && {
23962          test -z "$ac_c_werror_flag" ||
23963          test ! -s conftest.err
23964        } && test -s conftest$ac_exeext &&
23965        $as_test_x conftest$ac_exeext; then
23966   ac_cv_lib_socket_connect=yes
23967 else
23968   echo "$as_me: failed program was:" >&5
23969 sed 's/^/| /' conftest.$ac_ext >&5
23970
23971         ac_cv_lib_socket_connect=no
23972 fi
23973
23974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23975       conftest$ac_exeext conftest.$ac_ext
23976 LIBS=$ac_check_lib_save_LIBS
23977 fi
23978 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23979 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
23980 if test $ac_cv_lib_socket_connect = yes; then
23981   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23982 fi
23983
23984    fi
23985
23986    { echo "$as_me:$LINENO: checking for remove" >&5
23987 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
23988 if test "${ac_cv_func_remove+set}" = set; then
23989   echo $ECHO_N "(cached) $ECHO_C" >&6
23990 else
23991   cat >conftest.$ac_ext <<_ACEOF
23992 /* confdefs.h.  */
23993 _ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h.  */
23997 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23999 #define remove innocuous_remove
24000
24001 /* System header to define __stub macros and hopefully few prototypes,
24002     which can conflict with char remove (); below.
24003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24004     <limits.h> exists even on freestanding compilers.  */
24005
24006 #ifdef __STDC__
24007 # include <limits.h>
24008 #else
24009 # include <assert.h>
24010 #endif
24011
24012 #undef remove
24013
24014 /* Override any GCC internal prototype to avoid an error.
24015    Use char because int might match the return type of a GCC
24016    builtin and then its argument prototype would still apply.  */
24017 #ifdef __cplusplus
24018 extern "C"
24019 #endif
24020 char remove ();
24021 /* The GNU C library defines this for functions which it implements
24022     to always fail with ENOSYS.  Some functions are actually named
24023     something starting with __ and the normal name is an alias.  */
24024 #if defined __stub_remove || defined __stub___remove
24025 choke me
24026 #endif
24027
24028 int
24029 main ()
24030 {
24031 return remove ();
24032   ;
24033   return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext conftest$ac_exeext
24037 if { (ac_try="$ac_link"
24038 case "(($ac_try" in
24039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040   *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043   (eval "$ac_link") 2>conftest.er1
24044   ac_status=$?
24045   grep -v '^ *+' conftest.er1 >conftest.err
24046   rm -f conftest.er1
24047   cat conftest.err >&5
24048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049   (exit $ac_status); } && {
24050          test -z "$ac_c_werror_flag" ||
24051          test ! -s conftest.err
24052        } && test -s conftest$ac_exeext &&
24053        $as_test_x conftest$ac_exeext; then
24054   ac_cv_func_remove=yes
24055 else
24056   echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059         ac_cv_func_remove=no
24060 fi
24061
24062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24063       conftest$ac_exeext conftest.$ac_ext
24064 fi
24065 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24066 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24067
24068    if test $ac_cv_func_remove = no; then
24069       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24070 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24071 if test "${ac_cv_lib_posix_remove+set}" = set; then
24072   echo $ECHO_N "(cached) $ECHO_C" >&6
24073 else
24074   ac_check_lib_save_LIBS=$LIBS
24075 LIBS="-lposix  $LIBS"
24076 cat >conftest.$ac_ext <<_ACEOF
24077 /* confdefs.h.  */
24078 _ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h.  */
24082
24083 /* Override any GCC internal prototype to avoid an error.
24084    Use char because int might match the return type of a GCC
24085    builtin and then its argument prototype would still apply.  */
24086 #ifdef __cplusplus
24087 extern "C"
24088 #endif
24089 char remove ();
24090 int
24091 main ()
24092 {
24093 return remove ();
24094   ;
24095   return 0;
24096 }
24097 _ACEOF
24098 rm -f conftest.$ac_objext conftest$ac_exeext
24099 if { (ac_try="$ac_link"
24100 case "(($ac_try" in
24101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24102   *) ac_try_echo=$ac_try;;
24103 esac
24104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24105   (eval "$ac_link") 2>conftest.er1
24106   ac_status=$?
24107   grep -v '^ *+' conftest.er1 >conftest.err
24108   rm -f conftest.er1
24109   cat conftest.err >&5
24110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111   (exit $ac_status); } && {
24112          test -z "$ac_c_werror_flag" ||
24113          test ! -s conftest.err
24114        } && test -s conftest$ac_exeext &&
24115        $as_test_x conftest$ac_exeext; then
24116   ac_cv_lib_posix_remove=yes
24117 else
24118   echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121         ac_cv_lib_posix_remove=no
24122 fi
24123
24124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24125       conftest$ac_exeext conftest.$ac_ext
24126 LIBS=$ac_check_lib_save_LIBS
24127 fi
24128 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24129 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24130 if test $ac_cv_lib_posix_remove = yes; then
24131   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24132 fi
24133
24134    fi
24135
24136    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24137    { echo "$as_me:$LINENO: checking for shmat" >&5
24138 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24139 if test "${ac_cv_func_shmat+set}" = set; then
24140   echo $ECHO_N "(cached) $ECHO_C" >&6
24141 else
24142   cat >conftest.$ac_ext <<_ACEOF
24143 /* confdefs.h.  */
24144 _ACEOF
24145 cat confdefs.h >>conftest.$ac_ext
24146 cat >>conftest.$ac_ext <<_ACEOF
24147 /* end confdefs.h.  */
24148 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24150 #define shmat innocuous_shmat
24151
24152 /* System header to define __stub macros and hopefully few prototypes,
24153     which can conflict with char shmat (); below.
24154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24155     <limits.h> exists even on freestanding compilers.  */
24156
24157 #ifdef __STDC__
24158 # include <limits.h>
24159 #else
24160 # include <assert.h>
24161 #endif
24162
24163 #undef shmat
24164
24165 /* Override any GCC internal prototype to avoid an error.
24166    Use char because int might match the return type of a GCC
24167    builtin and then its argument prototype would still apply.  */
24168 #ifdef __cplusplus
24169 extern "C"
24170 #endif
24171 char shmat ();
24172 /* The GNU C library defines this for functions which it implements
24173     to always fail with ENOSYS.  Some functions are actually named
24174     something starting with __ and the normal name is an alias.  */
24175 #if defined __stub_shmat || defined __stub___shmat
24176 choke me
24177 #endif
24178
24179 int
24180 main ()
24181 {
24182 return shmat ();
24183   ;
24184   return 0;
24185 }
24186 _ACEOF
24187 rm -f conftest.$ac_objext conftest$ac_exeext
24188 if { (ac_try="$ac_link"
24189 case "(($ac_try" in
24190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191   *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194   (eval "$ac_link") 2>conftest.er1
24195   ac_status=$?
24196   grep -v '^ *+' conftest.er1 >conftest.err
24197   rm -f conftest.er1
24198   cat conftest.err >&5
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } && {
24201          test -z "$ac_c_werror_flag" ||
24202          test ! -s conftest.err
24203        } && test -s conftest$ac_exeext &&
24204        $as_test_x conftest$ac_exeext; then
24205   ac_cv_func_shmat=yes
24206 else
24207   echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210         ac_cv_func_shmat=no
24211 fi
24212
24213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24214       conftest$ac_exeext conftest.$ac_ext
24215 fi
24216 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24217 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24218 if test $ac_cv_func_shmat = yes; then
24219   :
24220 else
24221   { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24222 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24223 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24224   echo $ECHO_N "(cached) $ECHO_C" >&6
24225 else
24226   ac_check_lib_save_LIBS=$LIBS
24227 LIBS="-lipc  $LIBS"
24228 cat >conftest.$ac_ext <<_ACEOF
24229 /* confdefs.h.  */
24230 _ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h.  */
24234
24235 /* Override any GCC internal prototype to avoid an error.
24236    Use char because int might match the return type of a GCC
24237    builtin and then its argument prototype would still apply.  */
24238 #ifdef __cplusplus
24239 extern "C"
24240 #endif
24241 char shmat ();
24242 int
24243 main ()
24244 {
24245 return shmat ();
24246   ;
24247   return 0;
24248 }
24249 _ACEOF
24250 rm -f conftest.$ac_objext conftest$ac_exeext
24251 if { (ac_try="$ac_link"
24252 case "(($ac_try" in
24253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24254   *) ac_try_echo=$ac_try;;
24255 esac
24256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24257   (eval "$ac_link") 2>conftest.er1
24258   ac_status=$?
24259   grep -v '^ *+' conftest.er1 >conftest.err
24260   rm -f conftest.er1
24261   cat conftest.err >&5
24262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263   (exit $ac_status); } && {
24264          test -z "$ac_c_werror_flag" ||
24265          test ! -s conftest.err
24266        } && test -s conftest$ac_exeext &&
24267        $as_test_x conftest$ac_exeext; then
24268   ac_cv_lib_ipc_shmat=yes
24269 else
24270   echo "$as_me: failed program was:" >&5
24271 sed 's/^/| /' conftest.$ac_ext >&5
24272
24273         ac_cv_lib_ipc_shmat=no
24274 fi
24275
24276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24277       conftest$ac_exeext conftest.$ac_ext
24278 LIBS=$ac_check_lib_save_LIBS
24279 fi
24280 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24281 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24282 if test $ac_cv_lib_ipc_shmat = yes; then
24283   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24284 fi
24285
24286 fi
24287
24288
24289    # more headers that need to be explicitly included on darwin
24290
24291
24292 for ac_header in sys/types.h stdint.h
24293 do
24294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24296   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24299   echo $ECHO_N "(cached) $ECHO_C" >&6
24300 fi
24301 ac_res=`eval echo '${'$as_ac_Header'}'`
24302                { echo "$as_me:$LINENO: result: $ac_res" >&5
24303 echo "${ECHO_T}$ac_res" >&6; }
24304 else
24305   # Is the header compilable?
24306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24308 cat >conftest.$ac_ext <<_ACEOF
24309 /* confdefs.h.  */
24310 _ACEOF
24311 cat confdefs.h >>conftest.$ac_ext
24312 cat >>conftest.$ac_ext <<_ACEOF
24313 /* end confdefs.h.  */
24314 $ac_includes_default
24315 #include <$ac_header>
24316 _ACEOF
24317 rm -f conftest.$ac_objext
24318 if { (ac_try="$ac_compile"
24319 case "(($ac_try" in
24320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321   *) ac_try_echo=$ac_try;;
24322 esac
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324   (eval "$ac_compile") 2>conftest.er1
24325   ac_status=$?
24326   grep -v '^ *+' conftest.er1 >conftest.err
24327   rm -f conftest.er1
24328   cat conftest.err >&5
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); } && {
24331          test -z "$ac_c_werror_flag" ||
24332          test ! -s conftest.err
24333        } && test -s conftest.$ac_objext; then
24334   ac_header_compiler=yes
24335 else
24336   echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24338
24339         ac_header_compiler=no
24340 fi
24341
24342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24344 echo "${ECHO_T}$ac_header_compiler" >&6; }
24345
24346 # Is the header present?
24347 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24348 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24349 cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h.  */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h.  */
24355 #include <$ac_header>
24356 _ACEOF
24357 if { (ac_try="$ac_cpp conftest.$ac_ext"
24358 case "(($ac_try" in
24359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360   *) ac_try_echo=$ac_try;;
24361 esac
24362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24364   ac_status=$?
24365   grep -v '^ *+' conftest.er1 >conftest.err
24366   rm -f conftest.er1
24367   cat conftest.err >&5
24368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369   (exit $ac_status); } >/dev/null && {
24370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24371          test ! -s conftest.err
24372        }; then
24373   ac_header_preproc=yes
24374 else
24375   echo "$as_me: failed program was:" >&5
24376 sed 's/^/| /' conftest.$ac_ext >&5
24377
24378   ac_header_preproc=no
24379 fi
24380
24381 rm -f conftest.err conftest.$ac_ext
24382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24383 echo "${ECHO_T}$ac_header_preproc" >&6; }
24384
24385 # So?  What about this header?
24386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24387   yes:no: )
24388     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24390     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24392     ac_header_preproc=yes
24393     ;;
24394   no:yes:* )
24395     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24397     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24398 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24399     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24401     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24402 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24405     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24407
24408     ;;
24409 esac
24410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24413   echo $ECHO_N "(cached) $ECHO_C" >&6
24414 else
24415   eval "$as_ac_Header=\$ac_header_preproc"
24416 fi
24417 ac_res=`eval echo '${'$as_ac_Header'}'`
24418                { echo "$as_me:$LINENO: result: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24420
24421 fi
24422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24423   cat >>confdefs.h <<_ACEOF
24424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24425 _ACEOF
24426
24427 fi
24428
24429 done
24430
24431
24432    # sys/bitypes.h is needed for uint32_t and friends on Tru64
24433
24434 for ac_header in sys/bitypes.h
24435 do
24436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24438   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24441   echo $ECHO_N "(cached) $ECHO_C" >&6
24442 fi
24443 ac_res=`eval echo '${'$as_ac_Header'}'`
24444                { echo "$as_me:$LINENO: result: $ac_res" >&5
24445 echo "${ECHO_T}$ac_res" >&6; }
24446 else
24447   # Is the header compilable?
24448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24450 cat >conftest.$ac_ext <<_ACEOF
24451 /* confdefs.h.  */
24452 _ACEOF
24453 cat confdefs.h >>conftest.$ac_ext
24454 cat >>conftest.$ac_ext <<_ACEOF
24455 /* end confdefs.h.  */
24456 $ac_includes_default
24457 #include <$ac_header>
24458 _ACEOF
24459 rm -f conftest.$ac_objext
24460 if { (ac_try="$ac_compile"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466   (eval "$ac_compile") 2>conftest.er1
24467   ac_status=$?
24468   grep -v '^ *+' conftest.er1 >conftest.err
24469   rm -f conftest.er1
24470   cat conftest.err >&5
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); } && {
24473          test -z "$ac_c_werror_flag" ||
24474          test ! -s conftest.err
24475        } && test -s conftest.$ac_objext; then
24476   ac_header_compiler=yes
24477 else
24478   echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24480
24481         ac_header_compiler=no
24482 fi
24483
24484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24486 echo "${ECHO_T}$ac_header_compiler" >&6; }
24487
24488 # Is the header present?
24489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24491 cat >conftest.$ac_ext <<_ACEOF
24492 /* confdefs.h.  */
24493 _ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h.  */
24497 #include <$ac_header>
24498 _ACEOF
24499 if { (ac_try="$ac_cpp conftest.$ac_ext"
24500 case "(($ac_try" in
24501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502   *) ac_try_echo=$ac_try;;
24503 esac
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24506   ac_status=$?
24507   grep -v '^ *+' conftest.er1 >conftest.err
24508   rm -f conftest.er1
24509   cat conftest.err >&5
24510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511   (exit $ac_status); } >/dev/null && {
24512          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24513          test ! -s conftest.err
24514        }; then
24515   ac_header_preproc=yes
24516 else
24517   echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24519
24520   ac_header_preproc=no
24521 fi
24522
24523 rm -f conftest.err conftest.$ac_ext
24524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24525 echo "${ECHO_T}$ac_header_preproc" >&6; }
24526
24527 # So?  What about this header?
24528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24529   yes:no: )
24530     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24534     ac_header_preproc=yes
24535     ;;
24536   no:yes:* )
24537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24539     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24540 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24541     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24543     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24544 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24547     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24549
24550     ;;
24551 esac
24552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24555   echo $ECHO_N "(cached) $ECHO_C" >&6
24556 else
24557   eval "$as_ac_Header=\$ac_header_preproc"
24558 fi
24559 ac_res=`eval echo '${'$as_ac_Header'}'`
24560                { echo "$as_me:$LINENO: result: $ac_res" >&5
24561 echo "${ECHO_T}$ac_res" >&6; }
24562
24563 fi
24564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24565   cat >>confdefs.h <<_ACEOF
24566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24567 _ACEOF
24568
24569 fi
24570
24571 done
24572
24573
24574    # darwin requires a poll emulation library
24575    { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
24576 echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
24577 if test "${ac_cv_lib_poll_poll+set}" = set; then
24578   echo $ECHO_N "(cached) $ECHO_C" >&6
24579 else
24580   ac_check_lib_save_LIBS=$LIBS
24581 LIBS="-lpoll  $LIBS"
24582 cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588
24589 /* Override any GCC internal prototype to avoid an error.
24590    Use char because int might match the return type of a GCC
24591    builtin and then its argument prototype would still apply.  */
24592 #ifdef __cplusplus
24593 extern "C"
24594 #endif
24595 char poll ();
24596 int
24597 main ()
24598 {
24599 return poll ();
24600   ;
24601   return 0;
24602 }
24603 _ACEOF
24604 rm -f conftest.$ac_objext conftest$ac_exeext
24605 if { (ac_try="$ac_link"
24606 case "(($ac_try" in
24607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608   *) ac_try_echo=$ac_try;;
24609 esac
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611   (eval "$ac_link") 2>conftest.er1
24612   ac_status=$?
24613   grep -v '^ *+' conftest.er1 >conftest.err
24614   rm -f conftest.er1
24615   cat conftest.err >&5
24616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617   (exit $ac_status); } && {
24618          test -z "$ac_c_werror_flag" ||
24619          test ! -s conftest.err
24620        } && test -s conftest$ac_exeext &&
24621        $as_test_x conftest$ac_exeext; then
24622   ac_cv_lib_poll_poll=yes
24623 else
24624   echo "$as_me: failed program was:" >&5
24625 sed 's/^/| /' conftest.$ac_ext >&5
24626
24627         ac_cv_lib_poll_poll=no
24628 fi
24629
24630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24631       conftest$ac_exeext conftest.$ac_ext
24632 LIBS=$ac_check_lib_save_LIBS
24633 fi
24634 { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
24635 echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
24636 if test $ac_cv_lib_poll_poll = yes; then
24637   LIB_POLL="-lpoll"
24638 fi
24639
24640
24641    # for some image handling on Mac OS X
24642
24643 for ac_header in Carbon/Carbon.h
24644 do
24645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24647   { echo "$as_me:$LINENO: checking for $ac_header" >&5
24648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24650   echo $ECHO_N "(cached) $ECHO_C" >&6
24651 fi
24652 ac_res=`eval echo '${'$as_ac_Header'}'`
24653                { echo "$as_me:$LINENO: result: $ac_res" >&5
24654 echo "${ECHO_T}$ac_res" >&6; }
24655 else
24656   # Is the header compilable?
24657 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24659 cat >conftest.$ac_ext <<_ACEOF
24660 /* confdefs.h.  */
24661 _ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h.  */
24665 $ac_includes_default
24666 #include <$ac_header>
24667 _ACEOF
24668 rm -f conftest.$ac_objext
24669 if { (ac_try="$ac_compile"
24670 case "(($ac_try" in
24671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672   *) ac_try_echo=$ac_try;;
24673 esac
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675   (eval "$ac_compile") 2>conftest.er1
24676   ac_status=$?
24677   grep -v '^ *+' conftest.er1 >conftest.err
24678   rm -f conftest.er1
24679   cat conftest.err >&5
24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681   (exit $ac_status); } && {
24682          test -z "$ac_c_werror_flag" ||
24683          test ! -s conftest.err
24684        } && test -s conftest.$ac_objext; then
24685   ac_header_compiler=yes
24686 else
24687   echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690         ac_header_compiler=no
24691 fi
24692
24693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24695 echo "${ECHO_T}$ac_header_compiler" >&6; }
24696
24697 # Is the header present?
24698 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24700 cat >conftest.$ac_ext <<_ACEOF
24701 /* confdefs.h.  */
24702 _ACEOF
24703 cat confdefs.h >>conftest.$ac_ext
24704 cat >>conftest.$ac_ext <<_ACEOF
24705 /* end confdefs.h.  */
24706 #include <$ac_header>
24707 _ACEOF
24708 if { (ac_try="$ac_cpp conftest.$ac_ext"
24709 case "(($ac_try" in
24710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24711   *) ac_try_echo=$ac_try;;
24712 esac
24713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24715   ac_status=$?
24716   grep -v '^ *+' conftest.er1 >conftest.err
24717   rm -f conftest.er1
24718   cat conftest.err >&5
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); } >/dev/null && {
24721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24722          test ! -s conftest.err
24723        }; then
24724   ac_header_preproc=yes
24725 else
24726   echo "$as_me: failed program was:" >&5
24727 sed 's/^/| /' conftest.$ac_ext >&5
24728
24729   ac_header_preproc=no
24730 fi
24731
24732 rm -f conftest.err conftest.$ac_ext
24733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24734 echo "${ECHO_T}$ac_header_preproc" >&6; }
24735
24736 # So?  What about this header?
24737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24738   yes:no: )
24739     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24740 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24742 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24743     ac_header_preproc=yes
24744     ;;
24745   no:yes:* )
24746     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24747 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24748     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24749 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24750     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24751 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24752     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24753 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24754     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24756     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24757 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24758
24759     ;;
24760 esac
24761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24764   echo $ECHO_N "(cached) $ECHO_C" >&6
24765 else
24766   eval "$as_ac_Header=\$ac_header_preproc"
24767 fi
24768 ac_res=`eval echo '${'$as_ac_Header'}'`
24769                { echo "$as_me:$LINENO: result: $ac_res" >&5
24770 echo "${ECHO_T}$ac_res" >&6; }
24771
24772 fi
24773 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24774   cat >>confdefs.h <<_ACEOF
24775 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24776 _ACEOF
24777
24778 fi
24779
24780 done
24781
24782
24783    # CoreAudio framework
24784    if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24785   { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
24786 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
24787 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24788   echo $ECHO_N "(cached) $ECHO_C" >&6
24789 fi
24790 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
24791 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
24792 else
24793   # Is the header compilable?
24794 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
24795 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h.  */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h.  */
24802 $ac_includes_default
24803 #include <CoreAudio/CoreAudio.h>
24804 _ACEOF
24805 rm -f conftest.$ac_objext
24806 if { (ac_try="$ac_compile"
24807 case "(($ac_try" in
24808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809   *) ac_try_echo=$ac_try;;
24810 esac
24811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24812   (eval "$ac_compile") 2>conftest.er1
24813   ac_status=$?
24814   grep -v '^ *+' conftest.er1 >conftest.err
24815   rm -f conftest.er1
24816   cat conftest.err >&5
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); } && {
24819          test -z "$ac_c_werror_flag" ||
24820          test ! -s conftest.err
24821        } && test -s conftest.$ac_objext; then
24822   ac_header_compiler=yes
24823 else
24824   echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827         ac_header_compiler=no
24828 fi
24829
24830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24832 echo "${ECHO_T}$ac_header_compiler" >&6; }
24833
24834 # Is the header present?
24835 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
24836 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
24837 cat >conftest.$ac_ext <<_ACEOF
24838 /* confdefs.h.  */
24839 _ACEOF
24840 cat confdefs.h >>conftest.$ac_ext
24841 cat >>conftest.$ac_ext <<_ACEOF
24842 /* end confdefs.h.  */
24843 #include <CoreAudio/CoreAudio.h>
24844 _ACEOF
24845 if { (ac_try="$ac_cpp conftest.$ac_ext"
24846 case "(($ac_try" in
24847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848   *) ac_try_echo=$ac_try;;
24849 esac
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24852   ac_status=$?
24853   grep -v '^ *+' conftest.er1 >conftest.err
24854   rm -f conftest.er1
24855   cat conftest.err >&5
24856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857   (exit $ac_status); } >/dev/null && {
24858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24859          test ! -s conftest.err
24860        }; then
24861   ac_header_preproc=yes
24862 else
24863   echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866   ac_header_preproc=no
24867 fi
24868
24869 rm -f conftest.err conftest.$ac_ext
24870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24871 echo "${ECHO_T}$ac_header_preproc" >&6; }
24872
24873 # So?  What about this header?
24874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24875   yes:no: )
24876     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24877 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24878     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
24879 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
24880     ac_header_preproc=yes
24881     ;;
24882   no:yes:* )
24883     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
24884 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
24885     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&5
24886 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     check for missing prerequisite headers?" >&2;}
24887     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
24888 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
24889     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&5
24890 echo "$as_me: WARNING: CoreAudio/CoreAudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24891     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
24892 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
24893     { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
24894 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
24895
24896     ;;
24897 esac
24898 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
24899 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
24900 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
24901   echo $ECHO_N "(cached) $ECHO_C" >&6
24902 else
24903   ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
24904 fi
24905 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
24906 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
24907
24908 fi
24909 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
24910
24911
24912 cat >>confdefs.h <<\_ACEOF
24913 #define HAVE_COREAUDIO 1
24914 _ACEOF
24915
24916      FRAMEWORK_COREAUDIO="-Xlinker -framework -Xlinker CoreAudio"
24917
24918 fi
24919
24920
24921
24922
24923   { echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
24924 echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6; }
24925   kde_libs_safe="$LIBS"
24926   LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
24927   cat >conftest.$ac_ext <<_ACEOF
24928 /* confdefs.h.  */
24929 _ACEOF
24930 cat confdefs.h >>conftest.$ac_ext
24931 cat >>conftest.$ac_ext <<_ACEOF
24932 /* end confdefs.h.  */
24933
24934 #include <sys/types.h>
24935 #include <netinet/in.h>
24936 #include <arpa/nameser.h>
24937 #include <resolv.h>
24938
24939 int
24940 main ()
24941 {
24942
24943       res_init();
24944
24945   ;
24946   return 0;
24947 }
24948 _ACEOF
24949 rm -f conftest.$ac_objext conftest$ac_exeext
24950 if { (ac_try="$ac_link"
24951 case "(($ac_try" in
24952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24953   *) ac_try_echo=$ac_try;;
24954 esac
24955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24956   (eval "$ac_link") 2>conftest.er1
24957   ac_status=$?
24958   grep -v '^ *+' conftest.er1 >conftest.err
24959   rm -f conftest.er1
24960   cat conftest.err >&5
24961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962   (exit $ac_status); } && {
24963          test -z "$ac_c_werror_flag" ||
24964          test ! -s conftest.err
24965        } && test -s conftest$ac_exeext &&
24966        $as_test_x conftest$ac_exeext; then
24967
24968       LIBRESOLV="-lresolv"
24969       { echo "$as_me:$LINENO: result: yes" >&5
24970 echo "${ECHO_T}yes" >&6; }
24971
24972 cat >>confdefs.h <<\_ACEOF
24973 #define HAVE_RES_INIT 1
24974 _ACEOF
24975
24976
24977 else
24978   echo "$as_me: failed program was:" >&5
24979 sed 's/^/| /' conftest.$ac_ext >&5
24980
24981          { echo "$as_me:$LINENO: result: no" >&5
24982 echo "${ECHO_T}no" >&6; }
24983
24984 fi
24985
24986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24987       conftest$ac_exeext conftest.$ac_ext
24988   LIBS=$kde_libs_safe
24989
24990
24991
24992 { echo "$as_me:$LINENO: checking for res_init" >&5
24993 echo $ECHO_N "checking for res_init... $ECHO_C" >&6; }
24994 if test "${kde_cv_func_res_init+set}" = set; then
24995   echo $ECHO_N "(cached) $ECHO_C" >&6
24996 else
24997
24998
24999  ac_ext=cpp
25000 ac_cpp='$CXXCPP $CPPFLAGS'
25001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25004
25005 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25006
25007
25008 save_CXXFLAGS="$CXXFLAGS"
25009 kde_safe_LIBS="$LIBS"
25010 LIBS="$LIBS $X_EXTRA_LIBS"
25011 if test "$GXX" = "yes"; then
25012 CXXFLAGS="$CXXFLAGS -pedantic-errors"
25013 fi
25014 cat >conftest.$ac_ext <<_ACEOF
25015 /* confdefs.h.  */
25016 _ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h.  */
25020
25021
25022 #include <sys/types.h>
25023 #include <netinet/in.h>
25024 #include <arpa/nameser.h>
25025 #include <resolv.h>
25026
25027
25028 int
25029 main ()
25030 {
25031
25032 res_init()
25033
25034   ;
25035   return 0;
25036 }
25037 _ACEOF
25038 rm -f conftest.$ac_objext
25039 if { (ac_try="$ac_compile"
25040 case "(($ac_try" in
25041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042   *) ac_try_echo=$ac_try;;
25043 esac
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045   (eval "$ac_compile") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_cxx_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest.$ac_objext; then
25055   kde_cv_func_res_init=yes
25056 else
25057   echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060         kde_cv_func_res_init=no
25061 fi
25062
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064 CXXFLAGS="$save_CXXFLAGS"
25065 LIBS="$kde_safe_LIBS"
25066 ac_ext=c
25067 ac_cpp='$CPP $CPPFLAGS'
25068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25071
25072
25073 fi
25074
25075
25076 { echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
25077 echo "${ECHO_T}$kde_cv_func_res_init" >&6; }
25078
25079 { echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
25080 echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6; }
25081 if test "${kde_cv_proto_res_init+set}" = set; then
25082   echo $ECHO_N "(cached) $ECHO_C" >&6
25083 else
25084
25085 if test "x$kde_cv_func_res_init" = xyes; then
25086   kde_cv_proto_res_init=no
25087 else
25088   case "res_init" in
25089         setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
25090                 kde_cv_proto_res_init="yes - in libkdefakes"
25091                 ;;
25092         *)
25093                 kde_cv_proto_res_init=unknown
25094                 ;;
25095   esac
25096 fi
25097
25098 if test "x$kde_cv_proto_res_init" = xunknown; then
25099
25100
25101  ac_ext=cpp
25102 ac_cpp='$CXXCPP $CPPFLAGS'
25103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25106
25107 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25108
25109
25110   kde_safe_libs=$LIBS
25111   LIBS="$LIBS $X_EXTRA_LIBS"
25112   cat >conftest.$ac_ext <<_ACEOF
25113 /* confdefs.h.  */
25114 _ACEOF
25115 cat confdefs.h >>conftest.$ac_ext
25116 cat >>conftest.$ac_ext <<_ACEOF
25117 /* end confdefs.h.  */
25118
25119
25120 #include <sys/types.h>
25121 #include <netinet/in.h>
25122 #include <arpa/nameser.h>
25123 #include <resolv.h>
25124
25125
25126 extern "C" int res_init(void);
25127
25128 int
25129 main ()
25130 {
25131
25132 res_init()
25133
25134   ;
25135   return 0;
25136 }
25137 _ACEOF
25138 rm -f conftest.$ac_objext conftest$ac_exeext
25139 if { (ac_try="$ac_link"
25140 case "(($ac_try" in
25141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142   *) ac_try_echo=$ac_try;;
25143 esac
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145   (eval "$ac_link") 2>conftest.er1
25146   ac_status=$?
25147   grep -v '^ *+' conftest.er1 >conftest.err
25148   rm -f conftest.er1
25149   cat conftest.err >&5
25150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151   (exit $ac_status); } && {
25152          test -z "$ac_cxx_werror_flag" ||
25153          test ! -s conftest.err
25154        } && test -s conftest$ac_exeext &&
25155        $as_test_x conftest$ac_exeext; then
25156    kde_cv_func_res_init=yes
25157   kde_cv_proto_res_init=yes
25158 else
25159   echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25161
25162         kde_cv_proto_res_init="res_init unavailable"
25163
25164 fi
25165
25166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25167       conftest$ac_exeext conftest.$ac_ext
25168 LIBS=$kde_safe_libs
25169 ac_ext=c
25170 ac_cpp='$CPP $CPPFLAGS'
25171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25174
25175 fi
25176
25177 fi
25178
25179 { echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
25180 echo "${ECHO_T}$kde_cv_proto_res_init" >&6; }
25181
25182 if test "x$kde_cv_func_res_init" = xyes; then
25183
25184 cat >>confdefs.h <<\_ACEOF
25185 #define HAVE_RES_INIT 1
25186 _ACEOF
25187
25188
25189 fi
25190 if test "x$kde_cv_proto_res_init" = xno; then
25191
25192 cat >>confdefs.h <<\_ACEOF
25193 #define HAVE_RES_INIT_PROTO 1
25194 _ACEOF
25195
25196 fi
25197
25198
25199
25200
25201
25202
25203
25204    LIBSOCKET="$X_EXTRA_LIBS"
25205
25206
25207    { echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
25208 echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6; }
25209 if test "${ac_cv_lib_ucb_killpg+set}" = set; then
25210   echo $ECHO_N "(cached) $ECHO_C" >&6
25211 else
25212   ac_check_lib_save_LIBS=$LIBS
25213 LIBS="-lucb  $LIBS"
25214 cat >conftest.$ac_ext <<_ACEOF
25215 /* confdefs.h.  */
25216 _ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h.  */
25220
25221 /* Override any GCC internal prototype to avoid an error.
25222    Use char because int might match the return type of a GCC
25223    builtin and then its argument prototype would still apply.  */
25224 #ifdef __cplusplus
25225 extern "C"
25226 #endif
25227 char killpg ();
25228 int
25229 main ()
25230 {
25231 return killpg ();
25232   ;
25233   return 0;
25234 }
25235 _ACEOF
25236 rm -f conftest.$ac_objext conftest$ac_exeext
25237 if { (ac_try="$ac_link"
25238 case "(($ac_try" in
25239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25240   *) ac_try_echo=$ac_try;;
25241 esac
25242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25243   (eval "$ac_link") 2>conftest.er1
25244   ac_status=$?
25245   grep -v '^ *+' conftest.er1 >conftest.err
25246   rm -f conftest.er1
25247   cat conftest.err >&5
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); } && {
25250          test -z "$ac_c_werror_flag" ||
25251          test ! -s conftest.err
25252        } && test -s conftest$ac_exeext &&
25253        $as_test_x conftest$ac_exeext; then
25254   ac_cv_lib_ucb_killpg=yes
25255 else
25256   echo "$as_me: failed program was:" >&5
25257 sed 's/^/| /' conftest.$ac_ext >&5
25258
25259         ac_cv_lib_ucb_killpg=no
25260 fi
25261
25262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25263       conftest$ac_exeext conftest.$ac_ext
25264 LIBS=$ac_check_lib_save_LIBS
25265 fi
25266 { echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
25267 echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6; }
25268 if test $ac_cv_lib_ucb_killpg = yes; then
25269   LIBUCB="-lucb"
25270 fi
25271
25272
25273    case $host in     *-*-lynxos* )
25274         { echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
25275 echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6; }
25276         CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
25277         { echo "$as_me:$LINENO: result: disabled" >&5
25278 echo "${ECHO_T}disabled" >&6; }
25279         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25280 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
25281 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25282   echo $ECHO_N "(cached) $ECHO_C" >&6
25283 else
25284   ac_check_lib_save_LIBS=$LIBS
25285 LIBS="-lbsd  $LIBS"
25286 cat >conftest.$ac_ext <<_ACEOF
25287 /* confdefs.h.  */
25288 _ACEOF
25289 cat confdefs.h >>conftest.$ac_ext
25290 cat >>conftest.$ac_ext <<_ACEOF
25291 /* end confdefs.h.  */
25292
25293 /* Override any GCC internal prototype to avoid an error.
25294    Use char because int might match the return type of a GCC
25295    builtin and then its argument prototype would still apply.  */
25296 #ifdef __cplusplus
25297 extern "C"
25298 #endif
25299 char gethostbyname ();
25300 int
25301 main ()
25302 {
25303 return gethostbyname ();
25304   ;
25305   return 0;
25306 }
25307 _ACEOF
25308 rm -f conftest.$ac_objext conftest$ac_exeext
25309 if { (ac_try="$ac_link"
25310 case "(($ac_try" in
25311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312   *) ac_try_echo=$ac_try;;
25313 esac
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315   (eval "$ac_link") 2>conftest.er1
25316   ac_status=$?
25317   grep -v '^ *+' conftest.er1 >conftest.err
25318   rm -f conftest.er1
25319   cat conftest.err >&5
25320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321   (exit $ac_status); } && {
25322          test -z "$ac_c_werror_flag" ||
25323          test ! -s conftest.err
25324        } && test -s conftest$ac_exeext &&
25325        $as_test_x conftest$ac_exeext; then
25326   ac_cv_lib_bsd_gethostbyname=yes
25327 else
25328   echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25330
25331         ac_cv_lib_bsd_gethostbyname=no
25332 fi
25333
25334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25335       conftest$ac_exeext conftest.$ac_ext
25336 LIBS=$ac_check_lib_save_LIBS
25337 fi
25338 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25339 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
25340 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25341   LIBSOCKET="-lbsd"
25342 fi
25343           ;;
25344     esac
25345
25346      { echo "$as_me:$LINENO: checking for int" >&5
25347 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
25348 if test "${ac_cv_type_int+set}" = set; then
25349   echo $ECHO_N "(cached) $ECHO_C" >&6
25350 else
25351   cat >conftest.$ac_ext <<_ACEOF
25352 /* confdefs.h.  */
25353 _ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h.  */
25357 $ac_includes_default
25358 typedef int ac__type_new_;
25359 int
25360 main ()
25361 {
25362 if ((ac__type_new_ *) 0)
25363   return 0;
25364 if (sizeof (ac__type_new_))
25365   return 0;
25366   ;
25367   return 0;
25368 }
25369 _ACEOF
25370 rm -f conftest.$ac_objext
25371 if { (ac_try="$ac_compile"
25372 case "(($ac_try" in
25373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374   *) ac_try_echo=$ac_try;;
25375 esac
25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377   (eval "$ac_compile") 2>conftest.er1
25378   ac_status=$?
25379   grep -v '^ *+' conftest.er1 >conftest.err
25380   rm -f conftest.er1
25381   cat conftest.err >&5
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); } && {
25384          test -z "$ac_c_werror_flag" ||
25385          test ! -s conftest.err
25386        } && test -s conftest.$ac_objext; then
25387   ac_cv_type_int=yes
25388 else
25389   echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392         ac_cv_type_int=no
25393 fi
25394
25395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396 fi
25397 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25398 echo "${ECHO_T}$ac_cv_type_int" >&6; }
25399
25400 # The cast to long int works around a bug in the HP C Compiler
25401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25403 # This bug is HP SR number 8606223364.
25404 { echo "$as_me:$LINENO: checking size of int" >&5
25405 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
25406 if test "${ac_cv_sizeof_int+set}" = set; then
25407   echo $ECHO_N "(cached) $ECHO_C" >&6
25408 else
25409   if test "$cross_compiling" = yes; then
25410   # Depending upon the size, compute the lo and hi bounds.
25411 cat >conftest.$ac_ext <<_ACEOF
25412 /* confdefs.h.  */
25413 _ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h.  */
25417 $ac_includes_default
25418    typedef int ac__type_sizeof_;
25419 int
25420 main ()
25421 {
25422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25423 test_array [0] = 0
25424
25425   ;
25426   return 0;
25427 }
25428 _ACEOF
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433   *) ac_try_echo=$ac_try;;
25434 esac
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436   (eval "$ac_compile") 2>conftest.er1
25437   ac_status=$?
25438   grep -v '^ *+' conftest.er1 >conftest.err
25439   rm -f conftest.er1
25440   cat conftest.err >&5
25441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442   (exit $ac_status); } && {
25443          test -z "$ac_c_werror_flag" ||
25444          test ! -s conftest.err
25445        } && test -s conftest.$ac_objext; then
25446   ac_lo=0 ac_mid=0
25447   while :; do
25448     cat >conftest.$ac_ext <<_ACEOF
25449 /* confdefs.h.  */
25450 _ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h.  */
25454 $ac_includes_default
25455    typedef int ac__type_sizeof_;
25456 int
25457 main ()
25458 {
25459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25460 test_array [0] = 0
25461
25462   ;
25463   return 0;
25464 }
25465 _ACEOF
25466 rm -f conftest.$ac_objext
25467 if { (ac_try="$ac_compile"
25468 case "(($ac_try" in
25469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470   *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473   (eval "$ac_compile") 2>conftest.er1
25474   ac_status=$?
25475   grep -v '^ *+' conftest.er1 >conftest.err
25476   rm -f conftest.er1
25477   cat conftest.err >&5
25478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25479   (exit $ac_status); } && {
25480          test -z "$ac_c_werror_flag" ||
25481          test ! -s conftest.err
25482        } && test -s conftest.$ac_objext; then
25483   ac_hi=$ac_mid; break
25484 else
25485   echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25487
25488         ac_lo=`expr $ac_mid + 1`
25489                         if test $ac_lo -le $ac_mid; then
25490                           ac_lo= ac_hi=
25491                           break
25492                         fi
25493                         ac_mid=`expr 2 '*' $ac_mid + 1`
25494 fi
25495
25496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25497   done
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502         cat >conftest.$ac_ext <<_ACEOF
25503 /* confdefs.h.  */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h.  */
25508 $ac_includes_default
25509    typedef int ac__type_sizeof_;
25510 int
25511 main ()
25512 {
25513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25514 test_array [0] = 0
25515
25516   ;
25517   return 0;
25518 }
25519 _ACEOF
25520 rm -f conftest.$ac_objext
25521 if { (ac_try="$ac_compile"
25522 case "(($ac_try" in
25523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524   *) ac_try_echo=$ac_try;;
25525 esac
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527   (eval "$ac_compile") 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } && {
25534          test -z "$ac_c_werror_flag" ||
25535          test ! -s conftest.err
25536        } && test -s conftest.$ac_objext; then
25537   ac_hi=-1 ac_mid=-1
25538   while :; do
25539     cat >conftest.$ac_ext <<_ACEOF
25540 /* confdefs.h.  */
25541 _ACEOF
25542 cat confdefs.h >>conftest.$ac_ext
25543 cat >>conftest.$ac_ext <<_ACEOF
25544 /* end confdefs.h.  */
25545 $ac_includes_default
25546    typedef int ac__type_sizeof_;
25547 int
25548 main ()
25549 {
25550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25551 test_array [0] = 0
25552
25553   ;
25554   return 0;
25555 }
25556 _ACEOF
25557 rm -f conftest.$ac_objext
25558 if { (ac_try="$ac_compile"
25559 case "(($ac_try" in
25560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561   *) ac_try_echo=$ac_try;;
25562 esac
25563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25564   (eval "$ac_compile") 2>conftest.er1
25565   ac_status=$?
25566   grep -v '^ *+' conftest.er1 >conftest.err
25567   rm -f conftest.er1
25568   cat conftest.err >&5
25569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570   (exit $ac_status); } && {
25571          test -z "$ac_c_werror_flag" ||
25572          test ! -s conftest.err
25573        } && test -s conftest.$ac_objext; then
25574   ac_lo=$ac_mid; break
25575 else
25576   echo "$as_me: failed program was:" >&5
25577 sed 's/^/| /' conftest.$ac_ext >&5
25578
25579         ac_hi=`expr '(' $ac_mid ')' - 1`
25580                         if test $ac_mid -le $ac_hi; then
25581                           ac_lo= ac_hi=
25582                           break
25583                         fi
25584                         ac_mid=`expr 2 '*' $ac_mid`
25585 fi
25586
25587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25588   done
25589 else
25590   echo "$as_me: failed program was:" >&5
25591 sed 's/^/| /' conftest.$ac_ext >&5
25592
25593         ac_lo= ac_hi=
25594 fi
25595
25596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25597 fi
25598
25599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25600 # Binary search between lo and hi bounds.
25601 while test "x$ac_lo" != "x$ac_hi"; do
25602   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25603   cat >conftest.$ac_ext <<_ACEOF
25604 /* confdefs.h.  */
25605 _ACEOF
25606 cat confdefs.h >>conftest.$ac_ext
25607 cat >>conftest.$ac_ext <<_ACEOF
25608 /* end confdefs.h.  */
25609 $ac_includes_default
25610    typedef int ac__type_sizeof_;
25611 int
25612 main ()
25613 {
25614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25615 test_array [0] = 0
25616
25617   ;
25618   return 0;
25619 }
25620 _ACEOF
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625   *) ac_try_echo=$ac_try;;
25626 esac
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628   (eval "$ac_compile") 2>conftest.er1
25629   ac_status=$?
25630   grep -v '^ *+' conftest.er1 >conftest.err
25631   rm -f conftest.er1
25632   cat conftest.err >&5
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && {
25635          test -z "$ac_c_werror_flag" ||
25636          test ! -s conftest.err
25637        } && test -s conftest.$ac_objext; then
25638   ac_hi=$ac_mid
25639 else
25640   echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25642
25643         ac_lo=`expr '(' $ac_mid ')' + 1`
25644 fi
25645
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25647 done
25648 case $ac_lo in
25649 ?*) ac_cv_sizeof_int=$ac_lo;;
25650 '') if test "$ac_cv_type_int" = yes; then
25651      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25652 See \`config.log' for more details." >&5
25653 echo "$as_me: error: cannot compute sizeof (int)
25654 See \`config.log' for more details." >&2;}
25655    { (exit 77); exit 77; }; }
25656    else
25657      ac_cv_sizeof_int=0
25658    fi ;;
25659 esac
25660 else
25661   cat >conftest.$ac_ext <<_ACEOF
25662 /* confdefs.h.  */
25663 _ACEOF
25664 cat confdefs.h >>conftest.$ac_ext
25665 cat >>conftest.$ac_ext <<_ACEOF
25666 /* end confdefs.h.  */
25667 $ac_includes_default
25668    typedef int ac__type_sizeof_;
25669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25671 #include <stdio.h>
25672 #include <stdlib.h>
25673 int
25674 main ()
25675 {
25676
25677   FILE *f = fopen ("conftest.val", "w");
25678   if (! f)
25679     return 1;
25680   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25681     {
25682       long int i = longval ();
25683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25684         return 1;
25685       fprintf (f, "%ld\n", i);
25686     }
25687   else
25688     {
25689       unsigned long int i = ulongval ();
25690       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25691         return 1;
25692       fprintf (f, "%lu\n", i);
25693     }
25694   return ferror (f) || fclose (f) != 0;
25695
25696   ;
25697   return 0;
25698 }
25699 _ACEOF
25700 rm -f conftest$ac_exeext
25701 if { (ac_try="$ac_link"
25702 case "(($ac_try" in
25703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25704   *) ac_try_echo=$ac_try;;
25705 esac
25706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25707   (eval "$ac_link") 2>&5
25708   ac_status=$?
25709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25711   { (case "(($ac_try" in
25712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25713   *) ac_try_echo=$ac_try;;
25714 esac
25715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25716   (eval "$ac_try") 2>&5
25717   ac_status=$?
25718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719   (exit $ac_status); }; }; then
25720   ac_cv_sizeof_int=`cat conftest.val`
25721 else
25722   echo "$as_me: program exited with status $ac_status" >&5
25723 echo "$as_me: failed program was:" >&5
25724 sed 's/^/| /' conftest.$ac_ext >&5
25725
25726 ( exit $ac_status )
25727 if test "$ac_cv_type_int" = yes; then
25728      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25729 See \`config.log' for more details." >&5
25730 echo "$as_me: error: cannot compute sizeof (int)
25731 See \`config.log' for more details." >&2;}
25732    { (exit 77); exit 77; }; }
25733    else
25734      ac_cv_sizeof_int=0
25735    fi
25736 fi
25737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25738 fi
25739 rm -f conftest.val
25740 fi
25741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25742 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25743
25744
25745
25746 cat >>confdefs.h <<_ACEOF
25747 #define SIZEOF_INT $ac_cv_sizeof_int
25748 _ACEOF
25749
25750    { echo "$as_me:$LINENO: checking for short" >&5
25751 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
25752 if test "${ac_cv_type_short+set}" = set; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755   cat >conftest.$ac_ext <<_ACEOF
25756 /* confdefs.h.  */
25757 _ACEOF
25758 cat confdefs.h >>conftest.$ac_ext
25759 cat >>conftest.$ac_ext <<_ACEOF
25760 /* end confdefs.h.  */
25761 $ac_includes_default
25762 typedef short ac__type_new_;
25763 int
25764 main ()
25765 {
25766 if ((ac__type_new_ *) 0)
25767   return 0;
25768 if (sizeof (ac__type_new_))
25769   return 0;
25770   ;
25771   return 0;
25772 }
25773 _ACEOF
25774 rm -f conftest.$ac_objext
25775 if { (ac_try="$ac_compile"
25776 case "(($ac_try" in
25777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778   *) ac_try_echo=$ac_try;;
25779 esac
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781   (eval "$ac_compile") 2>conftest.er1
25782   ac_status=$?
25783   grep -v '^ *+' conftest.er1 >conftest.err
25784   rm -f conftest.er1
25785   cat conftest.err >&5
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); } && {
25788          test -z "$ac_c_werror_flag" ||
25789          test ! -s conftest.err
25790        } && test -s conftest.$ac_objext; then
25791   ac_cv_type_short=yes
25792 else
25793   echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25795
25796         ac_cv_type_short=no
25797 fi
25798
25799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25800 fi
25801 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
25802 echo "${ECHO_T}$ac_cv_type_short" >&6; }
25803
25804 # The cast to long int works around a bug in the HP C Compiler
25805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25807 # This bug is HP SR number 8606223364.
25808 { echo "$as_me:$LINENO: checking size of short" >&5
25809 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
25810 if test "${ac_cv_sizeof_short+set}" = set; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813   if test "$cross_compiling" = yes; then
25814   # Depending upon the size, compute the lo and hi bounds.
25815 cat >conftest.$ac_ext <<_ACEOF
25816 /* confdefs.h.  */
25817 _ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h.  */
25821 $ac_includes_default
25822    typedef short ac__type_sizeof_;
25823 int
25824 main ()
25825 {
25826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25827 test_array [0] = 0
25828
25829   ;
25830   return 0;
25831 }
25832 _ACEOF
25833 rm -f conftest.$ac_objext
25834 if { (ac_try="$ac_compile"
25835 case "(($ac_try" in
25836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837   *) ac_try_echo=$ac_try;;
25838 esac
25839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25840   (eval "$ac_compile") 2>conftest.er1
25841   ac_status=$?
25842   grep -v '^ *+' conftest.er1 >conftest.err
25843   rm -f conftest.er1
25844   cat conftest.err >&5
25845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846   (exit $ac_status); } && {
25847          test -z "$ac_c_werror_flag" ||
25848          test ! -s conftest.err
25849        } && test -s conftest.$ac_objext; then
25850   ac_lo=0 ac_mid=0
25851   while :; do
25852     cat >conftest.$ac_ext <<_ACEOF
25853 /* confdefs.h.  */
25854 _ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h.  */
25858 $ac_includes_default
25859    typedef short ac__type_sizeof_;
25860 int
25861 main ()
25862 {
25863 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25864 test_array [0] = 0
25865
25866   ;
25867   return 0;
25868 }
25869 _ACEOF
25870 rm -f conftest.$ac_objext
25871 if { (ac_try="$ac_compile"
25872 case "(($ac_try" in
25873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25874   *) ac_try_echo=$ac_try;;
25875 esac
25876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25877   (eval "$ac_compile") 2>conftest.er1
25878   ac_status=$?
25879   grep -v '^ *+' conftest.er1 >conftest.err
25880   rm -f conftest.er1
25881   cat conftest.err >&5
25882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883   (exit $ac_status); } && {
25884          test -z "$ac_c_werror_flag" ||
25885          test ! -s conftest.err
25886        } && test -s conftest.$ac_objext; then
25887   ac_hi=$ac_mid; break
25888 else
25889   echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892         ac_lo=`expr $ac_mid + 1`
25893                         if test $ac_lo -le $ac_mid; then
25894                           ac_lo= ac_hi=
25895                           break
25896                         fi
25897                         ac_mid=`expr 2 '*' $ac_mid + 1`
25898 fi
25899
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901   done
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906         cat >conftest.$ac_ext <<_ACEOF
25907 /* confdefs.h.  */
25908 _ACEOF
25909 cat confdefs.h >>conftest.$ac_ext
25910 cat >>conftest.$ac_ext <<_ACEOF
25911 /* end confdefs.h.  */
25912 $ac_includes_default
25913    typedef short ac__type_sizeof_;
25914 int
25915 main ()
25916 {
25917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25918 test_array [0] = 0
25919
25920   ;
25921   return 0;
25922 }
25923 _ACEOF
25924 rm -f conftest.$ac_objext
25925 if { (ac_try="$ac_compile"
25926 case "(($ac_try" in
25927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25928   *) ac_try_echo=$ac_try;;
25929 esac
25930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25931   (eval "$ac_compile") 2>conftest.er1
25932   ac_status=$?
25933   grep -v '^ *+' conftest.er1 >conftest.err
25934   rm -f conftest.er1
25935   cat conftest.err >&5
25936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937   (exit $ac_status); } && {
25938          test -z "$ac_c_werror_flag" ||
25939          test ! -s conftest.err
25940        } && test -s conftest.$ac_objext; then
25941   ac_hi=-1 ac_mid=-1
25942   while :; do
25943     cat >conftest.$ac_ext <<_ACEOF
25944 /* confdefs.h.  */
25945 _ACEOF
25946 cat confdefs.h >>conftest.$ac_ext
25947 cat >>conftest.$ac_ext <<_ACEOF
25948 /* end confdefs.h.  */
25949 $ac_includes_default
25950    typedef short ac__type_sizeof_;
25951 int
25952 main ()
25953 {
25954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25955 test_array [0] = 0
25956
25957   ;
25958   return 0;
25959 }
25960 _ACEOF
25961 rm -f conftest.$ac_objext
25962 if { (ac_try="$ac_compile"
25963 case "(($ac_try" in
25964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965   *) ac_try_echo=$ac_try;;
25966 esac
25967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968   (eval "$ac_compile") 2>conftest.er1
25969   ac_status=$?
25970   grep -v '^ *+' conftest.er1 >conftest.err
25971   rm -f conftest.er1
25972   cat conftest.err >&5
25973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974   (exit $ac_status); } && {
25975          test -z "$ac_c_werror_flag" ||
25976          test ! -s conftest.err
25977        } && test -s conftest.$ac_objext; then
25978   ac_lo=$ac_mid; break
25979 else
25980   echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983         ac_hi=`expr '(' $ac_mid ')' - 1`
25984                         if test $ac_mid -le $ac_hi; then
25985                           ac_lo= ac_hi=
25986                           break
25987                         fi
25988                         ac_mid=`expr 2 '*' $ac_mid`
25989 fi
25990
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992   done
25993 else
25994   echo "$as_me: failed program was:" >&5
25995 sed 's/^/| /' conftest.$ac_ext >&5
25996
25997         ac_lo= ac_hi=
25998 fi
25999
26000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26001 fi
26002
26003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26004 # Binary search between lo and hi bounds.
26005 while test "x$ac_lo" != "x$ac_hi"; do
26006   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26007   cat >conftest.$ac_ext <<_ACEOF
26008 /* confdefs.h.  */
26009 _ACEOF
26010 cat confdefs.h >>conftest.$ac_ext
26011 cat >>conftest.$ac_ext <<_ACEOF
26012 /* end confdefs.h.  */
26013 $ac_includes_default
26014    typedef short ac__type_sizeof_;
26015 int
26016 main ()
26017 {
26018 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26019 test_array [0] = 0
26020
26021   ;
26022   return 0;
26023 }
26024 _ACEOF
26025 rm -f conftest.$ac_objext
26026 if { (ac_try="$ac_compile"
26027 case "(($ac_try" in
26028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26029   *) ac_try_echo=$ac_try;;
26030 esac
26031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26032   (eval "$ac_compile") 2>conftest.er1
26033   ac_status=$?
26034   grep -v '^ *+' conftest.er1 >conftest.err
26035   rm -f conftest.er1
26036   cat conftest.err >&5
26037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038   (exit $ac_status); } && {
26039          test -z "$ac_c_werror_flag" ||
26040          test ! -s conftest.err
26041        } && test -s conftest.$ac_objext; then
26042   ac_hi=$ac_mid
26043 else
26044   echo "$as_me: failed program was:" >&5
26045 sed 's/^/| /' conftest.$ac_ext >&5
26046
26047         ac_lo=`expr '(' $ac_mid ')' + 1`
26048 fi
26049
26050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26051 done
26052 case $ac_lo in
26053 ?*) ac_cv_sizeof_short=$ac_lo;;
26054 '') if test "$ac_cv_type_short" = yes; then
26055      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26056 See \`config.log' for more details." >&5
26057 echo "$as_me: error: cannot compute sizeof (short)
26058 See \`config.log' for more details." >&2;}
26059    { (exit 77); exit 77; }; }
26060    else
26061      ac_cv_sizeof_short=0
26062    fi ;;
26063 esac
26064 else
26065   cat >conftest.$ac_ext <<_ACEOF
26066 /* confdefs.h.  */
26067 _ACEOF
26068 cat confdefs.h >>conftest.$ac_ext
26069 cat >>conftest.$ac_ext <<_ACEOF
26070 /* end confdefs.h.  */
26071 $ac_includes_default
26072    typedef short ac__type_sizeof_;
26073 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26074 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26075 #include <stdio.h>
26076 #include <stdlib.h>
26077 int
26078 main ()
26079 {
26080
26081   FILE *f = fopen ("conftest.val", "w");
26082   if (! f)
26083     return 1;
26084   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26085     {
26086       long int i = longval ();
26087       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26088         return 1;
26089       fprintf (f, "%ld\n", i);
26090     }
26091   else
26092     {
26093       unsigned long int i = ulongval ();
26094       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26095         return 1;
26096       fprintf (f, "%lu\n", i);
26097     }
26098   return ferror (f) || fclose (f) != 0;
26099
26100   ;
26101   return 0;
26102 }
26103 _ACEOF
26104 rm -f conftest$ac_exeext
26105 if { (ac_try="$ac_link"
26106 case "(($ac_try" in
26107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108   *) ac_try_echo=$ac_try;;
26109 esac
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111   (eval "$ac_link") 2>&5
26112   ac_status=$?
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26115   { (case "(($ac_try" in
26116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26117   *) ac_try_echo=$ac_try;;
26118 esac
26119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26120   (eval "$ac_try") 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); }; }; then
26124   ac_cv_sizeof_short=`cat conftest.val`
26125 else
26126   echo "$as_me: program exited with status $ac_status" >&5
26127 echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26129
26130 ( exit $ac_status )
26131 if test "$ac_cv_type_short" = yes; then
26132      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26133 See \`config.log' for more details." >&5
26134 echo "$as_me: error: cannot compute sizeof (short)
26135 See \`config.log' for more details." >&2;}
26136    { (exit 77); exit 77; }; }
26137    else
26138      ac_cv_sizeof_short=0
26139    fi
26140 fi
26141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26142 fi
26143 rm -f conftest.val
26144 fi
26145 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26146 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
26147
26148
26149
26150 cat >>confdefs.h <<_ACEOF
26151 #define SIZEOF_SHORT $ac_cv_sizeof_short
26152 _ACEOF
26153
26154   { echo "$as_me:$LINENO: checking for long" >&5
26155 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
26156 if test "${ac_cv_type_long+set}" = set; then
26157   echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159   cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h.  */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h.  */
26165 $ac_includes_default
26166 typedef long ac__type_new_;
26167 int
26168 main ()
26169 {
26170 if ((ac__type_new_ *) 0)
26171   return 0;
26172 if (sizeof (ac__type_new_))
26173   return 0;
26174   ;
26175   return 0;
26176 }
26177 _ACEOF
26178 rm -f conftest.$ac_objext
26179 if { (ac_try="$ac_compile"
26180 case "(($ac_try" in
26181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26182   *) ac_try_echo=$ac_try;;
26183 esac
26184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26185   (eval "$ac_compile") 2>conftest.er1
26186   ac_status=$?
26187   grep -v '^ *+' conftest.er1 >conftest.err
26188   rm -f conftest.er1
26189   cat conftest.err >&5
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } && {
26192          test -z "$ac_c_werror_flag" ||
26193          test ! -s conftest.err
26194        } && test -s conftest.$ac_objext; then
26195   ac_cv_type_long=yes
26196 else
26197   echo "$as_me: failed program was:" >&5
26198 sed 's/^/| /' conftest.$ac_ext >&5
26199
26200         ac_cv_type_long=no
26201 fi
26202
26203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26204 fi
26205 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26206 echo "${ECHO_T}$ac_cv_type_long" >&6; }
26207
26208 # The cast to long int works around a bug in the HP C Compiler
26209 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26210 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26211 # This bug is HP SR number 8606223364.
26212 { echo "$as_me:$LINENO: checking size of long" >&5
26213 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
26214 if test "${ac_cv_sizeof_long+set}" = set; then
26215   echo $ECHO_N "(cached) $ECHO_C" >&6
26216 else
26217   if test "$cross_compiling" = yes; then
26218   # Depending upon the size, compute the lo and hi bounds.
26219 cat >conftest.$ac_ext <<_ACEOF
26220 /* confdefs.h.  */
26221 _ACEOF
26222 cat confdefs.h >>conftest.$ac_ext
26223 cat >>conftest.$ac_ext <<_ACEOF
26224 /* end confdefs.h.  */
26225 $ac_includes_default
26226    typedef long ac__type_sizeof_;
26227 int
26228 main ()
26229 {
26230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26231 test_array [0] = 0
26232
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 rm -f conftest.$ac_objext
26238 if { (ac_try="$ac_compile"
26239 case "(($ac_try" in
26240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241   *) ac_try_echo=$ac_try;;
26242 esac
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244   (eval "$ac_compile") 2>conftest.er1
26245   ac_status=$?
26246   grep -v '^ *+' conftest.er1 >conftest.err
26247   rm -f conftest.er1
26248   cat conftest.err >&5
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); } && {
26251          test -z "$ac_c_werror_flag" ||
26252          test ! -s conftest.err
26253        } && test -s conftest.$ac_objext; then
26254   ac_lo=0 ac_mid=0
26255   while :; do
26256     cat >conftest.$ac_ext <<_ACEOF
26257 /* confdefs.h.  */
26258 _ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h.  */
26262 $ac_includes_default
26263    typedef long ac__type_sizeof_;
26264 int
26265 main ()
26266 {
26267 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26268 test_array [0] = 0
26269
26270   ;
26271   return 0;
26272 }
26273 _ACEOF
26274 rm -f conftest.$ac_objext
26275 if { (ac_try="$ac_compile"
26276 case "(($ac_try" in
26277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26278   *) ac_try_echo=$ac_try;;
26279 esac
26280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26281   (eval "$ac_compile") 2>conftest.er1
26282   ac_status=$?
26283   grep -v '^ *+' conftest.er1 >conftest.err
26284   rm -f conftest.er1
26285   cat conftest.err >&5
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); } && {
26288          test -z "$ac_c_werror_flag" ||
26289          test ! -s conftest.err
26290        } && test -s conftest.$ac_objext; then
26291   ac_hi=$ac_mid; break
26292 else
26293   echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296         ac_lo=`expr $ac_mid + 1`
26297                         if test $ac_lo -le $ac_mid; then
26298                           ac_lo= ac_hi=
26299                           break
26300                         fi
26301                         ac_mid=`expr 2 '*' $ac_mid + 1`
26302 fi
26303
26304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26305   done
26306 else
26307   echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26309
26310         cat >conftest.$ac_ext <<_ACEOF
26311 /* confdefs.h.  */
26312 _ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h.  */
26316 $ac_includes_default
26317    typedef long ac__type_sizeof_;
26318 int
26319 main ()
26320 {
26321 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26322 test_array [0] = 0
26323
26324   ;
26325   return 0;
26326 }
26327 _ACEOF
26328 rm -f conftest.$ac_objext
26329 if { (ac_try="$ac_compile"
26330 case "(($ac_try" in
26331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26332   *) ac_try_echo=$ac_try;;
26333 esac
26334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26335   (eval "$ac_compile") 2>conftest.er1
26336   ac_status=$?
26337   grep -v '^ *+' conftest.er1 >conftest.err
26338   rm -f conftest.er1
26339   cat conftest.err >&5
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); } && {
26342          test -z "$ac_c_werror_flag" ||
26343          test ! -s conftest.err
26344        } && test -s conftest.$ac_objext; then
26345   ac_hi=-1 ac_mid=-1
26346   while :; do
26347     cat >conftest.$ac_ext <<_ACEOF
26348 /* confdefs.h.  */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h.  */
26353 $ac_includes_default
26354    typedef long ac__type_sizeof_;
26355 int
26356 main ()
26357 {
26358 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26359 test_array [0] = 0
26360
26361   ;
26362   return 0;
26363 }
26364 _ACEOF
26365 rm -f conftest.$ac_objext
26366 if { (ac_try="$ac_compile"
26367 case "(($ac_try" in
26368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369   *) ac_try_echo=$ac_try;;
26370 esac
26371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26372   (eval "$ac_compile") 2>conftest.er1
26373   ac_status=$?
26374   grep -v '^ *+' conftest.er1 >conftest.err
26375   rm -f conftest.er1
26376   cat conftest.err >&5
26377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378   (exit $ac_status); } && {
26379          test -z "$ac_c_werror_flag" ||
26380          test ! -s conftest.err
26381        } && test -s conftest.$ac_objext; then
26382   ac_lo=$ac_mid; break
26383 else
26384   echo "$as_me: failed program was:" >&5
26385 sed 's/^/| /' conftest.$ac_ext >&5
26386
26387         ac_hi=`expr '(' $ac_mid ')' - 1`
26388                         if test $ac_mid -le $ac_hi; then
26389                           ac_lo= ac_hi=
26390                           break
26391                         fi
26392                         ac_mid=`expr 2 '*' $ac_mid`
26393 fi
26394
26395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26396   done
26397 else
26398   echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401         ac_lo= ac_hi=
26402 fi
26403
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405 fi
26406
26407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408 # Binary search between lo and hi bounds.
26409 while test "x$ac_lo" != "x$ac_hi"; do
26410   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26411   cat >conftest.$ac_ext <<_ACEOF
26412 /* confdefs.h.  */
26413 _ACEOF
26414 cat confdefs.h >>conftest.$ac_ext
26415 cat >>conftest.$ac_ext <<_ACEOF
26416 /* end confdefs.h.  */
26417 $ac_includes_default
26418    typedef long ac__type_sizeof_;
26419 int
26420 main ()
26421 {
26422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26423 test_array [0] = 0
26424
26425   ;
26426   return 0;
26427 }
26428 _ACEOF
26429 rm -f conftest.$ac_objext
26430 if { (ac_try="$ac_compile"
26431 case "(($ac_try" in
26432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26433   *) ac_try_echo=$ac_try;;
26434 esac
26435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26436   (eval "$ac_compile") 2>conftest.er1
26437   ac_status=$?
26438   grep -v '^ *+' conftest.er1 >conftest.err
26439   rm -f conftest.er1
26440   cat conftest.err >&5
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); } && {
26443          test -z "$ac_c_werror_flag" ||
26444          test ! -s conftest.err
26445        } && test -s conftest.$ac_objext; then
26446   ac_hi=$ac_mid
26447 else
26448   echo "$as_me: failed program was:" >&5
26449 sed 's/^/| /' conftest.$ac_ext >&5
26450
26451         ac_lo=`expr '(' $ac_mid ')' + 1`
26452 fi
26453
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26455 done
26456 case $ac_lo in
26457 ?*) ac_cv_sizeof_long=$ac_lo;;
26458 '') if test "$ac_cv_type_long" = yes; then
26459      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26460 See \`config.log' for more details." >&5
26461 echo "$as_me: error: cannot compute sizeof (long)
26462 See \`config.log' for more details." >&2;}
26463    { (exit 77); exit 77; }; }
26464    else
26465      ac_cv_sizeof_long=0
26466    fi ;;
26467 esac
26468 else
26469   cat >conftest.$ac_ext <<_ACEOF
26470 /* confdefs.h.  */
26471 _ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h.  */
26475 $ac_includes_default
26476    typedef long ac__type_sizeof_;
26477 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26478 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26479 #include <stdio.h>
26480 #include <stdlib.h>
26481 int
26482 main ()
26483 {
26484
26485   FILE *f = fopen ("conftest.val", "w");
26486   if (! f)
26487     return 1;
26488   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26489     {
26490       long int i = longval ();
26491       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26492         return 1;
26493       fprintf (f, "%ld\n", i);
26494     }
26495   else
26496     {
26497       unsigned long int i = ulongval ();
26498       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26499         return 1;
26500       fprintf (f, "%lu\n", i);
26501     }
26502   return ferror (f) || fclose (f) != 0;
26503
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 rm -f conftest$ac_exeext
26509 if { (ac_try="$ac_link"
26510 case "(($ac_try" in
26511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512   *) ac_try_echo=$ac_try;;
26513 esac
26514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515   (eval "$ac_link") 2>&5
26516   ac_status=$?
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26519   { (case "(($ac_try" in
26520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26521   *) ac_try_echo=$ac_try;;
26522 esac
26523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26524   (eval "$ac_try") 2>&5
26525   ac_status=$?
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); }; }; then
26528   ac_cv_sizeof_long=`cat conftest.val`
26529 else
26530   echo "$as_me: program exited with status $ac_status" >&5
26531 echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26533
26534 ( exit $ac_status )
26535 if test "$ac_cv_type_long" = yes; then
26536      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26537 See \`config.log' for more details." >&5
26538 echo "$as_me: error: cannot compute sizeof (long)
26539 See \`config.log' for more details." >&2;}
26540    { (exit 77); exit 77; }; }
26541    else
26542      ac_cv_sizeof_long=0
26543    fi
26544 fi
26545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26546 fi
26547 rm -f conftest.val
26548 fi
26549 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26550 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
26551
26552
26553
26554 cat >>confdefs.h <<_ACEOF
26555 #define SIZEOF_LONG $ac_cv_sizeof_long
26556 _ACEOF
26557
26558   { echo "$as_me:$LINENO: checking for char *" >&5
26559 echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
26560 if test "${ac_cv_type_char_p+set}" = set; then
26561   echo $ECHO_N "(cached) $ECHO_C" >&6
26562 else
26563   cat >conftest.$ac_ext <<_ACEOF
26564 /* confdefs.h.  */
26565 _ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h.  */
26569 $ac_includes_default
26570 typedef char * ac__type_new_;
26571 int
26572 main ()
26573 {
26574 if ((ac__type_new_ *) 0)
26575   return 0;
26576 if (sizeof (ac__type_new_))
26577   return 0;
26578   ;
26579   return 0;
26580 }
26581 _ACEOF
26582 rm -f conftest.$ac_objext
26583 if { (ac_try="$ac_compile"
26584 case "(($ac_try" in
26585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26586   *) ac_try_echo=$ac_try;;
26587 esac
26588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26589   (eval "$ac_compile") 2>conftest.er1
26590   ac_status=$?
26591   grep -v '^ *+' conftest.er1 >conftest.err
26592   rm -f conftest.er1
26593   cat conftest.err >&5
26594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595   (exit $ac_status); } && {
26596          test -z "$ac_c_werror_flag" ||
26597          test ! -s conftest.err
26598        } && test -s conftest.$ac_objext; then
26599   ac_cv_type_char_p=yes
26600 else
26601   echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26603
26604         ac_cv_type_char_p=no
26605 fi
26606
26607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26608 fi
26609 { echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
26610 echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
26611
26612 # The cast to long int works around a bug in the HP C Compiler
26613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26615 # This bug is HP SR number 8606223364.
26616 { echo "$as_me:$LINENO: checking size of char *" >&5
26617 echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
26618 if test "${ac_cv_sizeof_char_p+set}" = set; then
26619   echo $ECHO_N "(cached) $ECHO_C" >&6
26620 else
26621   if test "$cross_compiling" = yes; then
26622   # Depending upon the size, compute the lo and hi bounds.
26623 cat >conftest.$ac_ext <<_ACEOF
26624 /* confdefs.h.  */
26625 _ACEOF
26626 cat confdefs.h >>conftest.$ac_ext
26627 cat >>conftest.$ac_ext <<_ACEOF
26628 /* end confdefs.h.  */
26629 $ac_includes_default
26630    typedef char * ac__type_sizeof_;
26631 int
26632 main ()
26633 {
26634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26635 test_array [0] = 0
26636
26637   ;
26638   return 0;
26639 }
26640 _ACEOF
26641 rm -f conftest.$ac_objext
26642 if { (ac_try="$ac_compile"
26643 case "(($ac_try" in
26644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645   *) ac_try_echo=$ac_try;;
26646 esac
26647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26648   (eval "$ac_compile") 2>conftest.er1
26649   ac_status=$?
26650   grep -v '^ *+' conftest.er1 >conftest.err
26651   rm -f conftest.er1
26652   cat conftest.err >&5
26653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26654   (exit $ac_status); } && {
26655          test -z "$ac_c_werror_flag" ||
26656          test ! -s conftest.err
26657        } && test -s conftest.$ac_objext; then
26658   ac_lo=0 ac_mid=0
26659   while :; do
26660     cat >conftest.$ac_ext <<_ACEOF
26661 /* confdefs.h.  */
26662 _ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h.  */
26666 $ac_includes_default
26667    typedef char * ac__type_sizeof_;
26668 int
26669 main ()
26670 {
26671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26672 test_array [0] = 0
26673
26674   ;
26675   return 0;
26676 }
26677 _ACEOF
26678 rm -f conftest.$ac_objext
26679 if { (ac_try="$ac_compile"
26680 case "(($ac_try" in
26681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682   *) ac_try_echo=$ac_try;;
26683 esac
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685   (eval "$ac_compile") 2>conftest.er1
26686   ac_status=$?
26687   grep -v '^ *+' conftest.er1 >conftest.err
26688   rm -f conftest.er1
26689   cat conftest.err >&5
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); } && {
26692          test -z "$ac_c_werror_flag" ||
26693          test ! -s conftest.err
26694        } && test -s conftest.$ac_objext; then
26695   ac_hi=$ac_mid; break
26696 else
26697   echo "$as_me: failed program was:" >&5
26698 sed 's/^/| /' conftest.$ac_ext >&5
26699
26700         ac_lo=`expr $ac_mid + 1`
26701                         if test $ac_lo -le $ac_mid; then
26702                           ac_lo= ac_hi=
26703                           break
26704                         fi
26705                         ac_mid=`expr 2 '*' $ac_mid + 1`
26706 fi
26707
26708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26709   done
26710 else
26711   echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26713
26714         cat >conftest.$ac_ext <<_ACEOF
26715 /* confdefs.h.  */
26716 _ACEOF
26717 cat confdefs.h >>conftest.$ac_ext
26718 cat >>conftest.$ac_ext <<_ACEOF
26719 /* end confdefs.h.  */
26720 $ac_includes_default
26721    typedef char * ac__type_sizeof_;
26722 int
26723 main ()
26724 {
26725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26726 test_array [0] = 0
26727
26728   ;
26729   return 0;
26730 }
26731 _ACEOF
26732 rm -f conftest.$ac_objext
26733 if { (ac_try="$ac_compile"
26734 case "(($ac_try" in
26735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26736   *) ac_try_echo=$ac_try;;
26737 esac
26738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26739   (eval "$ac_compile") 2>conftest.er1
26740   ac_status=$?
26741   grep -v '^ *+' conftest.er1 >conftest.err
26742   rm -f conftest.er1
26743   cat conftest.err >&5
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); } && {
26746          test -z "$ac_c_werror_flag" ||
26747          test ! -s conftest.err
26748        } && test -s conftest.$ac_objext; then
26749   ac_hi=-1 ac_mid=-1
26750   while :; do
26751     cat >conftest.$ac_ext <<_ACEOF
26752 /* confdefs.h.  */
26753 _ACEOF
26754 cat confdefs.h >>conftest.$ac_ext
26755 cat >>conftest.$ac_ext <<_ACEOF
26756 /* end confdefs.h.  */
26757 $ac_includes_default
26758    typedef char * ac__type_sizeof_;
26759 int
26760 main ()
26761 {
26762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26763 test_array [0] = 0
26764
26765   ;
26766   return 0;
26767 }
26768 _ACEOF
26769 rm -f conftest.$ac_objext
26770 if { (ac_try="$ac_compile"
26771 case "(($ac_try" in
26772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773   *) ac_try_echo=$ac_try;;
26774 esac
26775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776   (eval "$ac_compile") 2>conftest.er1
26777   ac_status=$?
26778   grep -v '^ *+' conftest.er1 >conftest.err
26779   rm -f conftest.er1
26780   cat conftest.err >&5
26781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782   (exit $ac_status); } && {
26783          test -z "$ac_c_werror_flag" ||
26784          test ! -s conftest.err
26785        } && test -s conftest.$ac_objext; then
26786   ac_lo=$ac_mid; break
26787 else
26788   echo "$as_me: failed program was:" >&5
26789 sed 's/^/| /' conftest.$ac_ext >&5
26790
26791         ac_hi=`expr '(' $ac_mid ')' - 1`
26792                         if test $ac_mid -le $ac_hi; then
26793                           ac_lo= ac_hi=
26794                           break
26795                         fi
26796                         ac_mid=`expr 2 '*' $ac_mid`
26797 fi
26798
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800   done
26801 else
26802   echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26804
26805         ac_lo= ac_hi=
26806 fi
26807
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26809 fi
26810
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812 # Binary search between lo and hi bounds.
26813 while test "x$ac_lo" != "x$ac_hi"; do
26814   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26815   cat >conftest.$ac_ext <<_ACEOF
26816 /* confdefs.h.  */
26817 _ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h.  */
26821 $ac_includes_default
26822    typedef char * ac__type_sizeof_;
26823 int
26824 main ()
26825 {
26826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26827 test_array [0] = 0
26828
26829   ;
26830   return 0;
26831 }
26832 _ACEOF
26833 rm -f conftest.$ac_objext
26834 if { (ac_try="$ac_compile"
26835 case "(($ac_try" in
26836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837   *) ac_try_echo=$ac_try;;
26838 esac
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840   (eval "$ac_compile") 2>conftest.er1
26841   ac_status=$?
26842   grep -v '^ *+' conftest.er1 >conftest.err
26843   rm -f conftest.er1
26844   cat conftest.err >&5
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } && {
26847          test -z "$ac_c_werror_flag" ||
26848          test ! -s conftest.err
26849        } && test -s conftest.$ac_objext; then
26850   ac_hi=$ac_mid
26851 else
26852   echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26854
26855         ac_lo=`expr '(' $ac_mid ')' + 1`
26856 fi
26857
26858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26859 done
26860 case $ac_lo in
26861 ?*) ac_cv_sizeof_char_p=$ac_lo;;
26862 '') if test "$ac_cv_type_char_p" = yes; then
26863      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
26864 See \`config.log' for more details." >&5
26865 echo "$as_me: error: cannot compute sizeof (char *)
26866 See \`config.log' for more details." >&2;}
26867    { (exit 77); exit 77; }; }
26868    else
26869      ac_cv_sizeof_char_p=0
26870    fi ;;
26871 esac
26872 else
26873   cat >conftest.$ac_ext <<_ACEOF
26874 /* confdefs.h.  */
26875 _ACEOF
26876 cat confdefs.h >>conftest.$ac_ext
26877 cat >>conftest.$ac_ext <<_ACEOF
26878 /* end confdefs.h.  */
26879 $ac_includes_default
26880    typedef char * ac__type_sizeof_;
26881 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26882 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26883 #include <stdio.h>
26884 #include <stdlib.h>
26885 int
26886 main ()
26887 {
26888
26889   FILE *f = fopen ("conftest.val", "w");
26890   if (! f)
26891     return 1;
26892   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26893     {
26894       long int i = longval ();
26895       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26896         return 1;
26897       fprintf (f, "%ld\n", i);
26898     }
26899   else
26900     {
26901       unsigned long int i = ulongval ();
26902       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26903         return 1;
26904       fprintf (f, "%lu\n", i);
26905     }
26906   return ferror (f) || fclose (f) != 0;
26907
26908   ;
26909   return 0;
26910 }
26911 _ACEOF
26912 rm -f conftest$ac_exeext
26913 if { (ac_try="$ac_link"
26914 case "(($ac_try" in
26915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916   *) ac_try_echo=$ac_try;;
26917 esac
26918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919   (eval "$ac_link") 2>&5
26920   ac_status=$?
26921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26923   { (case "(($ac_try" in
26924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925   *) ac_try_echo=$ac_try;;
26926 esac
26927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928   (eval "$ac_try") 2>&5
26929   ac_status=$?
26930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931   (exit $ac_status); }; }; then
26932   ac_cv_sizeof_char_p=`cat conftest.val`
26933 else
26934   echo "$as_me: program exited with status $ac_status" >&5
26935 echo "$as_me: failed program was:" >&5
26936 sed 's/^/| /' conftest.$ac_ext >&5
26937
26938 ( exit $ac_status )
26939 if test "$ac_cv_type_char_p" = yes; then
26940      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
26941 See \`config.log' for more details." >&5
26942 echo "$as_me: error: cannot compute sizeof (char *)
26943 See \`config.log' for more details." >&2;}
26944    { (exit 77); exit 77; }; }
26945    else
26946      ac_cv_sizeof_char_p=0
26947    fi
26948 fi
26949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26950 fi
26951 rm -f conftest.val
26952 fi
26953 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
26954 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
26955
26956
26957
26958 cat >>confdefs.h <<_ACEOF
26959 #define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
26960 _ACEOF
26961
26962
26963
26964 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26965 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
26966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26967   echo $ECHO_N "(cached) $ECHO_C" >&6
26968 else
26969   ac_check_lib_save_LIBS=$LIBS
26970 LIBS="-ldl  $LIBS"
26971 cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977
26978 /* Override any GCC internal prototype to avoid an error.
26979    Use char because int might match the return type of a GCC
26980    builtin and then its argument prototype would still apply.  */
26981 #ifdef __cplusplus
26982 extern "C"
26983 #endif
26984 char dlopen ();
26985 int
26986 main ()
26987 {
26988 return dlopen ();
26989   ;
26990   return 0;
26991 }
26992 _ACEOF
26993 rm -f conftest.$ac_objext conftest$ac_exeext
26994 if { (ac_try="$ac_link"
26995 case "(($ac_try" in
26996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997   *) ac_try_echo=$ac_try;;
26998 esac
26999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000   (eval "$ac_link") 2>conftest.er1
27001   ac_status=$?
27002   grep -v '^ *+' conftest.er1 >conftest.err
27003   rm -f conftest.er1
27004   cat conftest.err >&5
27005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006   (exit $ac_status); } && {
27007          test -z "$ac_c_werror_flag" ||
27008          test ! -s conftest.err
27009        } && test -s conftest$ac_exeext &&
27010        $as_test_x conftest$ac_exeext; then
27011   ac_cv_lib_dl_dlopen=yes
27012 else
27013   echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27015
27016         ac_cv_lib_dl_dlopen=no
27017 fi
27018
27019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27020       conftest$ac_exeext conftest.$ac_ext
27021 LIBS=$ac_check_lib_save_LIBS
27022 fi
27023 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27024 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
27025 if test $ac_cv_lib_dl_dlopen = yes; then
27026
27027 LIBDL="-ldl"
27028 ac_cv_have_dlfcn=yes
27029
27030 fi
27031
27032
27033 { echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
27034 echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6; }
27035 if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
27036   echo $ECHO_N "(cached) $ECHO_C" >&6
27037 else
27038   ac_check_lib_save_LIBS=$LIBS
27039 LIBS="-ldld  $LIBS"
27040 cat >conftest.$ac_ext <<_ACEOF
27041 /* confdefs.h.  */
27042 _ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h.  */
27046
27047 /* Override any GCC internal prototype to avoid an error.
27048    Use char because int might match the return type of a GCC
27049    builtin and then its argument prototype would still apply.  */
27050 #ifdef __cplusplus
27051 extern "C"
27052 #endif
27053 char shl_unload ();
27054 int
27055 main ()
27056 {
27057 return shl_unload ();
27058   ;
27059   return 0;
27060 }
27061 _ACEOF
27062 rm -f conftest.$ac_objext conftest$ac_exeext
27063 if { (ac_try="$ac_link"
27064 case "(($ac_try" in
27065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066   *) ac_try_echo=$ac_try;;
27067 esac
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069   (eval "$ac_link") 2>conftest.er1
27070   ac_status=$?
27071   grep -v '^ *+' conftest.er1 >conftest.err
27072   rm -f conftest.er1
27073   cat conftest.err >&5
27074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27075   (exit $ac_status); } && {
27076          test -z "$ac_c_werror_flag" ||
27077          test ! -s conftest.err
27078        } && test -s conftest$ac_exeext &&
27079        $as_test_x conftest$ac_exeext; then
27080   ac_cv_lib_dld_shl_unload=yes
27081 else
27082   echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27084
27085         ac_cv_lib_dld_shl_unload=no
27086 fi
27087
27088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27089       conftest$ac_exeext conftest.$ac_ext
27090 LIBS=$ac_check_lib_save_LIBS
27091 fi
27092 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
27093 echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6; }
27094 if test $ac_cv_lib_dld_shl_unload = yes; then
27095
27096 LIBDL="-ldld"
27097 ac_cv_have_shload=yes
27098
27099 fi
27100
27101
27102
27103
27104
27105
27106
27107   { echo "$as_me:$LINENO: checking for size_t" >&5
27108 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27109 if test "${ac_cv_type_size_t+set}" = set; then
27110   echo $ECHO_N "(cached) $ECHO_C" >&6
27111 else
27112   cat >conftest.$ac_ext <<_ACEOF
27113 /* confdefs.h.  */
27114 _ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h.  */
27118 $ac_includes_default
27119 typedef size_t ac__type_new_;
27120 int
27121 main ()
27122 {
27123 if ((ac__type_new_ *) 0)
27124   return 0;
27125 if (sizeof (ac__type_new_))
27126   return 0;
27127   ;
27128   return 0;
27129 }
27130 _ACEOF
27131 rm -f conftest.$ac_objext
27132 if { (ac_try="$ac_compile"
27133 case "(($ac_try" in
27134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135   *) ac_try_echo=$ac_try;;
27136 esac
27137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27138   (eval "$ac_compile") 2>conftest.er1
27139   ac_status=$?
27140   grep -v '^ *+' conftest.er1 >conftest.err
27141   rm -f conftest.er1
27142   cat conftest.err >&5
27143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144   (exit $ac_status); } && {
27145          test -z "$ac_c_werror_flag" ||
27146          test ! -s conftest.err
27147        } && test -s conftest.$ac_objext; then
27148   ac_cv_type_size_t=yes
27149 else
27150   echo "$as_me: failed program was:" >&5
27151 sed 's/^/| /' conftest.$ac_ext >&5
27152
27153         ac_cv_type_size_t=no
27154 fi
27155
27156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27157 fi
27158 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27159 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27160
27161 # The cast to long int works around a bug in the HP C Compiler
27162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27164 # This bug is HP SR number 8606223364.
27165 { echo "$as_me:$LINENO: checking size of size_t" >&5
27166 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27167 if test "${ac_cv_sizeof_size_t+set}" = set; then
27168   echo $ECHO_N "(cached) $ECHO_C" >&6
27169 else
27170   if test "$cross_compiling" = yes; then
27171   # Depending upon the size, compute the lo and hi bounds.
27172 cat >conftest.$ac_ext <<_ACEOF
27173 /* confdefs.h.  */
27174 _ACEOF
27175 cat confdefs.h >>conftest.$ac_ext
27176 cat >>conftest.$ac_ext <<_ACEOF
27177 /* end confdefs.h.  */
27178 $ac_includes_default
27179    typedef size_t ac__type_sizeof_;
27180 int
27181 main ()
27182 {
27183 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27184 test_array [0] = 0
27185
27186   ;
27187   return 0;
27188 }
27189 _ACEOF
27190 rm -f conftest.$ac_objext
27191 if { (ac_try="$ac_compile"
27192 case "(($ac_try" in
27193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27194   *) ac_try_echo=$ac_try;;
27195 esac
27196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27197   (eval "$ac_compile") 2>conftest.er1
27198   ac_status=$?
27199   grep -v '^ *+' conftest.er1 >conftest.err
27200   rm -f conftest.er1
27201   cat conftest.err >&5
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } && {
27204          test -z "$ac_c_werror_flag" ||
27205          test ! -s conftest.err
27206        } && test -s conftest.$ac_objext; then
27207   ac_lo=0 ac_mid=0
27208   while :; do
27209     cat >conftest.$ac_ext <<_ACEOF
27210 /* confdefs.h.  */
27211 _ACEOF
27212 cat confdefs.h >>conftest.$ac_ext
27213 cat >>conftest.$ac_ext <<_ACEOF
27214 /* end confdefs.h.  */
27215 $ac_includes_default
27216    typedef size_t ac__type_sizeof_;
27217 int
27218 main ()
27219 {
27220 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27221 test_array [0] = 0
27222
27223   ;
27224   return 0;
27225 }
27226 _ACEOF
27227 rm -f conftest.$ac_objext
27228 if { (ac_try="$ac_compile"
27229 case "(($ac_try" in
27230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231   *) ac_try_echo=$ac_try;;
27232 esac
27233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234   (eval "$ac_compile") 2>conftest.er1
27235   ac_status=$?
27236   grep -v '^ *+' conftest.er1 >conftest.err
27237   rm -f conftest.er1
27238   cat conftest.err >&5
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); } && {
27241          test -z "$ac_c_werror_flag" ||
27242          test ! -s conftest.err
27243        } && test -s conftest.$ac_objext; then
27244   ac_hi=$ac_mid; break
27245 else
27246   echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249         ac_lo=`expr $ac_mid + 1`
27250                         if test $ac_lo -le $ac_mid; then
27251                           ac_lo= ac_hi=
27252                           break
27253                         fi
27254                         ac_mid=`expr 2 '*' $ac_mid + 1`
27255 fi
27256
27257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27258   done
27259 else
27260   echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27262
27263         cat >conftest.$ac_ext <<_ACEOF
27264 /* confdefs.h.  */
27265 _ACEOF
27266 cat confdefs.h >>conftest.$ac_ext
27267 cat >>conftest.$ac_ext <<_ACEOF
27268 /* end confdefs.h.  */
27269 $ac_includes_default
27270    typedef size_t ac__type_sizeof_;
27271 int
27272 main ()
27273 {
27274 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27275 test_array [0] = 0
27276
27277   ;
27278   return 0;
27279 }
27280 _ACEOF
27281 rm -f conftest.$ac_objext
27282 if { (ac_try="$ac_compile"
27283 case "(($ac_try" in
27284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27285   *) ac_try_echo=$ac_try;;
27286 esac
27287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27288   (eval "$ac_compile") 2>conftest.er1
27289   ac_status=$?
27290   grep -v '^ *+' conftest.er1 >conftest.err
27291   rm -f conftest.er1
27292   cat conftest.err >&5
27293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294   (exit $ac_status); } && {
27295          test -z "$ac_c_werror_flag" ||
27296          test ! -s conftest.err
27297        } && test -s conftest.$ac_objext; then
27298   ac_hi=-1 ac_mid=-1
27299   while :; do
27300     cat >conftest.$ac_ext <<_ACEOF
27301 /* confdefs.h.  */
27302 _ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h.  */
27306 $ac_includes_default
27307    typedef size_t ac__type_sizeof_;
27308 int
27309 main ()
27310 {
27311 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27312 test_array [0] = 0
27313
27314   ;
27315   return 0;
27316 }
27317 _ACEOF
27318 rm -f conftest.$ac_objext
27319 if { (ac_try="$ac_compile"
27320 case "(($ac_try" in
27321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322   *) ac_try_echo=$ac_try;;
27323 esac
27324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325   (eval "$ac_compile") 2>conftest.er1
27326   ac_status=$?
27327   grep -v '^ *+' conftest.er1 >conftest.err
27328   rm -f conftest.er1
27329   cat conftest.err >&5
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); } && {
27332          test -z "$ac_c_werror_flag" ||
27333          test ! -s conftest.err
27334        } && test -s conftest.$ac_objext; then
27335   ac_lo=$ac_mid; break
27336 else
27337   echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27339
27340         ac_hi=`expr '(' $ac_mid ')' - 1`
27341                         if test $ac_mid -le $ac_hi; then
27342                           ac_lo= ac_hi=
27343                           break
27344                         fi
27345                         ac_mid=`expr 2 '*' $ac_mid`
27346 fi
27347
27348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27349   done
27350 else
27351   echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27353
27354         ac_lo= ac_hi=
27355 fi
27356
27357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27358 fi
27359
27360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27361 # Binary search between lo and hi bounds.
27362 while test "x$ac_lo" != "x$ac_hi"; do
27363   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27364   cat >conftest.$ac_ext <<_ACEOF
27365 /* confdefs.h.  */
27366 _ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h.  */
27370 $ac_includes_default
27371    typedef size_t ac__type_sizeof_;
27372 int
27373 main ()
27374 {
27375 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27376 test_array [0] = 0
27377
27378   ;
27379   return 0;
27380 }
27381 _ACEOF
27382 rm -f conftest.$ac_objext
27383 if { (ac_try="$ac_compile"
27384 case "(($ac_try" in
27385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386   *) ac_try_echo=$ac_try;;
27387 esac
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27389   (eval "$ac_compile") 2>conftest.er1
27390   ac_status=$?
27391   grep -v '^ *+' conftest.er1 >conftest.err
27392   rm -f conftest.er1
27393   cat conftest.err >&5
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } && {
27396          test -z "$ac_c_werror_flag" ||
27397          test ! -s conftest.err
27398        } && test -s conftest.$ac_objext; then
27399   ac_hi=$ac_mid
27400 else
27401   echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27403
27404         ac_lo=`expr '(' $ac_mid ')' + 1`
27405 fi
27406
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408 done
27409 case $ac_lo in
27410 ?*) ac_cv_sizeof_size_t=$ac_lo;;
27411 '') if test "$ac_cv_type_size_t" = yes; then
27412      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27413 See \`config.log' for more details." >&5
27414 echo "$as_me: error: cannot compute sizeof (size_t)
27415 See \`config.log' for more details." >&2;}
27416    { (exit 77); exit 77; }; }
27417    else
27418      ac_cv_sizeof_size_t=0
27419    fi ;;
27420 esac
27421 else
27422   cat >conftest.$ac_ext <<_ACEOF
27423 /* confdefs.h.  */
27424 _ACEOF
27425 cat confdefs.h >>conftest.$ac_ext
27426 cat >>conftest.$ac_ext <<_ACEOF
27427 /* end confdefs.h.  */
27428 $ac_includes_default
27429    typedef size_t ac__type_sizeof_;
27430 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27431 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27432 #include <stdio.h>
27433 #include <stdlib.h>
27434 int
27435 main ()
27436 {
27437
27438   FILE *f = fopen ("conftest.val", "w");
27439   if (! f)
27440     return 1;
27441   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27442     {
27443       long int i = longval ();
27444       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27445         return 1;
27446       fprintf (f, "%ld\n", i);
27447     }
27448   else
27449     {
27450       unsigned long int i = ulongval ();
27451       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27452         return 1;
27453       fprintf (f, "%lu\n", i);
27454     }
27455   return ferror (f) || fclose (f) != 0;
27456
27457   ;
27458   return 0;
27459 }
27460 _ACEOF
27461 rm -f conftest$ac_exeext
27462 if { (ac_try="$ac_link"
27463 case "(($ac_try" in
27464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465   *) ac_try_echo=$ac_try;;
27466 esac
27467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468   (eval "$ac_link") 2>&5
27469   ac_status=$?
27470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27472   { (case "(($ac_try" in
27473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474   *) ac_try_echo=$ac_try;;
27475 esac
27476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477   (eval "$ac_try") 2>&5
27478   ac_status=$?
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); }; }; then
27481   ac_cv_sizeof_size_t=`cat conftest.val`
27482 else
27483   echo "$as_me: program exited with status $ac_status" >&5
27484 echo "$as_me: failed program was:" >&5
27485 sed 's/^/| /' conftest.$ac_ext >&5
27486
27487 ( exit $ac_status )
27488 if test "$ac_cv_type_size_t" = yes; then
27489      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27490 See \`config.log' for more details." >&5
27491 echo "$as_me: error: cannot compute sizeof (size_t)
27492 See \`config.log' for more details." >&2;}
27493    { (exit 77); exit 77; }; }
27494    else
27495      ac_cv_sizeof_size_t=0
27496    fi
27497 fi
27498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27499 fi
27500 rm -f conftest.val
27501 fi
27502 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27503 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
27504
27505
27506
27507 cat >>confdefs.h <<_ACEOF
27508 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27509 _ACEOF
27510
27511
27512   { echo "$as_me:$LINENO: checking for unsigned long" >&5
27513 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
27514 if test "${ac_cv_type_unsigned_long+set}" = set; then
27515   echo $ECHO_N "(cached) $ECHO_C" >&6
27516 else
27517   cat >conftest.$ac_ext <<_ACEOF
27518 /* confdefs.h.  */
27519 _ACEOF
27520 cat confdefs.h >>conftest.$ac_ext
27521 cat >>conftest.$ac_ext <<_ACEOF
27522 /* end confdefs.h.  */
27523 $ac_includes_default
27524 typedef unsigned long ac__type_new_;
27525 int
27526 main ()
27527 {
27528 if ((ac__type_new_ *) 0)
27529   return 0;
27530 if (sizeof (ac__type_new_))
27531   return 0;
27532   ;
27533   return 0;
27534 }
27535 _ACEOF
27536 rm -f conftest.$ac_objext
27537 if { (ac_try="$ac_compile"
27538 case "(($ac_try" in
27539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27540   *) ac_try_echo=$ac_try;;
27541 esac
27542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27543   (eval "$ac_compile") 2>conftest.er1
27544   ac_status=$?
27545   grep -v '^ *+' conftest.er1 >conftest.err
27546   rm -f conftest.er1
27547   cat conftest.err >&5
27548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549   (exit $ac_status); } && {
27550          test -z "$ac_c_werror_flag" ||
27551          test ! -s conftest.err
27552        } && test -s conftest.$ac_objext; then
27553   ac_cv_type_unsigned_long=yes
27554 else
27555   echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27557
27558         ac_cv_type_unsigned_long=no
27559 fi
27560
27561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27562 fi
27563 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
27564 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
27565
27566 # The cast to long int works around a bug in the HP C Compiler
27567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27569 # This bug is HP SR number 8606223364.
27570 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
27571 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
27572 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
27573   echo $ECHO_N "(cached) $ECHO_C" >&6
27574 else
27575   if test "$cross_compiling" = yes; then
27576   # Depending upon the size, compute the lo and hi bounds.
27577 cat >conftest.$ac_ext <<_ACEOF
27578 /* confdefs.h.  */
27579 _ACEOF
27580 cat confdefs.h >>conftest.$ac_ext
27581 cat >>conftest.$ac_ext <<_ACEOF
27582 /* end confdefs.h.  */
27583 $ac_includes_default
27584    typedef unsigned long ac__type_sizeof_;
27585 int
27586 main ()
27587 {
27588 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27589 test_array [0] = 0
27590
27591   ;
27592   return 0;
27593 }
27594 _ACEOF
27595 rm -f conftest.$ac_objext
27596 if { (ac_try="$ac_compile"
27597 case "(($ac_try" in
27598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599   *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602   (eval "$ac_compile") 2>conftest.er1
27603   ac_status=$?
27604   grep -v '^ *+' conftest.er1 >conftest.err
27605   rm -f conftest.er1
27606   cat conftest.err >&5
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); } && {
27609          test -z "$ac_c_werror_flag" ||
27610          test ! -s conftest.err
27611        } && test -s conftest.$ac_objext; then
27612   ac_lo=0 ac_mid=0
27613   while :; do
27614     cat >conftest.$ac_ext <<_ACEOF
27615 /* confdefs.h.  */
27616 _ACEOF
27617 cat confdefs.h >>conftest.$ac_ext
27618 cat >>conftest.$ac_ext <<_ACEOF
27619 /* end confdefs.h.  */
27620 $ac_includes_default
27621    typedef unsigned long ac__type_sizeof_;
27622 int
27623 main ()
27624 {
27625 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27626 test_array [0] = 0
27627
27628   ;
27629   return 0;
27630 }
27631 _ACEOF
27632 rm -f conftest.$ac_objext
27633 if { (ac_try="$ac_compile"
27634 case "(($ac_try" in
27635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636   *) ac_try_echo=$ac_try;;
27637 esac
27638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27639   (eval "$ac_compile") 2>conftest.er1
27640   ac_status=$?
27641   grep -v '^ *+' conftest.er1 >conftest.err
27642   rm -f conftest.er1
27643   cat conftest.err >&5
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); } && {
27646          test -z "$ac_c_werror_flag" ||
27647          test ! -s conftest.err
27648        } && test -s conftest.$ac_objext; then
27649   ac_hi=$ac_mid; break
27650 else
27651   echo "$as_me: failed program was:" >&5
27652 sed 's/^/| /' conftest.$ac_ext >&5
27653
27654         ac_lo=`expr $ac_mid + 1`
27655                         if test $ac_lo -le $ac_mid; then
27656                           ac_lo= ac_hi=
27657                           break
27658                         fi
27659                         ac_mid=`expr 2 '*' $ac_mid + 1`
27660 fi
27661
27662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27663   done
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668         cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674 $ac_includes_default
27675    typedef unsigned long ac__type_sizeof_;
27676 int
27677 main ()
27678 {
27679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27680 test_array [0] = 0
27681
27682   ;
27683   return 0;
27684 }
27685 _ACEOF
27686 rm -f conftest.$ac_objext
27687 if { (ac_try="$ac_compile"
27688 case "(($ac_try" in
27689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690   *) ac_try_echo=$ac_try;;
27691 esac
27692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693   (eval "$ac_compile") 2>conftest.er1
27694   ac_status=$?
27695   grep -v '^ *+' conftest.er1 >conftest.err
27696   rm -f conftest.er1
27697   cat conftest.err >&5
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); } && {
27700          test -z "$ac_c_werror_flag" ||
27701          test ! -s conftest.err
27702        } && test -s conftest.$ac_objext; then
27703   ac_hi=-1 ac_mid=-1
27704   while :; do
27705     cat >conftest.$ac_ext <<_ACEOF
27706 /* confdefs.h.  */
27707 _ACEOF
27708 cat confdefs.h >>conftest.$ac_ext
27709 cat >>conftest.$ac_ext <<_ACEOF
27710 /* end confdefs.h.  */
27711 $ac_includes_default
27712    typedef unsigned long ac__type_sizeof_;
27713 int
27714 main ()
27715 {
27716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27717 test_array [0] = 0
27718
27719   ;
27720   return 0;
27721 }
27722 _ACEOF
27723 rm -f conftest.$ac_objext
27724 if { (ac_try="$ac_compile"
27725 case "(($ac_try" in
27726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727   *) ac_try_echo=$ac_try;;
27728 esac
27729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27730   (eval "$ac_compile") 2>conftest.er1
27731   ac_status=$?
27732   grep -v '^ *+' conftest.er1 >conftest.err
27733   rm -f conftest.er1
27734   cat conftest.err >&5
27735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736   (exit $ac_status); } && {
27737          test -z "$ac_c_werror_flag" ||
27738          test ! -s conftest.err
27739        } && test -s conftest.$ac_objext; then
27740   ac_lo=$ac_mid; break
27741 else
27742   echo "$as_me: failed program was:" >&5
27743 sed 's/^/| /' conftest.$ac_ext >&5
27744
27745         ac_hi=`expr '(' $ac_mid ')' - 1`
27746                         if test $ac_mid -le $ac_hi; then
27747                           ac_lo= ac_hi=
27748                           break
27749                         fi
27750                         ac_mid=`expr 2 '*' $ac_mid`
27751 fi
27752
27753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27754   done
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759         ac_lo= ac_hi=
27760 fi
27761
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 fi
27764
27765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27766 # Binary search between lo and hi bounds.
27767 while test "x$ac_lo" != "x$ac_hi"; do
27768   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27769   cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h.  */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h.  */
27775 $ac_includes_default
27776    typedef unsigned long ac__type_sizeof_;
27777 int
27778 main ()
27779 {
27780 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27781 test_array [0] = 0
27782
27783   ;
27784   return 0;
27785 }
27786 _ACEOF
27787 rm -f conftest.$ac_objext
27788 if { (ac_try="$ac_compile"
27789 case "(($ac_try" in
27790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791   *) ac_try_echo=$ac_try;;
27792 esac
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794   (eval "$ac_compile") 2>conftest.er1
27795   ac_status=$?
27796   grep -v '^ *+' conftest.er1 >conftest.err
27797   rm -f conftest.er1
27798   cat conftest.err >&5
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); } && {
27801          test -z "$ac_c_werror_flag" ||
27802          test ! -s conftest.err
27803        } && test -s conftest.$ac_objext; then
27804   ac_hi=$ac_mid
27805 else
27806   echo "$as_me: failed program was:" >&5
27807 sed 's/^/| /' conftest.$ac_ext >&5
27808
27809         ac_lo=`expr '(' $ac_mid ')' + 1`
27810 fi
27811
27812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27813 done
27814 case $ac_lo in
27815 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
27816 '') if test "$ac_cv_type_unsigned_long" = yes; then
27817      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
27818 See \`config.log' for more details." >&5
27819 echo "$as_me: error: cannot compute sizeof (unsigned long)
27820 See \`config.log' for more details." >&2;}
27821    { (exit 77); exit 77; }; }
27822    else
27823      ac_cv_sizeof_unsigned_long=0
27824    fi ;;
27825 esac
27826 else
27827   cat >conftest.$ac_ext <<_ACEOF
27828 /* confdefs.h.  */
27829 _ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h.  */
27833 $ac_includes_default
27834    typedef unsigned long ac__type_sizeof_;
27835 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27836 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27837 #include <stdio.h>
27838 #include <stdlib.h>
27839 int
27840 main ()
27841 {
27842
27843   FILE *f = fopen ("conftest.val", "w");
27844   if (! f)
27845     return 1;
27846   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27847     {
27848       long int i = longval ();
27849       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27850         return 1;
27851       fprintf (f, "%ld\n", i);
27852     }
27853   else
27854     {
27855       unsigned long int i = ulongval ();
27856       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27857         return 1;
27858       fprintf (f, "%lu\n", i);
27859     }
27860   return ferror (f) || fclose (f) != 0;
27861
27862   ;
27863   return 0;
27864 }
27865 _ACEOF
27866 rm -f conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_link") 2>&5
27874   ac_status=$?
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27877   { (case "(($ac_try" in
27878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879   *) ac_try_echo=$ac_try;;
27880 esac
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882   (eval "$ac_try") 2>&5
27883   ac_status=$?
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); }; }; then
27886   ac_cv_sizeof_unsigned_long=`cat conftest.val`
27887 else
27888   echo "$as_me: program exited with status $ac_status" >&5
27889 echo "$as_me: failed program was:" >&5
27890 sed 's/^/| /' conftest.$ac_ext >&5
27891
27892 ( exit $ac_status )
27893 if test "$ac_cv_type_unsigned_long" = yes; then
27894      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
27895 See \`config.log' for more details." >&5
27896 echo "$as_me: error: cannot compute sizeof (unsigned long)
27897 See \`config.log' for more details." >&2;}
27898    { (exit 77); exit 77; }; }
27899    else
27900      ac_cv_sizeof_unsigned_long=0
27901    fi
27902 fi
27903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27904 fi
27905 rm -f conftest.val
27906 fi
27907 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
27908 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
27909
27910
27911
27912 cat >>confdefs.h <<_ACEOF
27913 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27914 _ACEOF
27915
27916
27917
27918   { echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
27919 echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6; }
27920   cat >conftest.$ac_ext <<_ACEOF
27921 /* confdefs.h.  */
27922 _ACEOF
27923 cat confdefs.h >>conftest.$ac_ext
27924 cat >>conftest.$ac_ext <<_ACEOF
27925 /* end confdefs.h.  */
27926
27927 int
27928 main ()
27929 {
27930
27931     #if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
27932        choke me
27933     #endif
27934
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 rm -f conftest.$ac_objext
27940 if { (ac_try="$ac_compile"
27941 case "(($ac_try" in
27942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943   *) ac_try_echo=$ac_try;;
27944 esac
27945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946   (eval "$ac_compile") 2>conftest.er1
27947   ac_status=$?
27948   grep -v '^ *+' conftest.er1 >conftest.err
27949   rm -f conftest.er1
27950   cat conftest.err >&5
27951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952   (exit $ac_status); } && {
27953          test -z "$ac_c_werror_flag" ||
27954          test ! -s conftest.err
27955        } && test -s conftest.$ac_objext; then
27956   { echo "$as_me:$LINENO: result: yes" >&5
27957 echo "${ECHO_T}yes" >&6; }
27958 else
27959   echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27961
27962
27963       { echo "$as_me:$LINENO: result: no" >&5
27964 echo "${ECHO_T}no" >&6; }
27965       { { echo "$as_me:$LINENO: error:
27966        Apparently on your system our assumption sizeof size_t == sizeof unsigned long
27967        does not apply. Please mail kde-devel@kde.org with a description of your system!
27968       " >&5
27969 echo "$as_me: error:
27970        Apparently on your system our assumption sizeof size_t == sizeof unsigned long
27971        does not apply. Please mail kde-devel@kde.org with a description of your system!
27972       " >&2;}
27973    { (exit 1); exit 1; }; }
27974
27975 fi
27976
27977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27978
27979
27980 # darwin needs this to initialize the environment
27981
27982 for ac_header in crt_externs.h
27983 do
27984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27986   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27989   echo $ECHO_N "(cached) $ECHO_C" >&6
27990 fi
27991 ac_res=`eval echo '${'$as_ac_Header'}'`
27992                { echo "$as_me:$LINENO: result: $ac_res" >&5
27993 echo "${ECHO_T}$ac_res" >&6; }
27994 else
27995   # Is the header compilable?
27996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27998 cat >conftest.$ac_ext <<_ACEOF
27999 /* confdefs.h.  */
28000 _ACEOF
28001 cat confdefs.h >>conftest.$ac_ext
28002 cat >>conftest.$ac_ext <<_ACEOF
28003 /* end confdefs.h.  */
28004 $ac_includes_default
28005 #include <$ac_header>
28006 _ACEOF
28007 rm -f conftest.$ac_objext
28008 if { (ac_try="$ac_compile"
28009 case "(($ac_try" in
28010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28011   *) ac_try_echo=$ac_try;;
28012 esac
28013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28014   (eval "$ac_compile") 2>conftest.er1
28015   ac_status=$?
28016   grep -v '^ *+' conftest.er1 >conftest.err
28017   rm -f conftest.er1
28018   cat conftest.err >&5
28019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); } && {
28021          test -z "$ac_c_werror_flag" ||
28022          test ! -s conftest.err
28023        } && test -s conftest.$ac_objext; then
28024   ac_header_compiler=yes
28025 else
28026   echo "$as_me: failed program was:" >&5
28027 sed 's/^/| /' conftest.$ac_ext >&5
28028
28029         ac_header_compiler=no
28030 fi
28031
28032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28034 echo "${ECHO_T}$ac_header_compiler" >&6; }
28035
28036 # Is the header present?
28037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28039 cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045 #include <$ac_header>
28046 _ACEOF
28047 if { (ac_try="$ac_cpp conftest.$ac_ext"
28048 case "(($ac_try" in
28049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050   *) ac_try_echo=$ac_try;;
28051 esac
28052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28053   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28054   ac_status=$?
28055   grep -v '^ *+' conftest.er1 >conftest.err
28056   rm -f conftest.er1
28057   cat conftest.err >&5
28058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059   (exit $ac_status); } >/dev/null && {
28060          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28061          test ! -s conftest.err
28062        }; then
28063   ac_header_preproc=yes
28064 else
28065   echo "$as_me: failed program was:" >&5
28066 sed 's/^/| /' conftest.$ac_ext >&5
28067
28068   ac_header_preproc=no
28069 fi
28070
28071 rm -f conftest.err conftest.$ac_ext
28072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28073 echo "${ECHO_T}$ac_header_preproc" >&6; }
28074
28075 # So?  What about this header?
28076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28077   yes:no: )
28078     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28080     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28082     ac_header_preproc=yes
28083     ;;
28084   no:yes:* )
28085     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28087     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28088 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28089     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28091     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28092 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28093     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28095     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28097
28098     ;;
28099 esac
28100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28103   echo $ECHO_N "(cached) $ECHO_C" >&6
28104 else
28105   eval "$as_ac_Header=\$ac_header_preproc"
28106 fi
28107 ac_res=`eval echo '${'$as_ac_Header'}'`
28108                { echo "$as_me:$LINENO: result: $ac_res" >&5
28109 echo "${ECHO_T}$ac_res" >&6; }
28110
28111 fi
28112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28113   cat >>confdefs.h <<_ACEOF
28114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28115 _ACEOF
28116
28117 fi
28118
28119 done
28120
28121 { echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
28122 echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6; }
28123 if test "${ac_cv_func__NSGetEnviron+set}" = set; then
28124   echo $ECHO_N "(cached) $ECHO_C" >&6
28125 else
28126   cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132 /* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
28133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28134 #define _NSGetEnviron innocuous__NSGetEnviron
28135
28136 /* System header to define __stub macros and hopefully few prototypes,
28137     which can conflict with char _NSGetEnviron (); below.
28138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28139     <limits.h> exists even on freestanding compilers.  */
28140
28141 #ifdef __STDC__
28142 # include <limits.h>
28143 #else
28144 # include <assert.h>
28145 #endif
28146
28147 #undef _NSGetEnviron
28148
28149 /* Override any GCC internal prototype to avoid an error.
28150    Use char because int might match the return type of a GCC
28151    builtin and then its argument prototype would still apply.  */
28152 #ifdef __cplusplus
28153 extern "C"
28154 #endif
28155 char _NSGetEnviron ();
28156 /* The GNU C library defines this for functions which it implements
28157     to always fail with ENOSYS.  Some functions are actually named
28158     something starting with __ and the normal name is an alias.  */
28159 #if defined __stub__NSGetEnviron || defined __stub____NSGetEnviron
28160 choke me
28161 #endif
28162
28163 int
28164 main ()
28165 {
28166 return _NSGetEnviron ();
28167   ;
28168   return 0;
28169 }
28170 _ACEOF
28171 rm -f conftest.$ac_objext conftest$ac_exeext
28172 if { (ac_try="$ac_link"
28173 case "(($ac_try" in
28174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175   *) ac_try_echo=$ac_try;;
28176 esac
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178   (eval "$ac_link") 2>conftest.er1
28179   ac_status=$?
28180   grep -v '^ *+' conftest.er1 >conftest.err
28181   rm -f conftest.er1
28182   cat conftest.err >&5
28183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184   (exit $ac_status); } && {
28185          test -z "$ac_c_werror_flag" ||
28186          test ! -s conftest.err
28187        } && test -s conftest$ac_exeext &&
28188        $as_test_x conftest$ac_exeext; then
28189   ac_cv_func__NSGetEnviron=yes
28190 else
28191   echo "$as_me: failed program was:" >&5
28192 sed 's/^/| /' conftest.$ac_ext >&5
28193
28194         ac_cv_func__NSGetEnviron=no
28195 fi
28196
28197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28198       conftest$ac_exeext conftest.$ac_ext
28199 fi
28200 { echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
28201 echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6; }
28202 if test $ac_cv_func__NSGetEnviron = yes; then
28203
28204 cat >>confdefs.h <<\_ACEOF
28205 #define HAVE_NSGETENVIRON 1
28206 _ACEOF
28207
28208 fi
28209
28210
28211
28212
28213
28214
28215
28216
28217
28218
28219 for ac_func in vsnprintf snprintf
28220 do
28221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28225   echo $ECHO_N "(cached) $ECHO_C" >&6
28226 else
28227   cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h.  */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h.  */
28233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28235 #define $ac_func innocuous_$ac_func
28236
28237 /* System header to define __stub macros and hopefully few prototypes,
28238     which can conflict with char $ac_func (); below.
28239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28240     <limits.h> exists even on freestanding compilers.  */
28241
28242 #ifdef __STDC__
28243 # include <limits.h>
28244 #else
28245 # include <assert.h>
28246 #endif
28247
28248 #undef $ac_func
28249
28250 /* Override any GCC internal prototype to avoid an error.
28251    Use char because int might match the return type of a GCC
28252    builtin and then its argument prototype would still apply.  */
28253 #ifdef __cplusplus
28254 extern "C"
28255 #endif
28256 char $ac_func ();
28257 /* The GNU C library defines this for functions which it implements
28258     to always fail with ENOSYS.  Some functions are actually named
28259     something starting with __ and the normal name is an alias.  */
28260 #if defined __stub_$ac_func || defined __stub___$ac_func
28261 choke me
28262 #endif
28263
28264 int
28265 main ()
28266 {
28267 return $ac_func ();
28268   ;
28269   return 0;
28270 }
28271 _ACEOF
28272 rm -f conftest.$ac_objext conftest$ac_exeext
28273 if { (ac_try="$ac_link"
28274 case "(($ac_try" in
28275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28276   *) ac_try_echo=$ac_try;;
28277 esac
28278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28279   (eval "$ac_link") 2>conftest.er1
28280   ac_status=$?
28281   grep -v '^ *+' conftest.er1 >conftest.err
28282   rm -f conftest.er1
28283   cat conftest.err >&5
28284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28285   (exit $ac_status); } && {
28286          test -z "$ac_c_werror_flag" ||
28287          test ! -s conftest.err
28288        } && test -s conftest$ac_exeext &&
28289        $as_test_x conftest$ac_exeext; then
28290   eval "$as_ac_var=yes"
28291 else
28292   echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.$ac_ext >&5
28294
28295         eval "$as_ac_var=no"
28296 fi
28297
28298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28299       conftest$ac_exeext conftest.$ac_ext
28300 fi
28301 ac_res=`eval echo '${'$as_ac_var'}'`
28302                { echo "$as_me:$LINENO: result: $ac_res" >&5
28303 echo "${ECHO_T}$ac_res" >&6; }
28304 if test `eval echo '${'$as_ac_var'}'` = yes; then
28305   cat >>confdefs.h <<_ACEOF
28306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28307 _ACEOF
28308
28309 fi
28310 done
28311
28312
28313
28314
28315
28316
28317
28318
28319
28320 # Check whether --enable-embedded was given.
28321 if test "${enable_embedded+set}" = set; then
28322   enableval=$enable_embedded; kde_use_qt_emb=$enableval
28323 else
28324   kde_use_qt_emb=no
28325
28326 fi
28327
28328
28329 # Check whether --enable-qtopia was given.
28330 if test "${enable_qtopia+set}" = set; then
28331   enableval=$enable_qtopia; kde_use_qt_emb_palm=$enableval
28332 else
28333   kde_use_qt_emb_palm=no
28334
28335 fi
28336
28337
28338 # Check whether --enable-mac was given.
28339 if test "${enable_mac+set}" = set; then
28340   enableval=$enable_mac; kde_use_qt_mac=$enableval
28341 else
28342   kde_use_qt_mac=no
28343
28344 fi
28345
28346
28347 # used to disable x11-specific stuff on special platforms
28348
28349
28350 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28351   include_x11_TRUE=
28352   include_x11_FALSE='#'
28353 else
28354   include_x11_TRUE='#'
28355   include_x11_FALSE=
28356 fi
28357
28358
28359 if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28360
28361 { echo "$as_me:$LINENO: checking for X" >&5
28362 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
28363
28364 if test "${kde_cv_have_x+set}" = set; then
28365   echo $ECHO_N "(cached) $ECHO_C" >&6
28366 else
28367   # One or both of the vars are not set, and there is no cached value.
28368 if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
28369    kde_x_includes=NO
28370 else
28371    kde_x_includes=$x_includes
28372 fi
28373 if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
28374    kde_x_libraries=NO
28375 else
28376    kde_x_libraries=$x_libraries
28377 fi
28378
28379 # below we use the standard autoconf calls
28380 ac_x_libraries=$kde_x_libraries
28381 ac_x_includes=$kde_x_includes
28382
28383
28384
28385
28386 if test "$ac_x_includes" = NO; then
28387   # Guess where to find include files, by looking for this one X11 .h file.
28388   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
28389
28390   # First, try using that file with no special directory specified.
28391 cat >conftest.$ac_ext <<_ACEOF
28392 /* confdefs.h.  */
28393 _ACEOF
28394 cat confdefs.h >>conftest.$ac_ext
28395 cat >>conftest.$ac_ext <<_ACEOF
28396 /* end confdefs.h.  */
28397 #include <$x_direct_test_include>
28398 _ACEOF
28399 if { (ac_try="$ac_cpp conftest.$ac_ext"
28400 case "(($ac_try" in
28401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402   *) ac_try_echo=$ac_try;;
28403 esac
28404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28406   ac_status=$?
28407   grep -v '^ *+' conftest.er1 >conftest.err
28408   rm -f conftest.er1
28409   cat conftest.err >&5
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); } >/dev/null && {
28412          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28413          test ! -s conftest.err
28414        }; then
28415   # We can compile using X headers with no special include directory.
28416 ac_x_includes=
28417 else
28418   echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28420
28421   # Look for the header file in a standard set of common directories.
28422 # Check X11 before X11Rn because it is often a symlink to the current release.
28423   for ac_dir in               \
28424     /usr/X11/include          \
28425     /usr/X11R6/include        \
28426     /usr/X11R5/include        \
28427     /usr/X11R4/include        \
28428                               \
28429     /usr/include/X11          \
28430     /usr/include/X11R6        \
28431     /usr/include/X11R5        \
28432     /usr/include/X11R4        \
28433                               \
28434     /usr/local/X11/include    \
28435     /usr/local/X11R6/include  \
28436     /usr/local/X11R5/include  \
28437     /usr/local/X11R4/include  \
28438                               \
28439     /usr/local/include/X11    \
28440     /usr/local/include/X11R6  \
28441     /usr/local/include/X11R5  \
28442     /usr/local/include/X11R4  \
28443                               \
28444     /usr/X386/include         \
28445     /usr/x386/include         \
28446     /usr/XFree86/include/X11  \
28447                               \
28448     /usr/include              \
28449     /usr/local/include        \
28450     /usr/unsupported/include  \
28451     /usr/athena/include       \
28452     /usr/local/x11r5/include  \
28453     /usr/lpp/Xamples/include  \
28454                               \
28455     /usr/openwin/include      \
28456     /usr/openwin/share/include \
28457     ; \
28458   do
28459     if test -r "$ac_dir/$x_direct_test_include"; then
28460       ac_x_includes=$ac_dir
28461       break
28462     fi
28463   done
28464 fi
28465
28466 rm -f conftest.err conftest.$ac_ext
28467 fi # $ac_x_includes = NO
28468
28469 if test "$ac_x_libraries" = NO; then
28470   # Check for the libraries.
28471
28472   test -z "$x_direct_test_library" && x_direct_test_library=Xt
28473   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
28474
28475   # See if we find them without any special options.
28476   # Don't add to $LIBS permanently.
28477   ac_save_LIBS="$LIBS"
28478   LIBS="-l$x_direct_test_library $LIBS"
28479 cat >conftest.$ac_ext <<_ACEOF
28480 /* confdefs.h.  */
28481 _ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h.  */
28485 #include <X11/Intrinsic.h>
28486 int
28487 main ()
28488 {
28489 ${x_direct_test_function}(1)
28490   ;
28491   return 0;
28492 }
28493 _ACEOF
28494 rm -f conftest.$ac_objext conftest$ac_exeext
28495 if { (ac_try="$ac_link"
28496 case "(($ac_try" in
28497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498   *) ac_try_echo=$ac_try;;
28499 esac
28500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501   (eval "$ac_link") 2>conftest.er1
28502   ac_status=$?
28503   grep -v '^ *+' conftest.er1 >conftest.err
28504   rm -f conftest.er1
28505   cat conftest.err >&5
28506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28507   (exit $ac_status); } && {
28508          test -z "$ac_c_werror_flag" ||
28509          test ! -s conftest.err
28510        } && test -s conftest$ac_exeext &&
28511        $as_test_x conftest$ac_exeext; then
28512   LIBS="$ac_save_LIBS"
28513 # We can link X programs with no special library path.
28514 ac_x_libraries=
28515 else
28516   echo "$as_me: failed program was:" >&5
28517 sed 's/^/| /' conftest.$ac_ext >&5
28518
28519         LIBS="$ac_save_LIBS"
28520 # First see if replacing the include by lib works.
28521 # Check X11 before X11Rn because it is often a symlink to the current release.
28522 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
28523     /usr/X11/lib${kdelibsuff}           \
28524     /usr/X11R6/lib${kdelibsuff}         \
28525     /usr/X11R5/lib${kdelibsuff}         \
28526     /usr/X11R4/lib${kdelibsuff}         \
28527                                         \
28528     /usr/lib${kdelibsuff}/X11           \
28529     /usr/lib${kdelibsuff}/X11R6         \
28530     /usr/lib${kdelibsuff}/X11R5         \
28531     /usr/lib${kdelibsuff}/X11R4         \
28532                                         \
28533     /usr/local/X11/lib${kdelibsuff}     \
28534     /usr/local/X11R6/lib${kdelibsuff}   \
28535     /usr/local/X11R5/lib${kdelibsuff}   \
28536     /usr/local/X11R4/lib${kdelibsuff}   \
28537                                         \
28538     /usr/local/lib${kdelibsuff}/X11     \
28539     /usr/local/lib${kdelibsuff}/X11R6   \
28540     /usr/local/lib${kdelibsuff}/X11R5   \
28541     /usr/local/lib${kdelibsuff}/X11R4   \
28542                                         \
28543     /usr/X386/lib${kdelibsuff}          \
28544     /usr/x386/lib${kdelibsuff}          \
28545     /usr/XFree86/lib${kdelibsuff}/X11   \
28546                                         \
28547     /usr/lib${kdelibsuff}               \
28548     /usr/local/lib${kdelibsuff}         \
28549     /usr/unsupported/lib${kdelibsuff}   \
28550     /usr/athena/lib${kdelibsuff}        \
28551     /usr/local/x11r5/lib${kdelibsuff}   \
28552     /usr/lpp/Xamples/lib${kdelibsuff}   \
28553     /lib/usr/lib${kdelibsuff}/X11       \
28554                                         \
28555     /usr/openwin/lib${kdelibsuff}       \
28556     /usr/openwin/share/lib${kdelibsuff} \
28557     ; \
28558 do
28559   for ac_extension in a so sl; do
28560     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
28561       ac_x_libraries=$ac_dir
28562       break 2
28563     fi
28564   done
28565 done
28566 fi
28567
28568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28569       conftest$ac_exeext conftest.$ac_ext
28570 fi # $ac_x_libraries = NO
28571
28572 case "$host" in
28573 mips-sgi-irix6*)
28574   ;;
28575 *-*-solaris*)
28576   ;;
28577 *)
28578   rm -f -r conftest.dir
28579 if mkdir conftest.dir; then
28580   cd conftest.dir
28581   cat >Imakefile <<'_ACEOF'
28582 incroot:
28583         @echo incroot='${INCROOT}'
28584 usrlibdir:
28585         @echo usrlibdir='${USRLIBDIR}'
28586 libdir:
28587         @echo libdir='${LIBDIR}'
28588 _ACEOF
28589   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28590     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28591     for ac_var in incroot usrlibdir libdir; do
28592       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28593     done
28594     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28595     for ac_extension in a so sl; do
28596       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
28597          test -f "$ac_im_libdir/libX11.$ac_extension"; then
28598         ac_im_usrlibdir=$ac_im_libdir; break
28599       fi
28600     done
28601     # Screen out bogus values from the imake configuration.  They are
28602     # bogus both because they are the default anyway, and because
28603     # using them would break gcc on systems where it needs fixed includes.
28604     case $ac_im_incroot in
28605         /usr/include) ac_x_includes= ;;
28606         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28607     esac
28608     case $ac_im_usrlibdir in
28609         /usr/lib | /lib) ;;
28610         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28611     esac
28612   fi
28613   cd ..
28614   rm -f -r conftest.dir
28615 fi
28616
28617   if test -z "$ac_x_includes"; then
28618     ac_x_includes="."
28619   fi
28620   if test -z "$ac_x_libraries"; then
28621     ac_x_libraries="/usr/lib${kdelibsuff}"
28622   fi
28623 esac
28624 #from now on we use our own again
28625
28626 # when the user already gave --x-includes, we ignore
28627 # what the standard autoconf macros told us.
28628 if test "$kde_x_includes" = NO; then
28629   kde_x_includes=$ac_x_includes
28630 fi
28631
28632 # for --x-libraries too
28633 if test "$kde_x_libraries" = NO; then
28634   kde_x_libraries=$ac_x_libraries
28635 fi
28636
28637 if test "$kde_x_includes" = NO; then
28638   { { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
28639 echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
28640    { (exit 1); exit 1; }; }
28641 fi
28642
28643 if test "$kde_x_libraries" = NO; then
28644   { { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
28645 echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
28646    { (exit 1); exit 1; }; }
28647 fi
28648
28649 # Record where we found X for the cache.
28650 kde_cv_have_x="have_x=yes \
28651          kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
28652
28653 fi
28654
28655 eval "$kde_cv_have_x"
28656
28657 if test "$have_x" != yes; then
28658   { echo "$as_me:$LINENO: result: $have_x" >&5
28659 echo "${ECHO_T}$have_x" >&6; }
28660   no_x=yes
28661 else
28662   { echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
28663 echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6; }
28664 fi
28665
28666 if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
28667   X_INCLUDES=""
28668   x_includes=".";  else
28669   x_includes=$kde_x_includes
28670   X_INCLUDES="-I$x_includes"
28671 fi
28672
28673 if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
28674   X_LDFLAGS=""
28675   x_libraries="/usr/lib";  else
28676   x_libraries=$kde_x_libraries
28677   X_LDFLAGS="-L$x_libraries"
28678 fi
28679 all_includes="$X_INCLUDES"
28680 all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
28681
28682 # Check for libraries that X11R6 Xt/Xaw programs need.
28683 ac_save_LDFLAGS="$LDFLAGS"
28684 LDFLAGS="$LDFLAGS $X_LDFLAGS"
28685 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28686 # check for ICE first), but we must link in the order -lSM -lICE or
28687 # we get undefined symbols.  So assume we have SM if we have ICE.
28688 # These have to be linked with before -lX11, unlike the other
28689 # libraries we check for below, so use a different variable.
28690 #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
28691 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28692 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
28693 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28694   echo $ECHO_N "(cached) $ECHO_C" >&6
28695 else
28696   ac_check_lib_save_LIBS=$LIBS
28697 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28698 cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704
28705 /* Override any GCC internal prototype to avoid an error.
28706    Use char because int might match the return type of a GCC
28707    builtin and then its argument prototype would still apply.  */
28708 #ifdef __cplusplus
28709 extern "C"
28710 #endif
28711 char IceConnectionNumber ();
28712 int
28713 main ()
28714 {
28715 return IceConnectionNumber ();
28716   ;
28717   return 0;
28718 }
28719 _ACEOF
28720 rm -f conftest.$ac_objext conftest$ac_exeext
28721 if { (ac_try="$ac_link"
28722 case "(($ac_try" in
28723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28724   *) ac_try_echo=$ac_try;;
28725 esac
28726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28727   (eval "$ac_link") 2>conftest.er1
28728   ac_status=$?
28729   grep -v '^ *+' conftest.er1 >conftest.err
28730   rm -f conftest.er1
28731   cat conftest.err >&5
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); } && {
28734          test -z "$ac_c_werror_flag" ||
28735          test ! -s conftest.err
28736        } && test -s conftest$ac_exeext &&
28737        $as_test_x conftest$ac_exeext; then
28738   ac_cv_lib_ICE_IceConnectionNumber=yes
28739 else
28740   echo "$as_me: failed program was:" >&5
28741 sed 's/^/| /' conftest.$ac_ext >&5
28742
28743         ac_cv_lib_ICE_IceConnectionNumber=no
28744 fi
28745
28746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28747       conftest$ac_exeext conftest.$ac_ext
28748 LIBS=$ac_check_lib_save_LIBS
28749 fi
28750 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28751 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
28752 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28753   LIBSM="-lSM -lICE"
28754 fi
28755
28756 LDFLAGS="$ac_save_LDFLAGS"
28757
28758 LIB_X11='-lX11 $(LIBSOCKET)'
28759
28760 { echo "$as_me:$LINENO: checking for libXext" >&5
28761 echo $ECHO_N "checking for libXext... $ECHO_C" >&6; }
28762 if test "${kde_cv_have_libXext+set}" = set; then
28763   echo $ECHO_N "(cached) $ECHO_C" >&6
28764 else
28765
28766 kde_ldflags_safe="$LDFLAGS"
28767 kde_libs_safe="$LIBS"
28768
28769 LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
28770 LIBS="-lXext -lX11 $LIBSOCKET"
28771
28772 cat >conftest.$ac_ext <<_ACEOF
28773 /* confdefs.h.  */
28774 _ACEOF
28775 cat confdefs.h >>conftest.$ac_ext
28776 cat >>conftest.$ac_ext <<_ACEOF
28777 /* end confdefs.h.  */
28778
28779 #include <stdio.h>
28780 #ifdef STDC_HEADERS
28781 # include <stdlib.h>
28782 #endif
28783
28784 int
28785 main ()
28786 {
28787
28788 printf("hello Xext\n");
28789
28790   ;
28791   return 0;
28792 }
28793 _ACEOF
28794 rm -f conftest.$ac_objext conftest$ac_exeext
28795 if { (ac_try="$ac_link"
28796 case "(($ac_try" in
28797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28798   *) ac_try_echo=$ac_try;;
28799 esac
28800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28801   (eval "$ac_link") 2>conftest.er1
28802   ac_status=$?
28803   grep -v '^ *+' conftest.er1 >conftest.err
28804   rm -f conftest.er1
28805   cat conftest.err >&5
28806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28807   (exit $ac_status); } && {
28808          test -z "$ac_c_werror_flag" ||
28809          test ! -s conftest.err
28810        } && test -s conftest$ac_exeext &&
28811        $as_test_x conftest$ac_exeext; then
28812   kde_cv_have_libXext=yes
28813 else
28814   echo "$as_me: failed program was:" >&5
28815 sed 's/^/| /' conftest.$ac_ext >&5
28816
28817         kde_cv_have_libXext=no
28818
28819 fi
28820
28821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28822       conftest$ac_exeext conftest.$ac_ext
28823
28824 LDFLAGS=$kde_ldflags_safe
28825 LIBS=$kde_libs_safe
28826
28827 fi
28828
28829
28830 { echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
28831 echo "${ECHO_T}$kde_cv_have_libXext" >&6; }
28832
28833 if test "$kde_cv_have_libXext" = "no"; then
28834   { { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
28835 can't find it itself, we stop here assuming that make wouldn't find
28836 them either." >&5
28837 echo "$as_me: error: We need a working libXext to proceed. Since configure
28838 can't find it itself, we stop here assuming that make wouldn't find
28839 them either." >&2;}
28840    { (exit 1); exit 1; }; }
28841 fi
28842
28843 LIB_XEXT="-lXext"
28844 QTE_NORTTI=""
28845
28846 elif test "$kde_use_qt_emb" = "yes"; then
28847     CPPFLAGS=-DQWS
28848   CXXFLAGS="$CXXFLAGS -fno-rtti"
28849   QTE_NORTTI="-fno-rtti -DQWS"
28850   X_PRE_LIBS=""
28851   LIB_X11=""
28852   LIB_XEXT=""
28853   LIB_XRENDER=""
28854   LIBSM=""
28855   X_INCLUDES=""
28856   X_LDFLAGS=""
28857   x_includes=""
28858   x_libraries=""
28859 elif test "$kde_use_qt_mac" = "yes"; then
28860       CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
28861   CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
28862   X_PRE_LIBS=""
28863   LIB_X11=""
28864   LIB_XEXT=""
28865   LIB_XRENDER=""
28866   LIBSM=""
28867   X_INCLUDES=""
28868   X_LDFLAGS=""
28869   x_includes=""
28870   x_libraries=""
28871 fi
28872
28873
28874
28875
28876
28877
28878
28879
28880
28881
28882
28883
28884
28885                 LIBPTHREAD=""
28886
28887   if test -n "$PTHREAD_LIBS"; then
28888     if test "x$PTHREAD_LIBS" = "x-pthread" ; then
28889       LIBPTHREAD="PTHREAD"
28890     else
28891       PTHREAD_LIBS_save="$PTHREAD_LIBS"
28892       PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
28893       { echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
28894 echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6; }
28895
28896      kde_save_LDFLAGS="$LDFLAGS"
28897           kde_save_LIBS="$LIBS"
28898      LDFLAGS="$LDFLAGS $all_libraries"
28899      case $host_os in
28900       aix*) LDFLAGS="-brtl $LDFLAGS"
28901         test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
28902         ;;
28903      esac
28904      as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
28905 { echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
28906 echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6; }
28907 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
28908   echo $ECHO_N "(cached) $ECHO_C" >&6
28909 else
28910   ac_check_lib_save_LIBS=$LIBS
28911 LIBS="-l$PTHREAD_LIBS  $LIBS"
28912 cat >conftest.$ac_ext <<_ACEOF
28913 /* confdefs.h.  */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h.  */
28918
28919 /* Override any GCC internal prototype to avoid an error.
28920    Use char because int might match the return type of a GCC
28921    builtin and then its argument prototype would still apply.  */
28922 #ifdef __cplusplus
28923 extern "C"
28924 #endif
28925 char pthread_create ();
28926 int
28927 main ()
28928 {
28929 return pthread_create ();
28930   ;
28931   return 0;
28932 }
28933 _ACEOF
28934 rm -f conftest.$ac_objext conftest$ac_exeext
28935 if { (ac_try="$ac_link"
28936 case "(($ac_try" in
28937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938   *) ac_try_echo=$ac_try;;
28939 esac
28940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941   (eval "$ac_link") 2>conftest.er1
28942   ac_status=$?
28943   grep -v '^ *+' conftest.er1 >conftest.err
28944   rm -f conftest.er1
28945   cat conftest.err >&5
28946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28947   (exit $ac_status); } && {
28948          test -z "$ac_c_werror_flag" ||
28949          test ! -s conftest.err
28950        } && test -s conftest$ac_exeext &&
28951        $as_test_x conftest$ac_exeext; then
28952   eval "$as_ac_Lib=yes"
28953 else
28954   echo "$as_me: failed program was:" >&5
28955 sed 's/^/| /' conftest.$ac_ext >&5
28956
28957         eval "$as_ac_Lib=no"
28958 fi
28959
28960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28961       conftest$ac_exeext conftest.$ac_ext
28962 LIBS=$ac_check_lib_save_LIBS
28963 fi
28964 ac_res=`eval echo '${'$as_ac_Lib'}'`
28965                { echo "$as_me:$LINENO: result: $ac_res" >&5
28966 echo "${ECHO_T}$ac_res" >&6; }
28967 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28968   LIBPTHREAD="$PTHREAD_LIBS_save"
28969 fi
28970
28971      LDFLAGS="$kde_save_LDFLAGS"
28972      LIBS="$kde_save_LIBS"
28973
28974       PTHREAD_LIBS="$PTHREAD_LIBS_save"
28975     fi
28976   fi
28977
28978     if test -z "$LIBPTHREAD"; then
28979     { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
28980 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
28981 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
28982   echo $ECHO_N "(cached) $ECHO_C" >&6
28983 else
28984   ac_check_lib_save_LIBS=$LIBS
28985 LIBS="-lpthread  $LIBS"
28986 cat >conftest.$ac_ext <<_ACEOF
28987 /* confdefs.h.  */
28988 _ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h.  */
28992
28993 /* Override any GCC internal prototype to avoid an error.
28994    Use char because int might match the return type of a GCC
28995    builtin and then its argument prototype would still apply.  */
28996 #ifdef __cplusplus
28997 extern "C"
28998 #endif
28999 char pthread_create ();
29000 int
29001 main ()
29002 {
29003 return pthread_create ();
29004   ;
29005   return 0;
29006 }
29007 _ACEOF
29008 rm -f conftest.$ac_objext conftest$ac_exeext
29009 if { (ac_try="$ac_link"
29010 case "(($ac_try" in
29011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012   *) ac_try_echo=$ac_try;;
29013 esac
29014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015   (eval "$ac_link") 2>conftest.er1
29016   ac_status=$?
29017   grep -v '^ *+' conftest.er1 >conftest.err
29018   rm -f conftest.er1
29019   cat conftest.err >&5
29020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021   (exit $ac_status); } && {
29022          test -z "$ac_c_werror_flag" ||
29023          test ! -s conftest.err
29024        } && test -s conftest$ac_exeext &&
29025        $as_test_x conftest$ac_exeext; then
29026   ac_cv_lib_pthread_pthread_create=yes
29027 else
29028   echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031         ac_cv_lib_pthread_pthread_create=no
29032 fi
29033
29034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29035       conftest$ac_exeext conftest.$ac_ext
29036 LIBS=$ac_check_lib_save_LIBS
29037 fi
29038 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29039 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29040 if test $ac_cv_lib_pthread_pthread_create = yes; then
29041   LIBPTHREAD="-lpthread"
29042 fi
29043
29044   fi
29045
29046     if test -z "$LIBPTHREAD" ; then
29047     { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29048 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29049     kde_safe_libs=$LIBS
29050     LIBS="$LIBS -lpthread"
29051     cat >conftest.$ac_ext <<_ACEOF
29052 /* confdefs.h.  */
29053 _ACEOF
29054 cat confdefs.h >>conftest.$ac_ext
29055 cat >>conftest.$ac_ext <<_ACEOF
29056 /* end confdefs.h.  */
29057 #include <pthread.h>
29058 int
29059 main ()
29060 {
29061 (void)pthread_create(0,0,0,0);
29062   ;
29063   return 0;
29064 }
29065 _ACEOF
29066 rm -f conftest.$ac_objext conftest$ac_exeext
29067 if { (ac_try="$ac_link"
29068 case "(($ac_try" in
29069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070   *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073   (eval "$ac_link") 2>conftest.er1
29074   ac_status=$?
29075   grep -v '^ *+' conftest.er1 >conftest.err
29076   rm -f conftest.er1
29077   cat conftest.err >&5
29078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29079   (exit $ac_status); } && {
29080          test -z "$ac_c_werror_flag" ||
29081          test ! -s conftest.err
29082        } && test -s conftest$ac_exeext &&
29083        $as_test_x conftest$ac_exeext; then
29084
29085         { echo "$as_me:$LINENO: result: yes" >&5
29086 echo "${ECHO_T}yes" >&6; }
29087         LIBPTHREAD="-lpthread"
29088 else
29089   echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29091
29092
29093         { echo "$as_me:$LINENO: result: no" >&5
29094 echo "${ECHO_T}no" >&6; }
29095 fi
29096
29097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29098       conftest$ac_exeext conftest.$ac_ext
29099     LIBS=$kde_safe_libs
29100   fi
29101
29102     if test "x$LIBPTHREAD" = "xPTHREAD" ; then
29103     LIBPTHREAD=""
29104   fi
29105
29106
29107
29108
29109       USE_THREADS=""
29110       if test -z "$LIBPTHREAD"; then
29111
29112 { echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
29113 echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
29114 kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
29115 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29116   echo $ECHO_N "(cached) $ECHO_C" >&6
29117 else
29118
29119
29120    ac_ext=cpp
29121 ac_cpp='$CXXCPP $CPPFLAGS'
29122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29125
29126 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29127
29128
29129   save_CXXFLAGS="$CXXFLAGS"
29130   CXXFLAGS="$CXXFLAGS -pthread"
29131   cat >conftest.$ac_ext <<_ACEOF
29132 /* confdefs.h.  */
29133 _ACEOF
29134 cat confdefs.h >>conftest.$ac_ext
29135 cat >>conftest.$ac_ext <<_ACEOF
29136 /* end confdefs.h.  */
29137
29138 int
29139 main ()
29140 {
29141  return 0;
29142   ;
29143   return 0;
29144 }
29145 _ACEOF
29146 rm -f conftest.$ac_objext conftest$ac_exeext
29147 if { (ac_try="$ac_link"
29148 case "(($ac_try" in
29149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29150   *) ac_try_echo=$ac_try;;
29151 esac
29152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29153   (eval "$ac_link") 2>conftest.er1
29154   ac_status=$?
29155   grep -v '^ *+' conftest.er1 >conftest.err
29156   rm -f conftest.er1
29157   cat conftest.err >&5
29158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159   (exit $ac_status); } && {
29160          test -z "$ac_cxx_werror_flag" ||
29161          test ! -s conftest.err
29162        } && test -s conftest$ac_exeext &&
29163        $as_test_x conftest$ac_exeext; then
29164   eval "kde_cv_prog_cxx_$kde_cache=yes"
29165 else
29166   echo "$as_me: failed program was:" >&5
29167 sed 's/^/| /' conftest.$ac_ext >&5
29168
29169
29170 fi
29171
29172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29173       conftest$ac_exeext conftest.$ac_ext
29174   CXXFLAGS="$save_CXXFLAGS"
29175   ac_ext=c
29176 ac_cpp='$CPP $CPPFLAGS'
29177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29180
29181
29182 fi
29183
29184 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29185  { echo "$as_me:$LINENO: result: yes" >&5
29186 echo "${ECHO_T}yes" >&6; }
29187  :
29188  USE_THREADS="-D_THREAD_SAFE -pthread"
29189 else
29190  { echo "$as_me:$LINENO: result: no" >&5
29191 echo "${ECHO_T}no" >&6; }
29192  :
29193
29194 fi
29195
29196       fi
29197
29198
29199
29200     case $host_os in
29201         solaris*)
29202
29203 { echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
29204 echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
29205 kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
29206 if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29207   echo $ECHO_N "(cached) $ECHO_C" >&6
29208 else
29209
29210
29211    ac_ext=cpp
29212 ac_cpp='$CXXCPP $CPPFLAGS'
29213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29216
29217 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29218
29219
29220   save_CXXFLAGS="$CXXFLAGS"
29221   CXXFLAGS="$CXXFLAGS -mt"
29222   cat >conftest.$ac_ext <<_ACEOF
29223 /* confdefs.h.  */
29224 _ACEOF
29225 cat confdefs.h >>conftest.$ac_ext
29226 cat >>conftest.$ac_ext <<_ACEOF
29227 /* end confdefs.h.  */
29228
29229 int
29230 main ()
29231 {
29232  return 0;
29233   ;
29234   return 0;
29235 }
29236 _ACEOF
29237 rm -f conftest.$ac_objext conftest$ac_exeext
29238 if { (ac_try="$ac_link"
29239 case "(($ac_try" in
29240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29241   *) ac_try_echo=$ac_try;;
29242 esac
29243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29244   (eval "$ac_link") 2>conftest.er1
29245   ac_status=$?
29246   grep -v '^ *+' conftest.er1 >conftest.err
29247   rm -f conftest.er1
29248   cat conftest.err >&5
29249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250   (exit $ac_status); } && {
29251          test -z "$ac_cxx_werror_flag" ||
29252          test ! -s conftest.err
29253        } && test -s conftest$ac_exeext &&
29254        $as_test_x conftest$ac_exeext; then
29255   eval "kde_cv_prog_cxx_$kde_cache=yes"
29256 else
29257   echo "$as_me: failed program was:" >&5
29258 sed 's/^/| /' conftest.$ac_ext >&5
29259
29260
29261 fi
29262
29263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29264       conftest$ac_exeext conftest.$ac_ext
29265   CXXFLAGS="$save_CXXFLAGS"
29266   ac_ext=c
29267 ac_cpp='$CPP $CPPFLAGS'
29268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29271
29272
29273 fi
29274
29275 if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29276  { echo "$as_me:$LINENO: result: yes" >&5
29277 echo "${ECHO_T}yes" >&6; }
29278  :
29279  USE_THREADS="-mt"
29280 else
29281  { echo "$as_me:$LINENO: result: no" >&5
29282 echo "${ECHO_T}no" >&6; }
29283  :
29284
29285 fi
29286
29287                 CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
29288                 ;;
29289         freebsd*)
29290                 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
29291                 ;;
29292         aix*)
29293                 CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
29294                 LIBPTHREAD="$LIBPTHREAD -lc_r"
29295                 ;;
29296         linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
29297                 if test "$CXX" = "KCC"; then
29298                   CXXFLAGS="$CXXFLAGS --thread_safe"
29299                   NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
29300                 fi
29301                 ;;
29302         *)
29303                 ;;
29304     esac
29305
29306
29307
29308
29309 { echo "$as_me:$LINENO: checking for extra includes" >&5
29310 echo $ECHO_N "checking for extra includes... $ECHO_C" >&6; }
29311
29312 # Check whether --with-extra-includes was given.
29313 if test "${with_extra_includes+set}" = set; then
29314   withval=$with_extra_includes; kde_use_extra_includes="$withval"
29315 else
29316   kde_use_extra_includes=NONE
29317
29318 fi
29319
29320 kde_extra_includes=
29321 if test -n "$kde_use_extra_includes" && \
29322    test "$kde_use_extra_includes" != "NONE"; then
29323
29324    ac_save_ifs=$IFS
29325    IFS=':'
29326    for dir in $kde_use_extra_includes; do
29327      kde_extra_includes="$kde_extra_includes $dir"
29328      USER_INCLUDES="$USER_INCLUDES -I$dir"
29329    done
29330    IFS=$ac_save_ifs
29331    kde_use_extra_includes="added"
29332 else
29333    kde_use_extra_includes="no"
29334 fi
29335
29336
29337 { echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
29338 echo "${ECHO_T}$kde_use_extra_includes" >&6; }
29339
29340 kde_extra_libs=
29341 { echo "$as_me:$LINENO: checking for extra libs" >&5
29342 echo $ECHO_N "checking for extra libs... $ECHO_C" >&6; }
29343
29344 # Check whether --with-extra-libs was given.
29345 if test "${with_extra_libs+set}" = set; then
29346   withval=$with_extra_libs; kde_use_extra_libs=$withval
29347 else
29348   kde_use_extra_libs=NONE
29349
29350 fi
29351
29352 if test -n "$kde_use_extra_libs" && \
29353    test "$kde_use_extra_libs" != "NONE"; then
29354
29355    ac_save_ifs=$IFS
29356    IFS=':'
29357    for dir in $kde_use_extra_libs; do
29358      kde_extra_libs="$kde_extra_libs $dir"
29359      KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
29360      USER_LDFLAGS="$USER_LDFLAGS -L$dir"
29361    done
29362    IFS=$ac_save_ifs
29363    kde_use_extra_libs="added"
29364 else
29365    kde_use_extra_libs="no"
29366 fi
29367
29368
29369
29370 { echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
29371 echo "${ECHO_T}$kde_use_extra_libs" >&6; }
29372
29373
29374
29375
29376 { echo "$as_me:$LINENO: checking for libz" >&5
29377 echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
29378 if test "${ac_cv_lib_z+set}" = set; then
29379   echo $ECHO_N "(cached) $ECHO_C" >&6
29380 else
29381
29382 kde_save_LIBS="$LIBS"
29383 LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
29384 kde_save_CFLAGS="$CFLAGS"
29385 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29386 cat >conftest.$ac_ext <<_ACEOF
29387 /* confdefs.h.  */
29388 _ACEOF
29389 cat confdefs.h >>conftest.$ac_ext
29390 cat >>conftest.$ac_ext <<_ACEOF
29391 /* end confdefs.h.  */
29392
29393 #include<zlib.h>
29394
29395 int
29396 main ()
29397 {
29398
29399   char buf[42];
29400   gzFile f = (gzFile) 0;
29401   /* this would segfault.. but we only link, don't run */
29402   (void) gzgets(f, buf, sizeof(buf));
29403
29404   return (zlibVersion() == ZLIB_VERSION);
29405
29406   ;
29407   return 0;
29408 }
29409 _ACEOF
29410 rm -f conftest.$ac_objext conftest$ac_exeext
29411 if { (ac_try="$ac_link"
29412 case "(($ac_try" in
29413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414   *) ac_try_echo=$ac_try;;
29415 esac
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417   (eval "$ac_link") 2>conftest.er1
29418   ac_status=$?
29419   grep -v '^ *+' conftest.er1 >conftest.err
29420   rm -f conftest.er1
29421   cat conftest.err >&5
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); } && {
29424          test -z "$ac_c_werror_flag" ||
29425          test ! -s conftest.err
29426        } && test -s conftest$ac_exeext &&
29427        $as_test_x conftest$ac_exeext; then
29428   eval "ac_cv_lib_z='-lz'"
29429 else
29430   echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29432
29433         eval "ac_cv_lib_z=no"
29434 fi
29435
29436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29437       conftest$ac_exeext conftest.$ac_ext
29438 LIBS="$kde_save_LIBS"
29439 CFLAGS="$kde_save_CFLAGS"
29440
29441 fi
29442 if test ! "$ac_cv_lib_z" = no; then
29443
29444 cat >>confdefs.h <<_ACEOF
29445 #define HAVE_LIBZ 1
29446 _ACEOF
29447
29448   LIBZ="$ac_cv_lib_z"
29449   { echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
29450 echo "${ECHO_T}$ac_cv_lib_z" >&6; }
29451 else
29452   { { echo "$as_me:$LINENO: error: not found.
29453           Possibly configure picks up an outdated version
29454           installed by XFree86. Remove it from your system.
29455
29456           Check your installation and look into config.log" >&5
29457 echo "$as_me: error: not found.
29458           Possibly configure picks up an outdated version
29459           installed by XFree86. Remove it from your system.
29460
29461           Check your installation and look into config.log" >&2;}
29462    { (exit 1); exit 1; }; }
29463   LIBZ=""
29464 fi
29465
29466
29467
29468
29469
29470 { echo "$as_me:$LINENO: checking for libpng" >&5
29471 echo $ECHO_N "checking for libpng... $ECHO_C" >&6; }
29472 if test "${ac_cv_lib_png+set}" = set; then
29473   echo $ECHO_N "(cached) $ECHO_C" >&6
29474 else
29475
29476 kde_save_LIBS="$LIBS"
29477 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29478 LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
29479 else
29480 LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
29481 fi
29482 kde_save_CFLAGS="$CFLAGS"
29483 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29484
29485 cat >conftest.$ac_ext <<_ACEOF
29486 /* confdefs.h.  */
29487 _ACEOF
29488 cat confdefs.h >>conftest.$ac_ext
29489 cat >>conftest.$ac_ext <<_ACEOF
29490 /* end confdefs.h.  */
29491
29492     #include<png.h>
29493
29494 int
29495 main ()
29496 {
29497
29498     png_structp png_ptr = png_create_read_struct(  /* image ptr */
29499                 PNG_LIBPNG_VER_STRING, 0, 0, 0 );
29500     return( png_ptr != 0 );
29501
29502   ;
29503   return 0;
29504 }
29505 _ACEOF
29506 rm -f conftest.$ac_objext conftest$ac_exeext
29507 if { (ac_try="$ac_link"
29508 case "(($ac_try" in
29509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510   *) ac_try_echo=$ac_try;;
29511 esac
29512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513   (eval "$ac_link") 2>conftest.er1
29514   ac_status=$?
29515   grep -v '^ *+' conftest.er1 >conftest.err
29516   rm -f conftest.er1
29517   cat conftest.err >&5
29518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519   (exit $ac_status); } && {
29520          test -z "$ac_c_werror_flag" ||
29521          test ! -s conftest.err
29522        } && test -s conftest$ac_exeext &&
29523        $as_test_x conftest$ac_exeext; then
29524   eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
29525 else
29526   echo "$as_me: failed program was:" >&5
29527 sed 's/^/| /' conftest.$ac_ext >&5
29528
29529         eval "ac_cv_lib_png=no"
29530
29531 fi
29532
29533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29534       conftest$ac_exeext conftest.$ac_ext
29535 LIBS="$kde_save_LIBS"
29536 CFLAGS="$kde_save_CFLAGS"
29537
29538 fi
29539 if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
29540
29541 cat >>confdefs.h <<_ACEOF
29542 #define HAVE_LIBPNG 1
29543 _ACEOF
29544
29545   LIBPNG="$ac_cv_lib_png"
29546
29547   { echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
29548 echo "${ECHO_T}$ac_cv_lib_png" >&6; }
29549 else
29550   { echo "$as_me:$LINENO: result: no" >&5
29551 echo "${ECHO_T}no" >&6; }
29552   LIBPNG=""
29553
29554 fi
29555
29556
29557
29558 { echo "$as_me:$LINENO: checking for libjpeg6b" >&5
29559 echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6; }
29560 if test "${ac_cv_lib_jpeg_6b+set}" = set; then
29561   echo $ECHO_N "(cached) $ECHO_C" >&6
29562 else
29563
29564 ac_save_LIBS="$LIBS"
29565 LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
29566 ac_save_CFLAGS="$CFLAGS"
29567 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29568 cat >conftest.$ac_ext <<_ACEOF
29569 /* confdefs.h.  */
29570 _ACEOF
29571 cat confdefs.h >>conftest.$ac_ext
29572 cat >>conftest.$ac_ext <<_ACEOF
29573 /* end confdefs.h.  */
29574 /* Override any gcc2 internal prototype to avoid an error.  */
29575 struct jpeg_decompress_struct;
29576 typedef struct jpeg_decompress_struct * j_decompress_ptr;
29577 typedef int size_t;
29578 #ifdef __cplusplus
29579 extern "C" {
29580 #endif
29581     void jpeg_CreateDecompress(j_decompress_ptr cinfo,
29582                                     int version, size_t structsize);
29583 #ifdef __cplusplus
29584 }
29585 #endif
29586 /* We use char because int might match the return type of a gcc2
29587     builtin and then its argument prototype would still apply.  */
29588
29589 int
29590 main ()
29591 {
29592 jpeg_CreateDecompress(0L, 0, 0);
29593   ;
29594   return 0;
29595 }
29596 _ACEOF
29597 rm -f conftest.$ac_objext conftest$ac_exeext
29598 if { (ac_try="$ac_link"
29599 case "(($ac_try" in
29600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601   *) ac_try_echo=$ac_try;;
29602 esac
29603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29604   (eval "$ac_link") 2>conftest.er1
29605   ac_status=$?
29606   grep -v '^ *+' conftest.er1 >conftest.err
29607   rm -f conftest.er1
29608   cat conftest.err >&5
29609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610   (exit $ac_status); } && {
29611          test -z "$ac_c_werror_flag" ||
29612          test ! -s conftest.err
29613        } && test -s conftest$ac_exeext &&
29614        $as_test_x conftest$ac_exeext; then
29615   eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
29616 else
29617   echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29619
29620         eval "ac_cv_lib_jpeg_6b=no"
29621 fi
29622
29623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29624       conftest$ac_exeext conftest.$ac_ext
29625 LIBS="$ac_save_LIBS"
29626 CFLAGS="$ac_save_CFLAGS"
29627
29628 fi
29629
29630
29631 if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
29632   LIBJPEG="$ac_cv_lib_jpeg_6b"
29633   { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
29634 echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6; }
29635 else
29636   { echo "$as_me:$LINENO: result: no" >&5
29637 echo "${ECHO_T}no" >&6; }
29638
29639 { echo "$as_me:$LINENO: checking for libjpeg" >&5
29640 echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6; }
29641 if test "${ac_cv_lib_jpeg_normal+set}" = set; then
29642   echo $ECHO_N "(cached) $ECHO_C" >&6
29643 else
29644
29645 ac_save_LIBS="$LIBS"
29646 LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
29647 ac_save_CFLAGS="$CFLAGS"
29648 CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29649 cat >conftest.$ac_ext <<_ACEOF
29650 /* confdefs.h.  */
29651 _ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h.  */
29655 /* Override any gcc2 internal prototype to avoid an error.  */
29656 struct jpeg_decompress_struct;
29657 typedef struct jpeg_decompress_struct * j_decompress_ptr;
29658 typedef int size_t;
29659 #ifdef __cplusplus
29660 extern "C" {
29661 #endif
29662     void jpeg_CreateDecompress(j_decompress_ptr cinfo,
29663                                     int version, size_t structsize);
29664 #ifdef __cplusplus
29665 }
29666 #endif
29667 /* We use char because int might match the return type of a gcc2
29668     builtin and then its argument prototype would still apply.  */
29669
29670 int
29671 main ()
29672 {
29673 jpeg_CreateDecompress(0L, 0, 0);
29674   ;
29675   return 0;
29676 }
29677 _ACEOF
29678 rm -f conftest.$ac_objext conftest$ac_exeext
29679 if { (ac_try="$ac_link"
29680 case "(($ac_try" in
29681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682   *) ac_try_echo=$ac_try;;
29683 esac
29684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685   (eval "$ac_link") 2>conftest.er1
29686   ac_status=$?
29687   grep -v '^ *+' conftest.er1 >conftest.err
29688   rm -f conftest.er1
29689   cat conftest.err >&5
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); } && {
29692          test -z "$ac_c_werror_flag" ||
29693          test ! -s conftest.err
29694        } && test -s conftest$ac_exeext &&
29695        $as_test_x conftest$ac_exeext; then
29696   eval "ac_cv_lib_jpeg_normal=-ljpeg"
29697 else
29698   echo "$as_me: failed program was:" >&5
29699 sed 's/^/| /' conftest.$ac_ext >&5
29700
29701         eval "ac_cv_lib_jpeg_normal=no"
29702 fi
29703
29704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29705       conftest$ac_exeext conftest.$ac_ext
29706 LIBS="$ac_save_LIBS"
29707 CFLAGS="$ac_save_CFLAGS"
29708
29709 fi
29710
29711
29712 if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
29713   LIBJPEG="$ac_cv_lib_jpeg_normal"
29714   { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
29715 echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6; }
29716 else
29717   { echo "$as_me:$LINENO: result: no" >&5
29718 echo "${ECHO_T}no" >&6; }
29719
29720        LIBJPEG=
29721
29722
29723 fi
29724
29725
29726
29727 fi
29728
29729
29730
29731 jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
29732
29733 jpeg_incdir=NO
29734 for i in $jpeg_incdirs;
29735 do
29736   for j in jpeglib.h;
29737   do
29738     echo "configure: 29738: $i/$j" >&5
29739     if test -r "$i/$j"; then
29740       echo "taking that" >&5
29741       jpeg_incdir=$i
29742       break 2
29743     fi
29744   done
29745 done
29746
29747 test "x$jpeg_incdir" = xNO && jpeg_incdir=
29748
29749 if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
29750
29751 cat >>confdefs.h <<_ACEOF
29752 #define HAVE_LIBJPEG 1
29753 _ACEOF
29754
29755 else
29756   if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
29757     { echo "$as_me:$LINENO: WARNING:
29758 There is an installation error in jpeg support. You seem to have only one
29759 of either the headers _or_ the libraries installed. You may need to either
29760 provide correct --with-extra-... options, or the development package of
29761 libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
29762 Disabling JPEG support.
29763 " >&5
29764 echo "$as_me: WARNING:
29765 There is an installation error in jpeg support. You seem to have only one
29766 of either the headers _or_ the libraries installed. You may need to either
29767 provide correct --with-extra-... options, or the development package of
29768 libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
29769 Disabling JPEG support.
29770 " >&2;}
29771   else
29772     { echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
29773 echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
29774   fi
29775   jpeg_incdir=
29776   LIBJPEG=
29777 fi
29778
29779
29780
29781
29782
29783
29784
29785    { echo "$as_me:$LINENO: checking for perl" >&5
29786 echo $ECHO_N "checking for perl... $ECHO_C" >&6; }
29787    if test -n "$PERL"; then
29788         kde_cv_path="$PERL";
29789    else
29790         kde_cache=`echo perl | sed 'y%./+-%__p_%'`
29791
29792         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29793   echo $ECHO_N "(cached) $ECHO_C" >&6
29794 else
29795
29796         kde_cv_path="NONE"
29797         kde_save_IFS=$IFS
29798         IFS=':'
29799         dirs=""
29800         for dir in $PATH; do
29801           dirs="$dirs $dir"
29802         done
29803         if test -z ""; then       dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
29804         else      dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
29805         fi
29806         IFS=$kde_save_IFS
29807
29808         for dir in $dirs; do
29809           if test -x "$dir/perl"; then
29810             if test -n ""
29811             then
29812               evalstr="$dir/perl  2>&1 "
29813               if eval $evalstr; then
29814                 kde_cv_path="$dir/perl"
29815                 break
29816               fi
29817             else
29818                 kde_cv_path="$dir/perl"
29819                 break
29820             fi
29821           fi
29822         done
29823
29824         eval "kde_cv_path_$kde_cache=$kde_cv_path"
29825
29826
29827 fi
29828
29829
29830       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
29831
29832    fi
29833
29834    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
29835       { echo "$as_me:$LINENO: result: not found" >&5
29836 echo "${ECHO_T}not found" >&6; }
29837
29838                     { { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
29839 We need perl to generate some code." >&5
29840 echo "$as_me: error: No Perl found in your $PATH.
29841 We need perl to generate some code." >&2;}
29842    { (exit 1); exit 1; }; }
29843
29844    else
29845       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
29846 echo "${ECHO_T}$kde_cv_path" >&6; }
29847       PERL=$kde_cv_path
29848
29849    fi
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860 # Check whether --enable-mt was given.
29861 if test "${enable_mt+set}" = set; then
29862   enableval=$enable_mt; kde_use_qt_mt=$enableval
29863 else
29864
29865     if test $kde_qtver = 3; then
29866       kde_use_qt_mt=yes
29867     else
29868       kde_use_qt_mt=no
29869     fi
29870
29871
29872 fi
29873
29874
29875 USING_QT_MT=""
29876
29877
29878 KDE_MT_LDFLAGS=
29879 KDE_MT_LIBS=
29880 if test "x$kde_use_qt_mt" = "xyes"; then
29881
29882
29883
29884     if test -z "$LIBPTHREAD"; then
29885     if test -z "$USE_THREADS"; then
29886       kde_check_threading_default=no
29887     else
29888       kde_check_threading_default=yes
29889     fi
29890   else
29891     kde_check_threading_default=yes
29892   fi
29893   # Check whether --enable-threading was given.
29894 if test "${enable_threading+set}" = set; then
29895   enableval=$enable_threading; kde_use_threading=$enableval
29896 else
29897   kde_use_threading=$kde_check_threading_default
29898 fi
29899
29900   if test "x$kde_use_threading" = "xyes"; then
29901
29902 cat >>confdefs.h <<\_ACEOF
29903 #define HAVE_LIBPTHREAD 1
29904 _ACEOF
29905
29906   fi
29907
29908   if test "x$kde_use_threading" = "xyes"; then
29909     CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
29910     KDE_MT_LDFLAGS="$USE_THREADS"
29911     KDE_MT_LIBS="$LIBPTHREAD"
29912   else
29913     kde_use_qt_mt=no
29914   fi
29915 fi
29916
29917
29918
29919 kde_qt_was_given=yes
29920
29921 if test -z "$LIBQT_GLOB"; then
29922   if test "x$kde_use_qt_emb" = "xyes"; then
29923     LIBQT_GLOB="libqte.*"
29924   else
29925     LIBQT_GLOB="libqt.*"
29926   fi
29927 fi
29928
29929 if test -z "$LIBQT"; then
29930   if test "x$kde_use_qt_emb" = "xyes"; then
29931     qtlib="qte"
29932   else
29933     qtlib="qt"
29934   fi
29935
29936   kde_int_qt="-l$qtlib"
29937 else
29938   kde_int_qt="$LIBQT"
29939   kde_lib_qt_set=yes
29940 fi
29941
29942 if test -z "$LIBQPE"; then
29943   if test "x$kde_use_qt_emb" = "xyes"; then
29944     if test "x$kde_use_qt_emb_palm" = "xyes"; then
29945       LIB_QPE="-lqpe"
29946     else
29947       LIB_QPE=""
29948     fi
29949   else
29950     LIB_QPE=""
29951   fi
29952 fi
29953
29954
29955 if test "x$kde_use_qt_mt" = "xyes"; then
29956   if test -z "$LIBQT"; then
29957     LIBQT="-l$qtlib-mt"
29958     kde_int_qt="-l$qtlib-mt"
29959   else
29960     LIBQT="$qtlib-mt"
29961     kde_int_qt="$qtlib-mt"
29962   fi
29963   LIBQT_GLOB="lib$qtlib-mt.*"
29964   USING_QT_MT="using -mt"
29965 else
29966   LIBQT="-l$qtlib"
29967 fi
29968
29969 if test $kde_qtver != 1; then
29970
29971
29972
29973   LIBQT="$LIBQT $LIBPNG $LIBJPEG"
29974 fi
29975
29976 if test $kde_qtver = 3; then
29977
29978   LIBQT="$LIBQT $LIBDL"
29979 fi
29980
29981 { echo "$as_me:$LINENO: checking for Qt" >&5
29982 echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
29983
29984 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29985 LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
29986 fi
29987 ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
29988 qt_libraries=""
29989 qt_includes=""
29990
29991 # Check whether --with-qt-dir was given.
29992 if test "${with_qt_dir+set}" = set; then
29993   withval=$with_qt_dir;   ac_qt_includes="$withval"/include
29994        ac_qt_libraries="$withval"/lib${kdelibsuff}
29995        ac_qt_bindir="$withval"/bin
29996
29997 fi
29998
29999
30000
30001 # Check whether --with-qt-includes was given.
30002 if test "${with_qt_includes+set}" = set; then
30003   withval=$with_qt_includes;
30004        ac_qt_includes="$withval"
30005
30006 fi
30007
30008
30009 kde_qt_libs_given=no
30010
30011
30012 # Check whether --with-qt-libraries was given.
30013 if test "${with_qt_libraries+set}" = set; then
30014   withval=$with_qt_libraries;   ac_qt_libraries="$withval"
30015        kde_qt_libs_given=yes
30016
30017 fi
30018
30019
30020 if test "${ac_cv_have_qt+set}" = set; then
30021   echo $ECHO_N "(cached) $ECHO_C" >&6
30022 else
30023   #try to guess Qt locations
30024
30025 qt_incdirs=""
30026 for dir in $kde_qt_dirs; do
30027    qt_incdirs="$qt_incdirs $dir/include $dir"
30028 done
30029 qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
30030 if test ! "$ac_qt_includes" = "NO"; then
30031    qt_incdirs="$ac_qt_includes $qt_incdirs"
30032 fi
30033
30034 if test "$kde_qtver" != "1"; then
30035   kde_qt_header=qstyle.h
30036 else
30037   kde_qt_header=qglobal.h
30038 fi
30039
30040
30041 qt_incdir=NO
30042 for i in $qt_incdirs;
30043 do
30044   for j in $kde_qt_header;
30045   do
30046     echo "configure: 30046: $i/$j" >&5
30047     if test -r "$i/$j"; then
30048       echo "taking that" >&5
30049       qt_incdir=$i
30050       break 2
30051     fi
30052   done
30053 done
30054
30055 ac_qt_includes="$qt_incdir"
30056
30057 qt_libdirs=""
30058 for dir in $kde_qt_dirs; do
30059    qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
30060 done
30061 qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
30062 if test ! "$ac_qt_libraries" = "NO"; then
30063   qt_libdir=$ac_qt_libraries
30064 else
30065   qt_libdirs="$ac_qt_libraries $qt_libdirs"
30066   # if the Qt was given, the chance is too big that libqt.* doesn't exist
30067   qt_libdir=NONE
30068   for dir in $qt_libdirs; do
30069     try="ls -1 $dir/${LIBQT_GLOB}"
30070     if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
30071   done
30072 fi
30073 for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30074   if test -e "$a"; then
30075     LIBQT="$LIBQT ${kde_int_qt}_incremental"
30076     break
30077   fi
30078 done
30079
30080 ac_qt_libraries="$qt_libdir"
30081
30082
30083  ac_ext=cpp
30084 ac_cpp='$CXXCPP $CPPFLAGS'
30085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30088
30089 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30090
30091
30092
30093 ac_cxxflags_safe="$CXXFLAGS"
30094 ac_ldflags_safe="$LDFLAGS"
30095 ac_libs_safe="$LIBS"
30096
30097 CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
30098 LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
30099 LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
30100
30101
30102
30103 cat > conftest.$ac_ext <<EOF
30104 #include "confdefs.h"
30105 #include <qglobal.h>
30106 #include <qapplication.h>
30107 EOF
30108 if test "$kde_qtver" = "2"; then
30109 cat >> conftest.$ac_ext <<EOF
30110 #include <qevent.h>
30111 #include <qstring.h>
30112 #include <qstyle.h>
30113 EOF
30114
30115 if test $kde_qtsubver -gt 0; then
30116 cat >> conftest.$ac_ext <<EOF
30117 #if QT_VERSION < 210
30118 #error 1
30119 #endif
30120 EOF
30121 fi
30122 fi
30123
30124 if test "$kde_qtver" = "3"; then
30125 cat >> conftest.$ac_ext <<EOF
30126 #include <qcursor.h>
30127 #include <qstylefactory.h>
30128 #include <private/qucomextra_p.h>
30129 EOF
30130 fi
30131
30132 echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30133 cat >> conftest.$ac_ext <<EOF
30134 #error 1
30135 #endif
30136
30137 int main() {
30138 EOF
30139 if test "$kde_qtver" = "2"; then
30140 cat >> conftest.$ac_ext <<EOF
30141     QStringList *t = new QStringList();
30142     Q_UNUSED(t);
30143 EOF
30144 if test $kde_qtsubver -gt 0; then
30145 cat >> conftest.$ac_ext <<EOF
30146     QString s;
30147     s.setLatin1("Elvis is alive", 14);
30148 EOF
30149 fi
30150 fi
30151 if test "$kde_qtver" = "3"; then
30152 cat >> conftest.$ac_ext <<EOF
30153     (void)QStyleFactory::create(QString::null);
30154     QCursor c(Qt::WhatsThisCursor);
30155 EOF
30156 fi
30157 cat >> conftest.$ac_ext <<EOF
30158     return 0;
30159 }
30160 EOF
30161
30162
30163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30164   (eval $ac_link) 2>&5
30165   ac_status=$?
30166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30167   (exit $ac_status); } && test -s conftest; then
30168   rm -f conftest*
30169 else
30170   echo "configure: failed program was:" >&5
30171   cat conftest.$ac_ext >&5
30172   ac_qt_libraries="NO"
30173 fi
30174 rm -f conftest*
30175 CXXFLAGS="$ac_cxxflags_safe"
30176 LDFLAGS="$ac_ldflags_safe"
30177 LIBS="$ac_libs_safe"
30178
30179 ac_ext=c
30180 ac_cpp='$CPP $CPPFLAGS'
30181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30184
30185 if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
30186   ac_cv_have_qt="have_qt=no"
30187   ac_qt_notfound=""
30188   missing_qt_mt=""
30189   if test "$ac_qt_includes" = NO; then
30190     if test "$ac_qt_libraries" = NO; then
30191       ac_qt_notfound="(headers and libraries)";
30192     else
30193       ac_qt_notfound="(headers)";
30194     fi
30195   else
30196     if test "x$kde_use_qt_mt" = "xyes"; then
30197        missing_qt_mt="
30198 Make sure that you have compiled Qt with thread support!"
30199        ac_qt_notfound="(library $qtlib-mt)";
30200     else
30201        ac_qt_notfound="(library $qtlib)";
30202     fi
30203   fi
30204
30205   { { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30206 For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
30207 echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30208 For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
30209    { (exit 1); exit 1; }; }
30210 else
30211   have_qt="yes"
30212 fi
30213
30214 fi
30215
30216
30217 eval "$ac_cv_have_qt"
30218
30219 if test "$have_qt" != yes; then
30220   { echo "$as_me:$LINENO: result: $have_qt" >&5
30221 echo "${ECHO_T}$have_qt" >&6; };
30222 else
30223   ac_cv_have_qt="have_qt=yes \
30224     ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
30225   { echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
30226 echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
30227
30228   qt_libraries="$ac_qt_libraries"
30229   qt_includes="$ac_qt_includes"
30230 fi
30231
30232 if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
30233
30234
30235 { echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
30236 echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6; }
30237 if test "${kde_cv_qt_direct+set}" = set; then
30238   echo $ECHO_N "(cached) $ECHO_C" >&6
30239 else
30240
30241
30242  ac_ext=cpp
30243 ac_cpp='$CXXCPP $CPPFLAGS'
30244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30247
30248 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30249
30250
30251 ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
30252 ac_LIBRARY_PATH="$LIBRARY_PATH"
30253 ac_cxxflags_safe="$CXXFLAGS"
30254 ac_ldflags_safe="$LDFLAGS"
30255 ac_libs_safe="$LIBS"
30256
30257 CXXFLAGS="$CXXFLAGS -I$qt_includes"
30258 LDFLAGS="$LDFLAGS $X_LDFLAGS"
30259 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30260 LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
30261 else
30262 LIBS="$LIBQT $LIBSOCKET"
30263 fi
30264 LD_LIBRARY_PATH=
30265 export LD_LIBRARY_PATH
30266 LIBRARY_PATH=
30267 export LIBRARY_PATH
30268
30269
30270
30271 cat > conftest.$ac_ext <<EOF
30272 #include "confdefs.h"
30273 #include <qglobal.h>
30274 #include <qapplication.h>
30275 EOF
30276 if test "$kde_qtver" = "2"; then
30277 cat >> conftest.$ac_ext <<EOF
30278 #include <qevent.h>
30279 #include <qstring.h>
30280 #include <qstyle.h>
30281 EOF
30282
30283 if test $kde_qtsubver -gt 0; then
30284 cat >> conftest.$ac_ext <<EOF
30285 #if QT_VERSION < 210
30286 #error 1
30287 #endif
30288 EOF
30289 fi
30290 fi
30291
30292 if test "$kde_qtver" = "3"; then
30293 cat >> conftest.$ac_ext <<EOF
30294 #include <qcursor.h>
30295 #include <qstylefactory.h>
30296 #include <private/qucomextra_p.h>
30297 EOF
30298 fi
30299
30300 echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30301 cat >> conftest.$ac_ext <<EOF
30302 #error 1
30303 #endif
30304
30305 int main() {
30306 EOF
30307 if test "$kde_qtver" = "2"; then
30308 cat >> conftest.$ac_ext <<EOF
30309     QStringList *t = new QStringList();
30310     Q_UNUSED(t);
30311 EOF
30312 if test $kde_qtsubver -gt 0; then
30313 cat >> conftest.$ac_ext <<EOF
30314     QString s;
30315     s.setLatin1("Elvis is alive", 14);
30316 EOF
30317 fi
30318 fi
30319 if test "$kde_qtver" = "3"; then
30320 cat >> conftest.$ac_ext <<EOF
30321     (void)QStyleFactory::create(QString::null);
30322     QCursor c(Qt::WhatsThisCursor);
30323 EOF
30324 fi
30325 cat >> conftest.$ac_ext <<EOF
30326     return 0;
30327 }
30328 EOF
30329
30330
30331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30332   (eval $ac_link) 2>&5
30333   ac_status=$?
30334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335   (exit $ac_status); } && test -s conftest; then
30336   kde_cv_qt_direct="yes"
30337 else
30338   kde_cv_qt_direct="no"
30339   echo "configure: failed program was:" >&5
30340   cat conftest.$ac_ext >&5
30341 fi
30342
30343 rm -f conftest*
30344 CXXFLAGS="$ac_cxxflags_safe"
30345 LDFLAGS="$ac_ldflags_safe"
30346 LIBS="$ac_libs_safe"
30347
30348 LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
30349 export LD_LIBRARY_PATH
30350 LIBRARY_PATH="$ac_LIBRARY_PATH"
30351 export LIBRARY_PATH
30352 ac_ext=c
30353 ac_cpp='$CPP $CPPFLAGS'
30354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30357
30358
30359 fi
30360
30361
30362 if test "$kde_cv_qt_direct" = "yes"; then
30363   { echo "$as_me:$LINENO: result: yes" >&5
30364 echo "${ECHO_T}yes" >&6; }
30365   qt_libraries=
30366 else
30367   { echo "$as_me:$LINENO: result: no" >&5
30368 echo "${ECHO_T}no" >&6; }
30369
30370 fi
30371
30372 fi
30373
30374
30375
30376
30377 if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
30378  QT_INCLUDES=""
30379 else
30380  QT_INCLUDES="-I$qt_includes"
30381  all_includes="$QT_INCLUDES $all_includes"
30382 fi
30383
30384 if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
30385  QT_LDFLAGS=""
30386 else
30387  QT_LDFLAGS="-L$qt_libraries"
30388  all_libraries="$QT_LDFLAGS $all_libraries"
30389 fi
30390 test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
30391
30392
30393
30394
30395
30396    qt_bindirs=""
30397    for dir in $kde_qt_dirs; do
30398       qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
30399    done
30400    qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
30401    if test ! "$ac_qt_bindir" = "NO"; then
30402       qt_bindirs="$ac_qt_bindir $qt_bindirs"
30403    fi
30404
30405
30406    { echo "$as_me:$LINENO: checking for moc" >&5
30407 echo $ECHO_N "checking for moc... $ECHO_C" >&6; }
30408    if test -n "$MOC"; then
30409         kde_cv_path="$MOC";
30410    else
30411         kde_cache=`echo moc | sed 'y%./+-%__p_%'`
30412
30413         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30414   echo $ECHO_N "(cached) $ECHO_C" >&6
30415 else
30416
30417         kde_cv_path="NONE"
30418         kde_save_IFS=$IFS
30419         IFS=':'
30420         dirs=""
30421         for dir in $PATH; do
30422           dirs="$dirs $dir"
30423         done
30424         if test -z ""; then       dirs="$qt_bindirs $dirs"
30425         else      dirs="$dirs $qt_bindirs"
30426         fi
30427         IFS=$kde_save_IFS
30428
30429         for dir in $dirs; do
30430           if test -x "$dir/moc"; then
30431             if test -n ""
30432             then
30433               evalstr="$dir/moc  2>&1 "
30434               if eval $evalstr; then
30435                 kde_cv_path="$dir/moc"
30436                 break
30437               fi
30438             else
30439                 kde_cv_path="$dir/moc"
30440                 break
30441             fi
30442           fi
30443         done
30444
30445         eval "kde_cv_path_$kde_cache=$kde_cv_path"
30446
30447
30448 fi
30449
30450
30451       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30452
30453    fi
30454
30455    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30456       { echo "$as_me:$LINENO: result: not found" >&5
30457 echo "${ECHO_T}not found" >&6; }
30458
30459     { { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
30460 Please check whether you installed Qt correctly.
30461 You need to have a running moc binary.
30462 configure tried to run $ac_cv_path_moc and the test didn't
30463 succeed. If configure shouldn't have tried this one, set
30464 the environment variable MOC to the right one before running
30465 configure.
30466 " >&5
30467 echo "$as_me: error: No Qt meta object compiler (moc) found!
30468 Please check whether you installed Qt correctly.
30469 You need to have a running moc binary.
30470 configure tried to run $ac_cv_path_moc and the test didn't
30471 succeed. If configure shouldn't have tried this one, set
30472 the environment variable MOC to the right one before running
30473 configure.
30474 " >&2;}
30475    { (exit 1); exit 1; }; }
30476
30477    else
30478       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30479 echo "${ECHO_T}$kde_cv_path" >&6; }
30480       MOC=$kde_cv_path
30481
30482    fi
30483
30484    if test -z "$UIC_NOT_NEEDED"; then
30485
30486    { echo "$as_me:$LINENO: checking for uic" >&5
30487 echo $ECHO_N "checking for uic... $ECHO_C" >&6; }
30488    if test -n "$UIC_PATH"; then
30489         kde_cv_path="$UIC_PATH";
30490    else
30491         kde_cache=`echo uic | sed 'y%./+-%__p_%'`
30492
30493         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30494   echo $ECHO_N "(cached) $ECHO_C" >&6
30495 else
30496
30497         kde_cv_path="NONE"
30498         kde_save_IFS=$IFS
30499         IFS=':'
30500         dirs=""
30501         for dir in $PATH; do
30502           dirs="$dirs $dir"
30503         done
30504         if test -z ""; then       dirs="$qt_bindirs $dirs"
30505         else      dirs="$dirs $qt_bindirs"
30506         fi
30507         IFS=$kde_save_IFS
30508
30509         for dir in $dirs; do
30510           if test -x "$dir/uic"; then
30511             if test -n ""
30512             then
30513               evalstr="$dir/uic  2>&1 "
30514               if eval $evalstr; then
30515                 kde_cv_path="$dir/uic"
30516                 break
30517               fi
30518             else
30519                 kde_cv_path="$dir/uic"
30520                 break
30521             fi
30522           fi
30523         done
30524
30525         eval "kde_cv_path_$kde_cache=$kde_cv_path"
30526
30527
30528 fi
30529
30530
30531       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30532
30533    fi
30534
30535    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30536       { echo "$as_me:$LINENO: result: not found" >&5
30537 echo "${ECHO_T}not found" >&6; }
30538       UIC_PATH=""
30539    else
30540       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30541 echo "${ECHO_T}$kde_cv_path" >&6; }
30542       UIC_PATH=$kde_cv_path
30543
30544    fi
30545
30546      if test -z "$UIC_PATH" ; then
30547
30548     { echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
30549 Please check whether you installed Qt correctly.
30550 You need to have a running uic binary.
30551 configure tried to run $ac_cv_path_uic and the test didn't
30552 succeed. If configure shouldn't have tried this one, set
30553 the environment variable UIC to the right one before running
30554 configure.
30555 " >&5
30556 echo "$as_me: WARNING: No Qt ui compiler (uic) found!
30557 Please check whether you installed Qt correctly.
30558 You need to have a running uic binary.
30559 configure tried to run $ac_cv_path_uic and the test didn't
30560 succeed. If configure shouldn't have tried this one, set
30561 the environment variable UIC to the right one before running
30562 configure.
30563 " >&2;}
30564
30565        exit 1
30566      else
30567        UIC=$UIC_PATH
30568
30569        if test $kde_qtver = 3; then
30570
30571     { echo "$as_me:$LINENO: checking whether uic supports -L " >&5
30572 echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6; }
30573     kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
30574     if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30575   echo $ECHO_N "(cached) $ECHO_C" >&6
30576 else
30577
30578         cat >conftest.ui <<EOT
30579         <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30580 EOT
30581         ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
30582         if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30583   (eval $ac_uic_testrun) 2>&5
30584   ac_status=$?
30585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586   (exit $ac_status); }; then
30587             eval "kde_cv_prog_uic_$kde_cache=yes"
30588         else
30589             eval "kde_cv_prog_uic_$kde_cache=no"
30590         fi
30591         rm -f conftest*
30592
30593 fi
30594
30595
30596     if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30597         { echo "$as_me:$LINENO: result: yes" >&5
30598 echo "${ECHO_T}yes" >&6; }
30599         :
30600         ac_uic_supports_libpath=yes
30601     else
30602         { echo "$as_me:$LINENO: result: no" >&5
30603 echo "${ECHO_T}no" >&6; }
30604         :
30605         ac_uic_supports_libpath=no
30606     fi
30607
30608
30609     { echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
30610 echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6; }
30611     kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
30612     if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30613   echo $ECHO_N "(cached) $ECHO_C" >&6
30614 else
30615
30616         cat >conftest.ui <<EOT
30617         <!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30618 EOT
30619         ac_uic_testrun="$UIC_PATH -nounload  conftest.ui >/dev/null"
30620         if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30621   (eval $ac_uic_testrun) 2>&5
30622   ac_status=$?
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); }; then
30625             eval "kde_cv_prog_uic_$kde_cache=yes"
30626         else
30627             eval "kde_cv_prog_uic_$kde_cache=no"
30628         fi
30629         rm -f conftest*
30630
30631 fi
30632
30633
30634     if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30635         { echo "$as_me:$LINENO: result: yes" >&5
30636 echo "${ECHO_T}yes" >&6; }
30637         :
30638         ac_uic_supports_nounload=yes
30639     else
30640         { echo "$as_me:$LINENO: result: no" >&5
30641 echo "${ECHO_T}no" >&6; }
30642         :
30643         ac_uic_supports_nounload=no
30644     fi
30645
30646
30647          if test x$ac_uic_supports_libpath = xyes; then
30648              UIC="$UIC -L \$(kde_widgetdir)"
30649          fi
30650          if test x$ac_uic_supports_nounload = xyes; then
30651              UIC="$UIC -nounload"
30652          fi
30653        fi
30654      fi
30655    else
30656      UIC="echo uic not available: "
30657    fi
30658
30659
30660
30661
30662    UIC_TR="i18n"
30663    if test $kde_qtver = 3; then
30664      UIC_TR="tr2i18n"
30665    fi
30666
30667
30668
30669
30670
30671 if test -n "$LIBJPEG"; then
30672 { echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
30673 echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6; }
30674 if test "${kde_cv_qt_jpeg+set}" = set; then
30675   echo $ECHO_N "(cached) $ECHO_C" >&6
30676 else
30677
30678
30679  ac_ext=cpp
30680 ac_cpp='$CXXCPP $CPPFLAGS'
30681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30684
30685 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30686
30687
30688 ac_save_LIBS="$LIBS"
30689 LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
30690 LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
30691 ac_save_CXXFLAGS="$CXXFLAGS"
30692 CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
30693 cat >conftest.$ac_ext <<_ACEOF
30694 /* confdefs.h.  */
30695 _ACEOF
30696 cat confdefs.h >>conftest.$ac_ext
30697 cat >>conftest.$ac_ext <<_ACEOF
30698 /* end confdefs.h.  */
30699 #include <qapplication.h>
30700 int
30701 main ()
30702 {
30703
30704             int argc;
30705             char** argv;
30706             QApplication app(argc, argv);
30707   ;
30708   return 0;
30709 }
30710 _ACEOF
30711 rm -f conftest.$ac_objext conftest$ac_exeext
30712 if { (ac_try="$ac_link"
30713 case "(($ac_try" in
30714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30715   *) ac_try_echo=$ac_try;;
30716 esac
30717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30718   (eval "$ac_link") 2>conftest.er1
30719   ac_status=$?
30720   grep -v '^ *+' conftest.er1 >conftest.err
30721   rm -f conftest.er1
30722   cat conftest.err >&5
30723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724   (exit $ac_status); } && {
30725          test -z "$ac_cxx_werror_flag" ||
30726          test ! -s conftest.err
30727        } && test -s conftest$ac_exeext &&
30728        $as_test_x conftest$ac_exeext; then
30729   eval "kde_cv_qt_jpeg=no"
30730 else
30731   echo "$as_me: failed program was:" >&5
30732 sed 's/^/| /' conftest.$ac_ext >&5
30733
30734         eval "kde_cv_qt_jpeg=yes"
30735 fi
30736
30737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30738       conftest$ac_exeext conftest.$ac_ext
30739 LIBS="$ac_save_LIBS"
30740 CXXFLAGS="$ac_save_CXXFLAGS"
30741 ac_ext=c
30742 ac_cpp='$CPP $CPPFLAGS'
30743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30746
30747 fi
30748
30749 fi
30750
30751
30752 if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
30753   { echo "$as_me:$LINENO: result: yes" >&5
30754 echo "${ECHO_T}yes" >&6; }
30755   LIBJPEG_QT='$(LIBJPEG)'
30756 else
30757   { echo "$as_me:$LINENO: result: no" >&5
30758 echo "${ECHO_T}no" >&6; }
30759   LIBJPEG_QT=
30760 fi
30761
30762
30763
30764 if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30765 LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
30766 else
30767 LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
30768 fi
30769 test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
30770 for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30771   if test -e "$a"; then
30772      LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
30773      break
30774   fi
30775 done
30776
30777
30778
30779
30780
30781
30782
30783
30784
30785
30786
30787
30788
30789 { echo "$as_me:$LINENO: checking for rpath" >&5
30790 echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
30791 # Check whether --enable-rpath was given.
30792 if test "${enable_rpath+set}" = set; then
30793   enableval=$enable_rpath; USE_RPATH=$enableval
30794 else
30795   USE_RPATH=yes
30796 fi
30797
30798
30799 if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
30800
30801   KDE_RPATH="-R \$(libdir)"
30802
30803   if test "$kde_libraries" != "$libdir"; then
30804       KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
30805   fi
30806
30807   if test -n "$qt_libraries"; then
30808     KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
30809   fi
30810     if test -n "$X_LDFLAGS"; then
30811     X_RPATH="-R \$(x_libraries)"
30812     KDE_RPATH="$KDE_RPATH $X_RPATH"
30813   fi
30814   if test -n "$KDE_EXTRA_RPATH"; then
30815     KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
30816   fi
30817 fi
30818
30819
30820
30821 { echo "$as_me:$LINENO: result: $USE_RPATH" >&5
30822 echo "${ECHO_T}$USE_RPATH" >&6; }
30823
30824 { echo "$as_me:$LINENO: checking for KDE" >&5
30825 echo $ECHO_N "checking for KDE... $ECHO_C" >&6; }
30826
30827 if test "${prefix}" != NONE; then
30828   kde_includes=${includedir}
30829
30830 savex=$exec_prefix
30831 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
30832 tmp=$includedir
30833 while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
30834 exec_prefix=$savex
30835
30836
30837   kde_libraries=${libdir}
30838
30839 savex=$exec_prefix
30840 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
30841 tmp=$libdir
30842 while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
30843 exec_prefix=$savex
30844
30845
30846 else
30847   ac_kde_includes=
30848   ac_kde_libraries=
30849   kde_libraries=""
30850   kde_includes=""
30851 fi
30852
30853 if test "${ac_cv_have_kde+set}" = set; then
30854   echo $ECHO_N "(cached) $ECHO_C" >&6
30855 else
30856   #try to guess kde locations
30857
30858 if test "$kde_qtver" = 1; then
30859   kde_check_header="ksock.h"
30860   kde_check_lib="libkdecore.la"
30861 else
30862   kde_check_header="ksharedptr.h"
30863   kde_check_lib="libkio.la"
30864 fi
30865
30866 if test -z ""; then
30867
30868 kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
30869 test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
30870 kde_incdirs="$ac_kde_includes $kde_incdirs"
30871
30872 kde_incdir=NO
30873 for i in $kde_incdirs;
30874 do
30875   for j in $kde_check_header;
30876   do
30877     echo "configure: 30877: $i/$j" >&5
30878     if test -r "$i/$j"; then
30879       echo "taking that" >&5
30880       kde_incdir=$i
30881       break 2
30882     fi
30883   done
30884 done
30885
30886 ac_kde_includes="$kde_incdir"
30887
30888 if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
30889   { { echo "$as_me:$LINENO: error:
30890 in the prefix, you've chosen, are no KDE headers installed. This will fail.
30891 So, check this please and use another prefix!" >&5
30892 echo "$as_me: error:
30893 in the prefix, you've chosen, are no KDE headers installed. This will fail.
30894 So, check this please and use another prefix!" >&2;}
30895    { (exit 1); exit 1; }; }
30896 fi
30897
30898 kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
30899 test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
30900 kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
30901
30902 kde_libdir=NO
30903 for i in $kde_libdirs;
30904 do
30905   for j in $kde_check_lib;
30906   do
30907     echo "configure: 30907: $i/$j" >&5
30908     if test -r "$i/$j"; then
30909       echo "taking that" >&5
30910       kde_libdir=$i
30911       break 2
30912     fi
30913   done
30914 done
30915
30916 ac_kde_libraries="$kde_libdir"
30917
30918 kde_widgetdir=NO
30919
30920 kde_widgetdir=NO
30921 for i in $kde_libdirs;
30922 do
30923   for j in "kde3/plugins/designer/kdewidgets.la";
30924   do
30925     echo "configure: 30925: $i/$j" >&5
30926     if test -r "$i/$j"; then
30927       echo "taking that" >&5
30928       kde_widgetdir=$i
30929       break 2
30930     fi
30931   done
30932 done
30933
30934
30935 if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
30936 { { echo "$as_me:$LINENO: error:
30937 in the prefix, you've chosen, are no KDE libraries installed. This will fail.
30938 So, check this please and use another prefix!" >&5
30939 echo "$as_me: error:
30940 in the prefix, you've chosen, are no KDE libraries installed. This will fail.
30941 So, check this please and use another prefix!" >&2;}
30942    { (exit 1); exit 1; }; }
30943 fi
30944
30945 if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
30946 { { echo "$as_me:$LINENO: error:
30947 I can't find the designer plugins. These are required and should have been installed
30948 by kdelibs" >&5
30949 echo "$as_me: error:
30950 I can't find the designer plugins. These are required and should have been installed
30951 by kdelibs" >&2;}
30952    { (exit 1); exit 1; }; }
30953 fi
30954
30955 if test -n "$kde_widgetdir"; then
30956     kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
30957 fi
30958
30959
30960 if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
30961   ac_cv_have_kde="have_kde=no"
30962 else
30963   ac_cv_have_kde="have_kde=yes \
30964     ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
30965 fi
30966
30967 else
30968   ac_cv_have_kde="have_kde=no"
30969
30970 fi
30971
30972 fi
30973
30974 eval "$ac_cv_have_kde"
30975
30976 if test "$have_kde" != "yes"; then
30977  if test "${prefix}" = NONE; then
30978   ac_kde_prefix="$ac_default_prefix"
30979  else
30980   ac_kde_prefix="$prefix"
30981  fi
30982  if test "$exec_prefix" = NONE; then
30983   ac_kde_exec_prefix="$ac_kde_prefix"
30984   { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
30985 echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6; }
30986  else
30987   ac_kde_exec_prefix="$exec_prefix"
30988   { echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
30989 echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
30990  fi
30991
30992  kde_libraries="${libdir}"
30993  kde_includes="${includedir}"
30994
30995 else
30996   ac_cv_have_kde="have_kde=yes \
30997     ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
30998   { echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
30999 echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
31000
31001   kde_libraries="$ac_kde_libraries"
31002   kde_includes="$ac_kde_includes"
31003 fi
31004
31005
31006
31007 if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes"  || test "$kde_includes" = "/usr/include"; then
31008  KDE_INCLUDES=""
31009 else
31010  KDE_INCLUDES="-I$kde_includes"
31011  all_includes="$KDE_INCLUDES $all_includes"
31012 fi
31013
31014 KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
31015
31016 KDE_LDFLAGS="-L$kde_libraries"
31017 if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
31018  all_libraries="$KDE_LDFLAGS $all_libraries"
31019 fi
31020
31021
31022
31023
31024
31025
31026 all_libraries="$all_libraries $USER_LDFLAGS"
31027 all_includes="$all_includes $USER_INCLUDES"
31028
31029
31030
31031 if test -z ""; then
31032
31033
31034
31035 if test x$ac_uic_supports_libpath = xyes; then
31036
31037 { echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
31038 echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6; }
31039 if test "${kde_cv_uic_plugins+set}" = set; then
31040   echo $ECHO_N "(cached) $ECHO_C" >&6
31041 else
31042
31043 cat > actest.ui << EOF
31044 <!DOCTYPE UI><UI version="3.0" stdsetdef="1">
31045 <class>NewConnectionDialog</class>
31046 <widget class="QDialog">
31047    <widget class="KLineEdit">
31048         <property name="name">
31049            <cstring>testInput</cstring>
31050         </property>
31051    </widget>
31052 </widget>
31053 </UI>
31054 EOF
31055
31056
31057
31058 kde_cv_uic_plugins=no
31059 kde_line="$UIC_PATH -L $kde_widgetdir"
31060 if test x$ac_uic_supports_nounload = xyes; then
31061    kde_line="$kde_line -nounload"
31062 fi
31063 kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
31064 if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
31065   (eval $kde_line) 2>&5
31066   ac_status=$?
31067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068   (exit $ac_status); }; then
31069         # if you're trying to debug this check and think it's incorrect,
31070         # better check your installation. The check _is_ correct - your
31071         # installation is not.
31072         if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
31073                 kde_cv_uic_plugins=yes
31074         fi
31075 fi
31076 rm -f actest.ui actest.cpp
31077
31078 fi
31079
31080
31081 { echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
31082 echo "${ECHO_T}$kde_cv_uic_plugins" >&6; }
31083 if test "$kde_cv_uic_plugins" != yes; then
31084         { { echo "$as_me:$LINENO: error: you need to install kdelibs first." >&5
31085 echo "$as_me: error: you need to install kdelibs first." >&2;}
31086    { (exit 1); exit 1; }; }
31087 fi
31088 fi
31089
31090 fi
31091
31092 ac_kde_libraries="$kde_libdir"
31093
31094
31095
31096
31097
31098   # Check whether --enable-path-check was given.
31099 if test "${enable_path_check+set}" = set; then
31100   enableval=$enable_path_check;
31101   if test "$enableval" = "no";
31102     then ac_use_path_checking="default"
31103     else ac_use_path_checking=""
31104   fi
31105
31106 else
31107
31108   if test "$kde_qtver" = 1;
31109     then ac_use_path_checking=""
31110     else ac_use_path_checking="default"
31111   fi
31112
31113
31114 fi
31115
31116
31117
31118
31119
31120 { echo "$as_me:$LINENO: checking for KDE paths" >&5
31121 echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6; }
31122 kde_result=""
31123 kde_cached_paths=yes
31124 if test "${kde_cv_all_paths+set}" = set; then
31125   echo $ECHO_N "(cached) $ECHO_C" >&6
31126 else
31127
31128
31129 if test "$ac_use_path_checking" = "default"; then
31130
31131   if test -z "$kde_htmldir"; then
31132     kde_htmldir='\${datadir}/doc/HTML'
31133   fi
31134   if test -z "$kde_appsdir"; then
31135     kde_appsdir='\${datadir}/applnk'
31136   fi
31137   if test -z "$kde_icondir"; then
31138     kde_icondir='\${datadir}/icons'
31139   fi
31140   if test -z "$kde_sounddir"; then
31141     kde_sounddir='\${datadir}/sounds'
31142   fi
31143   if test -z "$kde_datadir"; then
31144     kde_datadir='\${datadir}/apps'
31145   fi
31146   if test -z "$kde_locale"; then
31147     kde_locale='\${datadir}/locale'
31148   fi
31149   if test -z "$kde_cgidir"; then
31150     kde_cgidir='\${exec_prefix}/cgi-bin'
31151   fi
31152   if test -z "$kde_confdir"; then
31153     kde_confdir='\${datadir}/config'
31154   fi
31155   if test -z "$kde_kcfgdir"; then
31156     kde_kcfgdir='\${datadir}/config.kcfg'
31157   fi
31158   if test -z "$kde_mimedir"; then
31159     kde_mimedir='\${datadir}/mimelnk'
31160   fi
31161   if test -z "$kde_toolbardir"; then
31162     kde_toolbardir='\${datadir}/toolbar'
31163   fi
31164   if test -z "$kde_wallpaperdir"; then
31165     kde_wallpaperdir='\${datadir}/wallpapers'
31166   fi
31167   if test -z "$kde_templatesdir"; then
31168     kde_templatesdir='\${datadir}/templates'
31169   fi
31170   if test -z "$kde_bindir"; then
31171     kde_bindir='\${exec_prefix}/bin'
31172   fi
31173   if test -z "$kde_servicesdir"; then
31174     kde_servicesdir='\${datadir}/services'
31175   fi
31176   if test -z "$kde_servicetypesdir"; then
31177     kde_servicetypesdir='\${datadir}/servicetypes'
31178   fi
31179   if test -z "$kde_moduledir"; then
31180     if test "$kde_qtver" = "2"; then
31181       kde_moduledir='\${libdir}/kde2'
31182     else
31183       kde_moduledir='\${libdir}/kde3'
31184     fi
31185   fi
31186   if test -z "$kde_styledir"; then
31187     kde_styledir='\${libdir}/kde3/plugins/styles'
31188   fi
31189   if test -z "$kde_widgetdir"; then
31190     kde_widgetdir='\${libdir}/kde3/plugins/designer'
31191   fi
31192   if test -z "$xdg_appsdir"; then
31193     xdg_appsdir='\${datadir}/applications/kde'
31194   fi
31195   if test -z "$xdg_menudir"; then
31196     xdg_menudir='\${sysconfdir}/xdg/menus'
31197   fi
31198   if test -z "$xdg_directorydir"; then
31199     xdg_directorydir='\${datadir}/desktop-directories'
31200   fi
31201
31202
31203   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31204         kde_htmldir=\"$kde_htmldir\" \
31205         kde_appsdir=\"$kde_appsdir\" \
31206         kde_icondir=\"$kde_icondir\" \
31207         kde_sounddir=\"$kde_sounddir\" \
31208         kde_datadir=\"$kde_datadir\" \
31209         kde_locale=\"$kde_locale\" \
31210         kde_cgidir=\"$kde_cgidir\" \
31211         kde_confdir=\"$kde_confdir\" \
31212         kde_kcfgdir=\"$kde_kcfgdir\" \
31213         kde_mimedir=\"$kde_mimedir\" \
31214         kde_toolbardir=\"$kde_toolbardir\" \
31215         kde_wallpaperdir=\"$kde_wallpaperdir\" \
31216         kde_templatesdir=\"$kde_templatesdir\" \
31217         kde_bindir=\"$kde_bindir\" \
31218         kde_servicesdir=\"$kde_servicesdir\" \
31219         kde_servicetypesdir=\"$kde_servicetypesdir\" \
31220         kde_moduledir=\"$kde_moduledir\" \
31221         kde_styledir=\"$kde_styledir\" \
31222         kde_widgetdir=\"$kde_widgetdir\" \
31223         xdg_appsdir=\"$xdg_appsdir\" \
31224         xdg_menudir=\"$xdg_menudir\" \
31225         xdg_directorydir=\"$xdg_directorydir\" \
31226         kde_result=defaults"
31227
31228
31229 else
31230
31231   if test $kde_qtver = 1; then
31232      { echo "$as_me:$LINENO: result: compiling" >&5
31233 echo "${ECHO_T}compiling" >&6; }
31234
31235
31236     { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31237 echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31238
31239      ac_ext=cpp
31240 ac_cpp='$CXXCPP $CPPFLAGS'
31241 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31242 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31243 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31244
31245 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31246
31247
31248 cat > conftest.$ac_ext <<EOF
31249 #ifdef STDC_HEADERS
31250 # include <stdlib.h>
31251 #endif
31252 #include <stdio.h>
31253 #include "confdefs.h"
31254 #include <kapp.h>
31255
31256 int main() {
31257     printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31258     printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31259     printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31260     printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31261     printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31262     printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31263     printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31264     printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31265     printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31266     printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31267     printf("kde_wallpaperdir=\\"%s\\"\n",
31268         KApplication::kde_wallpaperdir().data());
31269     printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31270     printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31271     printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31272     printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31273     printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31274     printf("kde_styledir=\\"/tmp/dummy\\"\n");
31275     printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31276     printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31277     printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31278     printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31279     printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31280     return 0;
31281     }
31282 EOF
31283
31284  ac_save_CPPFLAGS=$CPPFLAGS
31285  CPPFLAGS="$all_includes $CPPFLAGS"
31286  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31287   (eval $ac_compile) 2>&5
31288   ac_status=$?
31289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290   (exit $ac_status); }; then
31291    { echo "$as_me:$LINENO: result: yes" >&5
31292 echo "${ECHO_T}yes" >&6; }
31293  else
31294    { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31295 Check, if you installed the KDE header files correctly.
31296 For more details about this problem, look at the end of config.log." >&5
31297 echo "$as_me: error: your system is not able to compile a small KDE application!
31298 Check, if you installed the KDE header files correctly.
31299 For more details about this problem, look at the end of config.log." >&2;}
31300    { (exit 1); exit 1; }; }
31301   fi
31302   CPPFLAGS=$ac_save_CPPFLAGS
31303
31304   ac_ext=c
31305 ac_cpp='$CPP $CPPFLAGS'
31306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31309
31310
31311
31312   KDE_TEST_RPATH=
31313
31314   if test -n "$USE_RPATH"; then
31315
31316      if test -n "$kde_libraries"; then
31317        KDE_TEST_RPATH="-R $kde_libraries"
31318      fi
31319
31320      if test -n "$qt_libraries"; then
31321        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31322      fi
31323
31324      if test -n "$x_libraries"; then
31325        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31326      fi
31327
31328      KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31329   fi
31330
31331 { echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31332 echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31333 ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31334
31335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31336   (eval $ac_link) 2>&5
31337   ac_status=$?
31338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339   (exit $ac_status); } && test -s conftest; then
31340   { echo "$as_me:$LINENO: result: yes" >&5
31341 echo "${ECHO_T}yes" >&6; }
31342 else
31343   { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31344 Check, if your compiler is installed correctly and if you have used the
31345 same compiler to compile Qt and kdelibs as you did use now.
31346 For more details about this problem, look at the end of config.log." >&5
31347 echo "$as_me: error: your system fails at linking a small KDE application!
31348 Check, if your compiler is installed correctly and if you have used the
31349 same compiler to compile Qt and kdelibs as you did use now.
31350 For more details about this problem, look at the end of config.log." >&2;}
31351    { (exit 1); exit 1; }; }
31352 fi
31353
31354 if eval `KDEDIR= ./conftest 2>&5`; then
31355   kde_result=done
31356 else
31357   kde_result=problems
31358 fi
31359
31360 KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31361 kde_have_all_paths=yes
31362
31363
31364   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31365         kde_htmldir=\"$kde_htmldir\" \
31366         kde_appsdir=\"$kde_appsdir\" \
31367         kde_icondir=\"$kde_icondir\" \
31368         kde_sounddir=\"$kde_sounddir\" \
31369         kde_datadir=\"$kde_datadir\" \
31370         kde_locale=\"$kde_locale\" \
31371         kde_cgidir=\"$kde_cgidir\" \
31372         kde_confdir=\"$kde_confdir\" \
31373         kde_kcfgdir=\"$kde_kcfgdir\" \
31374         kde_mimedir=\"$kde_mimedir\" \
31375         kde_toolbardir=\"$kde_toolbardir\" \
31376         kde_wallpaperdir=\"$kde_wallpaperdir\" \
31377         kde_templatesdir=\"$kde_templatesdir\" \
31378         kde_bindir=\"$kde_bindir\" \
31379         kde_servicesdir=\"$kde_servicesdir\" \
31380         kde_servicetypesdir=\"$kde_servicetypesdir\" \
31381         kde_moduledir=\"$kde_moduledir\" \
31382         kde_styledir=\"$kde_styledir\" \
31383         kde_widgetdir=\"$kde_widgetdir\" \
31384         xdg_appsdir=\"$xdg_appsdir\" \
31385         xdg_menudir=\"$xdg_menudir\" \
31386         xdg_directorydir=\"$xdg_directorydir\" \
31387         kde_result=$kde_result"
31388
31389
31390
31391   else
31392      { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31393 echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31394    { (exit 1); exit 1; }; }
31395   fi
31396
31397 fi
31398
31399   kde_cached_paths=no
31400
31401 fi
31402
31403 eval "$kde_cv_all_paths"
31404  if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31405    test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31406    test -z "$kde_datadir" || test -z "$kde_locale"  ||
31407    test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
31408    test -z "$kde_kcfgdir" ||
31409    test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31410    test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31411    test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31412    test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31413    test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31414    test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31415    test "x$kde_have_all_paths" != "xyes"; then
31416      kde_have_all_paths=no
31417   fi
31418
31419 if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
31420   # wrong values were cached, may be, we can set better ones
31421   kde_result=
31422   kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
31423   kde_datadir= kde_locale=  kde_cgidir=  kde_confdir= kde_kcfgdir=
31424   kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
31425   kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
31426   kde_have_all_paths=
31427   kde_styledir=
31428   kde_widgetdir=
31429   xdg_appsdir = xdg_menudir= xdg_directorydir=
31430
31431 if test "$ac_use_path_checking" = "default"; then
31432
31433   if test -z "$kde_htmldir"; then
31434     kde_htmldir='\${datadir}/doc/HTML'
31435   fi
31436   if test -z "$kde_appsdir"; then
31437     kde_appsdir='\${datadir}/applnk'
31438   fi
31439   if test -z "$kde_icondir"; then
31440     kde_icondir='\${datadir}/icons'
31441   fi
31442   if test -z "$kde_sounddir"; then
31443     kde_sounddir='\${datadir}/sounds'
31444   fi
31445   if test -z "$kde_datadir"; then
31446     kde_datadir='\${datadir}/apps'
31447   fi
31448   if test -z "$kde_locale"; then
31449     kde_locale='\${datadir}/locale'
31450   fi
31451   if test -z "$kde_cgidir"; then
31452     kde_cgidir='\${exec_prefix}/cgi-bin'
31453   fi
31454   if test -z "$kde_confdir"; then
31455     kde_confdir='\${datadir}/config'
31456   fi
31457   if test -z "$kde_kcfgdir"; then
31458     kde_kcfgdir='\${datadir}/config.kcfg'
31459   fi
31460   if test -z "$kde_mimedir"; then
31461     kde_mimedir='\${datadir}/mimelnk'
31462   fi
31463   if test -z "$kde_toolbardir"; then
31464     kde_toolbardir='\${datadir}/toolbar'
31465   fi
31466   if test -z "$kde_wallpaperdir"; then
31467     kde_wallpaperdir='\${datadir}/wallpapers'
31468   fi
31469   if test -z "$kde_templatesdir"; then
31470     kde_templatesdir='\${datadir}/templates'
31471   fi
31472   if test -z "$kde_bindir"; then
31473     kde_bindir='\${exec_prefix}/bin'
31474   fi
31475   if test -z "$kde_servicesdir"; then
31476     kde_servicesdir='\${datadir}/services'
31477   fi
31478   if test -z "$kde_servicetypesdir"; then
31479     kde_servicetypesdir='\${datadir}/servicetypes'
31480   fi
31481   if test -z "$kde_moduledir"; then
31482     if test "$kde_qtver" = "2"; then
31483       kde_moduledir='\${libdir}/kde2'
31484     else
31485       kde_moduledir='\${libdir}/kde3'
31486     fi
31487   fi
31488   if test -z "$kde_styledir"; then
31489     kde_styledir='\${libdir}/kde3/plugins/styles'
31490   fi
31491   if test -z "$kde_widgetdir"; then
31492     kde_widgetdir='\${libdir}/kde3/plugins/designer'
31493   fi
31494   if test -z "$xdg_appsdir"; then
31495     xdg_appsdir='\${datadir}/applications/kde'
31496   fi
31497   if test -z "$xdg_menudir"; then
31498     xdg_menudir='\${sysconfdir}/xdg/menus'
31499   fi
31500   if test -z "$xdg_directorydir"; then
31501     xdg_directorydir='\${datadir}/desktop-directories'
31502   fi
31503
31504
31505   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31506         kde_htmldir=\"$kde_htmldir\" \
31507         kde_appsdir=\"$kde_appsdir\" \
31508         kde_icondir=\"$kde_icondir\" \
31509         kde_sounddir=\"$kde_sounddir\" \
31510         kde_datadir=\"$kde_datadir\" \
31511         kde_locale=\"$kde_locale\" \
31512         kde_cgidir=\"$kde_cgidir\" \
31513         kde_confdir=\"$kde_confdir\" \
31514         kde_kcfgdir=\"$kde_kcfgdir\" \
31515         kde_mimedir=\"$kde_mimedir\" \
31516         kde_toolbardir=\"$kde_toolbardir\" \
31517         kde_wallpaperdir=\"$kde_wallpaperdir\" \
31518         kde_templatesdir=\"$kde_templatesdir\" \
31519         kde_bindir=\"$kde_bindir\" \
31520         kde_servicesdir=\"$kde_servicesdir\" \
31521         kde_servicetypesdir=\"$kde_servicetypesdir\" \
31522         kde_moduledir=\"$kde_moduledir\" \
31523         kde_styledir=\"$kde_styledir\" \
31524         kde_widgetdir=\"$kde_widgetdir\" \
31525         xdg_appsdir=\"$xdg_appsdir\" \
31526         xdg_menudir=\"$xdg_menudir\" \
31527         xdg_directorydir=\"$xdg_directorydir\" \
31528         kde_result=defaults"
31529
31530
31531 else
31532
31533   if test $kde_qtver = 1; then
31534      { echo "$as_me:$LINENO: result: compiling" >&5
31535 echo "${ECHO_T}compiling" >&6; }
31536
31537
31538     { echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31539 echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31540
31541      ac_ext=cpp
31542 ac_cpp='$CXXCPP $CPPFLAGS'
31543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31546
31547 ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31548
31549
31550 cat > conftest.$ac_ext <<EOF
31551 #ifdef STDC_HEADERS
31552 # include <stdlib.h>
31553 #endif
31554 #include <stdio.h>
31555 #include "confdefs.h"
31556 #include <kapp.h>
31557
31558 int main() {
31559     printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31560     printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31561     printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31562     printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31563     printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31564     printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31565     printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31566     printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31567     printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31568     printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31569     printf("kde_wallpaperdir=\\"%s\\"\n",
31570         KApplication::kde_wallpaperdir().data());
31571     printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31572     printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31573     printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31574     printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31575     printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31576     printf("kde_styledir=\\"/tmp/dummy\\"\n");
31577     printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31578     printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31579     printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31580     printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31581     printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31582     return 0;
31583     }
31584 EOF
31585
31586  ac_save_CPPFLAGS=$CPPFLAGS
31587  CPPFLAGS="$all_includes $CPPFLAGS"
31588  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31589   (eval $ac_compile) 2>&5
31590   ac_status=$?
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); }; then
31593    { echo "$as_me:$LINENO: result: yes" >&5
31594 echo "${ECHO_T}yes" >&6; }
31595  else
31596    { { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31597 Check, if you installed the KDE header files correctly.
31598 For more details about this problem, look at the end of config.log." >&5
31599 echo "$as_me: error: your system is not able to compile a small KDE application!
31600 Check, if you installed the KDE header files correctly.
31601 For more details about this problem, look at the end of config.log." >&2;}
31602    { (exit 1); exit 1; }; }
31603   fi
31604   CPPFLAGS=$ac_save_CPPFLAGS
31605
31606   ac_ext=c
31607 ac_cpp='$CPP $CPPFLAGS'
31608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31611
31612
31613
31614   KDE_TEST_RPATH=
31615
31616   if test -n "$USE_RPATH"; then
31617
31618      if test -n "$kde_libraries"; then
31619        KDE_TEST_RPATH="-R $kde_libraries"
31620      fi
31621
31622      if test -n "$qt_libraries"; then
31623        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31624      fi
31625
31626      if test -n "$x_libraries"; then
31627        KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31628      fi
31629
31630      KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31631   fi
31632
31633 { echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31634 echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31635 ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31636
31637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31638   (eval $ac_link) 2>&5
31639   ac_status=$?
31640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641   (exit $ac_status); } && test -s conftest; then
31642   { echo "$as_me:$LINENO: result: yes" >&5
31643 echo "${ECHO_T}yes" >&6; }
31644 else
31645   { { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31646 Check, if your compiler is installed correctly and if you have used the
31647 same compiler to compile Qt and kdelibs as you did use now.
31648 For more details about this problem, look at the end of config.log." >&5
31649 echo "$as_me: error: your system fails at linking a small KDE application!
31650 Check, if your compiler is installed correctly and if you have used the
31651 same compiler to compile Qt and kdelibs as you did use now.
31652 For more details about this problem, look at the end of config.log." >&2;}
31653    { (exit 1); exit 1; }; }
31654 fi
31655
31656 if eval `KDEDIR= ./conftest 2>&5`; then
31657   kde_result=done
31658 else
31659   kde_result=problems
31660 fi
31661
31662 KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31663 kde_have_all_paths=yes
31664
31665
31666   kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31667         kde_htmldir=\"$kde_htmldir\" \
31668         kde_appsdir=\"$kde_appsdir\" \
31669         kde_icondir=\"$kde_icondir\" \
31670         kde_sounddir=\"$kde_sounddir\" \
31671         kde_datadir=\"$kde_datadir\" \
31672         kde_locale=\"$kde_locale\" \
31673         kde_cgidir=\"$kde_cgidir\" \
31674         kde_confdir=\"$kde_confdir\" \
31675         kde_kcfgdir=\"$kde_kcfgdir\" \
31676         kde_mimedir=\"$kde_mimedir\" \
31677         kde_toolbardir=\"$kde_toolbardir\" \
31678         kde_wallpaperdir=\"$kde_wallpaperdir\" \
31679         kde_templatesdir=\"$kde_templatesdir\" \
31680         kde_bindir=\"$kde_bindir\" \
31681         kde_servicesdir=\"$kde_servicesdir\" \
31682         kde_servicetypesdir=\"$kde_servicetypesdir\" \
31683         kde_moduledir=\"$kde_moduledir\" \
31684         kde_styledir=\"$kde_styledir\" \
31685         kde_widgetdir=\"$kde_widgetdir\" \
31686         xdg_appsdir=\"$xdg_appsdir\" \
31687         xdg_menudir=\"$xdg_menudir\" \
31688         xdg_directorydir=\"$xdg_directorydir\" \
31689         kde_result=$kde_result"
31690
31691
31692
31693   else
31694      { { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31695 echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31696    { (exit 1); exit 1; }; }
31697   fi
31698
31699 fi
31700
31701   eval "$kde_cv_all_paths"
31702    if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31703    test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31704    test -z "$kde_datadir" || test -z "$kde_locale"  ||
31705    test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
31706    test -z "$kde_kcfgdir" ||
31707    test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31708    test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31709    test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31710    test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31711    test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31712    test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31713    test "x$kde_have_all_paths" != "xyes"; then
31714      kde_have_all_paths=no
31715   fi
31716
31717   kde_result="$kde_result (cache overridden)"
31718 fi
31719 if test "$kde_have_all_paths" = "no"; then
31720   { { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
31721 Since it had compiled and linked before, it must be a strange problem on your system.
31722 Look at config.log for details. If you are not able to fix this, look at
31723 http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31724 (If you're using an egcs version on Linux, you may update binutils!)
31725 " >&5
31726 echo "$as_me: error: configure could not run a little KDE program to test the environment.
31727 Since it had compiled and linked before, it must be a strange problem on your system.
31728 Look at config.log for details. If you are not able to fix this, look at
31729 http://www.kde.org/faq/installation.html or any www.kde.org mirror.
31730 (If you're using an egcs version on Linux, you may update binutils!)
31731 " >&2;}
31732    { (exit 1); exit 1; }; }
31733 else
31734   rm -f conftest*
31735   { echo "$as_me:$LINENO: result: $kde_result" >&5
31736 echo "${ECHO_T}$kde_result" >&6; }
31737 fi
31738
31739 bindir=$kde_bindir
31740
31741
31742
31743 # Check whether --with-arts was given.
31744 if test "${with_arts+set}" = set; then
31745   withval=$with_arts; build_arts=$withval
31746 else
31747   build_arts=yes
31748
31749 fi
31750
31751
31752
31753 if test "$build_arts" '!=' "no"; then
31754   include_ARTS_TRUE=
31755   include_ARTS_FALSE='#'
31756 else
31757   include_ARTS_TRUE='#'
31758   include_ARTS_FALSE=
31759 fi
31760
31761     if test "$build_arts" = "no"; then
31762
31763 cat >>confdefs.h <<\_ACEOF
31764 #define WITHOUT_ARTS 1
31765 _ACEOF
31766
31767     fi
31768
31769
31770     kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
31771     test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
31772     if test -n "$KDEDIRS"; then
31773        kde_save_IFS=$IFS
31774        IFS=:
31775        for dir in $KDEDIRS; do
31776             kde_default_bindirs="$dir/bin $kde_default_bindirs "
31777        done
31778        IFS=$kde_save_IFS
31779     fi
31780
31781         kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
31782
31783    { echo "$as_me:$LINENO: checking for dcopidl" >&5
31784 echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6; }
31785    if test -n "$DCOPIDL"; then
31786         kde_cv_path="$DCOPIDL";
31787    else
31788         kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
31789
31790         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31791   echo $ECHO_N "(cached) $ECHO_C" >&6
31792 else
31793
31794         kde_cv_path="NONE"
31795         kde_save_IFS=$IFS
31796         IFS=':'
31797         dirs=""
31798         for dir in $PATH; do
31799           dirs="$dirs $dir"
31800         done
31801         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
31802         else      dirs="$dirs $kde_default_bindirs"
31803         fi
31804         IFS=$kde_save_IFS
31805
31806         for dir in $dirs; do
31807           if test -x "$dir/dcopidl"; then
31808             if test -n ""
31809             then
31810               evalstr="$dir/dcopidl  2>&1 "
31811               if eval $evalstr; then
31812                 kde_cv_path="$dir/dcopidl"
31813                 break
31814               fi
31815             else
31816                 kde_cv_path="$dir/dcopidl"
31817                 break
31818             fi
31819           fi
31820         done
31821
31822         eval "kde_cv_path_$kde_cache=$kde_cv_path"
31823
31824
31825 fi
31826
31827
31828       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31829
31830    fi
31831
31832    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31833       { echo "$as_me:$LINENO: result: not found" >&5
31834 echo "${ECHO_T}not found" >&6; }
31835
31836     { { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
31837 Please check whether you installed KDE correctly.
31838 " >&5
31839 echo "$as_me: error: The important program dcopidl was not found!
31840 Please check whether you installed KDE correctly.
31841 " >&2;}
31842    { (exit 1); exit 1; }; }
31843
31844    else
31845       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31846 echo "${ECHO_T}$kde_cv_path" >&6; }
31847       DCOPIDL=$kde_cv_path
31848
31849    fi
31850
31851
31852    { echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
31853 echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6; }
31854    if test -n "$DCOPIDL2CPP"; then
31855         kde_cv_path="$DCOPIDL2CPP";
31856    else
31857         kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
31858
31859         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31860   echo $ECHO_N "(cached) $ECHO_C" >&6
31861 else
31862
31863         kde_cv_path="NONE"
31864         kde_save_IFS=$IFS
31865         IFS=':'
31866         dirs=""
31867         for dir in $PATH; do
31868           dirs="$dirs $dir"
31869         done
31870         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
31871         else      dirs="$dirs $kde_default_bindirs"
31872         fi
31873         IFS=$kde_save_IFS
31874
31875         for dir in $dirs; do
31876           if test -x "$dir/dcopidl2cpp"; then
31877             if test -n ""
31878             then
31879               evalstr="$dir/dcopidl2cpp  2>&1 "
31880               if eval $evalstr; then
31881                 kde_cv_path="$dir/dcopidl2cpp"
31882                 break
31883               fi
31884             else
31885                 kde_cv_path="$dir/dcopidl2cpp"
31886                 break
31887             fi
31888           fi
31889         done
31890
31891         eval "kde_cv_path_$kde_cache=$kde_cv_path"
31892
31893
31894 fi
31895
31896
31897       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31898
31899    fi
31900
31901    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31902       { echo "$as_me:$LINENO: result: not found" >&5
31903 echo "${ECHO_T}not found" >&6; }
31904
31905     { { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
31906 Please check whether you installed KDE correctly.
31907 " >&5
31908 echo "$as_me: error: The important program dcopidl2cpp was not found!
31909 Please check whether you installed KDE correctly.
31910 " >&2;}
31911    { (exit 1); exit 1; }; }
31912
31913    else
31914       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31915 echo "${ECHO_T}$kde_cv_path" >&6; }
31916       DCOPIDL2CPP=$kde_cv_path
31917
31918    fi
31919
31920         if test "$build_arts" '!=' "no"; then
31921
31922    { echo "$as_me:$LINENO: checking for mcopidl" >&5
31923 echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6; }
31924    if test -n "$MCOPIDL"; then
31925         kde_cv_path="$MCOPIDL";
31926    else
31927         kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
31928
31929         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31930   echo $ECHO_N "(cached) $ECHO_C" >&6
31931 else
31932
31933         kde_cv_path="NONE"
31934         kde_save_IFS=$IFS
31935         IFS=':'
31936         dirs=""
31937         for dir in $PATH; do
31938           dirs="$dirs $dir"
31939         done
31940         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
31941         else      dirs="$dirs $kde_default_bindirs"
31942         fi
31943         IFS=$kde_save_IFS
31944
31945         for dir in $dirs; do
31946           if test -x "$dir/mcopidl"; then
31947             if test -n ""
31948             then
31949               evalstr="$dir/mcopidl  2>&1 "
31950               if eval $evalstr; then
31951                 kde_cv_path="$dir/mcopidl"
31952                 break
31953               fi
31954             else
31955                 kde_cv_path="$dir/mcopidl"
31956                 break
31957             fi
31958           fi
31959         done
31960
31961         eval "kde_cv_path_$kde_cache=$kde_cv_path"
31962
31963
31964 fi
31965
31966
31967       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31968
31969    fi
31970
31971    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31972       { echo "$as_me:$LINENO: result: not found" >&5
31973 echo "${ECHO_T}not found" >&6; }
31974
31975     { { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
31976 Please check whether you installed aRts correctly or use
31977 --without-arts to compile without aRts support (this will remove functionality).
31978 " >&5
31979 echo "$as_me: error: The important program mcopidl was not found!
31980 Please check whether you installed aRts correctly or use
31981 --without-arts to compile without aRts support (this will remove functionality).
31982 " >&2;}
31983    { (exit 1); exit 1; }; }
31984
31985    else
31986       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31987 echo "${ECHO_T}$kde_cv_path" >&6; }
31988       MCOPIDL=$kde_cv_path
31989
31990    fi
31991
31992
31993    { echo "$as_me:$LINENO: checking for artsc-config" >&5
31994 echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6; }
31995    if test -n "$ARTSCCONFIG"; then
31996         kde_cv_path="$ARTSCCONFIG";
31997    else
31998         kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
31999
32000         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32001   echo $ECHO_N "(cached) $ECHO_C" >&6
32002 else
32003
32004         kde_cv_path="NONE"
32005         kde_save_IFS=$IFS
32006         IFS=':'
32007         dirs=""
32008         for dir in $PATH; do
32009           dirs="$dirs $dir"
32010         done
32011         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
32012         else      dirs="$dirs $kde_default_bindirs"
32013         fi
32014         IFS=$kde_save_IFS
32015
32016         for dir in $dirs; do
32017           if test -x "$dir/artsc-config"; then
32018             if test -n ""
32019             then
32020               evalstr="$dir/artsc-config  2>&1 "
32021               if eval $evalstr; then
32022                 kde_cv_path="$dir/artsc-config"
32023                 break
32024               fi
32025             else
32026                 kde_cv_path="$dir/artsc-config"
32027                 break
32028             fi
32029           fi
32030         done
32031
32032         eval "kde_cv_path_$kde_cache=$kde_cv_path"
32033
32034
32035 fi
32036
32037
32038       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32039
32040    fi
32041
32042    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32043       { echo "$as_me:$LINENO: result: not found" >&5
32044 echo "${ECHO_T}not found" >&6; }
32045
32046     { { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
32047 Please check whether you installed aRts correctly or use
32048 --without-arts to compile without aRts support (this will remove functionality).
32049 " >&5
32050 echo "$as_me: error: The important program artsc-config was not found!
32051 Please check whether you installed aRts correctly or use
32052 --without-arts to compile without aRts support (this will remove functionality).
32053 " >&2;}
32054    { (exit 1); exit 1; }; }
32055
32056    else
32057       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32058 echo "${ECHO_T}$kde_cv_path" >&6; }
32059       ARTSCCONFIG=$kde_cv_path
32060
32061    fi
32062
32063         fi
32064
32065    { echo "$as_me:$LINENO: checking for meinproc" >&5
32066 echo $ECHO_N "checking for meinproc... $ECHO_C" >&6; }
32067    if test -n "$MEINPROC"; then
32068         kde_cv_path="$MEINPROC";
32069    else
32070         kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
32071
32072         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32073   echo $ECHO_N "(cached) $ECHO_C" >&6
32074 else
32075
32076         kde_cv_path="NONE"
32077         kde_save_IFS=$IFS
32078         IFS=':'
32079         dirs=""
32080         for dir in $PATH; do
32081           dirs="$dirs $dir"
32082         done
32083         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
32084         else      dirs="$dirs $kde_default_bindirs"
32085         fi
32086         IFS=$kde_save_IFS
32087
32088         for dir in $dirs; do
32089           if test -x "$dir/meinproc"; then
32090             if test -n ""
32091             then
32092               evalstr="$dir/meinproc  2>&1 "
32093               if eval $evalstr; then
32094                 kde_cv_path="$dir/meinproc"
32095                 break
32096               fi
32097             else
32098                 kde_cv_path="$dir/meinproc"
32099                 break
32100             fi
32101           fi
32102         done
32103
32104         eval "kde_cv_path_$kde_cache=$kde_cv_path"
32105
32106
32107 fi
32108
32109
32110       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32111
32112    fi
32113
32114    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32115       { echo "$as_me:$LINENO: result: not found" >&5
32116 echo "${ECHO_T}not found" >&6; }
32117
32118    else
32119       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32120 echo "${ECHO_T}$kde_cv_path" >&6; }
32121       MEINPROC=$kde_cv_path
32122
32123    fi
32124
32125
32126         kde32ornewer=1
32127         kde33ornewer=1
32128         if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
32129             kde32ornewer=
32130             kde33ornewer=
32131         else
32132             if test "$kde_qtver" = "3"; then
32133               if test "$kde_qtsubver" -le 1; then
32134                 kde32ornewer=
32135               fi
32136               if test "$kde_qtsubver" -le 2 -o `kde-config --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` == 3.2; then
32137                 kde33ornewer=
32138               fi
32139             fi
32140         fi
32141
32142         if test -n "$kde32ornewer"; then
32143
32144    { echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
32145 echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6; }
32146    if test -n "$KCONFIG_COMPILER"; then
32147         kde_cv_path="$KCONFIG_COMPILER";
32148    else
32149         kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
32150
32151         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32152   echo $ECHO_N "(cached) $ECHO_C" >&6
32153 else
32154
32155         kde_cv_path="NONE"
32156         kde_save_IFS=$IFS
32157         IFS=':'
32158         dirs=""
32159         for dir in $PATH; do
32160           dirs="$dirs $dir"
32161         done
32162         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
32163         else      dirs="$dirs $kde_default_bindirs"
32164         fi
32165         IFS=$kde_save_IFS
32166
32167         for dir in $dirs; do
32168           if test -x "$dir/kconfig_compiler"; then
32169             if test -n ""
32170             then
32171               evalstr="$dir/kconfig_compiler  2>&1 "
32172               if eval $evalstr; then
32173                 kde_cv_path="$dir/kconfig_compiler"
32174                 break
32175               fi
32176             else
32177                 kde_cv_path="$dir/kconfig_compiler"
32178                 break
32179             fi
32180           fi
32181         done
32182
32183         eval "kde_cv_path_$kde_cache=$kde_cv_path"
32184
32185
32186 fi
32187
32188
32189       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32190
32191    fi
32192
32193    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32194       { echo "$as_me:$LINENO: result: not found" >&5
32195 echo "${ECHO_T}not found" >&6; }
32196
32197     { { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
32198 Please check whether you installed KDE correctly.
32199 " >&5
32200 echo "$as_me: error: The important program kconfig_compiler was not found!
32201 Please check whether you installed KDE correctly.
32202 " >&2;}
32203    { (exit 1); exit 1; }; }
32204
32205    else
32206       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32207 echo "${ECHO_T}$kde_cv_path" >&6; }
32208       KCONFIG_COMPILER=$kde_cv_path
32209
32210    fi
32211
32212
32213    { echo "$as_me:$LINENO: checking for dcopidlng" >&5
32214 echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6; }
32215    if test -n "$DCOPIDLNG"; then
32216         kde_cv_path="$DCOPIDLNG";
32217    else
32218         kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
32219
32220         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32221   echo $ECHO_N "(cached) $ECHO_C" >&6
32222 else
32223
32224         kde_cv_path="NONE"
32225         kde_save_IFS=$IFS
32226         IFS=':'
32227         dirs=""
32228         for dir in $PATH; do
32229           dirs="$dirs $dir"
32230         done
32231         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
32232         else      dirs="$dirs $kde_default_bindirs"
32233         fi
32234         IFS=$kde_save_IFS
32235
32236         for dir in $dirs; do
32237           if test -x "$dir/dcopidlng"; then
32238             if test -n ""
32239             then
32240               evalstr="$dir/dcopidlng  2>&1 "
32241               if eval $evalstr; then
32242                 kde_cv_path="$dir/dcopidlng"
32243                 break
32244               fi
32245             else
32246                 kde_cv_path="$dir/dcopidlng"
32247                 break
32248             fi
32249           fi
32250         done
32251
32252         eval "kde_cv_path_$kde_cache=$kde_cv_path"
32253
32254
32255 fi
32256
32257
32258       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32259
32260    fi
32261
32262    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32263       { echo "$as_me:$LINENO: result: not found" >&5
32264 echo "${ECHO_T}not found" >&6; }
32265
32266     { { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
32267 Please check whether you installed KDE correctly.
32268 " >&5
32269 echo "$as_me: error: The important program dcopidlng was not found!
32270 Please check whether you installed KDE correctly.
32271 " >&2;}
32272    { (exit 1); exit 1; }; }
32273
32274    else
32275       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32276 echo "${ECHO_T}$kde_cv_path" >&6; }
32277       DCOPIDLNG=$kde_cv_path
32278
32279    fi
32280
32281         fi
32282         if test -n "$kde33ornewer"; then
32283
32284    { echo "$as_me:$LINENO: checking for makekdewidgets" >&5
32285 echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6; }
32286    if test -n "$MAKEKDEWIDGETS"; then
32287         kde_cv_path="$MAKEKDEWIDGETS";
32288    else
32289         kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
32290
32291         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32292   echo $ECHO_N "(cached) $ECHO_C" >&6
32293 else
32294
32295         kde_cv_path="NONE"
32296         kde_save_IFS=$IFS
32297         IFS=':'
32298         dirs=""
32299         for dir in $PATH; do
32300           dirs="$dirs $dir"
32301         done
32302         if test -z ""; then       dirs="$kde_default_bindirs $dirs"
32303         else      dirs="$dirs $kde_default_bindirs"
32304         fi
32305         IFS=$kde_save_IFS
32306
32307         for dir in $dirs; do
32308           if test -x "$dir/makekdewidgets"; then
32309             if test -n ""
32310             then
32311               evalstr="$dir/makekdewidgets  2>&1 "
32312               if eval $evalstr; then
32313                 kde_cv_path="$dir/makekdewidgets"
32314                 break
32315               fi
32316             else
32317                 kde_cv_path="$dir/makekdewidgets"
32318                 break
32319             fi
32320           fi
32321         done
32322
32323         eval "kde_cv_path_$kde_cache=$kde_cv_path"
32324
32325
32326 fi
32327
32328
32329       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32330
32331    fi
32332
32333    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32334       { echo "$as_me:$LINENO: result: not found" >&5
32335 echo "${ECHO_T}not found" >&6; }
32336
32337     { { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
32338 Please check whether you installed KDE correctly.
32339 " >&5
32340 echo "$as_me: error: The important program makekdewidgets was not found!
32341 Please check whether you installed KDE correctly.
32342 " >&2;}
32343    { (exit 1); exit 1; }; }
32344
32345    else
32346       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32347 echo "${ECHO_T}$kde_cv_path" >&6; }
32348       MAKEKDEWIDGETS=$kde_cv_path
32349
32350    fi
32351
32352
32353         fi
32354
32355    { echo "$as_me:$LINENO: checking for xmllint" >&5
32356 echo $ECHO_N "checking for xmllint... $ECHO_C" >&6; }
32357    if test -n "$XMLLINT"; then
32358         kde_cv_path="$XMLLINT";
32359    else
32360         kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
32361
32362         if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32363   echo $ECHO_N "(cached) $ECHO_C" >&6
32364 else
32365
32366         kde_cv_path="NONE"
32367         kde_save_IFS=$IFS
32368         IFS=':'
32369         dirs=""
32370         for dir in $PATH; do
32371           dirs="$dirs $dir"
32372         done
32373         if test -z ""; then       dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
32374         else      dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
32375         fi
32376         IFS=$kde_save_IFS
32377
32378         for dir in $dirs; do
32379           if test -x "$dir/xmllint"; then
32380             if test -n ""
32381             then
32382               evalstr="$dir/xmllint  2>&1 "
32383               if eval $evalstr; then
32384                 kde_cv_path="$dir/xmllint"
32385                 break
32386               fi
32387             else
32388                 kde_cv_path="$dir/xmllint"
32389                 break
32390             fi
32391           fi
32392         done
32393
32394         eval "kde_cv_path_$kde_cache=$kde_cv_path"
32395
32396
32397 fi
32398
32399
32400       eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32401
32402    fi
32403
32404    if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32405       { echo "$as_me:$LINENO: result: not found" >&5
32406 echo "${ECHO_T}not found" >&6; }
32407       XMLLINT=""
32408    else
32409       { echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32410 echo "${ECHO_T}$kde_cv_path" >&6; }
32411       XMLLINT=$kde_cv_path
32412
32413    fi
32414
32415
32416         if test -n "$MEINPROC" && test ! "$MEINPROC" = "compiled"; then
32417             kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
32418             test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
32419
32420 KDE_XSL_STYLESHEET=NO
32421 for i in $kde_sharedirs;
32422 do
32423   for j in apps/ksgmltools2/customization/kde-chunk.xsl;
32424   do
32425     echo "configure: 32425: $i/$j" >&5
32426     if test -r "$i/$j"; then
32427       echo "taking that" >&5
32428       KDE_XSL_STYLESHEET=$i
32429       break 2
32430     fi
32431   done
32432 done
32433
32434             if test "$KDE_XSL_STYLESHEET" = "NO"; then
32435                 KDE_XSL_STYLESHEET=""
32436             else
32437                 KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
32438             fi
32439         fi
32440
32441         DCOP_DEPENDENCIES='$(DCOPIDL)'
32442         if test -n "$kde32ornewer"; then
32443             KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
32444             DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
32445
32446
32447
32448         fi
32449
32450
32451
32452
32453
32454
32455
32456
32457
32458
32459
32460
32461
32462
32463
32464
32465
32466
32467
32468
32469
32470
32471
32472
32473
32474
32475
32476
32477
32478
32479
32480 kdeinitdir='$(kde_moduledir)'
32481
32482
32483
32484 if test "$kde_qtver" = 1; then
32485   kde_minidir="$kde_icondir/mini"
32486 else
32487 # for KDE 1 - this breaks KDE2 apps using minidir, but
32488 # that's the plan ;-/
32489   kde_minidir="/dev/null"
32490 fi
32491
32492
32493
32494
32495
32496
32497 if test $kde_qtver = 3; then
32498    LIB_KDECORE="-lkdecore"
32499
32500    LIB_KDEUI="-lkdeui"
32501
32502    LIB_KIO="-lkio"
32503
32504    LIB_KJS="-lkjs"
32505
32506    LIB_SMB="-lsmb"
32507
32508    LIB_KAB="-lkab"
32509
32510    LIB_KABC="-lkabc"
32511
32512    LIB_KHTML="-lkhtml"
32513
32514    LIB_KSPELL="-lkspell"
32515
32516    LIB_KPARTS="-lkparts"
32517
32518    LIB_KDEPRINT="-lkdeprint"
32519
32520    LIB_KUTILS="-lkutils"
32521
32522    LIB_KDEPIM="-lkdepim"
32523
32524    LIB_KIMPROXY="-lkimproxy"
32525
32526    LIB_KNEWSTUFF="-lknewstuff"
32527
32528    LIB_KDNSSD="-lkdnssd"
32529
32530 # these are for backward compatibility
32531    LIB_KSYCOCA="-lkio"
32532
32533    LIB_KFILE="-lkio"
32534
32535 elif test $kde_qtver = 2; then
32536    LIB_KDECORE="-lkdecore"
32537
32538    LIB_KDEUI="-lkdeui"
32539
32540    LIB_KIO="-lkio"
32541
32542    LIB_KSYCOCA="-lksycoca"
32543
32544    LIB_SMB="-lsmb"
32545
32546    LIB_KFILE="-lkfile"
32547
32548    LIB_KAB="-lkab"
32549
32550    LIB_KHTML="-lkhtml"
32551
32552    LIB_KSPELL="-lkspell"
32553
32554    LIB_KPARTS="-lkparts"
32555
32556    LIB_KDEPRINT="-lkdeprint"
32557
32558 else
32559    LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
32560
32561    LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
32562
32563    LIB_KFM="-lkfm $(LIB_KDECORE)"
32564
32565    LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
32566
32567    LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
32568
32569 fi
32570
32571
32572
32573 REQUIRED_KDE_VERSION=3.2.0
32574 #MIN_CONFIG($REQUIRED_KDE_VERSION)
32575 ##AC_CONFIG_SRCDIR(src/main.cpp)
32576
32577 REQUIRED_SCIM_VERSION=1.3.0
32578
32579
32580
32581 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32582         if test -n "$ac_tool_prefix"; then
32583   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32584 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32587 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32588   echo $ECHO_N "(cached) $ECHO_C" >&6
32589 else
32590   case $PKG_CONFIG in
32591   [\\/]* | ?:[\\/]*)
32592   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32593   ;;
32594   *)
32595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32596 for as_dir in $PATH
32597 do
32598   IFS=$as_save_IFS
32599   test -z "$as_dir" && as_dir=.
32600   for ac_exec_ext in '' $ac_executable_extensions; do
32601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32602     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32604     break 2
32605   fi
32606 done
32607 done
32608 IFS=$as_save_IFS
32609
32610   ;;
32611 esac
32612 fi
32613 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32614 if test -n "$PKG_CONFIG"; then
32615   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32616 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32617 else
32618   { echo "$as_me:$LINENO: result: no" >&5
32619 echo "${ECHO_T}no" >&6; }
32620 fi
32621
32622
32623 fi
32624 if test -z "$ac_cv_path_PKG_CONFIG"; then
32625   ac_pt_PKG_CONFIG=$PKG_CONFIG
32626   # Extract the first word of "pkg-config", so it can be a program name with args.
32627 set dummy pkg-config; ac_word=$2
32628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32630 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32631   echo $ECHO_N "(cached) $ECHO_C" >&6
32632 else
32633   case $ac_pt_PKG_CONFIG in
32634   [\\/]* | ?:[\\/]*)
32635   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32636   ;;
32637   *)
32638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32639 for as_dir in $PATH
32640 do
32641   IFS=$as_save_IFS
32642   test -z "$as_dir" && as_dir=.
32643   for ac_exec_ext in '' $ac_executable_extensions; do
32644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32645     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32646     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32647     break 2
32648   fi
32649 done
32650 done
32651 IFS=$as_save_IFS
32652
32653   ;;
32654 esac
32655 fi
32656 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32657 if test -n "$ac_pt_PKG_CONFIG"; then
32658   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32659 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32660 else
32661   { echo "$as_me:$LINENO: result: no" >&5
32662 echo "${ECHO_T}no" >&6; }
32663 fi
32664
32665   if test "x$ac_pt_PKG_CONFIG" = x; then
32666     PKG_CONFIG=""
32667   else
32668     case $cross_compiling:$ac_tool_warned in
32669 yes:)
32670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32671 whose name does not start with the host triplet.  If you think this
32672 configuration is useful to you, please write to autoconf@gnu.org." >&5
32673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32674 whose name does not start with the host triplet.  If you think this
32675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32676 ac_tool_warned=yes ;;
32677 esac
32678     PKG_CONFIG=$ac_pt_PKG_CONFIG
32679   fi
32680 else
32681   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32682 fi
32683
32684 fi
32685 if test -n "$PKG_CONFIG"; then
32686         _pkg_min_version=0.9.0
32687         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32688 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32689         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32690                 { echo "$as_me:$LINENO: result: yes" >&5
32691 echo "${ECHO_T}yes" >&6; }
32692         else
32693                 { echo "$as_me:$LINENO: result: no" >&5
32694 echo "${ECHO_T}no" >&6; }
32695                 PKG_CONFIG=""
32696         fi
32697
32698 fi
32699
32700 pkg_failed=no
32701 { echo "$as_me:$LINENO: checking for SCIM" >&5
32702 echo $ECHO_N "checking for SCIM... $ECHO_C" >&6; }
32703
32704 if test -n "$PKG_CONFIG"; then
32705     if test -n "$SCIM_CFLAGS"; then
32706         pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
32707     else
32708         if test -n "$PKG_CONFIG" && \
32709     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$REQUIRED_SCIM_VERSION\"") >&5
32710   ($PKG_CONFIG --exists --print-errors "scim >= $REQUIRED_SCIM_VERSION") 2>&5
32711   ac_status=$?
32712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713   (exit $ac_status); }; then
32714   pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $REQUIRED_SCIM_VERSION" 2>/dev/null`
32715 else
32716   pkg_failed=yes
32717 fi
32718     fi
32719 else
32720         pkg_failed=untried
32721 fi
32722 if test -n "$PKG_CONFIG"; then
32723     if test -n "$SCIM_LIBS"; then
32724         pkg_cv_SCIM_LIBS="$SCIM_LIBS"
32725     else
32726         if test -n "$PKG_CONFIG" && \
32727     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim >= \$REQUIRED_SCIM_VERSION\"") >&5
32728   ($PKG_CONFIG --exists --print-errors "scim >= $REQUIRED_SCIM_VERSION") 2>&5
32729   ac_status=$?
32730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32731   (exit $ac_status); }; then
32732   pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $REQUIRED_SCIM_VERSION" 2>/dev/null`
32733 else
32734   pkg_failed=yes
32735 fi
32736     fi
32737 else
32738         pkg_failed=untried
32739 fi
32740
32741
32742
32743 if test $pkg_failed = yes; then
32744
32745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32746         _pkg_short_errors_supported=yes
32747 else
32748         _pkg_short_errors_supported=no
32749 fi
32750         if test $_pkg_short_errors_supported = yes; then
32751                 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $REQUIRED_SCIM_VERSION"`
32752         else
32753                 SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $REQUIRED_SCIM_VERSION"`
32754         fi
32755         # Put the nasty error message in config.log where it belongs
32756         echo "$SCIM_PKG_ERRORS" >&5
32757
32758         { echo "$as_me:$LINENO: result: no" >&5
32759 echo "${ECHO_T}no" >&6; }
32760                 HAS_SCIM=no
32761 elif test $pkg_failed = untried; then
32762         HAS_SCIM=no
32763 else
32764         SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
32765         SCIM_LIBS=$pkg_cv_SCIM_LIBS
32766         { echo "$as_me:$LINENO: result: yes" >&5
32767 echo "${ECHO_T}yes" >&6; }
32768         HAS_SCIM=yes
32769 fi
32770
32771
32772
32773
32774 if test "x$HAS_SCIM" != "xyes"; then
32775   { { echo "$as_me:$LINENO: error: SCIM library is not available or the version is too old!" >&5
32776 echo "$as_me: error: SCIM library is not available or the version is too old!" >&2;}
32777    { (exit 1); exit 1; }; }
32778 else
32779   SCIM_VERSION=`$PKG_CONFIG --modversion scim`
32780 fi
32781
32782 ##dnl PACKAGE set before
32783
32784   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
32785 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
32786     # Check whether --enable-nls was given.
32787 if test "${enable_nls+set}" = set; then
32788   enableval=$enable_nls; USE_NLS=$enableval
32789 else
32790   USE_NLS=yes
32791 fi
32792
32793   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
32794 echo "${ECHO_T}$USE_NLS" >&6; }
32795
32796
32797
32798
32799
32800
32801 # Prepare PATH_SEPARATOR.
32802 # The user is always right.
32803 if test "${PATH_SEPARATOR+set}" != set; then
32804   echo "#! /bin/sh" >conf$$.sh
32805   echo  "exit 0"   >>conf$$.sh
32806   chmod +x conf$$.sh
32807   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32808     PATH_SEPARATOR=';'
32809   else
32810     PATH_SEPARATOR=:
32811   fi
32812   rm -f conf$$.sh
32813 fi
32814
32815 # Find out how to test for executable files. Don't use a zero-byte file,
32816 # as systems may use methods other than mode bits to determine executability.
32817 cat >conf$$.file <<_ASEOF
32818 #! /bin/sh
32819 exit 0
32820 _ASEOF
32821 chmod +x conf$$.file
32822 if test -x conf$$.file >/dev/null 2>&1; then
32823   ac_executable_p="test -x"
32824 else
32825   ac_executable_p="test -f"
32826 fi
32827 rm -f conf$$.file
32828
32829 # Extract the first word of "msgfmt", so it can be a program name with args.
32830 set dummy msgfmt; ac_word=$2
32831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32833 if test "${ac_cv_path_MSGFMT+set}" = set; then
32834   echo $ECHO_N "(cached) $ECHO_C" >&6
32835 else
32836   case "$MSGFMT" in
32837   [\\/]* | ?:[\\/]*)
32838     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
32839     ;;
32840   *)
32841     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
32842     for ac_dir in $PATH; do
32843       IFS="$ac_save_IFS"
32844       test -z "$ac_dir" && ac_dir=.
32845       for ac_exec_ext in '' $ac_executable_extensions; do
32846         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
32847           echo "$as_me: trying $ac_dir/$ac_word..." >&5
32848           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
32849      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
32850             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
32851             break 2
32852           fi
32853         fi
32854       done
32855     done
32856     IFS="$ac_save_IFS"
32857   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
32858     ;;
32859 esac
32860 fi
32861 MSGFMT="$ac_cv_path_MSGFMT"
32862 if test "$MSGFMT" != ":"; then
32863   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
32864 echo "${ECHO_T}$MSGFMT" >&6; }
32865 else
32866   { echo "$as_me:$LINENO: result: no" >&5
32867 echo "${ECHO_T}no" >&6; }
32868 fi
32869
32870   # Extract the first word of "gmsgfmt", so it can be a program name with args.
32871 set dummy gmsgfmt; ac_word=$2
32872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32874 if test "${ac_cv_path_GMSGFMT+set}" = set; then
32875   echo $ECHO_N "(cached) $ECHO_C" >&6
32876 else
32877   case $GMSGFMT in
32878   [\\/]* | ?:[\\/]*)
32879   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
32880   ;;
32881   *)
32882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32883 for as_dir in $PATH
32884 do
32885   IFS=$as_save_IFS
32886   test -z "$as_dir" && as_dir=.
32887   for ac_exec_ext in '' $ac_executable_extensions; do
32888   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32889     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
32890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32891     break 2
32892   fi
32893 done
32894 done
32895 IFS=$as_save_IFS
32896
32897   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
32898   ;;
32899 esac
32900 fi
32901 GMSGFMT=$ac_cv_path_GMSGFMT
32902 if test -n "$GMSGFMT"; then
32903   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
32904 echo "${ECHO_T}$GMSGFMT" >&6; }
32905 else
32906   { echo "$as_me:$LINENO: result: no" >&5
32907 echo "${ECHO_T}no" >&6; }
32908 fi
32909
32910
32911
32912     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
32913     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
32914     *) MSGFMT_015=$MSGFMT ;;
32915   esac
32916
32917   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
32918     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
32919     *) GMSGFMT_015=$GMSGFMT ;;
32920   esac
32921
32922
32923
32924 # Prepare PATH_SEPARATOR.
32925 # The user is always right.
32926 if test "${PATH_SEPARATOR+set}" != set; then
32927   echo "#! /bin/sh" >conf$$.sh
32928   echo  "exit 0"   >>conf$$.sh
32929   chmod +x conf$$.sh
32930   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32931     PATH_SEPARATOR=';'
32932   else
32933     PATH_SEPARATOR=:
32934   fi
32935   rm -f conf$$.sh
32936 fi
32937
32938 # Find out how to test for executable files. Don't use a zero-byte file,
32939 # as systems may use methods other than mode bits to determine executability.
32940 cat >conf$$.file <<_ASEOF
32941 #! /bin/sh
32942 exit 0
32943 _ASEOF
32944 chmod +x conf$$.file
32945 if test -x conf$$.file >/dev/null 2>&1; then
32946   ac_executable_p="test -x"
32947 else
32948   ac_executable_p="test -f"
32949 fi
32950 rm -f conf$$.file
32951
32952 # Extract the first word of "xgettext", so it can be a program name with args.
32953 set dummy xgettext; ac_word=$2
32954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32956 if test "${ac_cv_path_XGETTEXT+set}" = set; then
32957   echo $ECHO_N "(cached) $ECHO_C" >&6
32958 else
32959   case "$XGETTEXT" in
32960   [\\/]* | ?:[\\/]*)
32961     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
32962     ;;
32963   *)
32964     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
32965     for ac_dir in $PATH; do
32966       IFS="$ac_save_IFS"
32967       test -z "$ac_dir" && ac_dir=.
32968       for ac_exec_ext in '' $ac_executable_extensions; do
32969         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
32970           echo "$as_me: trying $ac_dir/$ac_word..." >&5
32971           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
32972      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
32973             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
32974             break 2
32975           fi
32976         fi
32977       done
32978     done
32979     IFS="$ac_save_IFS"
32980   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
32981     ;;
32982 esac
32983 fi
32984 XGETTEXT="$ac_cv_path_XGETTEXT"
32985 if test "$XGETTEXT" != ":"; then
32986   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
32987 echo "${ECHO_T}$XGETTEXT" >&6; }
32988 else
32989   { echo "$as_me:$LINENO: result: no" >&5
32990 echo "${ECHO_T}no" >&6; }
32991 fi
32992
32993     rm -f messages.po
32994
32995     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
32996     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
32997     *) XGETTEXT_015=$XGETTEXT ;;
32998   esac
32999
33000
33001
33002 # Prepare PATH_SEPARATOR.
33003 # The user is always right.
33004 if test "${PATH_SEPARATOR+set}" != set; then
33005   echo "#! /bin/sh" >conf$$.sh
33006   echo  "exit 0"   >>conf$$.sh
33007   chmod +x conf$$.sh
33008   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33009     PATH_SEPARATOR=';'
33010   else
33011     PATH_SEPARATOR=:
33012   fi
33013   rm -f conf$$.sh
33014 fi
33015
33016 # Find out how to test for executable files. Don't use a zero-byte file,
33017 # as systems may use methods other than mode bits to determine executability.
33018 cat >conf$$.file <<_ASEOF
33019 #! /bin/sh
33020 exit 0
33021 _ASEOF
33022 chmod +x conf$$.file
33023 if test -x conf$$.file >/dev/null 2>&1; then
33024   ac_executable_p="test -x"
33025 else
33026   ac_executable_p="test -f"
33027 fi
33028 rm -f conf$$.file
33029
33030 # Extract the first word of "msgmerge", so it can be a program name with args.
33031 set dummy msgmerge; ac_word=$2
33032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33034 if test "${ac_cv_path_MSGMERGE+set}" = set; then
33035   echo $ECHO_N "(cached) $ECHO_C" >&6
33036 else
33037   case "$MSGMERGE" in
33038   [\\/]* | ?:[\\/]*)
33039     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
33040     ;;
33041   *)
33042     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
33043     for ac_dir in $PATH; do
33044       IFS="$ac_save_IFS"
33045       test -z "$ac_dir" && ac_dir=.
33046       for ac_exec_ext in '' $ac_executable_extensions; do
33047         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
33048           echo "$as_me: trying $ac_dir/$ac_word..." >&5
33049           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
33050             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
33051             break 2
33052           fi
33053         fi
33054       done
33055     done
33056     IFS="$ac_save_IFS"
33057   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
33058     ;;
33059 esac
33060 fi
33061 MSGMERGE="$ac_cv_path_MSGMERGE"
33062 if test "$MSGMERGE" != ":"; then
33063   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
33064 echo "${ECHO_T}$MSGMERGE" >&6; }
33065 else
33066   { echo "$as_me:$LINENO: result: no" >&5
33067 echo "${ECHO_T}no" >&6; }
33068 fi
33069
33070
33071         test -n "$localedir" || localedir='${datadir}/locale'
33072
33073
33074   ac_config_commands="$ac_config_commands po-directories"
33075
33076
33077
33078       if test "X$prefix" = "XNONE"; then
33079     acl_final_prefix="$ac_default_prefix"
33080   else
33081     acl_final_prefix="$prefix"
33082   fi
33083   if test "X$exec_prefix" = "XNONE"; then
33084     acl_final_exec_prefix='${prefix}'
33085   else
33086     acl_final_exec_prefix="$exec_prefix"
33087   fi
33088   acl_save_prefix="$prefix"
33089   prefix="$acl_final_prefix"
33090   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
33091   prefix="$acl_save_prefix"
33092
33093
33094 # Check whether --with-gnu-ld was given.
33095 if test "${with_gnu_ld+set}" = set; then
33096   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
33097 else
33098   with_gnu_ld=no
33099 fi
33100
33101 # Prepare PATH_SEPARATOR.
33102 # The user is always right.
33103 if test "${PATH_SEPARATOR+set}" != set; then
33104   echo "#! /bin/sh" >conf$$.sh
33105   echo  "exit 0"   >>conf$$.sh
33106   chmod +x conf$$.sh
33107   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33108     PATH_SEPARATOR=';'
33109   else
33110     PATH_SEPARATOR=:
33111   fi
33112   rm -f conf$$.sh
33113 fi
33114 ac_prog=ld
33115 if test "$GCC" = yes; then
33116   # Check if gcc -print-prog-name=ld gives a path.
33117   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
33118 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
33119   case $host in
33120   *-*-mingw*)
33121     # gcc leaves a trailing carriage return which upsets mingw
33122     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
33123   *)
33124     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
33125   esac
33126   case $ac_prog in
33127     # Accept absolute paths.
33128     [\\/]* | [A-Za-z]:[\\/]*)
33129       re_direlt='/[^/][^/]*/\.\./'
33130       # Canonicalize the path of ld
33131       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
33132       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
33133         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
33134       done
33135       test -z "$LD" && LD="$ac_prog"
33136       ;;
33137   "")
33138     # If it fails, then pretend we aren't using GCC.
33139     ac_prog=ld
33140     ;;
33141   *)
33142     # If it is relative, then search for the first ld in PATH.
33143     with_gnu_ld=unknown
33144     ;;
33145   esac
33146 elif test "$with_gnu_ld" = yes; then
33147   { echo "$as_me:$LINENO: checking for GNU ld" >&5
33148 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
33149 else
33150   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
33151 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
33152 fi
33153 if test "${acl_cv_path_LD+set}" = set; then
33154   echo $ECHO_N "(cached) $ECHO_C" >&6
33155 else
33156   if test -z "$LD"; then
33157   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
33158   for ac_dir in $PATH; do
33159     test -z "$ac_dir" && ac_dir=.
33160     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
33161       acl_cv_path_LD="$ac_dir/$ac_prog"
33162       # Check to see if the program is GNU ld.  I'd rather use --version,
33163       # but apparently some GNU ld's only accept -v.
33164       # Break only if it was the GNU/non-GNU ld that we prefer.
33165       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
33166       *GNU* | *'with BFD'*)
33167         test "$with_gnu_ld" != no && break ;;
33168       *)
33169         test "$with_gnu_ld" != yes && break ;;
33170       esac
33171     fi
33172   done
33173   IFS="$ac_save_ifs"
33174 else
33175   acl_cv_path_LD="$LD" # Let the user override the test with a path.
33176 fi
33177 fi
33178
33179 LD="$acl_cv_path_LD"
33180 if test -n "$LD"; then
33181   { echo "$as_me:$LINENO: result: $LD" >&5
33182 echo "${ECHO_T}$LD" >&6; }
33183 else
33184   { echo "$as_me:$LINENO: result: no" >&5
33185 echo "${ECHO_T}no" >&6; }
33186 fi
33187 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
33188 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
33189    { (exit 1); exit 1; }; }
33190 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
33191 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
33192 if test "${acl_cv_prog_gnu_ld+set}" = set; then
33193   echo $ECHO_N "(cached) $ECHO_C" >&6
33194 else
33195   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
33196 case `$LD -v 2>&1 </dev/null` in
33197 *GNU* | *'with BFD'*)
33198   acl_cv_prog_gnu_ld=yes ;;
33199 *)
33200   acl_cv_prog_gnu_ld=no ;;
33201 esac
33202 fi
33203 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
33204 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
33205 with_gnu_ld=$acl_cv_prog_gnu_ld
33206
33207
33208
33209
33210                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
33211 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
33212 if test "${acl_cv_rpath+set}" = set; then
33213   echo $ECHO_N "(cached) $ECHO_C" >&6
33214 else
33215
33216     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
33217     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
33218     . ./conftest.sh
33219     rm -f ./conftest.sh
33220     acl_cv_rpath=done
33221
33222 fi
33223 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
33224 echo "${ECHO_T}$acl_cv_rpath" >&6; }
33225   wl="$acl_cv_wl"
33226   libext="$acl_cv_libext"
33227   shlibext="$acl_cv_shlibext"
33228   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
33229   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
33230   hardcode_direct="$acl_cv_hardcode_direct"
33231   hardcode_minus_L="$acl_cv_hardcode_minus_L"
33232     # Check whether --enable-rpath was given.
33233 if test "${enable_rpath+set}" = set; then
33234   enableval=$enable_rpath; :
33235 else
33236   enable_rpath=yes
33237 fi
33238
33239
33240
33241                   acl_libdirstem=lib
33242   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
33243   if test -n "$searchpath"; then
33244     acl_save_IFS="${IFS=        }"; IFS=":"
33245     for searchdir in $searchpath; do
33246       if test -d "$searchdir"; then
33247         case "$searchdir" in
33248           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
33249           *) searchdir=`cd "$searchdir" && pwd`
33250              case "$searchdir" in
33251                */lib64 ) acl_libdirstem=lib64 ;;
33252              esac ;;
33253         esac
33254       fi
33255     done
33256     IFS="$acl_save_IFS"
33257   fi
33258
33259
33260
33261
33262
33263
33264
33265
33266     use_additional=yes
33267
33268   acl_save_prefix="$prefix"
33269   prefix="$acl_final_prefix"
33270   acl_save_exec_prefix="$exec_prefix"
33271   exec_prefix="$acl_final_exec_prefix"
33272
33273     eval additional_includedir=\"$includedir\"
33274     eval additional_libdir=\"$libdir\"
33275
33276   exec_prefix="$acl_save_exec_prefix"
33277   prefix="$acl_save_prefix"
33278
33279
33280 # Check whether --with-libiconv-prefix was given.
33281 if test "${with_libiconv_prefix+set}" = set; then
33282   withval=$with_libiconv_prefix;
33283     if test "X$withval" = "Xno"; then
33284       use_additional=no
33285     else
33286       if test "X$withval" = "X"; then
33287
33288   acl_save_prefix="$prefix"
33289   prefix="$acl_final_prefix"
33290   acl_save_exec_prefix="$exec_prefix"
33291   exec_prefix="$acl_final_exec_prefix"
33292
33293           eval additional_includedir=\"$includedir\"
33294           eval additional_libdir=\"$libdir\"
33295
33296   exec_prefix="$acl_save_exec_prefix"
33297   prefix="$acl_save_prefix"
33298
33299       else
33300         additional_includedir="$withval/include"
33301         additional_libdir="$withval/$acl_libdirstem"
33302       fi
33303     fi
33304
33305 fi
33306
33307       LIBICONV=
33308   LTLIBICONV=
33309   INCICONV=
33310   rpathdirs=
33311   ltrpathdirs=
33312   names_already_handled=
33313   names_next_round='iconv '
33314   while test -n "$names_next_round"; do
33315     names_this_round="$names_next_round"
33316     names_next_round=
33317     for name in $names_this_round; do
33318       already_handled=
33319       for n in $names_already_handled; do
33320         if test "$n" = "$name"; then
33321           already_handled=yes
33322           break
33323         fi
33324       done
33325       if test -z "$already_handled"; then
33326         names_already_handled="$names_already_handled $name"
33327                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
33328         eval value=\"\$HAVE_LIB$uppername\"
33329         if test -n "$value"; then
33330           if test "$value" = yes; then
33331             eval value=\"\$LIB$uppername\"
33332             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
33333             eval value=\"\$LTLIB$uppername\"
33334             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
33335           else
33336                                     :
33337           fi
33338         else
33339                               found_dir=
33340           found_la=
33341           found_so=
33342           found_a=
33343           if test $use_additional = yes; then
33344             if test -n "$shlibext" \
33345                && { test -f "$additional_libdir/lib$name.$shlibext" \
33346                     || { test "$shlibext" = dll \
33347                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
33348               found_dir="$additional_libdir"
33349               if test -f "$additional_libdir/lib$name.$shlibext"; then
33350                 found_so="$additional_libdir/lib$name.$shlibext"
33351               else
33352                 found_so="$additional_libdir/lib$name.dll.a"
33353               fi
33354               if test -f "$additional_libdir/lib$name.la"; then
33355                 found_la="$additional_libdir/lib$name.la"
33356               fi
33357             else
33358               if test -f "$additional_libdir/lib$name.$libext"; then
33359                 found_dir="$additional_libdir"
33360                 found_a="$additional_libdir/lib$name.$libext"
33361                 if test -f "$additional_libdir/lib$name.la"; then
33362                   found_la="$additional_libdir/lib$name.la"
33363                 fi
33364               fi
33365             fi
33366           fi
33367           if test "X$found_dir" = "X"; then
33368             for x in $LDFLAGS $LTLIBICONV; do
33369
33370   acl_save_prefix="$prefix"
33371   prefix="$acl_final_prefix"
33372   acl_save_exec_prefix="$exec_prefix"
33373   exec_prefix="$acl_final_exec_prefix"
33374   eval x=\"$x\"
33375   exec_prefix="$acl_save_exec_prefix"
33376   prefix="$acl_save_prefix"
33377
33378               case "$x" in
33379                 -L*)
33380                   dir=`echo "X$x" | sed -e 's/^X-L//'`
33381                   if test -n "$shlibext" \
33382                      && { test -f "$dir/lib$name.$shlibext" \
33383                           || { test "$shlibext" = dll \
33384                                && test -f "$dir/lib$name.dll.a"; }; }; then
33385                     found_dir="$dir"
33386                     if test -f "$dir/lib$name.$shlibext"; then
33387                       found_so="$dir/lib$name.$shlibext"
33388                     else
33389                       found_so="$dir/lib$name.dll.a"
33390                     fi
33391                     if test -f "$dir/lib$name.la"; then
33392                       found_la="$dir/lib$name.la"
33393                     fi
33394                   else
33395                     if test -f "$dir/lib$name.$libext"; then
33396                       found_dir="$dir"
33397                       found_a="$dir/lib$name.$libext"
33398                       if test -f "$dir/lib$name.la"; then
33399                         found_la="$dir/lib$name.la"
33400                       fi
33401                     fi
33402                   fi
33403                   ;;
33404               esac
33405               if test "X$found_dir" != "X"; then
33406                 break
33407               fi
33408             done
33409           fi
33410           if test "X$found_dir" != "X"; then
33411                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
33412             if test "X$found_so" != "X"; then
33413                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
33414                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33415               else
33416                                                                                 haveit=
33417                 for x in $ltrpathdirs; do
33418                   if test "X$x" = "X$found_dir"; then
33419                     haveit=yes
33420                     break
33421                   fi
33422                 done
33423                 if test -z "$haveit"; then
33424                   ltrpathdirs="$ltrpathdirs $found_dir"
33425                 fi
33426                                 if test "$hardcode_direct" = yes; then
33427                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33428                 else
33429                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
33430                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33431                                                             haveit=
33432                     for x in $rpathdirs; do
33433                       if test "X$x" = "X$found_dir"; then
33434                         haveit=yes
33435                         break
33436                       fi
33437                     done
33438                     if test -z "$haveit"; then
33439                       rpathdirs="$rpathdirs $found_dir"
33440                     fi
33441                   else
33442                                                                                 haveit=
33443                     for x in $LDFLAGS $LIBICONV; do
33444
33445   acl_save_prefix="$prefix"
33446   prefix="$acl_final_prefix"
33447   acl_save_exec_prefix="$exec_prefix"
33448   exec_prefix="$acl_final_exec_prefix"
33449   eval x=\"$x\"
33450   exec_prefix="$acl_save_exec_prefix"
33451   prefix="$acl_save_prefix"
33452
33453                       if test "X$x" = "X-L$found_dir"; then
33454                         haveit=yes
33455                         break
33456                       fi
33457                     done
33458                     if test -z "$haveit"; then
33459                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
33460                     fi
33461                     if test "$hardcode_minus_L" != no; then
33462                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
33463                     else
33464                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
33465                     fi
33466                   fi
33467                 fi
33468               fi
33469             else
33470               if test "X$found_a" != "X"; then
33471                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
33472               else
33473                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
33474               fi
33475             fi
33476                         additional_includedir=
33477             case "$found_dir" in
33478               */$acl_libdirstem | */$acl_libdirstem/)
33479                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
33480                 additional_includedir="$basedir/include"
33481                 ;;
33482             esac
33483             if test "X$additional_includedir" != "X"; then
33484                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
33485                 haveit=
33486                 if test "X$additional_includedir" = "X/usr/local/include"; then
33487                   if test -n "$GCC"; then
33488                     case $host_os in
33489                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33490                     esac
33491                   fi
33492                 fi
33493                 if test -z "$haveit"; then
33494                   for x in $CPPFLAGS $INCICONV; do
33495
33496   acl_save_prefix="$prefix"
33497   prefix="$acl_final_prefix"
33498   acl_save_exec_prefix="$exec_prefix"
33499   exec_prefix="$acl_final_exec_prefix"
33500   eval x=\"$x\"
33501   exec_prefix="$acl_save_exec_prefix"
33502   prefix="$acl_save_prefix"
33503
33504                     if test "X$x" = "X-I$additional_includedir"; then
33505                       haveit=yes
33506                       break
33507                     fi
33508                   done
33509                   if test -z "$haveit"; then
33510                     if test -d "$additional_includedir"; then
33511                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
33512                     fi
33513                   fi
33514                 fi
33515               fi
33516             fi
33517                         if test -n "$found_la"; then
33518                                                         save_libdir="$libdir"
33519               case "$found_la" in
33520                 */* | *\\*) . "$found_la" ;;
33521                 *) . "./$found_la" ;;
33522               esac
33523               libdir="$save_libdir"
33524                             for dep in $dependency_libs; do
33525                 case "$dep" in
33526                   -L*)
33527                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
33528                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
33529                       haveit=
33530                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
33531                         if test -n "$GCC"; then
33532                           case $host_os in
33533                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
33534                           esac
33535                         fi
33536                       fi
33537                       if test -z "$haveit"; then
33538                         haveit=
33539                         for x in $LDFLAGS $LIBICONV; do
33540
33541   acl_save_prefix="$prefix"
33542   prefix="$acl_final_prefix"
33543   acl_save_exec_prefix="$exec_prefix"
33544   exec_prefix="$acl_final_exec_prefix"
33545   eval x=\"$x\"
33546   exec_prefix="$acl_save_exec_prefix"
33547   prefix="$acl_save_prefix"
33548
33549                           if test "X$x" = "X-L$additional_libdir"; then
33550                             haveit=yes
33551                             break
33552                           fi
33553                         done
33554                         if test -z "$haveit"; then
33555                           if test -d "$additional_libdir"; then
33556                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
33557                           fi
33558                         fi
33559                         haveit=
33560                         for x in $LDFLAGS $LTLIBICONV; do
33561
33562   acl_save_prefix="$prefix"
33563   prefix="$acl_final_prefix"
33564   acl_save_exec_prefix="$exec_prefix"
33565   exec_prefix="$acl_final_exec_prefix"
33566   eval x=\"$x\"
33567   exec_prefix="$acl_save_exec_prefix"
33568   prefix="$acl_save_prefix"
33569
33570                           if test "X$x" = "X-L$additional_libdir"; then
33571                             haveit=yes
33572                             break
33573                           fi
33574                         done
33575                         if test -z "$haveit"; then
33576                           if test -d "$additional_libdir"; then
33577                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
33578                           fi
33579                         fi
33580                       fi
33581                     fi
33582                     ;;
33583                   -R*)
33584                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
33585                     if test "$enable_rpath" != no; then
33586                                                                   haveit=
33587                       for x in $rpathdirs; do
33588                         if test "X$x" = "X$dir"; then
33589                           haveit=yes
33590                           break
33591                         fi
33592                       done
33593                       if test -z "$haveit"; then
33594                         rpathdirs="$rpathdirs $dir"
33595                       fi
33596                                                                   haveit=
33597                       for x in $ltrpathdirs; do
33598                         if test "X$x" = "X$dir"; then
33599                           haveit=yes
33600                           break
33601                         fi
33602                       done
33603                       if test -z "$haveit"; then
33604                         ltrpathdirs="$ltrpathdirs $dir"
33605                       fi
33606                     fi
33607                     ;;
33608                   -l*)
33609                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
33610                     ;;
33611                   *.la)
33612                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
33613                     ;;
33614                   *)
33615                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
33616                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
33617                     ;;
33618                 esac
33619               done
33620             fi
33621           else
33622                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
33623             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
33624           fi
33625         fi
33626       fi
33627     done
33628   done
33629   if test "X$rpathdirs" != "X"; then
33630     if test -n "$hardcode_libdir_separator"; then
33631                         alldirs=
33632       for found_dir in $rpathdirs; do
33633         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
33634       done
33635             acl_save_libdir="$libdir"
33636       libdir="$alldirs"
33637       eval flag=\"$hardcode_libdir_flag_spec\"
33638       libdir="$acl_save_libdir"
33639       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
33640     else
33641             for found_dir in $rpathdirs; do
33642         acl_save_libdir="$libdir"
33643         libdir="$found_dir"
33644         eval flag=\"$hardcode_libdir_flag_spec\"
33645         libdir="$acl_save_libdir"
33646         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
33647       done
33648     fi
33649   fi
33650   if test "X$ltrpathdirs" != "X"; then
33651             for found_dir in $ltrpathdirs; do
33652       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
33653     done
33654   fi
33655
33656
33657
33658
33659
33660
33661
33662
33663
33664
33665
33666
33667
33668
33669
33670
33671
33672
33673
33674
33675
33676
33677
33678
33679
33680     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
33681 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
33682 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
33683   echo $ECHO_N "(cached) $ECHO_C" >&6
33684 else
33685   gt_save_LIBS="$LIBS"
33686      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
33687      cat >conftest.$ac_ext <<_ACEOF
33688 /* confdefs.h.  */
33689 _ACEOF
33690 cat confdefs.h >>conftest.$ac_ext
33691 cat >>conftest.$ac_ext <<_ACEOF
33692 /* end confdefs.h.  */
33693 #include <CoreFoundation/CFPreferences.h>
33694 int
33695 main ()
33696 {
33697 CFPreferencesCopyAppValue(NULL, NULL)
33698   ;
33699   return 0;
33700 }
33701 _ACEOF
33702 rm -f conftest.$ac_objext conftest$ac_exeext
33703 if { (ac_try="$ac_link"
33704 case "(($ac_try" in
33705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706   *) ac_try_echo=$ac_try;;
33707 esac
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709   (eval "$ac_link") 2>conftest.er1
33710   ac_status=$?
33711   grep -v '^ *+' conftest.er1 >conftest.err
33712   rm -f conftest.er1
33713   cat conftest.err >&5
33714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715   (exit $ac_status); } && {
33716          test -z "$ac_c_werror_flag" ||
33717          test ! -s conftest.err
33718        } && test -s conftest$ac_exeext &&
33719        $as_test_x conftest$ac_exeext; then
33720   gt_cv_func_CFPreferencesCopyAppValue=yes
33721 else
33722   echo "$as_me: failed program was:" >&5
33723 sed 's/^/| /' conftest.$ac_ext >&5
33724
33725         gt_cv_func_CFPreferencesCopyAppValue=no
33726 fi
33727
33728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33729       conftest$ac_exeext conftest.$ac_ext
33730      LIBS="$gt_save_LIBS"
33731 fi
33732 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
33733 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
33734   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
33735
33736 cat >>confdefs.h <<\_ACEOF
33737 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
33738 _ACEOF
33739
33740   fi
33741     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
33742 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
33743 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
33744   echo $ECHO_N "(cached) $ECHO_C" >&6
33745 else
33746   gt_save_LIBS="$LIBS"
33747      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
33748      cat >conftest.$ac_ext <<_ACEOF
33749 /* confdefs.h.  */
33750 _ACEOF
33751 cat confdefs.h >>conftest.$ac_ext
33752 cat >>conftest.$ac_ext <<_ACEOF
33753 /* end confdefs.h.  */
33754 #include <CoreFoundation/CFLocale.h>
33755 int
33756 main ()
33757 {
33758 CFLocaleCopyCurrent();
33759   ;
33760   return 0;
33761 }
33762 _ACEOF
33763 rm -f conftest.$ac_objext conftest$ac_exeext
33764 if { (ac_try="$ac_link"
33765 case "(($ac_try" in
33766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33767   *) ac_try_echo=$ac_try;;
33768 esac
33769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33770   (eval "$ac_link") 2>conftest.er1
33771   ac_status=$?
33772   grep -v '^ *+' conftest.er1 >conftest.err
33773   rm -f conftest.er1
33774   cat conftest.err >&5
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); } && {
33777          test -z "$ac_c_werror_flag" ||
33778          test ! -s conftest.err
33779        } && test -s conftest$ac_exeext &&
33780        $as_test_x conftest$ac_exeext; then
33781   gt_cv_func_CFLocaleCopyCurrent=yes
33782 else
33783   echo "$as_me: failed program was:" >&5
33784 sed 's/^/| /' conftest.$ac_ext >&5
33785
33786         gt_cv_func_CFLocaleCopyCurrent=no
33787 fi
33788
33789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33790       conftest$ac_exeext conftest.$ac_ext
33791      LIBS="$gt_save_LIBS"
33792 fi
33793 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
33794 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
33795   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
33796
33797 cat >>confdefs.h <<\_ACEOF
33798 #define HAVE_CFLOCALECOPYCURRENT 1
33799 _ACEOF
33800
33801   fi
33802   INTL_MACOSX_LIBS=
33803   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
33804     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
33805   fi
33806
33807
33808
33809
33810
33811
33812   LIBINTL=
33813   LTLIBINTL=
33814   POSUB=
33815
33816     case " $gt_needs " in
33817     *" need-formatstring-macros "*) gt_api_version=3 ;;
33818     *" need-ngettext "*) gt_api_version=2 ;;
33819     *) gt_api_version=1 ;;
33820   esac
33821   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
33822   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
33823
33824     if test "$USE_NLS" = "yes"; then
33825     gt_use_preinstalled_gnugettext=no
33826
33827
33828         if test $gt_api_version -ge 3; then
33829           gt_revision_test_code='
33830 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
33831 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
33832 #endif
33833 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
33834 '
33835         else
33836           gt_revision_test_code=
33837         fi
33838         if test $gt_api_version -ge 2; then
33839           gt_expression_test_code=' + * ngettext ("", "", 0)'
33840         else
33841           gt_expression_test_code=
33842         fi
33843
33844         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
33845 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
33846 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
33847   echo $ECHO_N "(cached) $ECHO_C" >&6
33848 else
33849   cat >conftest.$ac_ext <<_ACEOF
33850 /* confdefs.h.  */
33851 _ACEOF
33852 cat confdefs.h >>conftest.$ac_ext
33853 cat >>conftest.$ac_ext <<_ACEOF
33854 /* end confdefs.h.  */
33855 #include <libintl.h>
33856 $gt_revision_test_code
33857 extern int _nl_msg_cat_cntr;
33858 extern int *_nl_domain_bindings;
33859 int
33860 main ()
33861 {
33862 bindtextdomain ("", "");
33863 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
33864   ;
33865   return 0;
33866 }
33867 _ACEOF
33868 rm -f conftest.$ac_objext conftest$ac_exeext
33869 if { (ac_try="$ac_link"
33870 case "(($ac_try" in
33871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872   *) ac_try_echo=$ac_try;;
33873 esac
33874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33875   (eval "$ac_link") 2>conftest.er1
33876   ac_status=$?
33877   grep -v '^ *+' conftest.er1 >conftest.err
33878   rm -f conftest.er1
33879   cat conftest.err >&5
33880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881   (exit $ac_status); } && {
33882          test -z "$ac_c_werror_flag" ||
33883          test ! -s conftest.err
33884        } && test -s conftest$ac_exeext &&
33885        $as_test_x conftest$ac_exeext; then
33886   eval "$gt_func_gnugettext_libc=yes"
33887 else
33888   echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33890
33891         eval "$gt_func_gnugettext_libc=no"
33892 fi
33893
33894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33895       conftest$ac_exeext conftest.$ac_ext
33896 fi
33897 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
33898                { echo "$as_me:$LINENO: result: $ac_res" >&5
33899 echo "${ECHO_T}$ac_res" >&6; }
33900
33901         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
33902
33903
33904
33905
33906
33907           am_save_CPPFLAGS="$CPPFLAGS"
33908
33909   for element in $INCICONV; do
33910     haveit=
33911     for x in $CPPFLAGS; do
33912
33913   acl_save_prefix="$prefix"
33914   prefix="$acl_final_prefix"
33915   acl_save_exec_prefix="$exec_prefix"
33916   exec_prefix="$acl_final_exec_prefix"
33917   eval x=\"$x\"
33918   exec_prefix="$acl_save_exec_prefix"
33919   prefix="$acl_save_prefix"
33920
33921       if test "X$x" = "X$element"; then
33922         haveit=yes
33923         break
33924       fi
33925     done
33926     if test -z "$haveit"; then
33927       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
33928     fi
33929   done
33930
33931
33932   { echo "$as_me:$LINENO: checking for iconv" >&5
33933 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
33934 if test "${am_cv_func_iconv+set}" = set; then
33935   echo $ECHO_N "(cached) $ECHO_C" >&6
33936 else
33937
33938     am_cv_func_iconv="no, consider installing GNU libiconv"
33939     am_cv_lib_iconv=no
33940     cat >conftest.$ac_ext <<_ACEOF
33941 /* confdefs.h.  */
33942 _ACEOF
33943 cat confdefs.h >>conftest.$ac_ext
33944 cat >>conftest.$ac_ext <<_ACEOF
33945 /* end confdefs.h.  */
33946 #include <stdlib.h>
33947 #include <iconv.h>
33948 int
33949 main ()
33950 {
33951 iconv_t cd = iconv_open("","");
33952        iconv(cd,NULL,NULL,NULL,NULL);
33953        iconv_close(cd);
33954   ;
33955   return 0;
33956 }
33957 _ACEOF
33958 rm -f conftest.$ac_objext conftest$ac_exeext
33959 if { (ac_try="$ac_link"
33960 case "(($ac_try" in
33961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33962   *) ac_try_echo=$ac_try;;
33963 esac
33964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33965   (eval "$ac_link") 2>conftest.er1
33966   ac_status=$?
33967   grep -v '^ *+' conftest.er1 >conftest.err
33968   rm -f conftest.er1
33969   cat conftest.err >&5
33970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33971   (exit $ac_status); } && {
33972          test -z "$ac_c_werror_flag" ||
33973          test ! -s conftest.err
33974        } && test -s conftest$ac_exeext &&
33975        $as_test_x conftest$ac_exeext; then
33976   am_cv_func_iconv=yes
33977 else
33978   echo "$as_me: failed program was:" >&5
33979 sed 's/^/| /' conftest.$ac_ext >&5
33980
33981
33982 fi
33983
33984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33985       conftest$ac_exeext conftest.$ac_ext
33986     if test "$am_cv_func_iconv" != yes; then
33987       am_save_LIBS="$LIBS"
33988       LIBS="$LIBS $LIBICONV"
33989       cat >conftest.$ac_ext <<_ACEOF
33990 /* confdefs.h.  */
33991 _ACEOF
33992 cat confdefs.h >>conftest.$ac_ext
33993 cat >>conftest.$ac_ext <<_ACEOF
33994 /* end confdefs.h.  */
33995 #include <stdlib.h>
33996 #include <iconv.h>
33997 int
33998 main ()
33999 {
34000 iconv_t cd = iconv_open("","");
34001          iconv(cd,NULL,NULL,NULL,NULL);
34002          iconv_close(cd);
34003   ;
34004   return 0;
34005 }
34006 _ACEOF
34007 rm -f conftest.$ac_objext conftest$ac_exeext
34008 if { (ac_try="$ac_link"
34009 case "(($ac_try" in
34010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34011   *) ac_try_echo=$ac_try;;
34012 esac
34013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34014   (eval "$ac_link") 2>conftest.er1
34015   ac_status=$?
34016   grep -v '^ *+' conftest.er1 >conftest.err
34017   rm -f conftest.er1
34018   cat conftest.err >&5
34019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020   (exit $ac_status); } && {
34021          test -z "$ac_c_werror_flag" ||
34022          test ! -s conftest.err
34023        } && test -s conftest$ac_exeext &&
34024        $as_test_x conftest$ac_exeext; then
34025   am_cv_lib_iconv=yes
34026         am_cv_func_iconv=yes
34027 else
34028   echo "$as_me: failed program was:" >&5
34029 sed 's/^/| /' conftest.$ac_ext >&5
34030
34031
34032 fi
34033
34034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34035       conftest$ac_exeext conftest.$ac_ext
34036       LIBS="$am_save_LIBS"
34037     fi
34038
34039 fi
34040 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34041 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
34042   if test "$am_cv_func_iconv" = yes; then
34043
34044 cat >>confdefs.h <<\_ACEOF
34045 #define HAVE_ICONV 1
34046 _ACEOF
34047
34048   fi
34049   if test "$am_cv_lib_iconv" = yes; then
34050     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34051 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
34052     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
34053 echo "${ECHO_T}$LIBICONV" >&6; }
34054   else
34055             CPPFLAGS="$am_save_CPPFLAGS"
34056     LIBICONV=
34057     LTLIBICONV=
34058   fi
34059
34060
34061
34062
34063
34064
34065
34066     use_additional=yes
34067
34068   acl_save_prefix="$prefix"
34069   prefix="$acl_final_prefix"
34070   acl_save_exec_prefix="$exec_prefix"
34071   exec_prefix="$acl_final_exec_prefix"
34072
34073     eval additional_includedir=\"$includedir\"
34074     eval additional_libdir=\"$libdir\"
34075
34076   exec_prefix="$acl_save_exec_prefix"
34077   prefix="$acl_save_prefix"
34078
34079
34080 # Check whether --with-libintl-prefix was given.
34081 if test "${with_libintl_prefix+set}" = set; then
34082   withval=$with_libintl_prefix;
34083     if test "X$withval" = "Xno"; then
34084       use_additional=no
34085     else
34086       if test "X$withval" = "X"; then
34087
34088   acl_save_prefix="$prefix"
34089   prefix="$acl_final_prefix"
34090   acl_save_exec_prefix="$exec_prefix"
34091   exec_prefix="$acl_final_exec_prefix"
34092
34093           eval additional_includedir=\"$includedir\"
34094           eval additional_libdir=\"$libdir\"
34095
34096   exec_prefix="$acl_save_exec_prefix"
34097   prefix="$acl_save_prefix"
34098
34099       else
34100         additional_includedir="$withval/include"
34101         additional_libdir="$withval/$acl_libdirstem"
34102       fi
34103     fi
34104
34105 fi
34106
34107       LIBINTL=
34108   LTLIBINTL=
34109   INCINTL=
34110   rpathdirs=
34111   ltrpathdirs=
34112   names_already_handled=
34113   names_next_round='intl '
34114   while test -n "$names_next_round"; do
34115     names_this_round="$names_next_round"
34116     names_next_round=
34117     for name in $names_this_round; do
34118       already_handled=
34119       for n in $names_already_handled; do
34120         if test "$n" = "$name"; then
34121           already_handled=yes
34122           break
34123         fi
34124       done
34125       if test -z "$already_handled"; then
34126         names_already_handled="$names_already_handled $name"
34127                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34128         eval value=\"\$HAVE_LIB$uppername\"
34129         if test -n "$value"; then
34130           if test "$value" = yes; then
34131             eval value=\"\$LIB$uppername\"
34132             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
34133             eval value=\"\$LTLIB$uppername\"
34134             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
34135           else
34136                                     :
34137           fi
34138         else
34139                               found_dir=
34140           found_la=
34141           found_so=
34142           found_a=
34143           if test $use_additional = yes; then
34144             if test -n "$shlibext" \
34145                && { test -f "$additional_libdir/lib$name.$shlibext" \
34146                     || { test "$shlibext" = dll \
34147                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
34148               found_dir="$additional_libdir"
34149               if test -f "$additional_libdir/lib$name.$shlibext"; then
34150                 found_so="$additional_libdir/lib$name.$shlibext"
34151               else
34152                 found_so="$additional_libdir/lib$name.dll.a"
34153               fi
34154               if test -f "$additional_libdir/lib$name.la"; then
34155                 found_la="$additional_libdir/lib$name.la"
34156               fi
34157             else
34158               if test -f "$additional_libdir/lib$name.$libext"; then
34159                 found_dir="$additional_libdir"
34160                 found_a="$additional_libdir/lib$name.$libext"
34161                 if test -f "$additional_libdir/lib$name.la"; then
34162                   found_la="$additional_libdir/lib$name.la"
34163                 fi
34164               fi
34165             fi
34166           fi
34167           if test "X$found_dir" = "X"; then
34168             for x in $LDFLAGS $LTLIBINTL; do
34169
34170   acl_save_prefix="$prefix"
34171   prefix="$acl_final_prefix"
34172   acl_save_exec_prefix="$exec_prefix"
34173   exec_prefix="$acl_final_exec_prefix"
34174   eval x=\"$x\"
34175   exec_prefix="$acl_save_exec_prefix"
34176   prefix="$acl_save_prefix"
34177
34178               case "$x" in
34179                 -L*)
34180                   dir=`echo "X$x" | sed -e 's/^X-L//'`
34181                   if test -n "$shlibext" \
34182                      && { test -f "$dir/lib$name.$shlibext" \
34183                           || { test "$shlibext" = dll \
34184                                && test -f "$dir/lib$name.dll.a"; }; }; then
34185                     found_dir="$dir"
34186                     if test -f "$dir/lib$name.$shlibext"; then
34187                       found_so="$dir/lib$name.$shlibext"
34188                     else
34189                       found_so="$dir/lib$name.dll.a"
34190                     fi
34191                     if test -f "$dir/lib$name.la"; then
34192                       found_la="$dir/lib$name.la"
34193                     fi
34194                   else
34195                     if test -f "$dir/lib$name.$libext"; then
34196                       found_dir="$dir"
34197                       found_a="$dir/lib$name.$libext"
34198                       if test -f "$dir/lib$name.la"; then
34199                         found_la="$dir/lib$name.la"
34200                       fi
34201                     fi
34202                   fi
34203                   ;;
34204               esac
34205               if test "X$found_dir" != "X"; then
34206                 break
34207               fi
34208             done
34209           fi
34210           if test "X$found_dir" != "X"; then
34211                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
34212             if test "X$found_so" != "X"; then
34213                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
34214                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34215               else
34216                                                                                 haveit=
34217                 for x in $ltrpathdirs; do
34218                   if test "X$x" = "X$found_dir"; then
34219                     haveit=yes
34220                     break
34221                   fi
34222                 done
34223                 if test -z "$haveit"; then
34224                   ltrpathdirs="$ltrpathdirs $found_dir"
34225                 fi
34226                                 if test "$hardcode_direct" = yes; then
34227                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34228                 else
34229                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
34230                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34231                                                             haveit=
34232                     for x in $rpathdirs; do
34233                       if test "X$x" = "X$found_dir"; then
34234                         haveit=yes
34235                         break
34236                       fi
34237                     done
34238                     if test -z "$haveit"; then
34239                       rpathdirs="$rpathdirs $found_dir"
34240                     fi
34241                   else
34242                                                                                 haveit=
34243                     for x in $LDFLAGS $LIBINTL; do
34244
34245   acl_save_prefix="$prefix"
34246   prefix="$acl_final_prefix"
34247   acl_save_exec_prefix="$exec_prefix"
34248   exec_prefix="$acl_final_exec_prefix"
34249   eval x=\"$x\"
34250   exec_prefix="$acl_save_exec_prefix"
34251   prefix="$acl_save_prefix"
34252
34253                       if test "X$x" = "X-L$found_dir"; then
34254                         haveit=yes
34255                         break
34256                       fi
34257                     done
34258                     if test -z "$haveit"; then
34259                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
34260                     fi
34261                     if test "$hardcode_minus_L" != no; then
34262                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
34263                     else
34264                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
34265                     fi
34266                   fi
34267                 fi
34268               fi
34269             else
34270               if test "X$found_a" != "X"; then
34271                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
34272               else
34273                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
34274               fi
34275             fi
34276                         additional_includedir=
34277             case "$found_dir" in
34278               */$acl_libdirstem | */$acl_libdirstem/)
34279                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34280                 additional_includedir="$basedir/include"
34281                 ;;
34282             esac
34283             if test "X$additional_includedir" != "X"; then
34284                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
34285                 haveit=
34286                 if test "X$additional_includedir" = "X/usr/local/include"; then
34287                   if test -n "$GCC"; then
34288                     case $host_os in
34289                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34290                     esac
34291                   fi
34292                 fi
34293                 if test -z "$haveit"; then
34294                   for x in $CPPFLAGS $INCINTL; do
34295
34296   acl_save_prefix="$prefix"
34297   prefix="$acl_final_prefix"
34298   acl_save_exec_prefix="$exec_prefix"
34299   exec_prefix="$acl_final_exec_prefix"
34300   eval x=\"$x\"
34301   exec_prefix="$acl_save_exec_prefix"
34302   prefix="$acl_save_prefix"
34303
34304                     if test "X$x" = "X-I$additional_includedir"; then
34305                       haveit=yes
34306                       break
34307                     fi
34308                   done
34309                   if test -z "$haveit"; then
34310                     if test -d "$additional_includedir"; then
34311                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
34312                     fi
34313                   fi
34314                 fi
34315               fi
34316             fi
34317                         if test -n "$found_la"; then
34318                                                         save_libdir="$libdir"
34319               case "$found_la" in
34320                 */* | *\\*) . "$found_la" ;;
34321                 *) . "./$found_la" ;;
34322               esac
34323               libdir="$save_libdir"
34324                             for dep in $dependency_libs; do
34325                 case "$dep" in
34326                   -L*)
34327                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34328                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
34329                       haveit=
34330                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
34331                         if test -n "$GCC"; then
34332                           case $host_os in
34333                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34334                           esac
34335                         fi
34336                       fi
34337                       if test -z "$haveit"; then
34338                         haveit=
34339                         for x in $LDFLAGS $LIBINTL; do
34340
34341   acl_save_prefix="$prefix"
34342   prefix="$acl_final_prefix"
34343   acl_save_exec_prefix="$exec_prefix"
34344   exec_prefix="$acl_final_exec_prefix"
34345   eval x=\"$x\"
34346   exec_prefix="$acl_save_exec_prefix"
34347   prefix="$acl_save_prefix"
34348
34349                           if test "X$x" = "X-L$additional_libdir"; then
34350                             haveit=yes
34351                             break
34352                           fi
34353                         done
34354                         if test -z "$haveit"; then
34355                           if test -d "$additional_libdir"; then
34356                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
34357                           fi
34358                         fi
34359                         haveit=
34360                         for x in $LDFLAGS $LTLIBINTL; do
34361
34362   acl_save_prefix="$prefix"
34363   prefix="$acl_final_prefix"
34364   acl_save_exec_prefix="$exec_prefix"
34365   exec_prefix="$acl_final_exec_prefix"
34366   eval x=\"$x\"
34367   exec_prefix="$acl_save_exec_prefix"
34368   prefix="$acl_save_prefix"
34369
34370                           if test "X$x" = "X-L$additional_libdir"; then
34371                             haveit=yes
34372                             break
34373                           fi
34374                         done
34375                         if test -z "$haveit"; then
34376                           if test -d "$additional_libdir"; then
34377                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
34378                           fi
34379                         fi
34380                       fi
34381                     fi
34382                     ;;
34383                   -R*)
34384                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
34385                     if test "$enable_rpath" != no; then
34386                                                                   haveit=
34387                       for x in $rpathdirs; do
34388                         if test "X$x" = "X$dir"; then
34389                           haveit=yes
34390                           break
34391                         fi
34392                       done
34393                       if test -z "$haveit"; then
34394                         rpathdirs="$rpathdirs $dir"
34395                       fi
34396                                                                   haveit=
34397                       for x in $ltrpathdirs; do
34398                         if test "X$x" = "X$dir"; then
34399                           haveit=yes
34400                           break
34401                         fi
34402                       done
34403                       if test -z "$haveit"; then
34404                         ltrpathdirs="$ltrpathdirs $dir"
34405                       fi
34406                     fi
34407                     ;;
34408                   -l*)
34409                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34410                     ;;
34411                   *.la)
34412                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34413                     ;;
34414                   *)
34415                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
34416                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
34417                     ;;
34418                 esac
34419               done
34420             fi
34421           else
34422                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
34423             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
34424           fi
34425         fi
34426       fi
34427     done
34428   done
34429   if test "X$rpathdirs" != "X"; then
34430     if test -n "$hardcode_libdir_separator"; then
34431                         alldirs=
34432       for found_dir in $rpathdirs; do
34433         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
34434       done
34435             acl_save_libdir="$libdir"
34436       libdir="$alldirs"
34437       eval flag=\"$hardcode_libdir_flag_spec\"
34438       libdir="$acl_save_libdir"
34439       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
34440     else
34441             for found_dir in $rpathdirs; do
34442         acl_save_libdir="$libdir"
34443         libdir="$found_dir"
34444         eval flag=\"$hardcode_libdir_flag_spec\"
34445         libdir="$acl_save_libdir"
34446         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
34447       done
34448     fi
34449   fi
34450   if test "X$ltrpathdirs" != "X"; then
34451             for found_dir in $ltrpathdirs; do
34452       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
34453     done
34454   fi
34455
34456           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
34457 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
34458 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
34459   echo $ECHO_N "(cached) $ECHO_C" >&6
34460 else
34461   gt_save_CPPFLAGS="$CPPFLAGS"
34462             CPPFLAGS="$CPPFLAGS $INCINTL"
34463             gt_save_LIBS="$LIBS"
34464             LIBS="$LIBS $LIBINTL"
34465                         cat >conftest.$ac_ext <<_ACEOF
34466 /* confdefs.h.  */
34467 _ACEOF
34468 cat confdefs.h >>conftest.$ac_ext
34469 cat >>conftest.$ac_ext <<_ACEOF
34470 /* end confdefs.h.  */
34471 #include <libintl.h>
34472 $gt_revision_test_code
34473 extern int _nl_msg_cat_cntr;
34474 extern
34475 #ifdef __cplusplus
34476 "C"
34477 #endif
34478 const char *_nl_expand_alias (const char *);
34479 int
34480 main ()
34481 {
34482 bindtextdomain ("", "");
34483 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
34484   ;
34485   return 0;
34486 }
34487 _ACEOF
34488 rm -f conftest.$ac_objext conftest$ac_exeext
34489 if { (ac_try="$ac_link"
34490 case "(($ac_try" in
34491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34492   *) ac_try_echo=$ac_try;;
34493 esac
34494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34495   (eval "$ac_link") 2>conftest.er1
34496   ac_status=$?
34497   grep -v '^ *+' conftest.er1 >conftest.err
34498   rm -f conftest.er1
34499   cat conftest.err >&5
34500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501   (exit $ac_status); } && {
34502          test -z "$ac_c_werror_flag" ||
34503          test ! -s conftest.err
34504        } && test -s conftest$ac_exeext &&
34505        $as_test_x conftest$ac_exeext; then
34506   eval "$gt_func_gnugettext_libintl=yes"
34507 else
34508   echo "$as_me: failed program was:" >&5
34509 sed 's/^/| /' conftest.$ac_ext >&5
34510
34511         eval "$gt_func_gnugettext_libintl=no"
34512 fi
34513
34514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34515       conftest$ac_exeext conftest.$ac_ext
34516                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
34517               LIBS="$LIBS $LIBICONV"
34518               cat >conftest.$ac_ext <<_ACEOF
34519 /* confdefs.h.  */
34520 _ACEOF
34521 cat confdefs.h >>conftest.$ac_ext
34522 cat >>conftest.$ac_ext <<_ACEOF
34523 /* end confdefs.h.  */
34524 #include <libintl.h>
34525 $gt_revision_test_code
34526 extern int _nl_msg_cat_cntr;
34527 extern
34528 #ifdef __cplusplus
34529 "C"
34530 #endif
34531 const char *_nl_expand_alias (const char *);
34532 int
34533 main ()
34534 {
34535 bindtextdomain ("", "");
34536 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
34537   ;
34538   return 0;
34539 }
34540 _ACEOF
34541 rm -f conftest.$ac_objext conftest$ac_exeext
34542 if { (ac_try="$ac_link"
34543 case "(($ac_try" in
34544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34545   *) ac_try_echo=$ac_try;;
34546 esac
34547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34548   (eval "$ac_link") 2>conftest.er1
34549   ac_status=$?
34550   grep -v '^ *+' conftest.er1 >conftest.err
34551   rm -f conftest.er1
34552   cat conftest.err >&5
34553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34554   (exit $ac_status); } && {
34555          test -z "$ac_c_werror_flag" ||
34556          test ! -s conftest.err
34557        } && test -s conftest$ac_exeext &&
34558        $as_test_x conftest$ac_exeext; then
34559   LIBINTL="$LIBINTL $LIBICONV"
34560                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
34561                 eval "$gt_func_gnugettext_libintl=yes"
34562
34563 else
34564   echo "$as_me: failed program was:" >&5
34565 sed 's/^/| /' conftest.$ac_ext >&5
34566
34567
34568 fi
34569
34570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34571       conftest$ac_exeext conftest.$ac_ext
34572             fi
34573             CPPFLAGS="$gt_save_CPPFLAGS"
34574             LIBS="$gt_save_LIBS"
34575 fi
34576 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
34577                { echo "$as_me:$LINENO: result: $ac_res" >&5
34578 echo "${ECHO_T}$ac_res" >&6; }
34579         fi
34580
34581                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
34582            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
34583                 && test "$PACKAGE" != gettext-runtime \
34584                 && test "$PACKAGE" != gettext-tools; }; then
34585           gt_use_preinstalled_gnugettext=yes
34586         else
34587                     LIBINTL=
34588           LTLIBINTL=
34589           INCINTL=
34590         fi
34591
34592
34593
34594     if test -n "$INTL_MACOSX_LIBS"; then
34595       if test "$gt_use_preinstalled_gnugettext" = "yes" \
34596          || test "$nls_cv_use_gnu_gettext" = "yes"; then
34597                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
34598         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
34599       fi
34600     fi
34601
34602     if test "$gt_use_preinstalled_gnugettext" = "yes" \
34603        || test "$nls_cv_use_gnu_gettext" = "yes"; then
34604
34605 cat >>confdefs.h <<\_ACEOF
34606 #define ENABLE_NLS 1
34607 _ACEOF
34608
34609     else
34610       USE_NLS=no
34611     fi
34612   fi
34613
34614   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
34615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
34616   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
34617 echo "${ECHO_T}$USE_NLS" >&6; }
34618   if test "$USE_NLS" = "yes"; then
34619     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
34620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
34621     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
34622       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
34623         gt_source="external libintl"
34624       else
34625         gt_source="libc"
34626       fi
34627     else
34628       gt_source="included intl directory"
34629     fi
34630     { echo "$as_me:$LINENO: result: $gt_source" >&5
34631 echo "${ECHO_T}$gt_source" >&6; }
34632   fi
34633
34634   if test "$USE_NLS" = "yes"; then
34635
34636     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
34637       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
34638         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
34639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
34640         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
34641 echo "${ECHO_T}$LIBINTL" >&6; }
34642
34643   for element in $INCINTL; do
34644     haveit=
34645     for x in $CPPFLAGS; do
34646
34647   acl_save_prefix="$prefix"
34648   prefix="$acl_final_prefix"
34649   acl_save_exec_prefix="$exec_prefix"
34650   exec_prefix="$acl_final_exec_prefix"
34651   eval x=\"$x\"
34652   exec_prefix="$acl_save_exec_prefix"
34653   prefix="$acl_save_prefix"
34654
34655       if test "X$x" = "X$element"; then
34656         haveit=yes
34657         break
34658       fi
34659     done
34660     if test -z "$haveit"; then
34661       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34662     fi
34663   done
34664
34665       fi
34666
34667
34668 cat >>confdefs.h <<\_ACEOF
34669 #define HAVE_GETTEXT 1
34670 _ACEOF
34671
34672
34673 cat >>confdefs.h <<\_ACEOF
34674 #define HAVE_DCGETTEXT 1
34675 _ACEOF
34676
34677     fi
34678
34679         POSUB=po
34680   fi
34681
34682
34683
34684     INTLLIBS="$LIBINTL"
34685
34686
34687
34688
34689
34690
34691
34692 ###########################################################
34693 ##             Definiation of compile args.              ##
34694 ###########################################################
34695 # Check whether --enable-scim-debug was given.
34696 if test "${enable_scim_debug+set}" = set; then
34697   enableval=$enable_scim_debug; scim_debug=yes
34698 else
34699   scim_debug=no
34700 fi
34701
34702
34703 if test "$scim_debug" = "yes"; then
34704
34705 cat >>confdefs.h <<\_ACEOF
34706 #define ENABLE_DEBUG 1
34707 _ACEOF
34708
34709   CFLAGS="$CFLAGS -g"
34710   CXXFLAGS="$CXXFLAGS -g"
34711 else
34712   cat >>confdefs.h <<\_ACEOF
34713 #define ENABLE_DEBUG 0
34714 _ACEOF
34715
34716 fi
34717
34718 #AC_CHECK_HEAD
34719 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
34720 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
34721 if test "${ac_cv_c_bigendian+set}" = set; then
34722   echo $ECHO_N "(cached) $ECHO_C" >&6
34723 else
34724   # See if sys/param.h defines the BYTE_ORDER macro.
34725 cat >conftest.$ac_ext <<_ACEOF
34726 /* confdefs.h.  */
34727 _ACEOF
34728 cat confdefs.h >>conftest.$ac_ext
34729 cat >>conftest.$ac_ext <<_ACEOF
34730 /* end confdefs.h.  */
34731 #include <sys/types.h>
34732 #include <sys/param.h>
34733
34734 int
34735 main ()
34736 {
34737 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
34738         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
34739  bogus endian macros
34740 #endif
34741
34742   ;
34743   return 0;
34744 }
34745 _ACEOF
34746 rm -f conftest.$ac_objext
34747 if { (ac_try="$ac_compile"
34748 case "(($ac_try" in
34749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750   *) ac_try_echo=$ac_try;;
34751 esac
34752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753   (eval "$ac_compile") 2>conftest.er1
34754   ac_status=$?
34755   grep -v '^ *+' conftest.er1 >conftest.err
34756   rm -f conftest.er1
34757   cat conftest.err >&5
34758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759   (exit $ac_status); } && {
34760          test -z "$ac_c_werror_flag" ||
34761          test ! -s conftest.err
34762        } && test -s conftest.$ac_objext; then
34763   # It does; now see whether it defined to BIG_ENDIAN or not.
34764 cat >conftest.$ac_ext <<_ACEOF
34765 /* confdefs.h.  */
34766 _ACEOF
34767 cat confdefs.h >>conftest.$ac_ext
34768 cat >>conftest.$ac_ext <<_ACEOF
34769 /* end confdefs.h.  */
34770 #include <sys/types.h>
34771 #include <sys/param.h>
34772
34773 int
34774 main ()
34775 {
34776 #if BYTE_ORDER != BIG_ENDIAN
34777  not big endian
34778 #endif
34779
34780   ;
34781   return 0;
34782 }
34783 _ACEOF
34784 rm -f conftest.$ac_objext
34785 if { (ac_try="$ac_compile"
34786 case "(($ac_try" in
34787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34788   *) ac_try_echo=$ac_try;;
34789 esac
34790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34791   (eval "$ac_compile") 2>conftest.er1
34792   ac_status=$?
34793   grep -v '^ *+' conftest.er1 >conftest.err
34794   rm -f conftest.er1
34795   cat conftest.err >&5
34796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797   (exit $ac_status); } && {
34798          test -z "$ac_c_werror_flag" ||
34799          test ! -s conftest.err
34800        } && test -s conftest.$ac_objext; then
34801   ac_cv_c_bigendian=yes
34802 else
34803   echo "$as_me: failed program was:" >&5
34804 sed 's/^/| /' conftest.$ac_ext >&5
34805
34806         ac_cv_c_bigendian=no
34807 fi
34808
34809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34810 else
34811   echo "$as_me: failed program was:" >&5
34812 sed 's/^/| /' conftest.$ac_ext >&5
34813
34814         # It does not; compile a test program.
34815 if test "$cross_compiling" = yes; then
34816   # try to guess the endianness by grepping values into an object file
34817   ac_cv_c_bigendian=unknown
34818   cat >conftest.$ac_ext <<_ACEOF
34819 /* confdefs.h.  */
34820 _ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h.  */
34824 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
34825 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
34826 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
34827 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
34828 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
34829 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
34830 int
34831 main ()
34832 {
34833  _ascii (); _ebcdic ();
34834   ;
34835   return 0;
34836 }
34837 _ACEOF
34838 rm -f conftest.$ac_objext
34839 if { (ac_try="$ac_compile"
34840 case "(($ac_try" in
34841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842   *) ac_try_echo=$ac_try;;
34843 esac
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845   (eval "$ac_compile") 2>conftest.er1
34846   ac_status=$?
34847   grep -v '^ *+' conftest.er1 >conftest.err
34848   rm -f conftest.er1
34849   cat conftest.err >&5
34850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851   (exit $ac_status); } && {
34852          test -z "$ac_c_werror_flag" ||
34853          test ! -s conftest.err
34854        } && test -s conftest.$ac_objext; then
34855   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
34856   ac_cv_c_bigendian=yes
34857 fi
34858 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
34859   if test "$ac_cv_c_bigendian" = unknown; then
34860     ac_cv_c_bigendian=no
34861   else
34862     # finding both strings is unlikely to happen, but who knows?
34863     ac_cv_c_bigendian=unknown
34864   fi
34865 fi
34866 else
34867   echo "$as_me: failed program was:" >&5
34868 sed 's/^/| /' conftest.$ac_ext >&5
34869
34870
34871 fi
34872
34873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34874 else
34875   cat >conftest.$ac_ext <<_ACEOF
34876 /* confdefs.h.  */
34877 _ACEOF
34878 cat confdefs.h >>conftest.$ac_ext
34879 cat >>conftest.$ac_ext <<_ACEOF
34880 /* end confdefs.h.  */
34881 $ac_includes_default
34882 int
34883 main ()
34884 {
34885
34886   /* Are we little or big endian?  From Harbison&Steele.  */
34887   union
34888   {
34889     long int l;
34890     char c[sizeof (long int)];
34891   } u;
34892   u.l = 1;
34893   return u.c[sizeof (long int) - 1] == 1;
34894
34895   ;
34896   return 0;
34897 }
34898 _ACEOF
34899 rm -f conftest$ac_exeext
34900 if { (ac_try="$ac_link"
34901 case "(($ac_try" in
34902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34903   *) ac_try_echo=$ac_try;;
34904 esac
34905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34906   (eval "$ac_link") 2>&5
34907   ac_status=$?
34908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34910   { (case "(($ac_try" in
34911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34912   *) ac_try_echo=$ac_try;;
34913 esac
34914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34915   (eval "$ac_try") 2>&5
34916   ac_status=$?
34917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34918   (exit $ac_status); }; }; then
34919   ac_cv_c_bigendian=no
34920 else
34921   echo "$as_me: program exited with status $ac_status" >&5
34922 echo "$as_me: failed program was:" >&5
34923 sed 's/^/| /' conftest.$ac_ext >&5
34924
34925 ( exit $ac_status )
34926 ac_cv_c_bigendian=yes
34927 fi
34928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34929 fi
34930
34931
34932 fi
34933
34934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34935 fi
34936 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
34937 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
34938 case $ac_cv_c_bigendian in
34939   yes)
34940
34941 cat >>confdefs.h <<\_ACEOF
34942 #define WORDS_BIGENDIAN 1
34943 _ACEOF
34944  ;;
34945   no)
34946      ;;
34947   *)
34948     { { echo "$as_me:$LINENO: error: unknown endianness
34949 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
34950 echo "$as_me: error: unknown endianness
34951 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
34952    { (exit 1); exit 1; }; } ;;
34953 esac
34954
34955
34956 { echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
34957 echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6; }
34958 if test "${ac_cv_maxpathlen+set}" = set; then
34959   echo $ECHO_N "(cached) $ECHO_C" >&6
34960 else
34961
34962 cat > conftest.$ac_ext <<EOF
34963 #ifdef STDC_HEADERS
34964 # include <stdlib.h>
34965 #endif
34966 #include <stdio.h>
34967 #include <sys/param.h>
34968 #ifndef MAXPATHLEN
34969 #define MAXPATHLEN 1024
34970 #endif
34971
34972 KDE_HELLO MAXPATHLEN
34973
34974 EOF
34975
34976 ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
34977
34978 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979   (eval $ac_try) 2>&5
34980   ac_status=$?
34981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982   (exit $ac_status); } && test -s conftest.out; then
34983     ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
34984 else
34985     ac_cv_maxpathlen=1024
34986 fi
34987
34988 rm conftest.*
34989
34990
34991 fi
34992
34993 { echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
34994 echo "${ECHO_T}$ac_cv_maxpathlen" >&6; }
34995
34996 cat >>confdefs.h <<_ACEOF
34997 #define KDEMAXPATHLEN $ac_cv_maxpathlen
34998 _ACEOF
34999
35000
35001
35002 ##AC_OUTPUT
35003 REQUIRED_SKIM_VERSION=1.3.0
35004 kde_libsuffix=`kde-config --libsuffix`
35005 test -z "$KDEDIR" && KDEDIR=`kde-config --prefix`
35006 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$KDEDIR/lib${kde_libsuffix}/pkgconfig
35007
35008 pkg_failed=no
35009 { echo "$as_me:$LINENO: checking for SKIM" >&5
35010 echo $ECHO_N "checking for SKIM... $ECHO_C" >&6; }
35011
35012 if test -n "$PKG_CONFIG"; then
35013     if test -n "$SKIM_CFLAGS"; then
35014         pkg_cv_SKIM_CFLAGS="$SKIM_CFLAGS"
35015     else
35016         if test -n "$PKG_CONFIG" && \
35017     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
35018   ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
35019   ac_status=$?
35020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021   (exit $ac_status); }; then
35022   pkg_cv_SKIM_CFLAGS=`$PKG_CONFIG --cflags "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35023 else
35024   pkg_failed=yes
35025 fi
35026     fi
35027 else
35028         pkg_failed=untried
35029 fi
35030 if test -n "$PKG_CONFIG"; then
35031     if test -n "$SKIM_LIBS"; then
35032         pkg_cv_SKIM_LIBS="$SKIM_LIBS"
35033     else
35034         if test -n "$PKG_CONFIG" && \
35035     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"skim >= \$REQUIRED_SKIM_VERSION\"") >&5
35036   ($PKG_CONFIG --exists --print-errors "skim >= $REQUIRED_SKIM_VERSION") 2>&5
35037   ac_status=$?
35038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039   (exit $ac_status); }; then
35040   pkg_cv_SKIM_LIBS=`$PKG_CONFIG --libs "skim >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35041 else
35042   pkg_failed=yes
35043 fi
35044     fi
35045 else
35046         pkg_failed=untried
35047 fi
35048
35049
35050
35051 if test $pkg_failed = yes; then
35052
35053 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35054         _pkg_short_errors_supported=yes
35055 else
35056         _pkg_short_errors_supported=no
35057 fi
35058         if test $_pkg_short_errors_supported = yes; then
35059                 SKIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
35060         else
35061                 SKIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "skim >= $REQUIRED_SKIM_VERSION"`
35062         fi
35063         # Put the nasty error message in config.log where it belongs
35064         echo "$SKIM_PKG_ERRORS" >&5
35065
35066         { echo "$as_me:$LINENO: result: no" >&5
35067 echo "${ECHO_T}no" >&6; }
35068                 HAS_SKIM=no
35069 elif test $pkg_failed = untried; then
35070         HAS_SKIM=no
35071 else
35072         SKIM_CFLAGS=$pkg_cv_SKIM_CFLAGS
35073         SKIM_LIBS=$pkg_cv_SKIM_LIBS
35074         { echo "$as_me:$LINENO: result: yes" >&5
35075 echo "${ECHO_T}yes" >&6; }
35076         HAS_SKIM=yes
35077 fi
35078
35079 if test "x$HAS_SKIM" = "xyes"; then
35080
35081
35082 pkg_failed=no
35083 { echo "$as_me:$LINENO: checking for SCIM_KDEUTILS" >&5
35084 echo $ECHO_N "checking for SCIM_KDEUTILS... $ECHO_C" >&6; }
35085
35086 if test -n "$PKG_CONFIG"; then
35087     if test -n "$SCIM_KDEUTILS_CFLAGS"; then
35088         pkg_cv_SCIM_KDEUTILS_CFLAGS="$SCIM_KDEUTILS_CFLAGS"
35089     else
35090         if test -n "$PKG_CONFIG" && \
35091     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
35092   ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
35093   ac_status=$?
35094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095   (exit $ac_status); }; then
35096   pkg_cv_SCIM_KDEUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35097 else
35098   pkg_failed=yes
35099 fi
35100     fi
35101 else
35102         pkg_failed=untried
35103 fi
35104 if test -n "$PKG_CONFIG"; then
35105     if test -n "$SCIM_KDEUTILS_LIBS"; then
35106         pkg_cv_SCIM_KDEUTILS_LIBS="$SCIM_KDEUTILS_LIBS"
35107     else
35108         if test -n "$PKG_CONFIG" && \
35109     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"scim_kdeutils >= \$REQUIRED_SKIM_VERSION\"") >&5
35110   ($PKG_CONFIG --exists --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION") 2>&5
35111   ac_status=$?
35112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35113   (exit $ac_status); }; then
35114   pkg_cv_SCIM_KDEUTILS_LIBS=`$PKG_CONFIG --libs "scim_kdeutils >= $REQUIRED_SKIM_VERSION" 2>/dev/null`
35115 else
35116   pkg_failed=yes
35117 fi
35118     fi
35119 else
35120         pkg_failed=untried
35121 fi
35122
35123
35124
35125 if test $pkg_failed = yes; then
35126
35127 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
35128         _pkg_short_errors_supported=yes
35129 else
35130         _pkg_short_errors_supported=no
35131 fi
35132         if test $_pkg_short_errors_supported = yes; then
35133                 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
35134         else
35135                 SCIM_KDEUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim_kdeutils >= $REQUIRED_SKIM_VERSION"`
35136         fi
35137         # Put the nasty error message in config.log where it belongs
35138         echo "$SCIM_KDEUTILS_PKG_ERRORS" >&5
35139
35140         { echo "$as_me:$LINENO: result: no" >&5
35141 echo "${ECHO_T}no" >&6; }
35142                 HAS_KDEUTILS=no
35143 elif test $pkg_failed = untried; then
35144         HAS_KDEUTILS=no
35145 else
35146         SCIM_KDEUTILS_CFLAGS=$pkg_cv_SCIM_KDEUTILS_CFLAGS
35147         SCIM_KDEUTILS_LIBS=$pkg_cv_SCIM_KDEUTILS_LIBS
35148         { echo "$as_me:$LINENO: result: yes" >&5
35149 echo "${ECHO_T}yes" >&6; }
35150         HAS_KDEUTILS=yes
35151 fi
35152
35153   if test "x$HAS_KDEUTILS" = "xyes"; then
35154         SKIM_VERSION=`$PKG_CONFIG --modversion skim`
35155         SCIM_PINYIN_ENABLE_SKIM_SUPPORT=1
35156         skim_prefix=`$PKG_CONFIG --variable=prefix skim`
35157         skim_libdir=`$PKG_CONFIG --variable=libdir skim`
35158
35159
35160         ##we need to overwrite prefix with the same prefix of which skim was installed to
35161         prefix=$skim_prefix
35162         libdir=$skim_libdir
35163         ##this is to get rid of the last warning
35164         given_prefix=$skim_prefix
35165   fi
35166 else
35167   { { echo "$as_me:$LINENO: error: skim library is not available or the version is too old!" >&5
35168 echo "$as_me: error: skim library is not available or the version is too old!" >&2;}
35169    { (exit 1); exit 1; }; }
35170 fi
35171
35172
35173 DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
35174 TOPSUBDIRS=""
35175
35176 if test ! -s $srcdir/subdirs; then
35177     files=`cd $srcdir && ls -1`
35178   dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
35179   for i in $dirs; do
35180     echo $i >> $srcdir/subdirs
35181   done
35182 fi
35183
35184 ac_topsubdirs=
35185 if test -s $srcdir/inst-apps; then
35186   ac_topsubdirs="`cat $srcdir/inst-apps`"
35187 elif test -s $srcdir/subdirs; then
35188   ac_topsubdirs="`cat $srcdir/subdirs`"
35189 fi
35190
35191 for i in $ac_topsubdirs; do
35192   { echo "$as_me:$LINENO: checking if $i should be compiled" >&5
35193 echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6; }
35194   if test -d $srcdir/$i; then
35195     install_it="yes"
35196     for j in $DO_NOT_COMPILE; do
35197       if test $i = $j; then
35198         install_it="no"
35199       fi
35200     done
35201   else
35202     install_it="no"
35203   fi
35204   { echo "$as_me:$LINENO: result: $install_it" >&5
35205 echo "${ECHO_T}$install_it" >&6; }
35206   vari=`echo $i | sed -e 's,[-+.@],_,g'`
35207   if test $install_it = "yes"; then
35208     TOPSUBDIRS="$TOPSUBDIRS $i"
35209     eval "$vari""_SUBDIR_included=yes"
35210   else
35211     eval "$vari""_SUBDIR_included=no"
35212   fi
35213 done
35214
35215
35216
35217 ac_config_files="$ac_config_files Makefile"
35218
35219 ac_config_files="$ac_config_files icons/Makefile"
35220
35221 ac_config_files="$ac_config_files po/Makefile"
35222
35223 ac_config_files="$ac_config_files setupui/Makefile"
35224
35225 cat >confcache <<\_ACEOF
35226 # This file is a shell script that caches the results of configure
35227 # tests run on this system so they can be shared between configure
35228 # scripts and configure runs, see configure's option --config-cache.
35229 # It is not useful on other systems.  If it contains results you don't
35230 # want to keep, you may remove or edit it.
35231 #
35232 # config.status only pays attention to the cache file if you give it
35233 # the --recheck option to rerun configure.
35234 #
35235 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35236 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35237 # following values.
35238
35239 _ACEOF
35240
35241 # The following way of writing the cache mishandles newlines in values,
35242 # but we know of no workaround that is simple, portable, and efficient.
35243 # So, we kill variables containing newlines.
35244 # Ultrix sh set writes to stderr and can't be redirected directly,
35245 # and sets the high bit in the cache file unless we assign to the vars.
35246 (
35247   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35248     eval ac_val=\$$ac_var
35249     case $ac_val in #(
35250     *${as_nl}*)
35251       case $ac_var in #(
35252       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35253 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35254       esac
35255       case $ac_var in #(
35256       _ | IFS | as_nl) ;; #(
35257       *) $as_unset $ac_var ;;
35258       esac ;;
35259     esac
35260   done
35261
35262   (set) 2>&1 |
35263     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35264     *${as_nl}ac_space=\ *)
35265       # `set' does not quote correctly, so add quotes (double-quote
35266       # substitution turns \\\\ into \\, and sed turns \\ into \).
35267       sed -n \
35268         "s/'/'\\\\''/g;
35269           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35270       ;; #(
35271     *)
35272       # `set' quotes correctly as required by POSIX, so do not add quotes.
35273       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35274       ;;
35275     esac |
35276     sort
35277 ) |
35278   sed '
35279      /^ac_cv_env_/b end
35280      t clear
35281      :clear
35282      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35283      t end
35284      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35285      :end' >>confcache
35286 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35287   if test -w "$cache_file"; then
35288     test "x$cache_file" != "x/dev/null" &&
35289       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35290 echo "$as_me: updating cache $cache_file" >&6;}
35291     cat confcache >$cache_file
35292   else
35293     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35294 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35295   fi
35296 fi
35297 rm -f confcache
35298
35299 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35300 # Let make expand exec_prefix.
35301 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35302
35303 DEFS=-DHAVE_CONFIG_H
35304
35305 ac_libobjs=
35306 ac_ltlibobjs=
35307 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35308   # 1. Remove the extension, and $U if already installed.
35309   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35310   ac_i=`echo "$ac_i" | sed "$ac_script"`
35311   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35312   #    will be set to the directory where LIBOBJS objects are built.
35313   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35314   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
35315 done
35316 LIBOBJS=$ac_libobjs
35317
35318 LTLIBOBJS=$ac_ltlibobjs
35319
35320
35321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35322   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
35323 Usually this means the macro was only invoked conditionally." >&5
35324 echo "$as_me: error: conditional \"AMDEP\" was never defined.
35325 Usually this means the macro was only invoked conditionally." >&2;}
35326    { (exit 1); exit 1; }; }
35327 fi
35328 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35329   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
35330 Usually this means the macro was only invoked conditionally." >&5
35331 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
35332 Usually this means the macro was only invoked conditionally." >&2;}
35333    { (exit 1); exit 1; }; }
35334 fi
35335 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35336   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
35337 Usually this means the macro was only invoked conditionally." >&5
35338 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
35339 Usually this means the macro was only invoked conditionally." >&2;}
35340    { (exit 1); exit 1; }; }
35341 fi
35342 if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
35343   { { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
35344 Usually this means the macro was only invoked conditionally." >&5
35345 echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
35346 Usually this means the macro was only invoked conditionally." >&2;}
35347    { (exit 1); exit 1; }; }
35348 fi
35349 if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
35350   { { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
35351 Usually this means the macro was only invoked conditionally." >&5
35352 echo "$as_me: error: conditional \"include_x11\" was never defined.
35353 Usually this means the macro was only invoked conditionally." >&2;}
35354    { (exit 1); exit 1; }; }
35355 fi
35356 if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
35357   { { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
35358 Usually this means the macro was only invoked conditionally." >&5
35359 echo "$as_me: error: conditional \"include_ARTS\" was never defined.
35360 Usually this means the macro was only invoked conditionally." >&2;}
35361    { (exit 1); exit 1; }; }
35362 fi
35363
35364 : ${CONFIG_STATUS=./config.status}
35365 ac_clean_files_save=$ac_clean_files
35366 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35367 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35368 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35369 cat >$CONFIG_STATUS <<_ACEOF
35370 #! $SHELL
35371 # Generated by $as_me.
35372 # Run this file to recreate the current configuration.
35373 # Compiler output produced by configure, useful for debugging
35374 # configure, is in config.log if it exists.
35375
35376 debug=false
35377 ac_cs_recheck=false
35378 ac_cs_silent=false
35379 SHELL=\${CONFIG_SHELL-$SHELL}
35380 _ACEOF
35381
35382 cat >>$CONFIG_STATUS <<\_ACEOF
35383 ## --------------------- ##
35384 ## M4sh Initialization.  ##
35385 ## --------------------- ##
35386
35387 # Be more Bourne compatible
35388 DUALCASE=1; export DUALCASE # for MKS sh
35389 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35390   emulate sh
35391   NULLCMD=:
35392   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35393   # is contrary to our usage.  Disable this feature.
35394   alias -g '${1+"$@"}'='"$@"'
35395   setopt NO_GLOB_SUBST
35396 else
35397   case `(set -o) 2>/dev/null` in
35398   *posix*) set -o posix ;;
35399 esac
35400
35401 fi
35402
35403
35404
35405
35406 # PATH needs CR
35407 # Avoid depending upon Character Ranges.
35408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35411 as_cr_digits='0123456789'
35412 as_cr_alnum=$as_cr_Letters$as_cr_digits
35413
35414 # The user is always right.
35415 if test "${PATH_SEPARATOR+set}" != set; then
35416   echo "#! /bin/sh" >conf$$.sh
35417   echo  "exit 0"   >>conf$$.sh
35418   chmod +x conf$$.sh
35419   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35420     PATH_SEPARATOR=';'
35421   else
35422     PATH_SEPARATOR=:
35423   fi
35424   rm -f conf$$.sh
35425 fi
35426
35427 # Support unset when possible.
35428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35429   as_unset=unset
35430 else
35431   as_unset=false
35432 fi
35433
35434
35435 # IFS
35436 # We need space, tab and new line, in precisely that order.  Quoting is
35437 # there to prevent editors from complaining about space-tab.
35438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35439 # splitting by setting IFS to empty value.)
35440 as_nl='
35441 '
35442 IFS=" ""        $as_nl"
35443
35444 # Find who we are.  Look in the path if we contain no directory separator.
35445 case $0 in
35446   *[\\/]* ) as_myself=$0 ;;
35447   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35448 for as_dir in $PATH
35449 do
35450   IFS=$as_save_IFS
35451   test -z "$as_dir" && as_dir=.
35452   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35453 done
35454 IFS=$as_save_IFS
35455
35456      ;;
35457 esac
35458 # We did not find ourselves, most probably we were run as `sh COMMAND'
35459 # in which case we are not to be found in the path.
35460 if test "x$as_myself" = x; then
35461   as_myself=$0
35462 fi
35463 if test ! -f "$as_myself"; then
35464   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35465   { (exit 1); exit 1; }
35466 fi
35467
35468 # Work around bugs in pre-3.0 UWIN ksh.
35469 for as_var in ENV MAIL MAILPATH
35470 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35471 done
35472 PS1='$ '
35473 PS2='> '
35474 PS4='+ '
35475
35476 # NLS nuisances.
35477 for as_var in \
35478   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35479   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35480   LC_TELEPHONE LC_TIME
35481 do
35482   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35483     eval $as_var=C; export $as_var
35484   else
35485     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35486   fi
35487 done
35488
35489 # Required to use basename.
35490 if expr a : '\(a\)' >/dev/null 2>&1 &&
35491    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35492   as_expr=expr
35493 else
35494   as_expr=false
35495 fi
35496
35497 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35498   as_basename=basename
35499 else
35500   as_basename=false
35501 fi
35502
35503
35504 # Name of the executable.
35505 as_me=`$as_basename -- "$0" ||
35506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35507          X"$0" : 'X\(//\)$' \| \
35508          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35509 echo X/"$0" |
35510     sed '/^.*\/\([^/][^/]*\)\/*$/{
35511             s//\1/
35512             q
35513           }
35514           /^X\/\(\/\/\)$/{
35515             s//\1/
35516             q
35517           }
35518           /^X\/\(\/\).*/{
35519             s//\1/
35520             q
35521           }
35522           s/.*/./; q'`
35523
35524 # CDPATH.
35525 $as_unset CDPATH
35526
35527
35528
35529   as_lineno_1=$LINENO
35530   as_lineno_2=$LINENO
35531   test "x$as_lineno_1" != "x$as_lineno_2" &&
35532   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
35533
35534   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35535   # uniformly replaced by the line number.  The first 'sed' inserts a
35536   # line-number line after each line using $LINENO; the second 'sed'
35537   # does the real work.  The second script uses 'N' to pair each
35538   # line-number line with the line containing $LINENO, and appends
35539   # trailing '-' during substitution so that $LINENO is not a special
35540   # case at line end.
35541   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35542   # scripts with optimization help from Paolo Bonzini.  Blame Lee
35543   # E. McMahon (1931-1989) for sed's syntax.  :-)
35544   sed -n '
35545     p
35546     /[$]LINENO/=
35547   ' <$as_myself |
35548     sed '
35549       s/[$]LINENO.*/&-/
35550       t lineno
35551       b
35552       :lineno
35553       N
35554       :loop
35555       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
35556       t loop
35557       s/-\n.*//
35558     ' >$as_me.lineno &&
35559   chmod +x "$as_me.lineno" ||
35560     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
35561    { (exit 1); exit 1; }; }
35562
35563   # Don't try to exec as it changes $[0], causing all sort of problems
35564   # (the dirname of $[0] is not the place where we might find the
35565   # original and so on.  Autoconf is especially sensitive to this).
35566   . "./$as_me.lineno"
35567   # Exit status is that of the last command.
35568   exit
35569 }
35570
35571
35572 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35573   as_dirname=dirname
35574 else
35575   as_dirname=false
35576 fi
35577
35578 ECHO_C= ECHO_N= ECHO_T=
35579 case `echo -n x` in
35580 -n*)
35581   case `echo 'x\c'` in
35582   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35583   *)   ECHO_C='\c';;
35584   esac;;
35585 *)
35586   ECHO_N='-n';;
35587 esac
35588
35589 if expr a : '\(a\)' >/dev/null 2>&1 &&
35590    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35591   as_expr=expr
35592 else
35593   as_expr=false
35594 fi
35595
35596 rm -f conf$$ conf$$.exe conf$$.file
35597 if test -d conf$$.dir; then
35598   rm -f conf$$.dir/conf$$.file
35599 else
35600   rm -f conf$$.dir
35601   mkdir conf$$.dir
35602 fi
35603 echo >conf$$.file
35604 if ln -s conf$$.file conf$$ 2>/dev/null; then
35605   as_ln_s='ln -s'
35606   # ... but there are two gotchas:
35607   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35608   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35609   # In both cases, we have to default to `cp -p'.
35610   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35611     as_ln_s='cp -p'
35612 elif ln conf$$.file conf$$ 2>/dev/null; then
35613   as_ln_s=ln
35614 else
35615   as_ln_s='cp -p'
35616 fi
35617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35618 rmdir conf$$.dir 2>/dev/null
35619
35620 if mkdir -p . 2>/dev/null; then
35621   as_mkdir_p=:
35622 else
35623   test -d ./-p && rmdir ./-p
35624   as_mkdir_p=false
35625 fi
35626
35627 if test -x / >/dev/null 2>&1; then
35628   as_test_x='test -x'
35629 else
35630   if ls -dL / >/dev/null 2>&1; then
35631     as_ls_L_option=L
35632   else
35633     as_ls_L_option=
35634   fi
35635   as_test_x='
35636     eval sh -c '\''
35637       if test -d "$1"; then
35638         test -d "$1/.";
35639       else
35640         case $1 in
35641         -*)set "./$1";;
35642         esac;
35643         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
35644         ???[sx]*):;;*)false;;esac;fi
35645     '\'' sh
35646   '
35647 fi
35648 as_executable_p=$as_test_x
35649
35650 # Sed expression to map a string onto a valid CPP name.
35651 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35652
35653 # Sed expression to map a string onto a valid variable name.
35654 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35655
35656
35657 exec 6>&1
35658
35659 # Save the log message, to keep $[0] and so on meaningful, and to
35660 # report actual input values of CONFIG_FILES etc. instead of their
35661 # values after options handling.
35662 ac_log="
35663 This file was extended by $as_me, which was
35664 generated by GNU Autoconf 2.61.  Invocation command line was
35665
35666   CONFIG_FILES    = $CONFIG_FILES
35667   CONFIG_HEADERS  = $CONFIG_HEADERS
35668   CONFIG_LINKS    = $CONFIG_LINKS
35669   CONFIG_COMMANDS = $CONFIG_COMMANDS
35670   $ $0 $@
35671
35672 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35673 "
35674
35675 _ACEOF
35676
35677 cat >>$CONFIG_STATUS <<_ACEOF
35678 # Files that config.status was made for.
35679 config_files="$ac_config_files"
35680 config_headers="$ac_config_headers"
35681 config_commands="$ac_config_commands"
35682
35683 _ACEOF
35684
35685 cat >>$CONFIG_STATUS <<\_ACEOF
35686 ac_cs_usage="\
35687 \`$as_me' instantiates files from templates according to the
35688 current configuration.
35689
35690 Usage: $0 [OPTIONS] [FILE]...
35691
35692   -h, --help       print this help, then exit
35693   -V, --version    print version number and configuration settings, then exit
35694   -q, --quiet      do not print progress messages
35695   -d, --debug      don't remove temporary files
35696       --recheck    update $as_me by reconfiguring in the same conditions
35697   --file=FILE[:TEMPLATE]
35698                    instantiate the configuration file FILE
35699   --header=FILE[:TEMPLATE]
35700                    instantiate the configuration header FILE
35701
35702 Configuration files:
35703 $config_files
35704
35705 Configuration headers:
35706 $config_headers
35707
35708 Configuration commands:
35709 $config_commands
35710
35711 Report bugs to <bug-autoconf@gnu.org>."
35712
35713 _ACEOF
35714 cat >>$CONFIG_STATUS <<_ACEOF
35715 ac_cs_version="\\
35716 config.status
35717 configured by $0, generated by GNU Autoconf 2.61,
35718   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
35719
35720 Copyright (C) 2006 Free Software Foundation, Inc.
35721 This config.status script is free software; the Free Software Foundation
35722 gives unlimited permission to copy, distribute and modify it."
35723
35724 ac_pwd='$ac_pwd'
35725 srcdir='$srcdir'
35726 INSTALL='$INSTALL'
35727 _ACEOF
35728
35729 cat >>$CONFIG_STATUS <<\_ACEOF
35730 # If no file are specified by the user, then we need to provide default
35731 # value.  By we need to know if files were specified by the user.
35732 ac_need_defaults=:
35733 while test $# != 0
35734 do
35735   case $1 in
35736   --*=*)
35737     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35738     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35739     ac_shift=:
35740     ;;
35741   *)
35742     ac_option=$1
35743     ac_optarg=$2
35744     ac_shift=shift
35745     ;;
35746   esac
35747
35748   case $ac_option in
35749   # Handling of the options.
35750   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35751     ac_cs_recheck=: ;;
35752   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35753     echo "$ac_cs_version"; exit ;;
35754   --debug | --debu | --deb | --de | --d | -d )
35755     debug=: ;;
35756   --file | --fil | --fi | --f )
35757     $ac_shift
35758     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35759     ac_need_defaults=false;;
35760   --header | --heade | --head | --hea )
35761     $ac_shift
35762     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35763     ac_need_defaults=false;;
35764   --he | --h)
35765     # Conflict between --help and --header
35766     { echo "$as_me: error: ambiguous option: $1
35767 Try \`$0 --help' for more information." >&2
35768    { (exit 1); exit 1; }; };;
35769   --help | --hel | -h )
35770     echo "$ac_cs_usage"; exit ;;
35771   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35772   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35773     ac_cs_silent=: ;;
35774
35775   # This is an error.
35776   -*) { echo "$as_me: error: unrecognized option: $1
35777 Try \`$0 --help' for more information." >&2
35778    { (exit 1); exit 1; }; } ;;
35779
35780   *) ac_config_targets="$ac_config_targets $1"
35781      ac_need_defaults=false ;;
35782
35783   esac
35784   shift
35785 done
35786
35787 ac_configure_extra_args=
35788
35789 if $ac_cs_silent; then
35790   exec 6>/dev/null
35791   ac_configure_extra_args="$ac_configure_extra_args --silent"
35792 fi
35793
35794 _ACEOF
35795 cat >>$CONFIG_STATUS <<_ACEOF
35796 if \$ac_cs_recheck; then
35797   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35798   CONFIG_SHELL=$SHELL
35799   export CONFIG_SHELL
35800   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35801 fi
35802
35803 _ACEOF
35804 cat >>$CONFIG_STATUS <<\_ACEOF
35805 exec 5>>config.log
35806 {
35807   echo
35808   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35809 ## Running $as_me. ##
35810 _ASBOX
35811   echo "$ac_log"
35812 } >&5
35813
35814 _ACEOF
35815 cat >>$CONFIG_STATUS <<_ACEOF
35816 #
35817 # INIT-COMMANDS
35818 #
35819 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35820 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
35821     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
35822     # from automake < 1.5.
35823     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
35824     # Capture the value of LINGUAS because we need it to compute CATALOGS.
35825     LINGUAS="${LINGUAS-%UNSET%}"
35826
35827
35828 _ACEOF
35829
35830 cat >>$CONFIG_STATUS <<\_ACEOF
35831
35832 # Handling of arguments.
35833 for ac_config_target in $ac_config_targets
35834 do
35835   case $ac_config_target in
35836     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
35837     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35838     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
35839     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35840     "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
35841     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
35842     "setupui/Makefile") CONFIG_FILES="$CONFIG_FILES setupui/Makefile" ;;
35843
35844   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35845 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35846    { (exit 1); exit 1; }; };;
35847   esac
35848 done
35849
35850
35851 # If the user did not use the arguments to specify the items to instantiate,
35852 # then the envvar interface is used.  Set only those that are not.
35853 # We use the long form for the default assignment because of an extremely
35854 # bizarre bug on SunOS 4.1.3.
35855 if $ac_need_defaults; then
35856   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35857   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35858   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35859 fi
35860
35861 # Have a temporary directory for convenience.  Make it in the build tree
35862 # simply because there is no reason against having it here, and in addition,
35863 # creating and moving files from /tmp can sometimes cause problems.
35864 # Hook for its removal unless debugging.
35865 # Note that there is a small window in which the directory will not be cleaned:
35866 # after its creation but before its name has been assigned to `$tmp'.
35867 $debug ||
35868 {
35869   tmp=
35870   trap 'exit_status=$?
35871   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35872 ' 0
35873   trap '{ (exit 1); exit 1; }' 1 2 13 15
35874 }
35875 # Create a (secure) tmp directory for tmp files.
35876
35877 {
35878   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35879   test -n "$tmp" && test -d "$tmp"
35880 }  ||
35881 {
35882   tmp=./conf$$-$RANDOM
35883   (umask 077 && mkdir "$tmp")
35884 } ||
35885 {
35886    echo "$me: cannot create a temporary directory in ." >&2
35887    { (exit 1); exit 1; }
35888 }
35889
35890 #
35891 # Set up the sed scripts for CONFIG_FILES section.
35892 #
35893
35894 # No need to generate the scripts if there are no CONFIG_FILES.
35895 # This happens for instance when ./config.status config.h
35896 if test -n "$CONFIG_FILES"; then
35897
35898 _ACEOF
35899
35900
35901
35902 ac_delim='%!_!# '
35903 for ac_last_try in false false false false false :; do
35904   cat >conf$$subs.sed <<_ACEOF
35905 SHELL!$SHELL$ac_delim
35906 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35907 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35908 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35909 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35910 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35911 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35912 exec_prefix!$exec_prefix$ac_delim
35913 prefix!$prefix$ac_delim
35914 program_transform_name!$program_transform_name$ac_delim
35915 bindir!$bindir$ac_delim
35916 sbindir!$sbindir$ac_delim
35917 libexecdir!$libexecdir$ac_delim
35918 datarootdir!$datarootdir$ac_delim
35919 datadir!$datadir$ac_delim
35920 sysconfdir!$sysconfdir$ac_delim
35921 sharedstatedir!$sharedstatedir$ac_delim
35922 localstatedir!$localstatedir$ac_delim
35923 includedir!$includedir$ac_delim
35924 oldincludedir!$oldincludedir$ac_delim
35925 docdir!$docdir$ac_delim
35926 infodir!$infodir$ac_delim
35927 htmldir!$htmldir$ac_delim
35928 dvidir!$dvidir$ac_delim
35929 pdfdir!$pdfdir$ac_delim
35930 psdir!$psdir$ac_delim
35931 libdir!$libdir$ac_delim
35932 localedir!$localedir$ac_delim
35933 mandir!$mandir$ac_delim
35934 DEFS!$DEFS$ac_delim
35935 ECHO_C!$ECHO_C$ac_delim
35936 ECHO_N!$ECHO_N$ac_delim
35937 ECHO_T!$ECHO_T$ac_delim
35938 LIBS!$LIBS$ac_delim
35939 build_alias!$build_alias$ac_delim
35940 host_alias!$host_alias$ac_delim
35941 target_alias!$target_alias$ac_delim
35942 build!$build$ac_delim
35943 build_cpu!$build_cpu$ac_delim
35944 build_vendor!$build_vendor$ac_delim
35945 build_os!$build_os$ac_delim
35946 host!$host$ac_delim
35947 host_cpu!$host_cpu$ac_delim
35948 host_vendor!$host_vendor$ac_delim
35949 host_os!$host_os$ac_delim
35950 target!$target$ac_delim
35951 target_cpu!$target_cpu$ac_delim
35952 target_vendor!$target_vendor$ac_delim
35953 target_os!$target_os$ac_delim
35954 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35955 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35956 INSTALL_DATA!$INSTALL_DATA$ac_delim
35957 CYGPATH_W!$CYGPATH_W$ac_delim
35958 PACKAGE!$PACKAGE$ac_delim
35959 VERSION!$VERSION$ac_delim
35960 ACLOCAL!$ACLOCAL$ac_delim
35961 AUTOCONF!$AUTOCONF$ac_delim
35962 AUTOMAKE!$AUTOMAKE$ac_delim
35963 AUTOHEADER!$AUTOHEADER$ac_delim
35964 MAKEINFO!$MAKEINFO$ac_delim
35965 install_sh!$install_sh$ac_delim
35966 STRIP!$STRIP$ac_delim
35967 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
35968 mkdir_p!$mkdir_p$ac_delim
35969 AWK!$AWK$ac_delim
35970 SET_MAKE!$SET_MAKE$ac_delim
35971 am__leading_dot!$am__leading_dot$ac_delim
35972 AMTAR!$AMTAR$ac_delim
35973 am__tar!$am__tar$ac_delim
35974 am__untar!$am__untar$ac_delim
35975 KDECONFIG!$KDECONFIG$ac_delim
35976 kde_libs_prefix!$kde_libs_prefix$ac_delim
35977 kde_libs_htmldir!$kde_libs_htmldir$ac_delim
35978 CONF_FILES!$CONF_FILES$ac_delim
35979 CC!$CC$ac_delim
35980 CFLAGS!$CFLAGS$ac_delim
35981 LDFLAGS!$LDFLAGS$ac_delim
35982 CPPFLAGS!$CPPFLAGS$ac_delim
35983 ac_ct_CC!$ac_ct_CC$ac_delim
35984 EXEEXT!$EXEEXT$ac_delim
35985 OBJEXT!$OBJEXT$ac_delim
35986 DEPDIR!$DEPDIR$ac_delim
35987 am__include!$am__include$ac_delim
35988 am__quote!$am__quote$ac_delim
35989 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
35990 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
35991 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
35992 CCDEPMODE!$CCDEPMODE$ac_delim
35993 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
35994 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
35995 CPP!$CPP$ac_delim
35996 CXX!$CXX$ac_delim
35997 CXXFLAGS!$CXXFLAGS$ac_delim
35998 ac_ct_CXX!$ac_ct_CXX$ac_delim
35999 CXXDEPMODE!$CXXDEPMODE$ac_delim
36000 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
36001 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
36002 _ACEOF
36003
36004   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36005     break
36006   elif $ac_last_try; then
36007     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36008 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36009    { (exit 1); exit 1; }; }
36010   else
36011     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36012   fi
36013 done
36014
36015 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36016 if test -n "$ac_eof"; then
36017   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36018   ac_eof=`expr $ac_eof + 1`
36019 fi
36020
36021 cat >>$CONFIG_STATUS <<_ACEOF
36022 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36023 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36024 _ACEOF
36025 sed '
36026 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36027 s/^/s,@/; s/!/@,|#_!!_#|/
36028 :n
36029 t n
36030 s/'"$ac_delim"'$/,g/; t
36031 s/$/\\/; p
36032 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36033 ' >>$CONFIG_STATUS <conf$$subs.sed
36034 rm -f conf$$subs.sed
36035 cat >>$CONFIG_STATUS <<_ACEOF
36036 CEOF$ac_eof
36037 _ACEOF
36038
36039
36040 ac_delim='%!_!# '
36041 for ac_last_try in false false false false false :; do
36042   cat >conf$$subs.sed <<_ACEOF
36043 WOVERLOADED_VIRTUAL!$WOVERLOADED_VIRTUAL$ac_delim
36044 HAVE_GCC_VISIBILITY!$HAVE_GCC_VISIBILITY$ac_delim
36045 unsermake_enable_pch_TRUE!$unsermake_enable_pch_TRUE$ac_delim
36046 unsermake_enable_pch_FALSE!$unsermake_enable_pch_FALSE$ac_delim
36047 USE_EXCEPTIONS!$USE_EXCEPTIONS$ac_delim
36048 USE_RTTI!$USE_RTTI$ac_delim
36049 CXXCPP!$CXXCPP$ac_delim
36050 NOOPT_CXXFLAGS!$NOOPT_CXXFLAGS$ac_delim
36051 NOOPT_CFLAGS!$NOOPT_CFLAGS$ac_delim
36052 ENABLE_PERMISSIVE_FLAG!$ENABLE_PERMISSIVE_FLAG$ac_delim
36053 LDFLAGS_AS_NEEDED!$LDFLAGS_AS_NEEDED$ac_delim
36054 LDFLAGS_NEW_DTAGS!$LDFLAGS_NEW_DTAGS$ac_delim
36055 KDE_USE_FINAL_TRUE!$KDE_USE_FINAL_TRUE$ac_delim
36056 KDE_USE_FINAL_FALSE!$KDE_USE_FINAL_FALSE$ac_delim
36057 KDE_USE_CLOSURE_TRUE!$KDE_USE_CLOSURE_TRUE$ac_delim
36058 KDE_USE_CLOSURE_FALSE!$KDE_USE_CLOSURE_FALSE$ac_delim
36059 KDE_NO_UNDEFINED!$KDE_NO_UNDEFINED$ac_delim
36060 KDE_USE_NMCHECK_TRUE!$KDE_USE_NMCHECK_TRUE$ac_delim
36061 KDE_USE_NMCHECK_FALSE!$KDE_USE_NMCHECK_FALSE$ac_delim
36062 GREP!$GREP$ac_delim
36063 EGREP!$EGREP$ac_delim
36064 LN_S!$LN_S$ac_delim
36065 ECHO!$ECHO$ac_delim
36066 AR!$AR$ac_delim
36067 RANLIB!$RANLIB$ac_delim
36068 F77!$F77$ac_delim
36069 FFLAGS!$FFLAGS$ac_delim
36070 ac_ct_F77!$ac_ct_F77$ac_delim
36071 LIBTOOL!$LIBTOOL$ac_delim
36072 KDE_PLUGIN!$KDE_PLUGIN$ac_delim
36073 MSGFMT!$MSGFMT$ac_delim
36074 GMSGFMT!$GMSGFMT$ac_delim
36075 XGETTEXT!$XGETTEXT$ac_delim
36076 LIBUTIL!$LIBUTIL$ac_delim
36077 LIBCOMPAT!$LIBCOMPAT$ac_delim
36078 LIBCRYPT!$LIBCRYPT$ac_delim
36079 LIBRESOLV!$LIBRESOLV$ac_delim
36080 LIB_POLL!$LIB_POLL$ac_delim
36081 FRAMEWORK_COREAUDIO!$FRAMEWORK_COREAUDIO$ac_delim
36082 LIBSOCKET!$LIBSOCKET$ac_delim
36083 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
36084 LIBUCB!$LIBUCB$ac_delim
36085 LIBDL!$LIBDL$ac_delim
36086 include_x11_TRUE!$include_x11_TRUE$ac_delim
36087 include_x11_FALSE!$include_x11_FALSE$ac_delim
36088 XMKMF!$XMKMF$ac_delim
36089 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
36090 LIB_X11!$LIB_X11$ac_delim
36091 LIB_XRENDER!$LIB_XRENDER$ac_delim
36092 LIBSM!$LIBSM$ac_delim
36093 X_INCLUDES!$X_INCLUDES$ac_delim
36094 X_LDFLAGS!$X_LDFLAGS$ac_delim
36095 x_includes!$x_includes$ac_delim
36096 x_libraries!$x_libraries$ac_delim
36097 QTE_NORTTI!$QTE_NORTTI$ac_delim
36098 LIB_XEXT!$LIB_XEXT$ac_delim
36099 LIBPTHREAD!$LIBPTHREAD$ac_delim
36100 USE_THREADS!$USE_THREADS$ac_delim
36101 KDE_MT_LDFLAGS!$KDE_MT_LDFLAGS$ac_delim
36102 KDE_MT_LIBS!$KDE_MT_LIBS$ac_delim
36103 USER_INCLUDES!$USER_INCLUDES$ac_delim
36104 USER_LDFLAGS!$USER_LDFLAGS$ac_delim
36105 LIBZ!$LIBZ$ac_delim
36106 LIBPNG!$LIBPNG$ac_delim
36107 LIBJPEG!$LIBJPEG$ac_delim
36108 qt_libraries!$qt_libraries$ac_delim
36109 qt_includes!$qt_includes$ac_delim
36110 QT_INCLUDES!$QT_INCLUDES$ac_delim
36111 QT_LDFLAGS!$QT_LDFLAGS$ac_delim
36112 PERL!$PERL$ac_delim
36113 MOC!$MOC$ac_delim
36114 UIC!$UIC$ac_delim
36115 UIC_TR!$UIC_TR$ac_delim
36116 LIB_QT!$LIB_QT$ac_delim
36117 LIB_QPE!$LIB_QPE$ac_delim
36118 kde_qtver!$kde_qtver$ac_delim
36119 KDE_EXTRA_RPATH!$KDE_EXTRA_RPATH$ac_delim
36120 KDE_RPATH!$KDE_RPATH$ac_delim
36121 X_RPATH!$X_RPATH$ac_delim
36122 kde_libraries!$kde_libraries$ac_delim
36123 kde_includes!$kde_includes$ac_delim
36124 KDE_LDFLAGS!$KDE_LDFLAGS$ac_delim
36125 KDE_INCLUDES!$KDE_INCLUDES$ac_delim
36126 all_includes!$all_includes$ac_delim
36127 all_libraries!$all_libraries$ac_delim
36128 AUTODIRS!$AUTODIRS$ac_delim
36129 include_ARTS_TRUE!$include_ARTS_TRUE$ac_delim
36130 include_ARTS_FALSE!$include_ARTS_FALSE$ac_delim
36131 MAKEKDEWIDGETS!$MAKEKDEWIDGETS$ac_delim
36132 KCONFIG_COMPILER!$KCONFIG_COMPILER$ac_delim
36133 KCFG_DEPENDENCIES!$KCFG_DEPENDENCIES$ac_delim
36134 DCOPIDLNG!$DCOPIDLNG$ac_delim
36135 DCOPIDL!$DCOPIDL$ac_delim
36136 DCOPIDL2CPP!$DCOPIDL2CPP$ac_delim
36137 DCOP_DEPENDENCIES!$DCOP_DEPENDENCIES$ac_delim
36138 MCOPIDL!$MCOPIDL$ac_delim
36139 ARTSCCONFIG!$ARTSCCONFIG$ac_delim
36140 _ACEOF
36141
36142   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36143     break
36144   elif $ac_last_try; then
36145     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36146 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36147    { (exit 1); exit 1; }; }
36148   else
36149     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36150   fi
36151 done
36152
36153 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36154 if test -n "$ac_eof"; then
36155   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36156   ac_eof=`expr $ac_eof + 1`
36157 fi
36158
36159 cat >>$CONFIG_STATUS <<_ACEOF
36160 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36162 _ACEOF
36163 sed '
36164 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36165 s/^/s,@/; s/!/@,|#_!!_#|/
36166 :n
36167 t n
36168 s/'"$ac_delim"'$/,g/; t
36169 s/$/\\/; p
36170 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36171 ' >>$CONFIG_STATUS <conf$$subs.sed
36172 rm -f conf$$subs.sed
36173 cat >>$CONFIG_STATUS <<_ACEOF
36174 CEOF$ac_eof
36175 _ACEOF
36176
36177
36178 ac_delim='%!_!# '
36179 for ac_last_try in false false false false false :; do
36180   cat >conf$$subs.sed <<_ACEOF
36181 MEINPROC!$MEINPROC$ac_delim
36182 KDE_XSL_STYLESHEET!$KDE_XSL_STYLESHEET$ac_delim
36183 XMLLINT!$XMLLINT$ac_delim
36184 kde_htmldir!$kde_htmldir$ac_delim
36185 kde_appsdir!$kde_appsdir$ac_delim
36186 kde_icondir!$kde_icondir$ac_delim
36187 kde_sounddir!$kde_sounddir$ac_delim
36188 kde_datadir!$kde_datadir$ac_delim
36189 kde_locale!$kde_locale$ac_delim
36190 kde_confdir!$kde_confdir$ac_delim
36191 kde_kcfgdir!$kde_kcfgdir$ac_delim
36192 kde_mimedir!$kde_mimedir$ac_delim
36193 kde_wallpaperdir!$kde_wallpaperdir$ac_delim
36194 kde_bindir!$kde_bindir$ac_delim
36195 xdg_appsdir!$xdg_appsdir$ac_delim
36196 xdg_menudir!$xdg_menudir$ac_delim
36197 xdg_directorydir!$xdg_directorydir$ac_delim
36198 kde_templatesdir!$kde_templatesdir$ac_delim
36199 kde_servicesdir!$kde_servicesdir$ac_delim
36200 kde_servicetypesdir!$kde_servicetypesdir$ac_delim
36201 kde_moduledir!$kde_moduledir$ac_delim
36202 kdeinitdir!$kdeinitdir$ac_delim
36203 kde_styledir!$kde_styledir$ac_delim
36204 kde_widgetdir!$kde_widgetdir$ac_delim
36205 LIB_KDECORE!$LIB_KDECORE$ac_delim
36206 LIB_KDEUI!$LIB_KDEUI$ac_delim
36207 LIB_KIO!$LIB_KIO$ac_delim
36208 LIB_KJS!$LIB_KJS$ac_delim
36209 LIB_SMB!$LIB_SMB$ac_delim
36210 LIB_KAB!$LIB_KAB$ac_delim
36211 LIB_KABC!$LIB_KABC$ac_delim
36212 LIB_KHTML!$LIB_KHTML$ac_delim
36213 LIB_KSPELL!$LIB_KSPELL$ac_delim
36214 LIB_KPARTS!$LIB_KPARTS$ac_delim
36215 LIB_KDEPRINT!$LIB_KDEPRINT$ac_delim
36216 LIB_KUTILS!$LIB_KUTILS$ac_delim
36217 LIB_KDEPIM!$LIB_KDEPIM$ac_delim
36218 LIB_KIMPROXY!$LIB_KIMPROXY$ac_delim
36219 LIB_KNEWSTUFF!$LIB_KNEWSTUFF$ac_delim
36220 LIB_KDNSSD!$LIB_KDNSSD$ac_delim
36221 LIB_KSYCOCA!$LIB_KSYCOCA$ac_delim
36222 LIB_KFILE!$LIB_KFILE$ac_delim
36223 LIB_KFM!$LIB_KFM$ac_delim
36224 PKG_CONFIG!$PKG_CONFIG$ac_delim
36225 SCIM_CFLAGS!$SCIM_CFLAGS$ac_delim
36226 SCIM_LIBS!$SCIM_LIBS$ac_delim
36227 REQUIRED_KDE_VERSION!$REQUIRED_KDE_VERSION$ac_delim
36228 REQUIRED_SCIM_VERSION!$REQUIRED_SCIM_VERSION$ac_delim
36229 USE_NLS!$USE_NLS$ac_delim
36230 MSGFMT_015!$MSGFMT_015$ac_delim
36231 GMSGFMT_015!$GMSGFMT_015$ac_delim
36232 XGETTEXT_015!$XGETTEXT_015$ac_delim
36233 MSGMERGE!$MSGMERGE$ac_delim
36234 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
36235 LIBICONV!$LIBICONV$ac_delim
36236 LTLIBICONV!$LTLIBICONV$ac_delim
36237 INTLLIBS!$INTLLIBS$ac_delim
36238 LIBINTL!$LIBINTL$ac_delim
36239 LTLIBINTL!$LTLIBINTL$ac_delim
36240 POSUB!$POSUB$ac_delim
36241 SKIM_CFLAGS!$SKIM_CFLAGS$ac_delim
36242 SKIM_LIBS!$SKIM_LIBS$ac_delim
36243 SCIM_KDEUTILS_CFLAGS!$SCIM_KDEUTILS_CFLAGS$ac_delim
36244 SCIM_KDEUTILS_LIBS!$SCIM_KDEUTILS_LIBS$ac_delim
36245 skim_prefix!$skim_prefix$ac_delim
36246 skim_libdir!$skim_libdir$ac_delim
36247 TOPSUBDIRS!$TOPSUBDIRS$ac_delim
36248 LIBOBJS!$LIBOBJS$ac_delim
36249 LTLIBOBJS!$LTLIBOBJS$ac_delim
36250 _ACEOF
36251
36252   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
36253     break
36254   elif $ac_last_try; then
36255     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36256 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36257    { (exit 1); exit 1; }; }
36258   else
36259     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36260   fi
36261 done
36262
36263 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36264 if test -n "$ac_eof"; then
36265   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36266   ac_eof=`expr $ac_eof + 1`
36267 fi
36268
36269 cat >>$CONFIG_STATUS <<_ACEOF
36270 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
36271 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36272 _ACEOF
36273 sed '
36274 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36275 s/^/s,@/; s/!/@,|#_!!_#|/
36276 :n
36277 t n
36278 s/'"$ac_delim"'$/,g/; t
36279 s/$/\\/; p
36280 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36281 ' >>$CONFIG_STATUS <conf$$subs.sed
36282 rm -f conf$$subs.sed
36283 cat >>$CONFIG_STATUS <<_ACEOF
36284 :end
36285 s/|#_!!_#|//g
36286 CEOF$ac_eof
36287 _ACEOF
36288
36289
36290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
36291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36292 # trailing colons and then remove the whole line if VPATH becomes empty
36293 # (actually we leave an empty line to preserve line numbers).
36294 if test "x$srcdir" = x.; then
36295   ac_vpsub='/^[  ]*VPATH[        ]*=/{
36296 s/:*\$(srcdir):*/:/
36297 s/:*\${srcdir}:*/:/
36298 s/:*@srcdir@:*/:/
36299 s/^\([^=]*=[     ]*\):*/\1/
36300 s/:*$//
36301 s/^[^=]*=[       ]*$//
36302 }'
36303 fi
36304
36305 cat >>$CONFIG_STATUS <<\_ACEOF
36306 fi # test -n "$CONFIG_FILES"
36307
36308
36309 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
36310 do
36311   case $ac_tag in
36312   :[FHLC]) ac_mode=$ac_tag; continue;;
36313   esac
36314   case $ac_mode$ac_tag in
36315   :[FHL]*:*);;
36316   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36317 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36318    { (exit 1); exit 1; }; };;
36319   :[FH]-) ac_tag=-:-;;
36320   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36321   esac
36322   ac_save_IFS=$IFS
36323   IFS=:
36324   set x $ac_tag
36325   IFS=$ac_save_IFS
36326   shift
36327   ac_file=$1
36328   shift
36329
36330   case $ac_mode in
36331   :L) ac_source=$1;;
36332   :[FH])
36333     ac_file_inputs=
36334     for ac_f
36335     do
36336       case $ac_f in
36337       -) ac_f="$tmp/stdin";;
36338       *) # Look for the file first in the build tree, then in the source tree
36339          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36340          # because $ac_f cannot contain `:'.
36341          test -f "$ac_f" ||
36342            case $ac_f in
36343            [\\/$]*) false;;
36344            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36345            esac ||
36346            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36347 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36348    { (exit 1); exit 1; }; };;
36349       esac
36350       ac_file_inputs="$ac_file_inputs $ac_f"
36351     done
36352
36353     # Let's still pretend it is `configure' which instantiates (i.e., don't
36354     # use $as_me), people would be surprised to read:
36355     #    /* config.h.  Generated by config.status.  */
36356     configure_input="Generated from "`IFS=:
36357           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36358     if test x"$ac_file" != x-; then
36359       configure_input="$ac_file.  $configure_input"
36360       { echo "$as_me:$LINENO: creating $ac_file" >&5
36361 echo "$as_me: creating $ac_file" >&6;}
36362     fi
36363
36364     case $ac_tag in
36365     *:-:* | *:-) cat >"$tmp/stdin";;
36366     esac
36367     ;;
36368   esac
36369
36370   ac_dir=`$as_dirname -- "$ac_file" ||
36371 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36372          X"$ac_file" : 'X\(//\)[^/]' \| \
36373          X"$ac_file" : 'X\(//\)$' \| \
36374          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36375 echo X"$ac_file" |
36376     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36377             s//\1/
36378             q
36379           }
36380           /^X\(\/\/\)[^/].*/{
36381             s//\1/
36382             q
36383           }
36384           /^X\(\/\/\)$/{
36385             s//\1/
36386             q
36387           }
36388           /^X\(\/\).*/{
36389             s//\1/
36390             q
36391           }
36392           s/.*/./; q'`
36393   { as_dir="$ac_dir"
36394   case $as_dir in #(
36395   -*) as_dir=./$as_dir;;
36396   esac
36397   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36398     as_dirs=
36399     while :; do
36400       case $as_dir in #(
36401       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36402       *) as_qdir=$as_dir;;
36403       esac
36404       as_dirs="'$as_qdir' $as_dirs"
36405       as_dir=`$as_dirname -- "$as_dir" ||
36406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36407          X"$as_dir" : 'X\(//\)[^/]' \| \
36408          X"$as_dir" : 'X\(//\)$' \| \
36409          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36410 echo X"$as_dir" |
36411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36412             s//\1/
36413             q
36414           }
36415           /^X\(\/\/\)[^/].*/{
36416             s//\1/
36417             q
36418           }
36419           /^X\(\/\/\)$/{
36420             s//\1/
36421             q
36422           }
36423           /^X\(\/\).*/{
36424             s//\1/
36425             q
36426           }
36427           s/.*/./; q'`
36428       test -d "$as_dir" && break
36429     done
36430     test -z "$as_dirs" || eval "mkdir $as_dirs"
36431   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36432 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36433    { (exit 1); exit 1; }; }; }
36434   ac_builddir=.
36435
36436 case "$ac_dir" in
36437 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36438 *)
36439   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36440   # A ".." for each directory in $ac_dir_suffix.
36441   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36442   case $ac_top_builddir_sub in
36443   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36444   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36445   esac ;;
36446 esac
36447 ac_abs_top_builddir=$ac_pwd
36448 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36449 # for backward compatibility:
36450 ac_top_builddir=$ac_top_build_prefix
36451
36452 case $srcdir in
36453   .)  # We are building in place.
36454     ac_srcdir=.
36455     ac_top_srcdir=$ac_top_builddir_sub
36456     ac_abs_top_srcdir=$ac_pwd ;;
36457   [\\/]* | ?:[\\/]* )  # Absolute name.
36458     ac_srcdir=$srcdir$ac_dir_suffix;
36459     ac_top_srcdir=$srcdir
36460     ac_abs_top_srcdir=$srcdir ;;
36461   *) # Relative name.
36462     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36463     ac_top_srcdir=$ac_top_build_prefix$srcdir
36464     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36465 esac
36466 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36467
36468
36469   case $ac_mode in
36470   :F)
36471   #
36472   # CONFIG_FILE
36473   #
36474
36475   case $INSTALL in
36476   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36477   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36478   esac
36479 _ACEOF
36480
36481 cat >>$CONFIG_STATUS <<\_ACEOF
36482 # If the template does not know about datarootdir, expand it.
36483 # FIXME: This hack should be removed a few years after 2.60.
36484 ac_datarootdir_hack=; ac_datarootdir_seen=
36485
36486 case `sed -n '/datarootdir/ {
36487   p
36488   q
36489 }
36490 /@datadir@/p
36491 /@docdir@/p
36492 /@infodir@/p
36493 /@localedir@/p
36494 /@mandir@/p
36495 ' $ac_file_inputs` in
36496 *datarootdir*) ac_datarootdir_seen=yes;;
36497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36498   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36499 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36500 _ACEOF
36501 cat >>$CONFIG_STATUS <<_ACEOF
36502   ac_datarootdir_hack='
36503   s&@datadir@&$datadir&g
36504   s&@docdir@&$docdir&g
36505   s&@infodir@&$infodir&g
36506   s&@localedir@&$localedir&g
36507   s&@mandir@&$mandir&g
36508     s&\\\${datarootdir}&$datarootdir&g' ;;
36509 esac
36510 _ACEOF
36511
36512 # Neutralize VPATH when `$srcdir' = `.'.
36513 # Shell code in configure.ac might set extrasub.
36514 # FIXME: do we really want to maintain this feature?
36515 cat >>$CONFIG_STATUS <<_ACEOF
36516   sed "$ac_vpsub
36517 $extrasub
36518 _ACEOF
36519 cat >>$CONFIG_STATUS <<\_ACEOF
36520 :t
36521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36522 s&@configure_input@&$configure_input&;t t
36523 s&@top_builddir@&$ac_top_builddir_sub&;t t
36524 s&@srcdir@&$ac_srcdir&;t t
36525 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36526 s&@top_srcdir@&$ac_top_srcdir&;t t
36527 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36528 s&@builddir@&$ac_builddir&;t t
36529 s&@abs_builddir@&$ac_abs_builddir&;t t
36530 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36531 s&@INSTALL@&$ac_INSTALL&;t t
36532 $ac_datarootdir_hack
36533 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
36534
36535 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36536   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36537   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36538   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36539 which seems to be undefined.  Please make sure it is defined." >&5
36540 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36541 which seems to be undefined.  Please make sure it is defined." >&2;}
36542
36543   rm -f "$tmp/stdin"
36544   case $ac_file in
36545   -) cat "$tmp/out"; rm -f "$tmp/out";;
36546   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
36547   esac
36548  ;;
36549   :H)
36550   #
36551   # CONFIG_HEADER
36552   #
36553 _ACEOF
36554
36555 # Transform confdefs.h into a sed script `conftest.defines', that
36556 # substitutes the proper values into config.h.in to produce config.h.
36557 rm -f conftest.defines conftest.tail
36558 # First, append a space to every undef/define line, to ease matching.
36559 echo 's/$/ /' >conftest.defines
36560 # Then, protect against being on the right side of a sed subst, or in
36561 # an unquoted here document, in config.status.  If some macros were
36562 # called several times there might be several #defines for the same
36563 # symbol, which is useless.  But do not sort them, since the last
36564 # AC_DEFINE must be honored.
36565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36566 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36567 # NAME is the cpp macro being defined, VALUE is the value it is being given.
36568 # PARAMS is the parameter list in the macro definition--in most cases, it's
36569 # just an empty string.
36570 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
36571 ac_dB='\\)[      (].*,\\1define\\2'
36572 ac_dC=' '
36573 ac_dD=' ,'
36574
36575 uniq confdefs.h |
36576   sed -n '
36577         t rset
36578         :rset
36579         s/^[     ]*#[    ]*define[       ][      ]*//
36580         t ok
36581         d
36582         :ok
36583         s/[\\&,]/\\&/g
36584         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36585         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36586   ' >>conftest.defines
36587
36588 # Remove the space that was appended to ease matching.
36589 # Then replace #undef with comments.  This is necessary, for
36590 # example, in the case of _POSIX_SOURCE, which is predefined and required
36591 # on some systems where configure will not decide to define it.
36592 # (The regexp can be short, since the line contains either #define or #undef.)
36593 echo 's/ $//
36594 s,^[     #]*u.*,/* & */,' >>conftest.defines
36595
36596 # Break up conftest.defines:
36597 ac_max_sed_lines=50
36598
36599 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36600 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36601 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36602 # et cetera.
36603 ac_in='$ac_file_inputs'
36604 ac_out='"$tmp/out1"'
36605 ac_nxt='"$tmp/out2"'
36606
36607 while :
36608 do
36609   # Write a here document:
36610     cat >>$CONFIG_STATUS <<_ACEOF
36611     # First, check the format of the line:
36612     cat >"\$tmp/defines.sed" <<\\CEOF
36613 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
36614 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
36615 b
36616 :def
36617 _ACEOF
36618   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
36619   echo 'CEOF
36620     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36621   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36622   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36623   grep . conftest.tail >/dev/null || break
36624   rm -f conftest.defines
36625   mv conftest.tail conftest.defines
36626 done
36627 rm -f conftest.defines conftest.tail
36628
36629 echo "ac_result=$ac_in" >>$CONFIG_STATUS
36630 cat >>$CONFIG_STATUS <<\_ACEOF
36631   if test x"$ac_file" != x-; then
36632     echo "/* $configure_input  */" >"$tmp/config.h"
36633     cat "$ac_result" >>"$tmp/config.h"
36634     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
36635       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36636 echo "$as_me: $ac_file is unchanged" >&6;}
36637     else
36638       rm -f $ac_file
36639       mv "$tmp/config.h" $ac_file
36640     fi
36641   else
36642     echo "/* $configure_input  */"
36643     cat "$ac_result"
36644   fi
36645   rm -f "$tmp/out12"
36646 # Compute $ac_file's index in $config_headers.
36647 _am_stamp_count=1
36648 for _am_header in $config_headers :; do
36649   case $_am_header in
36650     $ac_file | $ac_file:* )
36651       break ;;
36652     * )
36653       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36654   esac
36655 done
36656 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
36657 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36658          X$ac_file : 'X\(//\)[^/]' \| \
36659          X$ac_file : 'X\(//\)$' \| \
36660          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
36661 echo X$ac_file |
36662     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36663             s//\1/
36664             q
36665           }
36666           /^X\(\/\/\)[^/].*/{
36667             s//\1/
36668             q
36669           }
36670           /^X\(\/\/\)$/{
36671             s//\1/
36672             q
36673           }
36674           /^X\(\/\).*/{
36675             s//\1/
36676             q
36677           }
36678           s/.*/./; q'`/stamp-h$_am_stamp_count
36679  ;;
36680
36681   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36682 echo "$as_me: executing $ac_file commands" >&6;}
36683  ;;
36684   esac
36685
36686
36687   case $ac_file$ac_mode in
36688     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
36689   # Strip MF so we end up with the name of the file.
36690   mf=`echo "$mf" | sed -e 's/:.*$//'`
36691   # Check whether this is an Automake generated Makefile or not.
36692   # We used to match only the files named `Makefile.in', but
36693   # some people rename them; so instead we look at the file content.
36694   # Grep'ing the first line is not enough: some people post-process
36695   # each Makefile.in and add a new line on top of each file to say so.
36696   # So let's grep whole file.
36697   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
36698     dirpart=`$as_dirname -- "$mf" ||
36699 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36700          X"$mf" : 'X\(//\)[^/]' \| \
36701          X"$mf" : 'X\(//\)$' \| \
36702          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36703 echo X"$mf" |
36704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36705             s//\1/
36706             q
36707           }
36708           /^X\(\/\/\)[^/].*/{
36709             s//\1/
36710             q
36711           }
36712           /^X\(\/\/\)$/{
36713             s//\1/
36714             q
36715           }
36716           /^X\(\/\).*/{
36717             s//\1/
36718             q
36719           }
36720           s/.*/./; q'`
36721   else
36722     continue
36723   fi
36724   # Extract the definition of DEPDIR, am__include, and am__quote
36725   # from the Makefile without running `make'.
36726   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36727   test -z "$DEPDIR" && continue
36728   am__include=`sed -n 's/^am__include = //p' < "$mf"`
36729   test -z "am__include" && continue
36730   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36731   # When using ansi2knr, U may be empty or an underscore; expand it
36732   U=`sed -n 's/^U = //p' < "$mf"`
36733   # Find all dependency output files, they are included files with
36734   # $(DEPDIR) in their names.  We invoke sed twice because it is the
36735   # simplest approach to changing $(DEPDIR) to its actual value in the
36736   # expansion.
36737   for file in `sed -n "
36738     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36739        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36740     # Make sure the directory exists.
36741     test -f "$dirpart/$file" && continue
36742     fdir=`$as_dirname -- "$file" ||
36743 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36744          X"$file" : 'X\(//\)[^/]' \| \
36745          X"$file" : 'X\(//\)$' \| \
36746          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36747 echo X"$file" |
36748     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36749             s//\1/
36750             q
36751           }
36752           /^X\(\/\/\)[^/].*/{
36753             s//\1/
36754             q
36755           }
36756           /^X\(\/\/\)$/{
36757             s//\1/
36758             q
36759           }
36760           /^X\(\/\).*/{
36761             s//\1/
36762             q
36763           }
36764           s/.*/./; q'`
36765     { as_dir=$dirpart/$fdir
36766   case $as_dir in #(
36767   -*) as_dir=./$as_dir;;
36768   esac
36769   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
36770     as_dirs=
36771     while :; do
36772       case $as_dir in #(
36773       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36774       *) as_qdir=$as_dir;;
36775       esac
36776       as_dirs="'$as_qdir' $as_dirs"
36777       as_dir=`$as_dirname -- "$as_dir" ||
36778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36779          X"$as_dir" : 'X\(//\)[^/]' \| \
36780          X"$as_dir" : 'X\(//\)$' \| \
36781          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36782 echo X"$as_dir" |
36783     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36784             s//\1/
36785             q
36786           }
36787           /^X\(\/\/\)[^/].*/{
36788             s//\1/
36789             q
36790           }
36791           /^X\(\/\/\)$/{
36792             s//\1/
36793             q
36794           }
36795           /^X\(\/\).*/{
36796             s//\1/
36797             q
36798           }
36799           s/.*/./; q'`
36800       test -d "$as_dir" && break
36801     done
36802     test -z "$as_dirs" || eval "mkdir $as_dirs"
36803   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36804 echo "$as_me: error: cannot create directory $as_dir" >&2;}
36805    { (exit 1); exit 1; }; }; }
36806     # echo "creating $dirpart/$file"
36807     echo '# dummy' > "$dirpart/$file"
36808   done
36809 done
36810  ;;
36811     "po-directories":C)
36812     for ac_file in $CONFIG_FILES; do
36813       # Support "outfile[:infile[:infile...]]"
36814       case "$ac_file" in
36815         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36816       esac
36817       # PO directories have a Makefile.in generated from Makefile.in.in.
36818       case "$ac_file" in */Makefile.in)
36819         # Adjust a relative srcdir.
36820         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
36821         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
36822         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
36823         # In autoconf-2.13 it is called $ac_given_srcdir.
36824         # In autoconf-2.50 it is called $srcdir.
36825         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
36826         case "$ac_given_srcdir" in
36827           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
36828           /*) top_srcdir="$ac_given_srcdir" ;;
36829           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
36830         esac
36831         # Treat a directory as a PO directory if and only if it has a
36832         # POTFILES.in file. This allows packages to have multiple PO
36833         # directories under different names or in different locations.
36834         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
36835           rm -f "$ac_dir/POTFILES"
36836           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
36837           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
36838           POMAKEFILEDEPS="POTFILES.in"
36839           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
36840           # on $ac_dir but don't depend on user-specified configuration
36841           # parameters.
36842           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
36843             # The LINGUAS file contains the set of available languages.
36844             if test -n "$OBSOLETE_ALL_LINGUAS"; then
36845               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
36846             fi
36847             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
36848             # Hide the ALL_LINGUAS assigment from automake < 1.5.
36849             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
36850             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
36851           else
36852             # The set of available languages was given in configure.in.
36853             # Hide the ALL_LINGUAS assigment from automake < 1.5.
36854             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
36855           fi
36856           # Compute POFILES
36857           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
36858           # Compute UPDATEPOFILES
36859           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
36860           # Compute DUMMYPOFILES
36861           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
36862           # Compute GMOFILES
36863           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
36864           case "$ac_given_srcdir" in
36865             .) srcdirpre= ;;
36866             *) srcdirpre='$(srcdir)/' ;;
36867           esac
36868           POFILES=
36869           UPDATEPOFILES=
36870           DUMMYPOFILES=
36871           GMOFILES=
36872           for lang in $ALL_LINGUAS; do
36873             POFILES="$POFILES $srcdirpre$lang.po"
36874             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
36875             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
36876             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
36877           done
36878           # CATALOGS depends on both $ac_dir and the user's LINGUAS
36879           # environment variable.
36880           INST_LINGUAS=
36881           if test -n "$ALL_LINGUAS"; then
36882             for presentlang in $ALL_LINGUAS; do
36883               useit=no
36884               if test "%UNSET%" != "$LINGUAS"; then
36885                 desiredlanguages="$LINGUAS"
36886               else
36887                 desiredlanguages="$ALL_LINGUAS"
36888               fi
36889               for desiredlang in $desiredlanguages; do
36890                 # Use the presentlang catalog if desiredlang is
36891                 #   a. equal to presentlang, or
36892                 #   b. a variant of presentlang (because in this case,
36893                 #      presentlang can be used as a fallback for messages
36894                 #      which are not translated in the desiredlang catalog).
36895                 case "$desiredlang" in
36896                   "$presentlang"*) useit=yes;;
36897                 esac
36898               done
36899               if test $useit = yes; then
36900                 INST_LINGUAS="$INST_LINGUAS $presentlang"
36901               fi
36902             done
36903           fi
36904           CATALOGS=
36905           if test -n "$INST_LINGUAS"; then
36906             for lang in $INST_LINGUAS; do
36907               CATALOGS="$CATALOGS $lang.gmo"
36908             done
36909           fi
36910           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
36911           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
36912           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
36913             if test -f "$f"; then
36914               case "$f" in
36915                 *.orig | *.bak | *~) ;;
36916                 *) cat "$f" >> "$ac_dir/Makefile" ;;
36917               esac
36918             fi
36919           done
36920         fi
36921         ;;
36922       esac
36923     done ;;
36924
36925   esac
36926 done # for ac_tag
36927
36928
36929 { (exit 0); exit 0; }
36930 _ACEOF
36931 if test "x$with_fast_perl" = "xyes"; then    
36932   perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS    \
36933     || mv $CONFIG_STATUS.bak $CONFIG_STATUS    
36934   rm -f $CONFIG_STATUS.bak
36935 fi    
36936 chmod +x $CONFIG_STATUS
36937 ac_clean_files=$ac_clean_files_save
36938
36939
36940 # configure is writing to config.log, and then calls config.status.
36941 # config.status does its own redirection, appending to config.log.
36942 # Unfortunately, on DOS this fails, as config.log is still kept open
36943 # by configure, so config.status won't be able to write to it; its
36944 # output is simply discarded.  So we exec the FD to /dev/null,
36945 # effectively closing config.log, so it can be properly (re)opened and
36946 # appended to by config.status.  When coming back to configure, we
36947 # need to make the FD available again.
36948 if test "$no_create" != yes; then
36949   ac_cs_success=:
36950   ac_config_status_args=
36951   test "$silent" = yes &&
36952     ac_config_status_args="$ac_config_status_args --quiet"
36953   exec 5>/dev/null
36954   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36955   exec 5>>config.log
36956   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36957   # would make configure fail if this is the last instruction.
36958   $ac_cs_success || { (exit 1); exit 1; }
36959 fi
36960
36961 { echo "$as_me:$LINENO: result:
36962 skim Support Build options:
36963   Version                $VERSION
36964   Version of libscim     $SCIM_VERSION
36965   Version of libskim     $SKIM_VERSION
36966   Install prefix         $prefix
36967   Build shared libs      $enable_shared
36968   Build static libs      $enable_static
36969   Enable debug           $scim_debug
36970 " >&5
36971 echo "${ECHO_T}
36972 skim Support Build options:
36973   Version                $VERSION
36974   Version of libscim     $SCIM_VERSION
36975   Version of libskim     $SKIM_VERSION
36976   Install prefix         $prefix
36977   Build shared libs      $enable_shared
36978   Build static libs      $enable_static
36979   Enable debug           $scim_debug
36980 " >&6; }
36981 # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
36982 if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
36983   # And if so, warn when they don't match
36984   if test "$kde_libs_prefix" != "$given_prefix"; then
36985     # And if kde doesn't know about the prefix yet
36986     echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
36987     if test $? -ne 0; then
36988       echo ""
36989       echo "Warning: you chose to install this package in $given_prefix,"
36990       echo "but KDE was found in $kde_libs_prefix."
36991       echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
36992       echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
36993       echo "Then restart KDE."
36994       echo ""
36995     fi
36996   fi
36997 fi
36998
36999 if test "$all_tests" = "bad"; then
37000   if test ! "$cache_file" = "/dev/null"; then
37001     echo ""
37002     echo "Please remove the file $cache_file after changing your setup"
37003     echo "so that configure will find the changes next time."
37004     echo ""
37005   fi
37006 else
37007   echo ""
37008   echo "Good - your configure finished. Start make now"
37009   echo ""
37010 fi