Fix wrong license information
[platform/core/uifw/ise-engine-unikey.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for scim-unikey 0.3.1.
4 #
5 # Report bugs to <mr.lequoctuan@gmail.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: mr.lequoctuan@gmail.com about your system, including
233 $0: any error possibly output before this message. Then
234 $0: install a modern shell, or manually run the script
235 $0: under such a shell if you do have one."
236   fi
237   exit 1
238 fi
239 fi
240 fi
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
246
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
254 {
255   { eval $1=; unset $1;}
256 }
257 as_unset=as_fn_unset
258
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
263 {
264   return $1
265 } # as_fn_set_status
266
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
271 {
272   set +e
273   as_fn_set_status $1
274   exit $1
275 } # as_fn_exit
276
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
281 {
282
283   case $as_dir in #(
284   -*) as_dir=./$as_dir;;
285   esac
286   test -d "$as_dir" || eval $as_mkdir_p || {
287     as_dirs=
288     while :; do
289       case $as_dir in #(
290       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291       *) as_qdir=$as_dir;;
292       esac
293       as_dirs="'$as_qdir' $as_dirs"
294       as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296          X"$as_dir" : 'X\(//\)[^/]' \| \
297          X"$as_dir" : 'X\(//\)$' \| \
298          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301             s//\1/
302             q
303           }
304           /^X\(\/\/\)[^/].*/{
305             s//\1/
306             q
307           }
308           /^X\(\/\/\)$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\).*/{
313             s//\1/
314             q
315           }
316           s/.*/./; q'`
317       test -d "$as_dir" && break
318     done
319     test -z "$as_dirs" || eval "mkdir $as_dirs"
320   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321
322
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331   eval 'as_fn_append ()
332   {
333     eval $1+=\$2
334   }'
335 else
336   as_fn_append ()
337   {
338     eval $1=\$$1\$2
339   }
340 fi # as_fn_append
341
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348   eval 'as_fn_arith ()
349   {
350     as_val=$(( $* ))
351   }'
352 else
353   as_fn_arith ()
354   {
355     as_val=`expr "$@" || test $? -eq 1`
356   }
357 fi # as_fn_arith
358
359
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
366 {
367   as_status=$?; test $as_status -eq 0 && as_status=1
368   if test "$3"; then
369     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371   fi
372   $as_echo "$as_me: error: $1" >&2
373   as_fn_exit $as_status
374 } # as_fn_error
375
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
378   as_expr=expr
379 else
380   as_expr=false
381 fi
382
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384   as_basename=basename
385 else
386   as_basename=false
387 fi
388
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390   as_dirname=dirname
391 else
392   as_dirname=false
393 fi
394
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397          X"$0" : 'X\(//\)$' \| \
398          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400     sed '/^.*\/\([^/][^/]*\)\/*$/{
401             s//\1/
402             q
403           }
404           /^X\/\(\/\/\)$/{
405             s//\1/
406             q
407           }
408           /^X\/\(\/\).*/{
409             s//\1/
410             q
411           }
412           s/.*/./; q'`
413
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
420
421
422   as_lineno_1=$LINENO as_lineno_1a=$LINENO
423   as_lineno_2=$LINENO as_lineno_2a=$LINENO
424   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
427   sed -n '
428     p
429     /[$]LINENO/=
430   ' <$as_myself |
431     sed '
432       s/[$]LINENO.*/&-/
433       t lineno
434       b
435       :lineno
436       N
437       :loop
438       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439       t loop
440       s/-\n.*//
441     ' >$as_me.lineno &&
442   chmod +x "$as_me.lineno" ||
443     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
445   # Don't try to exec as it changes $[0], causing all sort of problems
446   # (the dirname of $[0] is not the place where we might find the
447   # original and so on.  Autoconf is especially sensitive to this).
448   . "./$as_me.lineno"
449   # Exit status is that of the last command.
450   exit
451 }
452
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456   case `echo 'xy\c'` in
457   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
458   xy)  ECHO_C='\c';;
459   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
460        ECHO_T=' ';;
461   esac;;
462 *)
463   ECHO_N='-n';;
464 esac
465
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468   rm -f conf$$.dir/conf$$.file
469 else
470   rm -f conf$$.dir
471   mkdir conf$$.dir 2>/dev/null
472 fi
473 if (echo >conf$$.file) 2>/dev/null; then
474   if ln -s conf$$.file conf$$ 2>/dev/null; then
475     as_ln_s='ln -s'
476     # ... but there are two gotchas:
477     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479     # In both cases, we have to default to `cp -p'.
480     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481       as_ln_s='cp -p'
482   elif ln conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s=ln
484   else
485     as_ln_s='cp -p'
486   fi
487 else
488   as_ln_s='cp -p'
489 fi
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
492
493 if mkdir -p . 2>/dev/null; then
494   as_mkdir_p='mkdir -p "$as_dir"'
495 else
496   test -d ./-p && rmdir ./-p
497   as_mkdir_p=false
498 fi
499
500 if test -x / >/dev/null 2>&1; then
501   as_test_x='test -x'
502 else
503   if ls -dL / >/dev/null 2>&1; then
504     as_ls_L_option=L
505   else
506     as_ls_L_option=
507   fi
508   as_test_x='
509     eval sh -c '\''
510       if test -d "$1"; then
511         test -d "$1/.";
512       else
513         case $1 in #(
514         -*)set "./$1";;
515         esac;
516         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517         ???[sx]*):;;*)false;;esac;fi
518     '\'' sh
519   '
520 fi
521 as_executable_p=$as_test_x
522
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528
529
530
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
533
534 case X$lt_ECHO in
535 X*--fallback-echo)
536   # Remove one level of quotation (which was required for Make).
537   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538   ;;
539 esac
540
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543   # Discard the --no-reexec flag, and continue.
544   shift
545 elif test "X$1" = X--fallback-echo; then
546   # Avoid inline document here, it may be left over
547   :
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549   # Yippee, $ECHO works!
550   :
551 else
552   # Restart under the correct shell.
553   exec $SHELL "$0" --no-reexec ${1+"$@"}
554 fi
555
556 if test "X$1" = X--fallback-echo; then
557   # used as fallback echo
558   shift
559   cat <<_LT_EOF
560 $*
561 _LT_EOF
562   exit 0
563 fi
564
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
569 if test -z "$lt_ECHO"; then
570   if test "X${echo_test_string+set}" != Xset; then
571     # find a string as large as possible, as long as the shell can cope with it
572     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576       then
577         break
578       fi
579     done
580   fi
581
582   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584      test "X$echo_testing_string" = "X$echo_test_string"; then
585     :
586   else
587     # The Solaris, AIX, and Digital Unix default echo programs unquote
588     # backslashes.  This makes it impossible to quote backslashes using
589     #   echo "$something" | sed 's/\\/\\\\/g'
590     #
591     # So, first we look for a working echo in the user's PATH.
592
593     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594     for dir in $PATH /usr/ucb; do
595       IFS="$lt_save_ifs"
596       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599          test "X$echo_testing_string" = "X$echo_test_string"; then
600         ECHO="$dir/echo"
601         break
602       fi
603     done
604     IFS="$lt_save_ifs"
605
606     if test "X$ECHO" = Xecho; then
607       # We didn't find a better echo, so look for alternatives.
608       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610          test "X$echo_testing_string" = "X$echo_test_string"; then
611         # This shell has a builtin print -r that does the trick.
612         ECHO='print -r'
613       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614            test "X$CONFIG_SHELL" != X/bin/ksh; then
615         # If we have ksh, try running configure again with it.
616         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617         export ORIGINAL_CONFIG_SHELL
618         CONFIG_SHELL=/bin/ksh
619         export CONFIG_SHELL
620         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621       else
622         # Try using printf.
623         ECHO='printf %s\n'
624         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626            test "X$echo_testing_string" = "X$echo_test_string"; then
627           # Cool, printf works
628           :
629         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630              test "X$echo_testing_string" = 'X\t' &&
631              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632              test "X$echo_testing_string" = "X$echo_test_string"; then
633           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634           export CONFIG_SHELL
635           SHELL="$CONFIG_SHELL"
636           export SHELL
637           ECHO="$CONFIG_SHELL $0 --fallback-echo"
638         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639              test "X$echo_testing_string" = 'X\t' &&
640              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641              test "X$echo_testing_string" = "X$echo_test_string"; then
642           ECHO="$CONFIG_SHELL $0 --fallback-echo"
643         else
644           # maybe with a smaller string...
645           prev=:
646
647           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649             then
650               break
651             fi
652             prev="$cmd"
653           done
654
655           if test "$prev" != 'sed 50q "$0"'; then
656             echo_test_string=`eval $prev`
657             export echo_test_string
658             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659           else
660             # Oops.  We lost completely, so just stick with echo.
661             ECHO=echo
662           fi
663         fi
664       fi
665     fi
666   fi
667 fi
668
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
674 fi
675
676
677
678
679 exec 7<&0 </dev/null 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME='scim-unikey'
700 PACKAGE_TARNAME='scim-unikey'
701 PACKAGE_VERSION='0.3.1'
702 PACKAGE_STRING='scim-unikey 0.3.1'
703 PACKAGE_BUGREPORT='mr.lequoctuan@gmail.com'
704 PACKAGE_URL=''
705
706 ac_unique_file="src/scim_unikey_const.h"
707 gt_needs=
708 # Factoring default headers for most tests.
709 ac_includes_default="\
710 #include <stdio.h>
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
713 #endif
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
716 #endif
717 #ifdef STDC_HEADERS
718 # include <stdlib.h>
719 # include <stddef.h>
720 #else
721 # ifdef HAVE_STDLIB_H
722 #  include <stdlib.h>
723 # endif
724 #endif
725 #ifdef HAVE_STRING_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #  include <memory.h>
728 # endif
729 # include <string.h>
730 #endif
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
733 #endif
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
736 #endif
737 #ifdef HAVE_STDINT_H
738 # include <stdint.h>
739 #endif
740 #ifdef HAVE_UNISTD_H
741 # include <unistd.h>
742 #endif"
743
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 LIBOBJS
748 SCIM_MODULEDIR
749 SCIM_ICONDIR
750 LIBTOOL_EXPORT_OPTIONS
751 ac_aux_dir
752 SCIM_BUILD_SETUP
753 SCIM_BUILD_SETUP_FALSE
754 SCIM_BUILD_SETUP_TRUE
755 SCIM_GTKUTILS
756 SCIM_GTKUTILS_LIBS
757 SCIM_GTKUTILS_CFLAGS
758 SCIM_VERSION
759 SCIM_LIBS
760 SCIM_CFLAGS
761 GIO
762 GIO_LIBS
763 GIO_CFLAGS
764 PKG_CONFIG
765 UNIKEY_AGE
766 UNIKEY_REVISION
767 UNIKEY_CURRENT
768 CXXCPP
769 am__fastdepCXX_FALSE
770 am__fastdepCXX_TRUE
771 CXXDEPMODE
772 ac_ct_CXX
773 CXXFLAGS
774 CXX
775 CPP
776 OTOOL64
777 OTOOL
778 LIPO
779 NMEDIT
780 DSYMUTIL
781 lt_ECHO
782 RANLIB
783 AR
784 OBJDUMP
785 LN_S
786 NM
787 ac_ct_DUMPBIN
788 DUMPBIN
789 LD
790 FGREP
791 EGREP
792 GREP
793 SED
794 LIBTOOL
795 POSUB
796 LTLIBINTL
797 LIBINTL
798 INTLLIBS
799 LTLIBICONV
800 LIBICONV
801 INTL_MACOSX_LIBS
802 host_os
803 host_vendor
804 host_cpu
805 host
806 build_os
807 build_vendor
808 build_cpu
809 build
810 am__fastdepCC_FALSE
811 am__fastdepCC_TRUE
812 CCDEPMODE
813 AMDEPBACKSLASH
814 AMDEP_FALSE
815 AMDEP_TRUE
816 am__quote
817 am__include
818 DEPDIR
819 OBJEXT
820 EXEEXT
821 ac_ct_CC
822 CPPFLAGS
823 LDFLAGS
824 CFLAGS
825 CC
826 XGETTEXT_EXTRA_OPTIONS
827 MSGMERGE
828 XGETTEXT_015
829 XGETTEXT
830 GMSGFMT_015
831 MSGFMT_015
832 GMSGFMT
833 MSGFMT
834 GETTEXT_MACRO_VERSION
835 USE_NLS
836 am__untar
837 am__tar
838 AMTAR
839 am__leading_dot
840 SET_MAKE
841 AWK
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 STRIP
846 install_sh
847 MAKEINFO
848 AUTOHEADER
849 AUTOMAKE
850 AUTOCONF
851 ACLOCAL
852 VERSION
853 PACKAGE
854 CYGPATH_W
855 am__isrc
856 INSTALL_DATA
857 INSTALL_SCRIPT
858 INSTALL_PROGRAM
859 target_alias
860 host_alias
861 build_alias
862 LIBS
863 ECHO_T
864 ECHO_N
865 ECHO_C
866 DEFS
867 mandir
868 localedir
869 libdir
870 psdir
871 pdfdir
872 dvidir
873 htmldir
874 infodir
875 docdir
876 oldincludedir
877 includedir
878 localstatedir
879 sharedstatedir
880 sysconfdir
881 datadir
882 datarootdir
883 libexecdir
884 sbindir
885 bindir
886 program_transform_name
887 prefix
888 exec_prefix
889 PACKAGE_URL
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_nls
901 enable_dependency_tracking
902 with_gnu_ld
903 enable_rpath
904 with_libiconv_prefix
905 with_libintl_prefix
906 enable_static
907 enable_shared
908 with_pic
909 enable_fast_install
910 enable_libtool_lock
911 '
912       ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 CPP
921 CXX
922 CXXFLAGS
923 CCC
924 CXXCPP
925 PKG_CONFIG
926 GIO_CFLAGS
927 GIO_LIBS
928 SCIM_CFLAGS
929 SCIM_LIBS
930 SCIM_GTKUTILS_CFLAGS
931 SCIM_GTKUTILS_LIBS'
932
933
934 # Initialize some variables set by options.
935 ac_init_help=
936 ac_init_version=false
937 ac_unrecognized_opts=
938 ac_unrecognized_sep=
939 # The variables have the same names as the options, with
940 # dashes changed to underlines.
941 cache_file=/dev/null
942 exec_prefix=NONE
943 no_create=
944 no_recursion=
945 prefix=NONE
946 program_prefix=NONE
947 program_suffix=NONE
948 program_transform_name=s,x,x,
949 silent=
950 site=
951 srcdir=
952 verbose=
953 x_includes=NONE
954 x_libraries=NONE
955
956 # Installation directory options.
957 # These are left unexpanded so users can "make install exec_prefix=/foo"
958 # and all the variables that are supposed to be based on exec_prefix
959 # by default will actually change.
960 # Use braces instead of parens because sh, perl, etc. also accept them.
961 # (The list follows the same order as the GNU Coding Standards.)
962 bindir='${exec_prefix}/bin'
963 sbindir='${exec_prefix}/sbin'
964 libexecdir='${exec_prefix}/libexec'
965 datarootdir='${prefix}/share'
966 datadir='${datarootdir}'
967 sysconfdir='${prefix}/etc'
968 sharedstatedir='${prefix}/com'
969 localstatedir='${prefix}/var'
970 includedir='${prefix}/include'
971 oldincludedir='/usr/include'
972 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973 infodir='${datarootdir}/info'
974 htmldir='${docdir}'
975 dvidir='${docdir}'
976 pdfdir='${docdir}'
977 psdir='${docdir}'
978 libdir='${exec_prefix}/lib'
979 localedir='${datarootdir}/locale'
980 mandir='${datarootdir}/man'
981
982 ac_prev=
983 ac_dashdash=
984 for ac_option
985 do
986   # If the previous option needs an argument, assign it.
987   if test -n "$ac_prev"; then
988     eval $ac_prev=\$ac_option
989     ac_prev=
990     continue
991   fi
992
993   case $ac_option in
994   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995   *)    ac_optarg=yes ;;
996   esac
997
998   # Accept the important Cygnus configure options, so we can diagnose typos.
999
1000   case $ac_dashdash$ac_option in
1001   --)
1002     ac_dashdash=yes ;;
1003
1004   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005     ac_prev=bindir ;;
1006   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1007     bindir=$ac_optarg ;;
1008
1009   -build | --build | --buil | --bui | --bu)
1010     ac_prev=build_alias ;;
1011   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1012     build_alias=$ac_optarg ;;
1013
1014   -cache-file | --cache-file | --cache-fil | --cache-fi \
1015   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016     ac_prev=cache_file ;;
1017   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1019     cache_file=$ac_optarg ;;
1020
1021   --config-cache | -C)
1022     cache_file=config.cache ;;
1023
1024   -datadir | --datadir | --datadi | --datad)
1025     ac_prev=datadir ;;
1026   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1027     datadir=$ac_optarg ;;
1028
1029   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030   | --dataroo | --dataro | --datar)
1031     ac_prev=datarootdir ;;
1032   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034     datarootdir=$ac_optarg ;;
1035
1036   -disable-* | --disable-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       as_fn_error "invalid feature name: $ac_useropt"
1041     ac_useropt_orig=$ac_useropt
1042     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043     case $ac_user_opts in
1044       *"
1045 "enable_$ac_useropt"
1046 "*) ;;
1047       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1048          ac_unrecognized_sep=', ';;
1049     esac
1050     eval enable_$ac_useropt=no ;;
1051
1052   -docdir | --docdir | --docdi | --doc | --do)
1053     ac_prev=docdir ;;
1054   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1055     docdir=$ac_optarg ;;
1056
1057   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1058     ac_prev=dvidir ;;
1059   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1060     dvidir=$ac_optarg ;;
1061
1062   -enable-* | --enable-*)
1063     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066       as_fn_error "invalid feature name: $ac_useropt"
1067     ac_useropt_orig=$ac_useropt
1068     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069     case $ac_user_opts in
1070       *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1074          ac_unrecognized_sep=', ';;
1075     esac
1076     eval enable_$ac_useropt=\$ac_optarg ;;
1077
1078   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080   | --exec | --exe | --ex)
1081     ac_prev=exec_prefix ;;
1082   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084   | --exec=* | --exe=* | --ex=*)
1085     exec_prefix=$ac_optarg ;;
1086
1087   -gas | --gas | --ga | --g)
1088     # Obsolete; use --with-gas.
1089     with_gas=yes ;;
1090
1091   -help | --help | --hel | --he | -h)
1092     ac_init_help=long ;;
1093   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094     ac_init_help=recursive ;;
1095   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096     ac_init_help=short ;;
1097
1098   -host | --host | --hos | --ho)
1099     ac_prev=host_alias ;;
1100   -host=* | --host=* | --hos=* | --ho=*)
1101     host_alias=$ac_optarg ;;
1102
1103   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1104     ac_prev=htmldir ;;
1105   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1106   | --ht=*)
1107     htmldir=$ac_optarg ;;
1108
1109   -includedir | --includedir | --includedi | --included | --include \
1110   | --includ | --inclu | --incl | --inc)
1111     ac_prev=includedir ;;
1112   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113   | --includ=* | --inclu=* | --incl=* | --inc=*)
1114     includedir=$ac_optarg ;;
1115
1116   -infodir | --infodir | --infodi | --infod | --info | --inf)
1117     ac_prev=infodir ;;
1118   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119     infodir=$ac_optarg ;;
1120
1121   -libdir | --libdir | --libdi | --libd)
1122     ac_prev=libdir ;;
1123   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1124     libdir=$ac_optarg ;;
1125
1126   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127   | --libexe | --libex | --libe)
1128     ac_prev=libexecdir ;;
1129   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130   | --libexe=* | --libex=* | --libe=*)
1131     libexecdir=$ac_optarg ;;
1132
1133   -localedir | --localedir | --localedi | --localed | --locale)
1134     ac_prev=localedir ;;
1135   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136     localedir=$ac_optarg ;;
1137
1138   -localstatedir | --localstatedir | --localstatedi | --localstated \
1139   | --localstate | --localstat | --localsta | --localst | --locals)
1140     ac_prev=localstatedir ;;
1141   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143     localstatedir=$ac_optarg ;;
1144
1145   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1146     ac_prev=mandir ;;
1147   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148     mandir=$ac_optarg ;;
1149
1150   -nfp | --nfp | --nf)
1151     # Obsolete; use --without-fp.
1152     with_fp=no ;;
1153
1154   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155   | --no-cr | --no-c | -n)
1156     no_create=yes ;;
1157
1158   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1160     no_recursion=yes ;;
1161
1162   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164   | --oldin | --oldi | --old | --ol | --o)
1165     ac_prev=oldincludedir ;;
1166   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169     oldincludedir=$ac_optarg ;;
1170
1171   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1172     ac_prev=prefix ;;
1173   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174     prefix=$ac_optarg ;;
1175
1176   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1177   | --program-pre | --program-pr | --program-p)
1178     ac_prev=program_prefix ;;
1179   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1180   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181     program_prefix=$ac_optarg ;;
1182
1183   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1184   | --program-suf | --program-su | --program-s)
1185     ac_prev=program_suffix ;;
1186   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1187   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188     program_suffix=$ac_optarg ;;
1189
1190   -program-transform-name | --program-transform-name \
1191   | --program-transform-nam | --program-transform-na \
1192   | --program-transform-n | --program-transform- \
1193   | --program-transform | --program-transfor \
1194   | --program-transfo | --program-transf \
1195   | --program-trans | --program-tran \
1196   | --progr-tra | --program-tr | --program-t)
1197     ac_prev=program_transform_name ;;
1198   -program-transform-name=* | --program-transform-name=* \
1199   | --program-transform-nam=* | --program-transform-na=* \
1200   | --program-transform-n=* | --program-transform-=* \
1201   | --program-transform=* | --program-transfor=* \
1202   | --program-transfo=* | --program-transf=* \
1203   | --program-trans=* | --program-tran=* \
1204   | --progr-tra=* | --program-tr=* | --program-t=*)
1205     program_transform_name=$ac_optarg ;;
1206
1207   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1208     ac_prev=pdfdir ;;
1209   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210     pdfdir=$ac_optarg ;;
1211
1212   -psdir | --psdir | --psdi | --psd | --ps)
1213     ac_prev=psdir ;;
1214   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1215     psdir=$ac_optarg ;;
1216
1217   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218   | -silent | --silent | --silen | --sile | --sil)
1219     silent=yes ;;
1220
1221   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222     ac_prev=sbindir ;;
1223   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224   | --sbi=* | --sb=*)
1225     sbindir=$ac_optarg ;;
1226
1227   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229   | --sharedst | --shareds | --shared | --share | --shar \
1230   | --sha | --sh)
1231     ac_prev=sharedstatedir ;;
1232   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235   | --sha=* | --sh=*)
1236     sharedstatedir=$ac_optarg ;;
1237
1238   -site | --site | --sit)
1239     ac_prev=site ;;
1240   -site=* | --site=* | --sit=*)
1241     site=$ac_optarg ;;
1242
1243   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244     ac_prev=srcdir ;;
1245   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246     srcdir=$ac_optarg ;;
1247
1248   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249   | --syscon | --sysco | --sysc | --sys | --sy)
1250     ac_prev=sysconfdir ;;
1251   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253     sysconfdir=$ac_optarg ;;
1254
1255   -target | --target | --targe | --targ | --tar | --ta | --t)
1256     ac_prev=target_alias ;;
1257   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258     target_alias=$ac_optarg ;;
1259
1260   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261     verbose=yes ;;
1262
1263   -version | --version | --versio | --versi | --vers | -V)
1264     ac_init_version=: ;;
1265
1266   -with-* | --with-*)
1267     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268     # Reject names that are not valid shell variable names.
1269     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270       as_fn_error "invalid package name: $ac_useropt"
1271     ac_useropt_orig=$ac_useropt
1272     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273     case $ac_user_opts in
1274       *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278          ac_unrecognized_sep=', ';;
1279     esac
1280     eval with_$ac_useropt=\$ac_optarg ;;
1281
1282   -without-* | --without-*)
1283     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284     # Reject names that are not valid shell variable names.
1285     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286       as_fn_error "invalid package name: $ac_useropt"
1287     ac_useropt_orig=$ac_useropt
1288     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289     case $ac_user_opts in
1290       *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294          ac_unrecognized_sep=', ';;
1295     esac
1296     eval with_$ac_useropt=no ;;
1297
1298   --x)
1299     # Obsolete; use --with-x.
1300     with_x=yes ;;
1301
1302   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303   | --x-incl | --x-inc | --x-in | --x-i)
1304     ac_prev=x_includes ;;
1305   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307     x_includes=$ac_optarg ;;
1308
1309   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311     ac_prev=x_libraries ;;
1312   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314     x_libraries=$ac_optarg ;;
1315
1316   -*) as_fn_error "unrecognized option: \`$ac_option'
1317 Try \`$0 --help' for more information."
1318     ;;
1319
1320   *=*)
1321     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322     # Reject names that are not valid shell variable names.
1323     case $ac_envvar in #(
1324       '' | [0-9]* | *[!_$as_cr_alnum]* )
1325       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1326     esac
1327     eval $ac_envvar=\$ac_optarg
1328     export $ac_envvar ;;
1329
1330   *)
1331     # FIXME: should be removed in autoconf 3.0.
1332     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1333     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1335     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336     ;;
1337
1338   esac
1339 done
1340
1341 if test -n "$ac_prev"; then
1342   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343   as_fn_error "missing argument to $ac_option"
1344 fi
1345
1346 if test -n "$ac_unrecognized_opts"; then
1347   case $enable_option_checking in
1348     no) ;;
1349     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1350     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351   esac
1352 fi
1353
1354 # Check all directory arguments for consistency.
1355 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356                 datadir sysconfdir sharedstatedir localstatedir includedir \
1357                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358                 libdir localedir mandir
1359 do
1360   eval ac_val=\$$ac_var
1361   # Remove trailing slashes.
1362   case $ac_val in
1363     */ )
1364       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365       eval $ac_var=\$ac_val;;
1366   esac
1367   # Be sure to have absolute directory names.
1368   case $ac_val in
1369     [\\/$]* | ?:[\\/]* )  continue;;
1370     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371   esac
1372   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1373 done
1374
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384   if test "x$build_alias" = x; then
1385     cross_compiling=maybe
1386     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387     If a cross compiler is detected then cross compile mode will be used." >&2
1388   elif test "x$build_alias" != "x$host_alias"; then
1389     cross_compiling=yes
1390   fi
1391 fi
1392
1393 ac_tool_prefix=
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1395
1396 test "$silent" = yes && exec 6>/dev/null
1397
1398
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402   as_fn_error "working directory cannot be determined"
1403 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1404   as_fn_error "pwd does not report name of working directory"
1405
1406
1407 # Find the source files, if location was not specified.
1408 if test -z "$srcdir"; then
1409   ac_srcdir_defaulted=yes
1410   # Try the directory containing this script, then the parent directory.
1411   ac_confdir=`$as_dirname -- "$as_myself" ||
1412 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1413          X"$as_myself" : 'X\(//\)[^/]' \| \
1414          X"$as_myself" : 'X\(//\)$' \| \
1415          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1416 $as_echo X"$as_myself" |
1417     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418             s//\1/
1419             q
1420           }
1421           /^X\(\/\/\)[^/].*/{
1422             s//\1/
1423             q
1424           }
1425           /^X\(\/\/\)$/{
1426             s//\1/
1427             q
1428           }
1429           /^X\(\/\).*/{
1430             s//\1/
1431             q
1432           }
1433           s/.*/./; q'`
1434   srcdir=$ac_confdir
1435   if test ! -r "$srcdir/$ac_unique_file"; then
1436     srcdir=..
1437   fi
1438 else
1439   ac_srcdir_defaulted=no
1440 fi
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1443   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1444 fi
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1448         pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451   srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_env_${ac_var}_value=\$${ac_var}
1462   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470   # Omit some internal or obsolete options to make the list less imposing.
1471   # This message is too long to be a string in the A/UX 3.1 sh.
1472   cat <<_ACEOF
1473 \`configure' configures scim-unikey 0.3.1 to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483   -h, --help              display this help and exit
1484       --help=short        display options specific to this package
1485       --help=recursive    display the short help of all the included packages
1486   -V, --version           display version information and exit
1487   -q, --quiet, --silent   do not print \`checking...' messages
1488       --cache-file=FILE   cache test results in FILE [disabled]
1489   -C, --config-cache      alias for \`--cache-file=config.cache'
1490   -n, --no-create         do not create output files
1491       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494   --prefix=PREFIX         install architecture-independent files in PREFIX
1495                           [$ac_default_prefix]
1496   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                           [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507   --bindir=DIR            user executables [EPREFIX/bin]
1508   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1509   --libexecdir=DIR        program executables [EPREFIX/libexec]
1510   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1511   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1512   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1513   --libdir=DIR            object code libraries [EPREFIX/lib]
1514   --includedir=DIR        C header files [PREFIX/include]
1515   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR           info documentation [DATAROOTDIR/info]
1519   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR            man documentation [DATAROOTDIR/man]
1521   --docdir=DIR            documentation root [DATAROOTDIR/doc/scim-unikey]
1522   --htmldir=DIR           html documentation [DOCDIR]
1523   --dvidir=DIR            dvi documentation [DOCDIR]
1524   --pdfdir=DIR            pdf documentation [DOCDIR]
1525   --psdir=DIR             ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 Program names:
1531   --program-prefix=PREFIX            prepend PREFIX to installed program names
1532   --program-suffix=SUFFIX            append SUFFIX to installed program names
1533   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542   case $ac_init_help in
1543      short | recursive ) echo "Configuration of scim-unikey 0.3.1:";;
1544    esac
1545   cat <<\_ACEOF
1546
1547 Optional Features:
1548   --disable-option-checking  ignore unrecognized --enable/--with options
1549   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1550   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1551   --disable-nls           do not use Native Language Support
1552   --disable-dependency-tracking  speeds up one-time build
1553   --enable-dependency-tracking   do not reject slow dependency extractors
1554   --disable-rpath         do not hardcode runtime library paths
1555   --enable-static[=PKGS]  build static libraries [default=no]
1556   --enable-shared[=PKGS]  build shared libraries [default=yes]
1557   --enable-fast-install[=PKGS]
1558                           optimize for fast installation [default=yes]
1559   --disable-libtool-lock  avoid locking (might break parallel builds)
1560
1561 Optional Packages:
1562   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1564   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1565   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1566   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1567   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1568   --without-libintl-prefix     don't search for libintl in includedir and libdir
1569   --with-pic              try to use only PIC/non-PIC objects [default=use
1570                           both]
1571   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1572
1573 Some influential environment variables:
1574   CC          C compiler command
1575   CFLAGS      C compiler flags
1576   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1577               nonstandard directory <lib dir>
1578   LIBS        libraries to pass to the linker, e.g. -l<library>
1579   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1580               you have headers in a nonstandard directory <include dir>
1581   CPP         C preprocessor
1582   CXX         C++ compiler command
1583   CXXFLAGS    C++ compiler flags
1584   CXXCPP      C++ preprocessor
1585   PKG_CONFIG  path to pkg-config utility
1586   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1587   GIO_LIBS    linker flags for GIO, overriding pkg-config
1588   SCIM_CFLAGS C compiler flags for SCIM, overriding pkg-config
1589   SCIM_LIBS   linker flags for SCIM, overriding pkg-config
1590   SCIM_GTKUTILS_CFLAGS
1591               C compiler flags for SCIM_GTKUTILS, overriding pkg-config
1592   SCIM_GTKUTILS_LIBS
1593               linker flags for SCIM_GTKUTILS, overriding pkg-config
1594
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1597
1598 Report bugs to <mr.lequoctuan@gmail.com>.
1599 _ACEOF
1600 ac_status=$?
1601 fi
1602
1603 if test "$ac_init_help" = "recursive"; then
1604   # If there are subdirs, report their specific --help.
1605   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606     test -d "$ac_dir" ||
1607       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608       continue
1609     ac_builddir=.
1610
1611 case "$ac_dir" in
1612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *)
1614   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615   # A ".." for each directory in $ac_dir_suffix.
1616   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617   case $ac_top_builddir_sub in
1618   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620   esac ;;
1621 esac
1622 ac_abs_top_builddir=$ac_pwd
1623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624 # for backward compatibility:
1625 ac_top_builddir=$ac_top_build_prefix
1626
1627 case $srcdir in
1628   .)  # We are building in place.
1629     ac_srcdir=.
1630     ac_top_srcdir=$ac_top_builddir_sub
1631     ac_abs_top_srcdir=$ac_pwd ;;
1632   [\\/]* | ?:[\\/]* )  # Absolute name.
1633     ac_srcdir=$srcdir$ac_dir_suffix;
1634     ac_top_srcdir=$srcdir
1635     ac_abs_top_srcdir=$srcdir ;;
1636   *) # Relative name.
1637     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638     ac_top_srcdir=$ac_top_build_prefix$srcdir
1639     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 esac
1641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643     cd "$ac_dir" || { ac_status=$?; continue; }
1644     # Check for guested configure.
1645     if test -f "$ac_srcdir/configure.gnu"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648     elif test -f "$ac_srcdir/configure"; then
1649       echo &&
1650       $SHELL "$ac_srcdir/configure" --help=recursive
1651     else
1652       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653     fi || ac_status=$?
1654     cd "$ac_pwd" || { ac_status=$?; break; }
1655   done
1656 fi
1657
1658 test -n "$ac_init_help" && exit $ac_status
1659 if $ac_init_version; then
1660   cat <<\_ACEOF
1661 scim-unikey configure 0.3.1
1662 generated by GNU Autoconf 2.64
1663
1664 Copyright (C) 2009 Free Software Foundation, Inc.
1665 This configure script is free software; the Free Software Foundation
1666 gives unlimited permission to copy, distribute and modify it.
1667 _ACEOF
1668   exit
1669 fi
1670
1671 ## ------------------------ ##
1672 ## Autoconf initialization. ##
1673 ## ------------------------ ##
1674
1675 # ac_fn_c_try_compile LINENO
1676 # --------------------------
1677 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_compile ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   rm -f conftest.$ac_objext
1682   if { { ac_try="$ac_compile"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_compile") 2>conftest.err
1690   ac_status=$?
1691   if test -s conftest.err; then
1692     grep -v '^ *+' conftest.err >conftest.er1
1693     cat conftest.er1 >&5
1694     mv -f conftest.er1 conftest.err
1695   fi
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } && {
1698          test -z "$ac_c_werror_flag" ||
1699          test ! -s conftest.err
1700        } && test -s conftest.$ac_objext; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706         ac_retval=1
1707 fi
1708   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709   return $ac_retval
1710
1711 } # ac_fn_c_try_compile
1712
1713 # ac_fn_c_try_link LINENO
1714 # -----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_link ()
1717 {
1718   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719   rm -f conftest.$ac_objext conftest$ac_exeext
1720   if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_link") 2>conftest.err
1728   ac_status=$?
1729   if test -s conftest.err; then
1730     grep -v '^ *+' conftest.err >conftest.er1
1731     cat conftest.er1 >&5
1732     mv -f conftest.er1 conftest.err
1733   fi
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; } && {
1736          test -z "$ac_c_werror_flag" ||
1737          test ! -s conftest.err
1738        } && test -s conftest$ac_exeext && {
1739          test "$cross_compiling" = yes ||
1740          $as_test_x conftest$ac_exeext
1741        }; then :
1742   ac_retval=0
1743 else
1744   $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747         ac_retval=1
1748 fi
1749   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751   # interfere with the next link command; also delete a directory that is
1752   # left behind by Apple's compiler.  We do this before executing the actions.
1753   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755   return $ac_retval
1756
1757 } # ac_fn_c_try_link
1758
1759 # ac_fn_c_try_run LINENO
1760 # ----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1762 # that executables *can* be run.
1763 ac_fn_c_try_run ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   if { { ac_try="$ac_link"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773   (eval "$ac_link") 2>&5
1774   ac_status=$?
1775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1777   { { case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_try") 2>&5
1784   ac_status=$?
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; }; }; then :
1787   ac_retval=0
1788 else
1789   $as_echo "$as_me: program exited with status $ac_status" >&5
1790        $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793        ac_retval=$ac_status
1794 fi
1795   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797   return $ac_retval
1798
1799 } # ac_fn_c_try_run
1800
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811   $as_echo_n "(cached) " >&6
1812 else
1813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h.  */
1815 $4
1816 #include <$2>
1817 _ACEOF
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819   eval "$3=yes"
1820 else
1821   eval "$3=no"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824 fi
1825 eval ac_res=\$$3
1826                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827 $as_echo "$ac_res" >&6; }
1828   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829
1830 } # ac_fn_c_check_header_compile
1831
1832 # ac_fn_c_try_cpp LINENO
1833 # ----------------------
1834 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_cpp ()
1836 {
1837   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838   if { { ac_try="$ac_cpp conftest.$ac_ext"
1839 case "(($ac_try" in
1840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841   *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1846   ac_status=$?
1847   if test -s conftest.err; then
1848     grep -v '^ *+' conftest.err >conftest.er1
1849     cat conftest.er1 >&5
1850     mv -f conftest.er1 conftest.err
1851   fi
1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } >/dev/null && {
1854          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1855          test ! -s conftest.err
1856        }; then :
1857   ac_retval=0
1858 else
1859   $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1861
1862     ac_retval=1
1863 fi
1864   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865   return $ac_retval
1866
1867 } # ac_fn_c_try_cpp
1868
1869 # ac_fn_c_check_func LINENO FUNC VAR
1870 # ----------------------------------
1871 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1872 ac_fn_c_check_func ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876 $as_echo_n "checking for $2... " >&6; }
1877 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1878   $as_echo_n "(cached) " >&6
1879 else
1880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1884 #define $2 innocuous_$2
1885
1886 /* System header to define __stub macros and hopefully few prototypes,
1887     which can conflict with char $2 (); below.
1888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889     <limits.h> exists even on freestanding compilers.  */
1890
1891 #ifdef __STDC__
1892 # include <limits.h>
1893 #else
1894 # include <assert.h>
1895 #endif
1896
1897 #undef $2
1898
1899 /* Override any GCC internal prototype to avoid an error.
1900    Use char because int might match the return type of a GCC
1901    builtin and then its argument prototype would still apply.  */
1902 #ifdef __cplusplus
1903 extern "C"
1904 #endif
1905 char $2 ();
1906 /* The GNU C library defines this for functions which it implements
1907     to always fail with ENOSYS.  Some functions are actually named
1908     something starting with __ and the normal name is an alias.  */
1909 #if defined __stub_$2 || defined __stub___$2
1910 choke me
1911 #endif
1912
1913 int
1914 main ()
1915 {
1916 return $2 ();
1917   ;
1918   return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_link "$LINENO"; then :
1922   eval "$3=yes"
1923 else
1924   eval "$3=no"
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext \
1927     conftest$ac_exeext conftest.$ac_ext
1928 fi
1929 eval ac_res=\$$3
1930                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933
1934 } # ac_fn_c_check_func
1935
1936 # ac_fn_cxx_try_compile LINENO
1937 # ----------------------------
1938 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1939 ac_fn_cxx_try_compile ()
1940 {
1941   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942   rm -f conftest.$ac_objext
1943   if { { ac_try="$ac_compile"
1944 case "(($ac_try" in
1945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946   *) ac_try_echo=$ac_try;;
1947 esac
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950   (eval "$ac_compile") 2>conftest.err
1951   ac_status=$?
1952   if test -s conftest.err; then
1953     grep -v '^ *+' conftest.err >conftest.er1
1954     cat conftest.er1 >&5
1955     mv -f conftest.er1 conftest.err
1956   fi
1957   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1958   test $ac_status = 0; } && {
1959          test -z "$ac_cxx_werror_flag" ||
1960          test ! -s conftest.err
1961        } && test -s conftest.$ac_objext; then :
1962   ac_retval=0
1963 else
1964   $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966
1967         ac_retval=1
1968 fi
1969   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970   return $ac_retval
1971
1972 } # ac_fn_cxx_try_compile
1973
1974 # ac_fn_cxx_try_cpp LINENO
1975 # ------------------------
1976 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_cxx_try_cpp ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if { { ac_try="$ac_cpp conftest.$ac_ext"
1981 case "(($ac_try" in
1982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1983   *) ac_try_echo=$ac_try;;
1984 esac
1985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1986 $as_echo "$ac_try_echo"; } >&5
1987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1988   ac_status=$?
1989   if test -s conftest.err; then
1990     grep -v '^ *+' conftest.err >conftest.er1
1991     cat conftest.er1 >&5
1992     mv -f conftest.er1 conftest.err
1993   fi
1994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1995   test $ac_status = 0; } >/dev/null && {
1996          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1997          test ! -s conftest.err
1998        }; then :
1999   ac_retval=0
2000 else
2001   $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004     ac_retval=1
2005 fi
2006   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2007   return $ac_retval
2008
2009 } # ac_fn_cxx_try_cpp
2010
2011 # ac_fn_cxx_try_link LINENO
2012 # -------------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded.
2014 ac_fn_cxx_try_link ()
2015 {
2016   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017   rm -f conftest.$ac_objext conftest$ac_exeext
2018   if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021   *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025   (eval "$ac_link") 2>conftest.err
2026   ac_status=$?
2027   if test -s conftest.err; then
2028     grep -v '^ *+' conftest.err >conftest.er1
2029     cat conftest.er1 >&5
2030     mv -f conftest.er1 conftest.err
2031   fi
2032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033   test $ac_status = 0; } && {
2034          test -z "$ac_cxx_werror_flag" ||
2035          test ! -s conftest.err
2036        } && test -s conftest$ac_exeext && {
2037          test "$cross_compiling" = yes ||
2038          $as_test_x conftest$ac_exeext
2039        }; then :
2040   ac_retval=0
2041 else
2042   $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045         ac_retval=1
2046 fi
2047   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2048   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2049   # interfere with the next link command; also delete a directory that is
2050   # left behind by Apple's compiler.  We do this before executing the actions.
2051   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053   return $ac_retval
2054
2055 } # ac_fn_cxx_try_link
2056
2057 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2058 # ---------------------------------------------
2059 # Tests whether TYPE exists after having included INCLUDES, setting cache
2060 # variable VAR accordingly.
2061 ac_fn_cxx_check_type ()
2062 {
2063   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2067   $as_echo_n "(cached) " >&6
2068 else
2069   eval "$3=no"
2070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h.  */
2072 $4
2073 int
2074 main ()
2075 {
2076 if (sizeof ($2))
2077          return 0;
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_cxx_try_compile "$LINENO"; then :
2083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h.  */
2085 $4
2086 int
2087 main ()
2088 {
2089 if (sizeof (($2)))
2090             return 0;
2091   ;
2092   return 0;
2093 }
2094 _ACEOF
2095 if ac_fn_cxx_try_compile "$LINENO"; then :
2096
2097 else
2098   eval "$3=yes"
2099 fi
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 fi
2104 eval ac_res=\$$3
2105                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106 $as_echo "$ac_res" >&6; }
2107   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108
2109 } # ac_fn_cxx_check_type
2110
2111 # ac_fn_cxx_try_run LINENO
2112 # ------------------------
2113 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2114 # that executables *can* be run.
2115 ac_fn_cxx_try_run ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   if { { ac_try="$ac_link"
2119 case "(($ac_try" in
2120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121   *) ac_try_echo=$ac_try;;
2122 esac
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125   (eval "$ac_link") 2>&5
2126   ac_status=$?
2127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2128   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2129   { { case "(($ac_try" in
2130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131   *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135   (eval "$ac_try") 2>&5
2136   ac_status=$?
2137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138   test $ac_status = 0; }; }; then :
2139   ac_retval=0
2140 else
2141   $as_echo "$as_me: program exited with status $ac_status" >&5
2142        $as_echo "$as_me: failed program was:" >&5
2143 sed 's/^/| /' conftest.$ac_ext >&5
2144
2145        ac_retval=$ac_status
2146 fi
2147   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2148   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149   return $ac_retval
2150
2151 } # ac_fn_cxx_try_run
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2155
2156 It was created by scim-unikey $as_me 0.3.1, which was
2157 generated by GNU Autoconf 2.64.  Invocation command line was
2158
2159   $ $0 $@
2160
2161 _ACEOF
2162 exec 5>>config.log
2163 {
2164 cat <<_ASUNAME
2165 ## --------- ##
2166 ## Platform. ##
2167 ## --------- ##
2168
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2174
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2177
2178 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2179 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2182 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2183 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2184 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2185
2186 _ASUNAME
2187
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 for as_dir in $PATH
2190 do
2191   IFS=$as_save_IFS
2192   test -z "$as_dir" && as_dir=.
2193     $as_echo "PATH: $as_dir"
2194   done
2195 IFS=$as_save_IFS
2196
2197 } >&5
2198
2199 cat >&5 <<_ACEOF
2200
2201
2202 ## ----------- ##
2203 ## Core tests. ##
2204 ## ----------- ##
2205
2206 _ACEOF
2207
2208
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2214 ac_configure_args=
2215 ac_configure_args0=
2216 ac_configure_args1=
2217 ac_must_keep_next=false
2218 for ac_pass in 1 2
2219 do
2220   for ac_arg
2221   do
2222     case $ac_arg in
2223     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225     | -silent | --silent | --silen | --sile | --sil)
2226       continue ;;
2227     *\'*)
2228       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2229     esac
2230     case $ac_pass in
2231     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2232     2)
2233       as_fn_append ac_configure_args1 " '$ac_arg'"
2234       if test $ac_must_keep_next = true; then
2235         ac_must_keep_next=false # Got value, back to normal.
2236       else
2237         case $ac_arg in
2238           *=* | --config-cache | -C | -disable-* | --disable-* \
2239           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241           | -with-* | --with-* | -without-* | --without-* | --x)
2242             case "$ac_configure_args0 " in
2243               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244             esac
2245             ;;
2246           -* ) ac_must_keep_next=true ;;
2247         esac
2248       fi
2249       as_fn_append ac_configure_args " '$ac_arg'"
2250       ;;
2251     esac
2252   done
2253 done
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2256
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log.  We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263   # Save into config.log some information that might help in debugging.
2264   {
2265     echo
2266
2267     cat <<\_ASBOX
2268 ## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##
2271 _ASBOX
2272     echo
2273     # The following way of writing the cache mishandles newlines in values,
2274 (
2275   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276     eval ac_val=\$$ac_var
2277     case $ac_val in #(
2278     *${as_nl}*)
2279       case $ac_var in #(
2280       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282       esac
2283       case $ac_var in #(
2284       _ | IFS | as_nl) ;; #(
2285       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286       *) { eval $ac_var=; unset $ac_var;} ;;
2287       esac ;;
2288     esac
2289   done
2290   (set) 2>&1 |
2291     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292     *${as_nl}ac_space=\ *)
2293       sed -n \
2294         "s/'\''/'\''\\\\'\'''\''/g;
2295           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296       ;; #(
2297     *)
2298       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2299       ;;
2300     esac |
2301     sort
2302 )
2303     echo
2304
2305     cat <<\_ASBOX
2306 ## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##
2309 _ASBOX
2310     echo
2311     for ac_var in $ac_subst_vars
2312     do
2313       eval ac_val=\$$ac_var
2314       case $ac_val in
2315       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316       esac
2317       $as_echo "$ac_var='\''$ac_val'\''"
2318     done | sort
2319     echo
2320
2321     if test -n "$ac_subst_files"; then
2322       cat <<\_ASBOX
2323 ## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##
2326 _ASBOX
2327       echo
2328       for ac_var in $ac_subst_files
2329       do
2330         eval ac_val=\$$ac_var
2331         case $ac_val in
2332         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333         esac
2334         $as_echo "$ac_var='\''$ac_val'\''"
2335       done | sort
2336       echo
2337     fi
2338
2339     if test -s confdefs.h; then
2340       cat <<\_ASBOX
2341 ## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##
2344 _ASBOX
2345       echo
2346       cat confdefs.h
2347       echo
2348     fi
2349     test "$ac_signal" != 0 &&
2350       $as_echo "$as_me: caught signal $ac_signal"
2351     $as_echo "$as_me: exit $exit_status"
2352   } >&5
2353   rm -f core *.core core.conftest.* &&
2354     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355     exit $exit_status
2356 ' 0
2357 for ac_signal in 1 2 13 15; do
2358   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2359 done
2360 ac_signal=0
2361
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2364
2365 $as_echo "/* confdefs.h */" > confdefs.h
2366
2367 # Predefined preprocessor variables.
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2391 _ACEOF
2392
2393
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2396 ac_site_file1=NONE
2397 ac_site_file2=NONE
2398 if test -n "$CONFIG_SITE"; then
2399   ac_site_file1=$CONFIG_SITE
2400 elif test "x$prefix" != xNONE; then
2401   ac_site_file1=$prefix/share/config.site
2402   ac_site_file2=$prefix/etc/config.site
2403 else
2404   ac_site_file1=$ac_default_prefix/share/config.site
2405   ac_site_file2=$ac_default_prefix/etc/config.site
2406 fi
2407 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2408 do
2409   test "x$ac_site_file" = xNONE && continue
2410   if test -r "$ac_site_file"; then
2411     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2412 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2413     sed 's/^/| /' "$ac_site_file" >&5
2414     . "$ac_site_file"
2415   fi
2416 done
2417
2418 if test -r "$cache_file"; then
2419   # Some versions of bash will fail to source /dev/null (special
2420   # files actually), so we avoid doing that.
2421   if test -f "$cache_file"; then
2422     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2423 $as_echo "$as_me: loading cache $cache_file" >&6;}
2424     case $cache_file in
2425       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2426       *)                      . "./$cache_file";;
2427     esac
2428   fi
2429 else
2430   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2431 $as_echo "$as_me: creating cache $cache_file" >&6;}
2432   >$cache_file
2433 fi
2434
2435 gt_needs="$gt_needs "
2436 # Check that the precious variables saved in the cache have kept the same
2437 # value.
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441   eval ac_new_set=\$ac_env_${ac_var}_set
2442   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443   eval ac_new_val=\$ac_env_${ac_var}_value
2444   case $ac_old_set,$ac_new_set in
2445     set,)
2446       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2447 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448       ac_cache_corrupted=: ;;
2449     ,set)
2450       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2452       ac_cache_corrupted=: ;;
2453     ,);;
2454     *)
2455       if test "x$ac_old_val" != "x$ac_new_val"; then
2456         # differences in whitespace do not lead to failure.
2457         ac_old_val_w=`echo x $ac_old_val`
2458         ac_new_val_w=`echo x $ac_new_val`
2459         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2462           ac_cache_corrupted=:
2463         else
2464           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466           eval $ac_var=\$ac_old_val
2467         fi
2468         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2469 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2470         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2472       fi;;
2473   esac
2474   # Pass precious variables to config.status.
2475   if test "$ac_new_set" = set; then
2476     case $ac_new_val in
2477     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2478     *) ac_arg=$ac_var=$ac_new_val ;;
2479     esac
2480     case " $ac_configure_args " in
2481       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2482       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2483     esac
2484   fi
2485 done
2486 if $ac_cache_corrupted; then
2487   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2492 fi
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2496
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504
2505 cflags_set=${CFLAGS+set}
2506 cppflags_set=${CPPFLAGS+set}
2507
2508 # Init automake stuff
2509 am__api_version='1.11'
2510
2511 ac_aux_dir=
2512 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2513   for ac_t in install-sh install.sh shtool; do
2514     if test -f "$ac_dir/$ac_t"; then
2515       ac_aux_dir=$ac_dir
2516       ac_install_sh="$ac_aux_dir/$ac_t -c"
2517       break 2
2518     fi
2519   done
2520 done
2521 if test -z "$ac_aux_dir"; then
2522   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2523 fi
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2532
2533
2534 # Find a good install program.  We prefer a C program (faster),
2535 # so one script is as good as another.  But avoid the broken or
2536 # incompatible versions:
2537 # SysV /etc/install, /usr/sbin/install
2538 # SunOS /usr/etc/install
2539 # IRIX /sbin/install
2540 # AIX /bin/install
2541 # AmigaOS /C/install, which installs bootblocks on floppy discs
2542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2545 # OS/2's system install, which has a completely different semantic
2546 # ./install, which can be erroneously created by make from ./install.sh.
2547 # Reject install programs that cannot install multiple files.
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2549 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2550 if test -z "$INSTALL"; then
2551 if test "${ac_cv_path_install+set}" = set; then :
2552   $as_echo_n "(cached) " >&6
2553 else
2554   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2555 for as_dir in $PATH
2556 do
2557   IFS=$as_save_IFS
2558   test -z "$as_dir" && as_dir=.
2559     # Account for people who put trailing slashes in PATH elements.
2560 case $as_dir/ in #((
2561   ./ | .// | /[cC]/* | \
2562   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2563   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2564   /usr/ucb/* ) ;;
2565   *)
2566     # OSF1 and SCO ODT 3.0 have their own names for install.
2567     # Don't use installbsd from OSF since it installs stuff as root
2568     # by default.
2569     for ac_prog in ginstall scoinst install; do
2570       for ac_exec_ext in '' $ac_executable_extensions; do
2571         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2572           if test $ac_prog = install &&
2573             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2574             # AIX install.  It has an incompatible calling convention.
2575             :
2576           elif test $ac_prog = install &&
2577             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2578             # program-specific install script used by HP pwplus--don't use.
2579             :
2580           else
2581             rm -rf conftest.one conftest.two conftest.dir
2582             echo one > conftest.one
2583             echo two > conftest.two
2584             mkdir conftest.dir
2585             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2586               test -s conftest.one && test -s conftest.two &&
2587               test -s conftest.dir/conftest.one &&
2588               test -s conftest.dir/conftest.two
2589             then
2590               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2591               break 3
2592             fi
2593           fi
2594         fi
2595       done
2596     done
2597     ;;
2598 esac
2599
2600   done
2601 IFS=$as_save_IFS
2602
2603 rm -rf conftest.one conftest.two conftest.dir
2604
2605 fi
2606   if test "${ac_cv_path_install+set}" = set; then
2607     INSTALL=$ac_cv_path_install
2608   else
2609     # As a last resort, use the slow shell script.  Don't cache a
2610     # value for INSTALL within a source directory, because that will
2611     # break other packages using the cache if that directory is
2612     # removed, or if the value is a relative name.
2613     INSTALL=$ac_install_sh
2614   fi
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2617 $as_echo "$INSTALL" >&6; }
2618
2619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2620 # It thinks the first close brace ends the variable substitution.
2621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2622
2623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2624
2625 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2628 $as_echo_n "checking whether build environment is sane... " >&6; }
2629 # Just in case
2630 sleep 1
2631 echo timestamp > conftest.file
2632 # Reject unsafe characters in $srcdir or the absolute working directory
2633 # name.  Accept space and tab only in the latter.
2634 am_lf='
2635 '
2636 case `pwd` in
2637   *[\\\"\#\$\&\'\`$am_lf]*)
2638     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2639 esac
2640 case $srcdir in
2641   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2642     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2643 esac
2644
2645 # Do `set' in a subshell so we don't clobber the current shell's
2646 # arguments.  Must try -L first in case configure is actually a
2647 # symlink; some systems play weird games with the mod time of symlinks
2648 # (eg FreeBSD returns the mod time of the symlink's containing
2649 # directory).
2650 if (
2651    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2652    if test "$*" = "X"; then
2653       # -L didn't work.
2654       set X `ls -t "$srcdir/configure" conftest.file`
2655    fi
2656    rm -f conftest.file
2657    if test "$*" != "X $srcdir/configure conftest.file" \
2658       && test "$*" != "X conftest.file $srcdir/configure"; then
2659
2660       # If neither matched, then we have a broken ls.  This can happen
2661       # if, for instance, CONFIG_SHELL is bash and it inherits a
2662       # broken ls alias from the environment.  This has actually
2663       # happened.  Such a system could not be considered "sane".
2664       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2665 alias in your environment" "$LINENO" 5
2666    fi
2667
2668    test "$2" = conftest.file
2669    )
2670 then
2671    # Ok.
2672    :
2673 else
2674    as_fn_error "newly created file is older than distributed files!
2675 Check your system clock" "$LINENO" 5
2676 fi
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2678 $as_echo "yes" >&6; }
2679 test "$program_prefix" != NONE &&
2680   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2681 # Use a double $ so make ignores it.
2682 test "$program_suffix" != NONE &&
2683   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2684 # Double any \ or $.
2685 # By default was `s,x,x', remove it if useless.
2686 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2687 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2688
2689 # expand $ac_aux_dir to an absolute path
2690 am_aux_dir=`cd $ac_aux_dir && pwd`
2691
2692 if test x"${MISSING+set}" != xset; then
2693   case $am_aux_dir in
2694   *\ * | *\     *)
2695     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2696   *)
2697     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2698   esac
2699 fi
2700 # Use eval to expand $SHELL
2701 if eval "$MISSING --run true"; then
2702   am_missing_run="$MISSING --run "
2703 else
2704   am_missing_run=
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2706 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2707 fi
2708
2709 if test x"${install_sh}" != xset; then
2710   case $am_aux_dir in
2711   *\ * | *\     *)
2712     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2713   *)
2714     install_sh="\${SHELL} $am_aux_dir/install-sh"
2715   esac
2716 fi
2717
2718 # Installed binaries are usually stripped using `strip' when the user
2719 # run `make install-strip'.  However `strip' might not be the right
2720 # tool to use in cross-compilation environments, therefore Automake
2721 # will honor the `STRIP' environment variable to overrule this program.
2722 if test "$cross_compiling" != no; then
2723   if test -n "$ac_tool_prefix"; then
2724   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2725 set dummy ${ac_tool_prefix}strip; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_STRIP+set}" = set; then :
2729   $as_echo_n "(cached) " >&6
2730 else
2731   if test -n "$STRIP"; then
2732   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737   IFS=$as_save_IFS
2738   test -z "$as_dir" && as_dir=.
2739     for ac_exec_ext in '' $ac_executable_extensions; do
2740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743     break 2
2744   fi
2745 done
2746   done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 STRIP=$ac_cv_prog_STRIP
2752 if test -n "$STRIP"; then
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2754 $as_echo "$STRIP" >&6; }
2755 else
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 fi
2762 if test -z "$ac_cv_prog_STRIP"; then
2763   ac_ct_STRIP=$STRIP
2764   # Extract the first word of "strip", so it can be a program name with args.
2765 set dummy strip; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2769   $as_echo_n "(cached) " >&6
2770 else
2771   if test -n "$ac_ct_STRIP"; then
2772   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2773 else
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_exec_ext in '' $ac_executable_extensions; do
2780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781     ac_cv_prog_ac_ct_STRIP="strip"
2782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783     break 2
2784   fi
2785 done
2786   done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2792 if test -n "$ac_ct_STRIP"; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2794 $as_echo "$ac_ct_STRIP" >&6; }
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798 fi
2799
2800   if test "x$ac_ct_STRIP" = x; then
2801     STRIP=":"
2802   else
2803     case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809     STRIP=$ac_ct_STRIP
2810   fi
2811 else
2812   STRIP="$ac_cv_prog_STRIP"
2813 fi
2814
2815 fi
2816 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2817
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2819 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2820 if test -z "$MKDIR_P"; then
2821   if test "${ac_cv_path_mkdir+set}" = set; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     for ac_prog in mkdir gmkdir; do
2830          for ac_exec_ext in '' $ac_executable_extensions; do
2831            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2832            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2833              'mkdir (GNU coreutils) '* | \
2834              'mkdir (coreutils) '* | \
2835              'mkdir (fileutils) '4.1*)
2836                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2837                break 3;;
2838            esac
2839          done
2840        done
2841   done
2842 IFS=$as_save_IFS
2843
2844 fi
2845
2846   if test "${ac_cv_path_mkdir+set}" = set; then
2847     MKDIR_P="$ac_cv_path_mkdir -p"
2848   else
2849     # As a last resort, use the slow shell script.  Don't cache a
2850     # value for MKDIR_P within a source directory, because that will
2851     # break other packages using the cache if that directory is
2852     # removed, or if the value is a relative name.
2853     test -d ./--version && rmdir ./--version
2854     MKDIR_P="$ac_install_sh -d"
2855   fi
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2858 $as_echo "$MKDIR_P" >&6; }
2859
2860 mkdir_p="$MKDIR_P"
2861 case $mkdir_p in
2862   [\\/$]* | ?:[\\/]*) ;;
2863   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2864 esac
2865
2866 for ac_prog in gawk mawk nawk awk
2867 do
2868   # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 $as_echo_n "checking for $ac_word... " >&6; }
2872 if test "${ac_cv_prog_AWK+set}" = set; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if test -n "$AWK"; then
2876   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881   IFS=$as_save_IFS
2882   test -z "$as_dir" && as_dir=.
2883     for ac_exec_ext in '' $ac_executable_extensions; do
2884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2885     ac_cv_prog_AWK="$ac_prog"
2886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2887     break 2
2888   fi
2889 done
2890   done
2891 IFS=$as_save_IFS
2892
2893 fi
2894 fi
2895 AWK=$ac_cv_prog_AWK
2896 if test -n "$AWK"; then
2897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2898 $as_echo "$AWK" >&6; }
2899 else
2900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901 $as_echo "no" >&6; }
2902 fi
2903
2904
2905   test -n "$AWK" && break
2906 done
2907
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2909 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2910 set x ${MAKE-make}
2911 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2912 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2913   $as_echo_n "(cached) " >&6
2914 else
2915   cat >conftest.make <<\_ACEOF
2916 SHELL = /bin/sh
2917 all:
2918         @echo '@@@%%%=$(MAKE)=@@@%%%'
2919 _ACEOF
2920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2921 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2922   *@@@%%%=?*=@@@%%%*)
2923     eval ac_cv_prog_make_${ac_make}_set=yes;;
2924   *)
2925     eval ac_cv_prog_make_${ac_make}_set=no;;
2926 esac
2927 rm -f conftest.make
2928 fi
2929 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931 $as_echo "yes" >&6; }
2932   SET_MAKE=
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936   SET_MAKE="MAKE=${MAKE-make}"
2937 fi
2938
2939 rm -rf .tst 2>/dev/null
2940 mkdir .tst 2>/dev/null
2941 if test -d .tst; then
2942   am__leading_dot=.
2943 else
2944   am__leading_dot=_
2945 fi
2946 rmdir .tst 2>/dev/null
2947
2948 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2949   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2950   # is not polluted with repeated "-I."
2951   am__isrc=' -I$(srcdir)'
2952   # test to see if srcdir already configured
2953   if test -f $srcdir/config.status; then
2954     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2955   fi
2956 fi
2957
2958 # test whether we have cygpath
2959 if test -z "$CYGPATH_W"; then
2960   if (cygpath --version) >/dev/null 2>/dev/null; then
2961     CYGPATH_W='cygpath -w'
2962   else
2963     CYGPATH_W=echo
2964   fi
2965 fi
2966
2967
2968 # Define the identity of the package.
2969  PACKAGE='scim-unikey'
2970  VERSION='0.3.1'
2971
2972
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE "$PACKAGE"
2975 _ACEOF
2976
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define VERSION "$VERSION"
2980 _ACEOF
2981
2982 # Some tools Automake needs.
2983
2984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2985
2986
2987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2988
2989
2990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2991
2992
2993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2994
2995
2996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2997
2998 # We need awk for the "check" target.  The system "awk" is bad on
2999 # some platforms.
3000 # Always define AMTAR for backward compatibility.
3001
3002 AMTAR=${AMTAR-"${am_missing_run}tar"}
3003
3004 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers config.h"
3011
3012
3013 # Installed binaries are usually stripped using `strip' when the user
3014 # run `make install-strip'.  However `strip' might not be the right
3015 # tool to use in cross-compilation environments, therefore Automake
3016 # will honor the `STRIP' environment variable to overrule this program.
3017 if test "$cross_compiling" != no; then
3018   if test -n "$ac_tool_prefix"; then
3019   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020 set dummy ${ac_tool_prefix}strip; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_STRIP+set}" = set; then :
3024   $as_echo_n "(cached) " >&6
3025 else
3026   if test -n "$STRIP"; then
3027   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032   IFS=$as_save_IFS
3033   test -z "$as_dir" && as_dir=.
3034     for ac_exec_ext in '' $ac_executable_extensions; do
3035   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038     break 2
3039   fi
3040 done
3041   done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 STRIP=$ac_cv_prog_STRIP
3047 if test -n "$STRIP"; then
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049 $as_echo "$STRIP" >&6; }
3050 else
3051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$ac_cv_prog_STRIP"; then
3058   ac_ct_STRIP=$STRIP
3059   # Extract the first word of "strip", so it can be a program name with args.
3060 set dummy strip; ac_word=$2
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062 $as_echo_n "checking for $ac_word... " >&6; }
3063 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   if test -n "$ac_ct_STRIP"; then
3067   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   test -z "$as_dir" && as_dir=.
3074     for ac_exec_ext in '' $ac_executable_extensions; do
3075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076     ac_cv_prog_ac_ct_STRIP="strip"
3077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081   done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087 if test -n "$ac_ct_STRIP"; then
3088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089 $as_echo "$ac_ct_STRIP" >&6; }
3090 else
3091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3093 fi
3094
3095   if test "x$ac_ct_STRIP" = x; then
3096     STRIP=":"
3097   else
3098     case $cross_compiling:$ac_tool_warned in
3099 yes:)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102 ac_tool_warned=yes ;;
3103 esac
3104     STRIP=$ac_ct_STRIP
3105   fi
3106 else
3107   STRIP="$ac_cv_prog_STRIP"
3108 fi
3109
3110 fi
3111 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3112
3113
3114
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
3116 $as_echo_n "checking whether NLS is requested... " >&6; }
3117     # Check whether --enable-nls was given.
3118 if test "${enable_nls+set}" = set; then :
3119   enableval=$enable_nls; USE_NLS=$enableval
3120 else
3121   USE_NLS=yes
3122 fi
3123
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
3125 $as_echo "$USE_NLS" >&6; }
3126
3127
3128
3129
3130       GETTEXT_MACRO_VERSION=0.17
3131
3132
3133
3134
3135 # Prepare PATH_SEPARATOR.
3136 # The user is always right.
3137 if test "${PATH_SEPARATOR+set}" != set; then
3138   echo "#! /bin/sh" >conf$$.sh
3139   echo  "exit 0"   >>conf$$.sh
3140   chmod +x conf$$.sh
3141   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3142     PATH_SEPARATOR=';'
3143   else
3144     PATH_SEPARATOR=:
3145   fi
3146   rm -f conf$$.sh
3147 fi
3148
3149 # Find out how to test for executable files. Don't use a zero-byte file,
3150 # as systems may use methods other than mode bits to determine executability.
3151 cat >conf$$.file <<_ASEOF
3152 #! /bin/sh
3153 exit 0
3154 _ASEOF
3155 chmod +x conf$$.file
3156 if test -x conf$$.file >/dev/null 2>&1; then
3157   ac_executable_p="test -x"
3158 else
3159   ac_executable_p="test -f"
3160 fi
3161 rm -f conf$$.file
3162
3163 # Extract the first word of "msgfmt", so it can be a program name with args.
3164 set dummy msgfmt; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_path_MSGFMT+set}" = set; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   case "$MSGFMT" in
3171   [\\/]* | ?:[\\/]*)
3172     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3173     ;;
3174   *)
3175     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3176     for ac_dir in $PATH; do
3177       IFS="$ac_save_IFS"
3178       test -z "$ac_dir" && ac_dir=.
3179       for ac_exec_ext in '' $ac_executable_extensions; do
3180         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3181           echo "$as_me: trying $ac_dir/$ac_word..." >&5
3182           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
3183      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3184             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3185             break 2
3186           fi
3187         fi
3188       done
3189     done
3190     IFS="$ac_save_IFS"
3191   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3192     ;;
3193 esac
3194 fi
3195 MSGFMT="$ac_cv_path_MSGFMT"
3196 if test "$MSGFMT" != ":"; then
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3198 $as_echo "$MSGFMT" >&6; }
3199 else
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 $as_echo "no" >&6; }
3202 fi
3203
3204   # Extract the first word of "gmsgfmt", so it can be a program name with args.
3205 set dummy gmsgfmt; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   case $GMSGFMT in
3212   [\\/]* | ?:[\\/]*)
3213   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3214   ;;
3215   *)
3216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221     for ac_exec_ext in '' $ac_executable_extensions; do
3222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228   done
3229 IFS=$as_save_IFS
3230
3231   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3232   ;;
3233 esac
3234 fi
3235 GMSGFMT=$ac_cv_path_GMSGFMT
3236 if test -n "$GMSGFMT"; then
3237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
3238 $as_echo "$GMSGFMT" >&6; }
3239 else
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245
3246     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3247     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
3248     *) MSGFMT_015=$MSGFMT ;;
3249   esac
3250
3251   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3252     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
3253     *) GMSGFMT_015=$GMSGFMT ;;
3254   esac
3255
3256
3257
3258 # Prepare PATH_SEPARATOR.
3259 # The user is always right.
3260 if test "${PATH_SEPARATOR+set}" != set; then
3261   echo "#! /bin/sh" >conf$$.sh
3262   echo  "exit 0"   >>conf$$.sh
3263   chmod +x conf$$.sh
3264   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3265     PATH_SEPARATOR=';'
3266   else
3267     PATH_SEPARATOR=:
3268   fi
3269   rm -f conf$$.sh
3270 fi
3271
3272 # Find out how to test for executable files. Don't use a zero-byte file,
3273 # as systems may use methods other than mode bits to determine executability.
3274 cat >conf$$.file <<_ASEOF
3275 #! /bin/sh
3276 exit 0
3277 _ASEOF
3278 chmod +x conf$$.file
3279 if test -x conf$$.file >/dev/null 2>&1; then
3280   ac_executable_p="test -x"
3281 else
3282   ac_executable_p="test -f"
3283 fi
3284 rm -f conf$$.file
3285
3286 # Extract the first word of "xgettext", so it can be a program name with args.
3287 set dummy xgettext; ac_word=$2
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289 $as_echo_n "checking for $ac_word... " >&6; }
3290 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
3291   $as_echo_n "(cached) " >&6
3292 else
3293   case "$XGETTEXT" in
3294   [\\/]* | ?:[\\/]*)
3295     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3296     ;;
3297   *)
3298     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3299     for ac_dir in $PATH; do
3300       IFS="$ac_save_IFS"
3301       test -z "$ac_dir" && ac_dir=.
3302       for ac_exec_ext in '' $ac_executable_extensions; do
3303         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3304           echo "$as_me: trying $ac_dir/$ac_word..." >&5
3305           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
3306      (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
3307             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3308             break 2
3309           fi
3310         fi
3311       done
3312     done
3313     IFS="$ac_save_IFS"
3314   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3315     ;;
3316 esac
3317 fi
3318 XGETTEXT="$ac_cv_path_XGETTEXT"
3319 if test "$XGETTEXT" != ":"; then
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3321 $as_echo "$XGETTEXT" >&6; }
3322 else
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327     rm -f messages.po
3328
3329     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
3330     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
3331     *) XGETTEXT_015=$XGETTEXT ;;
3332   esac
3333
3334
3335
3336 # Prepare PATH_SEPARATOR.
3337 # The user is always right.
3338 if test "${PATH_SEPARATOR+set}" != set; then
3339   echo "#! /bin/sh" >conf$$.sh
3340   echo  "exit 0"   >>conf$$.sh
3341   chmod +x conf$$.sh
3342   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3343     PATH_SEPARATOR=';'
3344   else
3345     PATH_SEPARATOR=:
3346   fi
3347   rm -f conf$$.sh
3348 fi
3349
3350 # Find out how to test for executable files. Don't use a zero-byte file,
3351 # as systems may use methods other than mode bits to determine executability.
3352 cat >conf$$.file <<_ASEOF
3353 #! /bin/sh
3354 exit 0
3355 _ASEOF
3356 chmod +x conf$$.file
3357 if test -x conf$$.file >/dev/null 2>&1; then
3358   ac_executable_p="test -x"
3359 else
3360   ac_executable_p="test -f"
3361 fi
3362 rm -f conf$$.file
3363
3364 # Extract the first word of "msgmerge", so it can be a program name with args.
3365 set dummy msgmerge; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
3369   $as_echo_n "(cached) " >&6
3370 else
3371   case "$MSGMERGE" in
3372   [\\/]* | ?:[\\/]*)
3373     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3374     ;;
3375   *)
3376     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3377     for ac_dir in $PATH; do
3378       IFS="$ac_save_IFS"
3379       test -z "$ac_dir" && ac_dir=.
3380       for ac_exec_ext in '' $ac_executable_extensions; do
3381         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3382           echo "$as_me: trying $ac_dir/$ac_word..." >&5
3383           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
3384             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3385             break 2
3386           fi
3387         fi
3388       done
3389     done
3390     IFS="$ac_save_IFS"
3391   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3392     ;;
3393 esac
3394 fi
3395 MSGMERGE="$ac_cv_path_MSGMERGE"
3396 if test "$MSGMERGE" != ":"; then
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3398 $as_echo "$MSGMERGE" >&6; }
3399 else
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405         test -n "$localedir" || localedir='${datadir}/locale'
3406
3407
3408     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
3409
3410
3411   ac_config_commands="$ac_config_commands po-directories"
3412
3413
3414
3415       if test "X$prefix" = "XNONE"; then
3416     acl_final_prefix="$ac_default_prefix"
3417   else
3418     acl_final_prefix="$prefix"
3419   fi
3420   if test "X$exec_prefix" = "XNONE"; then
3421     acl_final_exec_prefix='${prefix}'
3422   else
3423     acl_final_exec_prefix="$exec_prefix"
3424   fi
3425   acl_save_prefix="$prefix"
3426   prefix="$acl_final_prefix"
3427   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
3428   prefix="$acl_save_prefix"
3429
3430 DEPDIR="${am__leading_dot}deps"
3431
3432 ac_config_commands="$ac_config_commands depfiles"
3433
3434
3435 am_make=${MAKE-make}
3436 cat > confinc << 'END'
3437 am__doit:
3438         @echo this is the am__doit target
3439 .PHONY: am__doit
3440 END
3441 # If we don't find an include directive, just comment out the code.
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3443 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3444 am__include="#"
3445 am__quote=
3446 _am_result=none
3447 # First try GNU make style include.
3448 echo "include confinc" > confmf
3449 # Ignore all kinds of additional output from `make'.
3450 case `$am_make -s -f confmf 2> /dev/null` in #(
3451 *the\ am__doit\ target*)
3452   am__include=include
3453   am__quote=
3454   _am_result=GNU
3455   ;;
3456 esac
3457 # Now try BSD make style include.
3458 if test "$am__include" = "#"; then
3459    echo '.include "confinc"' > confmf
3460    case `$am_make -s -f confmf 2> /dev/null` in #(
3461    *the\ am__doit\ target*)
3462      am__include=.include
3463      am__quote="\""
3464      _am_result=BSD
3465      ;;
3466    esac
3467 fi
3468
3469
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3471 $as_echo "$_am_result" >&6; }
3472 rm -f confinc confmf
3473
3474 # Check whether --enable-dependency-tracking was given.
3475 if test "${enable_dependency_tracking+set}" = set; then :
3476   enableval=$enable_dependency_tracking;
3477 fi
3478
3479 if test "x$enable_dependency_tracking" != xno; then
3480   am_depcomp="$ac_aux_dir/depcomp"
3481   AMDEPBACKSLASH='\'
3482 fi
3483  if test "x$enable_dependency_tracking" != xno; then
3484   AMDEP_TRUE=
3485   AMDEP_FALSE='#'
3486 else
3487   AMDEP_TRUE='#'
3488   AMDEP_FALSE=
3489 fi
3490
3491
3492 ac_ext=c
3493 ac_cpp='$CPP $CPPFLAGS'
3494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497 if test -n "$ac_tool_prefix"; then
3498   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if test "${ac_cv_prog_CC+set}" = set; then :
3503   $as_echo_n "(cached) " >&6
3504 else
3505   if test -n "$CC"; then
3506   ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513     for ac_exec_ext in '' $ac_executable_extensions; do
3514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3515     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520   done
3521 IFS=$as_save_IFS
3522
3523 fi
3524 fi
3525 CC=$ac_cv_prog_CC
3526 if test -n "$CC"; then
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3529 else
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533
3534
3535 fi
3536 if test -z "$ac_cv_prog_CC"; then
3537   ac_ct_CC=$CC
3538   # Extract the first word of "gcc", so it can be a program name with args.
3539 set dummy gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3543   $as_echo_n "(cached) " >&6
3544 else
3545   if test -n "$ac_ct_CC"; then
3546   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553     for ac_exec_ext in '' $ac_executable_extensions; do
3554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3555     ac_cv_prog_ac_ct_CC="gcc"
3556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560   done
3561 IFS=$as_save_IFS
3562
3563 fi
3564 fi
3565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3566 if test -n "$ac_ct_CC"; then
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3568 $as_echo "$ac_ct_CC" >&6; }
3569 else
3570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574   if test "x$ac_ct_CC" = x; then
3575     CC=""
3576   else
3577     case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583     CC=$ac_ct_CC
3584   fi
3585 else
3586   CC="$ac_cv_prog_CC"
3587 fi
3588
3589 if test -z "$CC"; then
3590           if test -n "$ac_tool_prefix"; then
3591     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}cc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_CC+set}" = set; then :
3596   $as_echo_n "(cached) " >&6
3597 else
3598   if test -n "$CC"; then
3599   ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604   IFS=$as_save_IFS
3605   test -z "$as_dir" && as_dir=.
3606     for ac_exec_ext in '' $ac_executable_extensions; do
3607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608     ac_cv_prog_CC="${ac_tool_prefix}cc"
3609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613   done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 CC=$ac_cv_prog_CC
3619 if test -n "$CC"; then
3620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3621 $as_echo "$CC" >&6; }
3622 else
3623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3625 fi
3626
3627
3628   fi
3629 fi
3630 if test -z "$CC"; then
3631   # Extract the first word of "cc", so it can be a program name with args.
3632 set dummy cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636   $as_echo_n "(cached) " >&6
3637 else
3638   if test -n "$CC"; then
3639   ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641   ac_prog_rejected=no
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647     for ac_exec_ext in '' $ac_executable_extensions; do
3648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3650        ac_prog_rejected=yes
3651        continue
3652      fi
3653     ac_cv_prog_CC="cc"
3654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655     break 2
3656   fi
3657 done
3658   done
3659 IFS=$as_save_IFS
3660
3661 if test $ac_prog_rejected = yes; then
3662   # We found a bogon in the path, so make sure we never use it.
3663   set dummy $ac_cv_prog_CC
3664   shift
3665   if test $# != 0; then
3666     # We chose a different compiler from the bogus one.
3667     # However, it has the same basename, so the bogon will be chosen
3668     # first if we set CC to just the basename; use the full file name.
3669     shift
3670     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3671   fi
3672 fi
3673 fi
3674 fi
3675 CC=$ac_cv_prog_CC
3676 if test -n "$CC"; then
3677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3678 $as_echo "$CC" >&6; }
3679 else
3680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681 $as_echo "no" >&6; }
3682 fi
3683
3684
3685 fi
3686 if test -z "$CC"; then
3687   if test -n "$ac_tool_prefix"; then
3688   for ac_prog in cl.exe
3689   do
3690     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695   $as_echo_n "(cached) " >&6
3696 else
3697   if test -n "$CC"; then
3698   ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705     for ac_exec_ext in '' $ac_executable_extensions; do
3706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712   done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727     test -n "$CC" && break
3728   done
3729 fi
3730 if test -z "$CC"; then
3731   ac_ct_CC=$CC
3732   for ac_prog in cl.exe
3733 do
3734   # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3739   $as_echo_n "(cached) " >&6
3740 else
3741   if test -n "$ac_ct_CC"; then
3742   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749     for ac_exec_ext in '' $ac_executable_extensions; do
3750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751     ac_cv_prog_ac_ct_CC="$ac_prog"
3752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753     break 2
3754   fi
3755 done
3756   done
3757 IFS=$as_save_IFS
3758
3759 fi
3760 fi
3761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3762 if test -n "$ac_ct_CC"; then
3763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3764 $as_echo "$ac_ct_CC" >&6; }
3765 else
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3768 fi
3769
3770
3771   test -n "$ac_ct_CC" && break
3772 done
3773
3774   if test "x$ac_ct_CC" = x; then
3775     CC=""
3776   else
3777     case $cross_compiling:$ac_tool_warned in
3778 yes:)
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3782 esac
3783     CC=$ac_ct_CC
3784   fi
3785 fi
3786
3787 fi
3788
3789
3790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error "no acceptable C compiler found in \$PATH
3793 See \`config.log' for more details." "$LINENO" 5; }
3794
3795 # Provide some information about the compiler.
3796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3797 set X $ac_compile
3798 ac_compiler=$2
3799 for ac_option in --version -v -V -qversion; do
3800   { { ac_try="$ac_compiler $ac_option >&5"
3801 case "(($ac_try" in
3802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803   *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808   ac_status=$?
3809   if test -s conftest.err; then
3810     sed '10a\
3811 ... rest of stderr output deleted ...
3812          10q' conftest.err >conftest.er1
3813     cat conftest.er1 >&5
3814     rm -f conftest.er1 conftest.err
3815   fi
3816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817   test $ac_status = 0; }
3818 done
3819
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h.  */
3822 #include <stdio.h>
3823 int
3824 main ()
3825 {
3826 FILE *f = fopen ("conftest.out", "w");
3827  return ferror (f) || fclose (f) != 0;
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 ac_clean_files_save=$ac_clean_files
3834 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3835 # Try to create an executable without -o first, disregard a.out.
3836 # It will help us diagnose broken compilers, and finding out an intuition
3837 # of exeext.
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3839 $as_echo_n "checking for C compiler default output file name... " >&6; }
3840 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3841
3842 # The possible output files:
3843 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3844
3845 ac_rmfiles=
3846 for ac_file in $ac_files
3847 do
3848   case $ac_file in
3849     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3850     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3851   esac
3852 done
3853 rm -f $ac_rmfiles
3854
3855 if { { ac_try="$ac_link_default"
3856 case "(($ac_try" in
3857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858   *) ac_try_echo=$ac_try;;
3859 esac
3860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3861 $as_echo "$ac_try_echo"; } >&5
3862   (eval "$ac_link_default") 2>&5
3863   ac_status=$?
3864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3865   test $ac_status = 0; }; then :
3866   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3868 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3869 # so that the user can short-circuit this test for compilers unknown to
3870 # Autoconf.
3871 for ac_file in $ac_files ''
3872 do
3873   test -f "$ac_file" || continue
3874   case $ac_file in
3875     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3876         ;;
3877     [ab].out )
3878         # We found the default executable, but exeext='' is most
3879         # certainly right.
3880         break;;
3881     *.* )
3882         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3883         then :; else
3884            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3885         fi
3886         # We set ac_cv_exeext here because the later test for it is not
3887         # safe: cross compilers may not add the suffix if given an `-o'
3888         # argument, so we may need to know it at that point already.
3889         # Even if this section looks crufty: it has the advantage of
3890         # actually working.
3891         break;;
3892     * )
3893         break;;
3894   esac
3895 done
3896 test "$ac_cv_exeext" = no && ac_cv_exeext=
3897
3898 else
3899   ac_file=''
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3902 $as_echo "$ac_file" >&6; }
3903 if test -z "$ac_file"; then :
3904   $as_echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 { as_fn_set_status 77
3910 as_fn_error "C compiler cannot create executables
3911 See \`config.log' for more details." "$LINENO" 5; }; }
3912 fi
3913 ac_exeext=$ac_cv_exeext
3914
3915 # Check that the compiler produces executables we can run.  If not, either
3916 # the compiler is broken, or we cross compile.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3918 $as_echo_n "checking whether the C compiler works... " >&6; }
3919 # If not cross compiling, check that we can run a simple program.
3920 if test "$cross_compiling" != yes; then
3921   if { ac_try='./$ac_file'
3922   { { case "(($ac_try" in
3923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924   *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928   (eval "$ac_try") 2>&5
3929   ac_status=$?
3930   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931   test $ac_status = 0; }; }; then
3932     cross_compiling=no
3933   else
3934     if test "$cross_compiling" = maybe; then
3935         cross_compiling=yes
3936     else
3937         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error "cannot run C compiled programs.
3940 If you meant to cross compile, use \`--host'.
3941 See \`config.log' for more details." "$LINENO" 5; }
3942     fi
3943   fi
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3946 $as_echo "yes" >&6; }
3947
3948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3949 ac_clean_files=$ac_clean_files_save
3950 # Check that the compiler produces executables we can run.  If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3953 $as_echo_n "checking whether we are cross compiling... " >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3955 $as_echo "$cross_compiling" >&6; }
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3958 $as_echo_n "checking for suffix of executables... " >&6; }
3959 if { { ac_try="$ac_link"
3960 case "(($ac_try" in
3961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962   *) ac_try_echo=$ac_try;;
3963 esac
3964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3965 $as_echo "$ac_try_echo"; } >&5
3966   (eval "$ac_link") 2>&5
3967   ac_status=$?
3968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3969   test $ac_status = 0; }; then :
3970   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3971 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3972 # work properly (i.e., refer to `conftest.exe'), while it won't with
3973 # `rm'.
3974 for ac_file in conftest.exe conftest conftest.*; do
3975   test -f "$ac_file" || continue
3976   case $ac_file in
3977     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3978     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3979           break;;
3980     * ) break;;
3981   esac
3982 done
3983 else
3984   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 as_fn_error "cannot compute suffix of executables: cannot compile and link
3987 See \`config.log' for more details." "$LINENO" 5; }
3988 fi
3989 rm -f conftest$ac_cv_exeext
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3991 $as_echo "$ac_cv_exeext" >&6; }
3992
3993 rm -f conftest.$ac_ext
3994 EXEEXT=$ac_cv_exeext
3995 ac_exeext=$EXEEXT
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3997 $as_echo_n "checking for suffix of object files... " >&6; }
3998 if test "${ac_cv_objext+set}" = set; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.o conftest.obj
4013 if { { ac_try="$ac_compile"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4019 $as_echo "$ac_try_echo"; } >&5
4020   (eval "$ac_compile") 2>&5
4021   ac_status=$?
4022   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023   test $ac_status = 0; }; then :
4024   for ac_file in conftest.o conftest.obj conftest.*; do
4025   test -f "$ac_file" || continue;
4026   case $ac_file in
4027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4028     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4029        break;;
4030   esac
4031 done
4032 else
4033   $as_echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error "cannot compute suffix of object files: cannot compile
4039 See \`config.log' for more details." "$LINENO" 5; }
4040 fi
4041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4042 fi
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044 $as_echo "$ac_cv_objext" >&6; }
4045 OBJEXT=$ac_cv_objext
4046 ac_objext=$OBJEXT
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4049 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4050   $as_echo_n "(cached) " >&6
4051 else
4052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h.  */
4054
4055 int
4056 main ()
4057 {
4058 #ifndef __GNUC__
4059        choke me
4060 #endif
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 if ac_fn_c_try_compile "$LINENO"; then :
4067   ac_compiler_gnu=yes
4068 else
4069   ac_compiler_gnu=no
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4073
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4077 if test $ac_compiler_gnu = yes; then
4078   GCC=yes
4079 else
4080   GCC=
4081 fi
4082 ac_test_CFLAGS=${CFLAGS+set}
4083 ac_save_CFLAGS=$CFLAGS
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4086 if test "${ac_cv_prog_cc_g+set}" = set; then :
4087   $as_echo_n "(cached) " >&6
4088 else
4089   ac_save_c_werror_flag=$ac_c_werror_flag
4090    ac_c_werror_flag=yes
4091    ac_cv_prog_cc_g=no
4092    CFLAGS="-g"
4093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h.  */
4095
4096 int
4097 main ()
4098 {
4099
4100   ;
4101   return 0;
4102 }
4103 _ACEOF
4104 if ac_fn_c_try_compile "$LINENO"; then :
4105   ac_cv_prog_cc_g=yes
4106 else
4107   CFLAGS=""
4108       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h.  */
4110
4111 int
4112 main ()
4113 {
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120
4121 else
4122   ac_c_werror_flag=$ac_save_c_werror_flag
4123          CFLAGS="-g"
4124          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125 /* end confdefs.h.  */
4126
4127 int
4128 main ()
4129 {
4130
4131   ;
4132   return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136   ac_cv_prog_cc_g=yes
4137 fi
4138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 fi
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143    ac_c_werror_flag=$ac_save_c_werror_flag
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4146 $as_echo "$ac_cv_prog_cc_g" >&6; }
4147 if test "$ac_test_CFLAGS" = set; then
4148   CFLAGS=$ac_save_CFLAGS
4149 elif test $ac_cv_prog_cc_g = yes; then
4150   if test "$GCC" = yes; then
4151     CFLAGS="-g -O2"
4152   else
4153     CFLAGS="-g"
4154   fi
4155 else
4156   if test "$GCC" = yes; then
4157     CFLAGS="-O2"
4158   else
4159     CFLAGS=
4160   fi
4161 fi
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   ac_cv_prog_cc_c89=no
4168 ac_save_CC=$CC
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171 #include <stdarg.h>
4172 #include <stdio.h>
4173 #include <sys/types.h>
4174 #include <sys/stat.h>
4175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4176 struct buf { int x; };
4177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4178 static char *e (p, i)
4179      char **p;
4180      int i;
4181 {
4182   return p[i];
4183 }
4184 static char *f (char * (*g) (char **, int), char **p, ...)
4185 {
4186   char *s;
4187   va_list v;
4188   va_start (v,p);
4189   s = g (p, va_arg (v,int));
4190   va_end (v);
4191   return s;
4192 }
4193
4194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4195    function prototypes and stuff, but not '\xHH' hex character constants.
4196    These don't provoke an error unfortunately, instead are silently treated
4197    as 'x'.  The following induces an error, until -std is added to get
4198    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4199    array size at least.  It's necessary to write '\x00'==0 to get something
4200    that's true only with -std.  */
4201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4202
4203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4204    inside strings and character constants.  */
4205 #define FOO(x) 'x'
4206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4207
4208 int test (int i, double x);
4209 struct s1 {int (*f) (int a);};
4210 struct s2 {int (*f) (double a);};
4211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4212 int argc;
4213 char **argv;
4214 int
4215 main ()
4216 {
4217 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4218   ;
4219   return 0;
4220 }
4221 _ACEOF
4222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4223         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4224 do
4225   CC="$ac_save_CC $ac_arg"
4226   if ac_fn_c_try_compile "$LINENO"; then :
4227   ac_cv_prog_cc_c89=$ac_arg
4228 fi
4229 rm -f core conftest.err conftest.$ac_objext
4230   test "x$ac_cv_prog_cc_c89" != "xno" && break
4231 done
4232 rm -f conftest.$ac_ext
4233 CC=$ac_save_CC
4234
4235 fi
4236 # AC_CACHE_VAL
4237 case "x$ac_cv_prog_cc_c89" in
4238   x)
4239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4240 $as_echo "none needed" >&6; } ;;
4241   xno)
4242     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4243 $as_echo "unsupported" >&6; } ;;
4244   *)
4245     CC="$CC $ac_cv_prog_cc_c89"
4246     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4248 esac
4249 if test "x$ac_cv_prog_cc_c89" != xno; then :
4250
4251 fi
4252
4253 ac_ext=c
4254 ac_cpp='$CPP $CPPFLAGS'
4255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258
4259 depcc="$CC"   am_compiler_list=
4260
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4262 $as_echo_n "checking dependency style of $depcc... " >&6; }
4263 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4267   # We make a subdir and do the tests there.  Otherwise we can end up
4268   # making bogus files that we don't know about and never remove.  For
4269   # instance it was reported that on HP-UX the gcc test will end up
4270   # making a dummy file named `D' -- because `-MD' means `put the output
4271   # in D'.
4272   mkdir conftest.dir
4273   # Copy depcomp to subdir because otherwise we won't find it if we're
4274   # using a relative directory.
4275   cp "$am_depcomp" conftest.dir
4276   cd conftest.dir
4277   # We will build objects and dependencies in a subdirectory because
4278   # it helps to detect inapplicable dependency modes.  For instance
4279   # both Tru64's cc and ICC support -MD to output dependencies as a
4280   # side effect of compilation, but ICC will put the dependencies in
4281   # the current directory while Tru64 will put them in the object
4282   # directory.
4283   mkdir sub
4284
4285   am_cv_CC_dependencies_compiler_type=none
4286   if test "$am_compiler_list" = ""; then
4287      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4288   fi
4289   am__universal=false
4290   case " $depcc " in #(
4291      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4292      esac
4293
4294   for depmode in $am_compiler_list; do
4295     # Setup a source with many dependencies, because some compilers
4296     # like to wrap large dependency lists on column 80 (with \), and
4297     # we should not choose a depcomp mode which is confused by this.
4298     #
4299     # We need to recreate these files for each test, as the compiler may
4300     # overwrite some of them when testing with obscure command lines.
4301     # This happens at least with the AIX C compiler.
4302     : > sub/conftest.c
4303     for i in 1 2 3 4 5 6; do
4304       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4305       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4306       # Solaris 8's {/usr,}/bin/sh.
4307       touch sub/conftst$i.h
4308     done
4309     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4310
4311     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4312     # mode.  It turns out that the SunPro C++ compiler does not properly
4313     # handle `-M -o', and we need to detect this.  Also, some Intel
4314     # versions had trouble with output in subdirs
4315     am__obj=sub/conftest.${OBJEXT-o}
4316     am__minus_obj="-o $am__obj"
4317     case $depmode in
4318     gcc)
4319       # This depmode causes a compiler race in universal mode.
4320       test "$am__universal" = false || continue
4321       ;;
4322     nosideeffect)
4323       # after this tag, mechanisms are not by side-effect, so they'll
4324       # only be used when explicitly requested
4325       if test "x$enable_dependency_tracking" = xyes; then
4326         continue
4327       else
4328         break
4329       fi
4330       ;;
4331     msvisualcpp | msvcmsys)
4332       # This compiler won't grok `-c -o', but also, the minuso test has
4333       # not run yet.  These depmodes are late enough in the game, and
4334       # so weak that their functioning should not be impacted.
4335       am__obj=conftest.${OBJEXT-o}
4336       am__minus_obj=
4337       ;;
4338     none) break ;;
4339     esac
4340     if depmode=$depmode \
4341        source=sub/conftest.c object=$am__obj \
4342        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4343        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4344          >/dev/null 2>conftest.err &&
4345        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4346        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4347        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4348        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4349       # icc doesn't choke on unknown options, it will just issue warnings
4350       # or remarks (even with -Werror).  So we grep stderr for any message
4351       # that says an option was ignored or not supported.
4352       # When given -MP, icc 7.0 and 7.1 complain thusly:
4353       #   icc: Command line warning: ignoring option '-M'; no argument required
4354       # The diagnosis changed in icc 8.0:
4355       #   icc: Command line remark: option '-MP' not supported
4356       if (grep 'ignoring option' conftest.err ||
4357           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4358         am_cv_CC_dependencies_compiler_type=$depmode
4359         break
4360       fi
4361     fi
4362   done
4363
4364   cd ..
4365   rm -rf conftest.dir
4366 else
4367   am_cv_CC_dependencies_compiler_type=none
4368 fi
4369
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4372 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4373 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4374
4375  if
4376   test "x$enable_dependency_tracking" != xno \
4377   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4378   am__fastdepCC_TRUE=
4379   am__fastdepCC_FALSE='#'
4380 else
4381   am__fastdepCC_TRUE='#'
4382   am__fastdepCC_FALSE=
4383 fi
4384
4385
4386 # Make sure we can run config.sub.
4387 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4388   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4391 $as_echo_n "checking build system type... " >&6; }
4392 if test "${ac_cv_build+set}" = set; then :
4393   $as_echo_n "(cached) " >&6
4394 else
4395   ac_build_alias=$build_alias
4396 test "x$ac_build_alias" = x &&
4397   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4398 test "x$ac_build_alias" = x &&
4399   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4400 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4401   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4402
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4405 $as_echo "$ac_cv_build" >&6; }
4406 case $ac_cv_build in
4407 *-*-*) ;;
4408 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4409 esac
4410 build=$ac_cv_build
4411 ac_save_IFS=$IFS; IFS='-'
4412 set x $ac_cv_build
4413 shift
4414 build_cpu=$1
4415 build_vendor=$2
4416 shift; shift
4417 # Remember, the first character of IFS is used to create $*,
4418 # except with old shells:
4419 build_os=$*
4420 IFS=$ac_save_IFS
4421 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4422
4423
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4425 $as_echo_n "checking host system type... " >&6; }
4426 if test "${ac_cv_host+set}" = set; then :
4427   $as_echo_n "(cached) " >&6
4428 else
4429   if test "x$host_alias" = x; then
4430   ac_cv_host=$ac_cv_build
4431 else
4432   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4433     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4434 fi
4435
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4438 $as_echo "$ac_cv_host" >&6; }
4439 case $ac_cv_host in
4440 *-*-*) ;;
4441 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4442 esac
4443 host=$ac_cv_host
4444 ac_save_IFS=$IFS; IFS='-'
4445 set x $ac_cv_host
4446 shift
4447 host_cpu=$1
4448 host_vendor=$2
4449 shift; shift
4450 # Remember, the first character of IFS is used to create $*,
4451 # except with old shells:
4452 host_os=$*
4453 IFS=$ac_save_IFS
4454 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4455
4456
4457
4458 # Check whether --with-gnu-ld was given.
4459 if test "${with_gnu_ld+set}" = set; then :
4460   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4461 else
4462   with_gnu_ld=no
4463 fi
4464
4465 # Prepare PATH_SEPARATOR.
4466 # The user is always right.
4467 if test "${PATH_SEPARATOR+set}" != set; then
4468   echo "#! /bin/sh" >conf$$.sh
4469   echo  "exit 0"   >>conf$$.sh
4470   chmod +x conf$$.sh
4471   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4472     PATH_SEPARATOR=';'
4473   else
4474     PATH_SEPARATOR=:
4475   fi
4476   rm -f conf$$.sh
4477 fi
4478 ac_prog=ld
4479 if test "$GCC" = yes; then
4480   # Check if gcc -print-prog-name=ld gives a path.
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
4482 $as_echo_n "checking for ld used by GCC... " >&6; }
4483   case $host in
4484   *-*-mingw*)
4485     # gcc leaves a trailing carriage return which upsets mingw
4486     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4487   *)
4488     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4489   esac
4490   case $ac_prog in
4491     # Accept absolute paths.
4492     [\\/]* | [A-Za-z]:[\\/]*)
4493       re_direlt='/[^/][^/]*/\.\./'
4494       # Canonicalize the path of ld
4495       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4496       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4497         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4498       done
4499       test -z "$LD" && LD="$ac_prog"
4500       ;;
4501   "")
4502     # If it fails, then pretend we aren't using GCC.
4503     ac_prog=ld
4504     ;;
4505   *)
4506     # If it is relative, then search for the first ld in PATH.
4507     with_gnu_ld=unknown
4508     ;;
4509   esac
4510 elif test "$with_gnu_ld" = yes; then
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4512 $as_echo_n "checking for GNU ld... " >&6; }
4513 else
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4515 $as_echo_n "checking for non-GNU ld... " >&6; }
4516 fi
4517 if test "${acl_cv_path_LD+set}" = set; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   if test -z "$LD"; then
4521   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4522   for ac_dir in $PATH; do
4523     test -z "$ac_dir" && ac_dir=.
4524     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4525       acl_cv_path_LD="$ac_dir/$ac_prog"
4526       # Check to see if the program is GNU ld.  I'd rather use --version,
4527       # but apparently some GNU ld's only accept -v.
4528       # Break only if it was the GNU/non-GNU ld that we prefer.
4529       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
4530       *GNU* | *'with BFD'*)
4531         test "$with_gnu_ld" != no && break ;;
4532       *)
4533         test "$with_gnu_ld" != yes && break ;;
4534       esac
4535     fi
4536   done
4537   IFS="$ac_save_ifs"
4538 else
4539   acl_cv_path_LD="$LD" # Let the user override the test with a path.
4540 fi
4541 fi
4542
4543 LD="$acl_cv_path_LD"
4544 if test -n "$LD"; then
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4546 $as_echo "$LD" >&6; }
4547 else
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4554 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4558 case `$LD -v 2>&1 </dev/null` in
4559 *GNU* | *'with BFD'*)
4560   acl_cv_prog_gnu_ld=yes ;;
4561 *)
4562   acl_cv_prog_gnu_ld=no ;;
4563 esac
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
4566 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
4567 with_gnu_ld=$acl_cv_prog_gnu_ld
4568
4569
4570
4571
4572                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
4573 $as_echo_n "checking for shared library run path origin... " >&6; }
4574 if test "${acl_cv_rpath+set}" = set; then :
4575   $as_echo_n "(cached) " >&6
4576 else
4577
4578     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
4579     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
4580     . ./conftest.sh
4581     rm -f ./conftest.sh
4582     acl_cv_rpath=done
4583
4584 fi
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
4586 $as_echo "$acl_cv_rpath" >&6; }
4587   wl="$acl_cv_wl"
4588   acl_libext="$acl_cv_libext"
4589   acl_shlibext="$acl_cv_shlibext"
4590   acl_libname_spec="$acl_cv_libname_spec"
4591   acl_library_names_spec="$acl_cv_library_names_spec"
4592   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
4593   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
4594   acl_hardcode_direct="$acl_cv_hardcode_direct"
4595   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
4596     # Check whether --enable-rpath was given.
4597 if test "${enable_rpath+set}" = set; then :
4598   enableval=$enable_rpath; :
4599 else
4600   enable_rpath=yes
4601 fi
4602
4603
4604
4605                   acl_libdirstem=lib
4606   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
4607   if test -n "$searchpath"; then
4608     acl_save_IFS="${IFS=        }"; IFS=":"
4609     for searchdir in $searchpath; do
4610       if test -d "$searchdir"; then
4611         case "$searchdir" in
4612           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
4613           *) searchdir=`cd "$searchdir" && pwd`
4614              case "$searchdir" in
4615                */lib64 ) acl_libdirstem=lib64 ;;
4616              esac ;;
4617         esac
4618       fi
4619     done
4620     IFS="$acl_save_IFS"
4621   fi
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631     use_additional=yes
4632
4633   acl_save_prefix="$prefix"
4634   prefix="$acl_final_prefix"
4635   acl_save_exec_prefix="$exec_prefix"
4636   exec_prefix="$acl_final_exec_prefix"
4637
4638     eval additional_includedir=\"$includedir\"
4639     eval additional_libdir=\"$libdir\"
4640
4641   exec_prefix="$acl_save_exec_prefix"
4642   prefix="$acl_save_prefix"
4643
4644
4645 # Check whether --with-libiconv-prefix was given.
4646 if test "${with_libiconv_prefix+set}" = set; then :
4647   withval=$with_libiconv_prefix;
4648     if test "X$withval" = "Xno"; then
4649       use_additional=no
4650     else
4651       if test "X$withval" = "X"; then
4652
4653   acl_save_prefix="$prefix"
4654   prefix="$acl_final_prefix"
4655   acl_save_exec_prefix="$exec_prefix"
4656   exec_prefix="$acl_final_exec_prefix"
4657
4658           eval additional_includedir=\"$includedir\"
4659           eval additional_libdir=\"$libdir\"
4660
4661   exec_prefix="$acl_save_exec_prefix"
4662   prefix="$acl_save_prefix"
4663
4664       else
4665         additional_includedir="$withval/include"
4666         additional_libdir="$withval/$acl_libdirstem"
4667       fi
4668     fi
4669
4670 fi
4671
4672       LIBICONV=
4673   LTLIBICONV=
4674   INCICONV=
4675   LIBICONV_PREFIX=
4676   rpathdirs=
4677   ltrpathdirs=
4678   names_already_handled=
4679   names_next_round='iconv '
4680   while test -n "$names_next_round"; do
4681     names_this_round="$names_next_round"
4682     names_next_round=
4683     for name in $names_this_round; do
4684       already_handled=
4685       for n in $names_already_handled; do
4686         if test "$n" = "$name"; then
4687           already_handled=yes
4688           break
4689         fi
4690       done
4691       if test -z "$already_handled"; then
4692         names_already_handled="$names_already_handled $name"
4693                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
4694         eval value=\"\$HAVE_LIB$uppername\"
4695         if test -n "$value"; then
4696           if test "$value" = yes; then
4697             eval value=\"\$LIB$uppername\"
4698             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
4699             eval value=\"\$LTLIB$uppername\"
4700             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
4701           else
4702                                     :
4703           fi
4704         else
4705                               found_dir=
4706           found_la=
4707           found_so=
4708           found_a=
4709           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
4710           if test -n "$acl_shlibext"; then
4711             shrext=".$acl_shlibext"             # typically: shrext=.so
4712           else
4713             shrext=
4714           fi
4715           if test $use_additional = yes; then
4716             dir="$additional_libdir"
4717                                     if test -n "$acl_shlibext"; then
4718               if test -f "$dir/$libname$shrext"; then
4719                 found_dir="$dir"
4720                 found_so="$dir/$libname$shrext"
4721               else
4722                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4723                   ver=`(cd "$dir" && \
4724                         for f in "$libname$shrext".*; do echo "$f"; done \
4725                         | sed -e "s,^$libname$shrext\\\\.,," \
4726                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4727                         | sed 1q ) 2>/dev/null`
4728                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4729                     found_dir="$dir"
4730                     found_so="$dir/$libname$shrext.$ver"
4731                   fi
4732                 else
4733                   eval library_names=\"$acl_library_names_spec\"
4734                   for f in $library_names; do
4735                     if test -f "$dir/$f"; then
4736                       found_dir="$dir"
4737                       found_so="$dir/$f"
4738                       break
4739                     fi
4740                   done
4741                 fi
4742               fi
4743             fi
4744                         if test "X$found_dir" = "X"; then
4745               if test -f "$dir/$libname.$acl_libext"; then
4746                 found_dir="$dir"
4747                 found_a="$dir/$libname.$acl_libext"
4748               fi
4749             fi
4750             if test "X$found_dir" != "X"; then
4751               if test -f "$dir/$libname.la"; then
4752                 found_la="$dir/$libname.la"
4753               fi
4754             fi
4755           fi
4756           if test "X$found_dir" = "X"; then
4757             for x in $LDFLAGS $LTLIBICONV; do
4758
4759   acl_save_prefix="$prefix"
4760   prefix="$acl_final_prefix"
4761   acl_save_exec_prefix="$exec_prefix"
4762   exec_prefix="$acl_final_exec_prefix"
4763   eval x=\"$x\"
4764   exec_prefix="$acl_save_exec_prefix"
4765   prefix="$acl_save_prefix"
4766
4767               case "$x" in
4768                 -L*)
4769                   dir=`echo "X$x" | sed -e 's/^X-L//'`
4770                                     if test -n "$acl_shlibext"; then
4771                     if test -f "$dir/$libname$shrext"; then
4772                       found_dir="$dir"
4773                       found_so="$dir/$libname$shrext"
4774                     else
4775                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
4776                         ver=`(cd "$dir" && \
4777                               for f in "$libname$shrext".*; do echo "$f"; done \
4778                               | sed -e "s,^$libname$shrext\\\\.,," \
4779                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
4780                               | sed 1q ) 2>/dev/null`
4781                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
4782                           found_dir="$dir"
4783                           found_so="$dir/$libname$shrext.$ver"
4784                         fi
4785                       else
4786                         eval library_names=\"$acl_library_names_spec\"
4787                         for f in $library_names; do
4788                           if test -f "$dir/$f"; then
4789                             found_dir="$dir"
4790                             found_so="$dir/$f"
4791                             break
4792                           fi
4793                         done
4794                       fi
4795                     fi
4796                   fi
4797                                     if test "X$found_dir" = "X"; then
4798                     if test -f "$dir/$libname.$acl_libext"; then
4799                       found_dir="$dir"
4800                       found_a="$dir/$libname.$acl_libext"
4801                     fi
4802                   fi
4803                   if test "X$found_dir" != "X"; then
4804                     if test -f "$dir/$libname.la"; then
4805                       found_la="$dir/$libname.la"
4806                     fi
4807                   fi
4808                   ;;
4809               esac
4810               if test "X$found_dir" != "X"; then
4811                 break
4812               fi
4813             done
4814           fi
4815           if test "X$found_dir" != "X"; then
4816                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
4817             if test "X$found_so" != "X"; then
4818                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
4819                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4820               else
4821                                                                                 haveit=
4822                 for x in $ltrpathdirs; do
4823                   if test "X$x" = "X$found_dir"; then
4824                     haveit=yes
4825                     break
4826                   fi
4827                 done
4828                 if test -z "$haveit"; then
4829                   ltrpathdirs="$ltrpathdirs $found_dir"
4830                 fi
4831                                 if test "$acl_hardcode_direct" = yes; then
4832                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4833                 else
4834                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
4835                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4836                                                             haveit=
4837                     for x in $rpathdirs; do
4838                       if test "X$x" = "X$found_dir"; then
4839                         haveit=yes
4840                         break
4841                       fi
4842                     done
4843                     if test -z "$haveit"; then
4844                       rpathdirs="$rpathdirs $found_dir"
4845                     fi
4846                   else
4847                                                                                 haveit=
4848                     for x in $LDFLAGS $LIBICONV; do
4849
4850   acl_save_prefix="$prefix"
4851   prefix="$acl_final_prefix"
4852   acl_save_exec_prefix="$exec_prefix"
4853   exec_prefix="$acl_final_exec_prefix"
4854   eval x=\"$x\"
4855   exec_prefix="$acl_save_exec_prefix"
4856   prefix="$acl_save_prefix"
4857
4858                       if test "X$x" = "X-L$found_dir"; then
4859                         haveit=yes
4860                         break
4861                       fi
4862                     done
4863                     if test -z "$haveit"; then
4864                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
4865                     fi
4866                     if test "$acl_hardcode_minus_L" != no; then
4867                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
4868                     else
4869                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
4870                     fi
4871                   fi
4872                 fi
4873               fi
4874             else
4875               if test "X$found_a" != "X"; then
4876                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
4877               else
4878                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
4879               fi
4880             fi
4881                         additional_includedir=
4882             case "$found_dir" in
4883               */$acl_libdirstem | */$acl_libdirstem/)
4884                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
4885                 LIBICONV_PREFIX="$basedir"
4886                 additional_includedir="$basedir/include"
4887                 ;;
4888             esac
4889             if test "X$additional_includedir" != "X"; then
4890                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
4891                 haveit=
4892                 if test "X$additional_includedir" = "X/usr/local/include"; then
4893                   if test -n "$GCC"; then
4894                     case $host_os in
4895                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4896                     esac
4897                   fi
4898                 fi
4899                 if test -z "$haveit"; then
4900                   for x in $CPPFLAGS $INCICONV; do
4901
4902   acl_save_prefix="$prefix"
4903   prefix="$acl_final_prefix"
4904   acl_save_exec_prefix="$exec_prefix"
4905   exec_prefix="$acl_final_exec_prefix"
4906   eval x=\"$x\"
4907   exec_prefix="$acl_save_exec_prefix"
4908   prefix="$acl_save_prefix"
4909
4910                     if test "X$x" = "X-I$additional_includedir"; then
4911                       haveit=yes
4912                       break
4913                     fi
4914                   done
4915                   if test -z "$haveit"; then
4916                     if test -d "$additional_includedir"; then
4917                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
4918                     fi
4919                   fi
4920                 fi
4921               fi
4922             fi
4923                         if test -n "$found_la"; then
4924                                                         save_libdir="$libdir"
4925               case "$found_la" in
4926                 */* | *\\*) . "$found_la" ;;
4927                 *) . "./$found_la" ;;
4928               esac
4929               libdir="$save_libdir"
4930                             for dep in $dependency_libs; do
4931                 case "$dep" in
4932                   -L*)
4933                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
4934                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
4935                       haveit=
4936                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
4937                         if test -n "$GCC"; then
4938                           case $host_os in
4939                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
4940                           esac
4941                         fi
4942                       fi
4943                       if test -z "$haveit"; then
4944                         haveit=
4945                         for x in $LDFLAGS $LIBICONV; do
4946
4947   acl_save_prefix="$prefix"
4948   prefix="$acl_final_prefix"
4949   acl_save_exec_prefix="$exec_prefix"
4950   exec_prefix="$acl_final_exec_prefix"
4951   eval x=\"$x\"
4952   exec_prefix="$acl_save_exec_prefix"
4953   prefix="$acl_save_prefix"
4954
4955                           if test "X$x" = "X-L$additional_libdir"; then
4956                             haveit=yes
4957                             break
4958                           fi
4959                         done
4960                         if test -z "$haveit"; then
4961                           if test -d "$additional_libdir"; then
4962                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
4963                           fi
4964                         fi
4965                         haveit=
4966                         for x in $LDFLAGS $LTLIBICONV; do
4967
4968   acl_save_prefix="$prefix"
4969   prefix="$acl_final_prefix"
4970   acl_save_exec_prefix="$exec_prefix"
4971   exec_prefix="$acl_final_exec_prefix"
4972   eval x=\"$x\"
4973   exec_prefix="$acl_save_exec_prefix"
4974   prefix="$acl_save_prefix"
4975
4976                           if test "X$x" = "X-L$additional_libdir"; then
4977                             haveit=yes
4978                             break
4979                           fi
4980                         done
4981                         if test -z "$haveit"; then
4982                           if test -d "$additional_libdir"; then
4983                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
4984                           fi
4985                         fi
4986                       fi
4987                     fi
4988                     ;;
4989                   -R*)
4990                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
4991                     if test "$enable_rpath" != no; then
4992                                                                   haveit=
4993                       for x in $rpathdirs; do
4994                         if test "X$x" = "X$dir"; then
4995                           haveit=yes
4996                           break
4997                         fi
4998                       done
4999                       if test -z "$haveit"; then
5000                         rpathdirs="$rpathdirs $dir"
5001                       fi
5002                                                                   haveit=
5003                       for x in $ltrpathdirs; do
5004                         if test "X$x" = "X$dir"; then
5005                           haveit=yes
5006                           break
5007                         fi
5008                       done
5009                       if test -z "$haveit"; then
5010                         ltrpathdirs="$ltrpathdirs $dir"
5011                       fi
5012                     fi
5013                     ;;
5014                   -l*)
5015                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5016                     ;;
5017                   *.la)
5018                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5019                     ;;
5020                   *)
5021                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5022                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5023                     ;;
5024                 esac
5025               done
5026             fi
5027           else
5028                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5029             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5030           fi
5031         fi
5032       fi
5033     done
5034   done
5035   if test "X$rpathdirs" != "X"; then
5036     if test -n "$acl_hardcode_libdir_separator"; then
5037                         alldirs=
5038       for found_dir in $rpathdirs; do
5039         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5040       done
5041             acl_save_libdir="$libdir"
5042       libdir="$alldirs"
5043       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5044       libdir="$acl_save_libdir"
5045       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5046     else
5047             for found_dir in $rpathdirs; do
5048         acl_save_libdir="$libdir"
5049         libdir="$found_dir"
5050         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5051         libdir="$acl_save_libdir"
5052         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5053       done
5054     fi
5055   fi
5056   if test "X$ltrpathdirs" != "X"; then
5057             for found_dir in $ltrpathdirs; do
5058       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5059     done
5060   fi
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
5088 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
5089 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   gt_save_LIBS="$LIBS"
5093      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5094      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h.  */
5096 #include <CoreFoundation/CFPreferences.h>
5097 int
5098 main ()
5099 {
5100 CFPreferencesCopyAppValue(NULL, NULL)
5101   ;
5102   return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_link "$LINENO"; then :
5106   gt_cv_func_CFPreferencesCopyAppValue=yes
5107 else
5108   gt_cv_func_CFPreferencesCopyAppValue=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext \
5111     conftest$ac_exeext conftest.$ac_ext
5112      LIBS="$gt_save_LIBS"
5113 fi
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5115 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
5116   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5117
5118 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
5119
5120   fi
5121     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
5122 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
5123 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   gt_save_LIBS="$LIBS"
5127      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
5128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h.  */
5130 #include <CoreFoundation/CFLocale.h>
5131 int
5132 main ()
5133 {
5134 CFLocaleCopyCurrent();
5135   ;
5136   return 0;
5137 }
5138 _ACEOF
5139 if ac_fn_c_try_link "$LINENO"; then :
5140   gt_cv_func_CFLocaleCopyCurrent=yes
5141 else
5142   gt_cv_func_CFLocaleCopyCurrent=no
5143 fi
5144 rm -f core conftest.err conftest.$ac_objext \
5145     conftest$ac_exeext conftest.$ac_ext
5146      LIBS="$gt_save_LIBS"
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5149 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
5150   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5151
5152 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
5153
5154   fi
5155   INTL_MACOSX_LIBS=
5156   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5157     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5158   fi
5159
5160
5161
5162
5163
5164
5165   LIBINTL=
5166   LTLIBINTL=
5167   POSUB=
5168
5169     case " $gt_needs " in
5170     *" need-formatstring-macros "*) gt_api_version=3 ;;
5171     *" need-ngettext "*) gt_api_version=2 ;;
5172     *) gt_api_version=1 ;;
5173   esac
5174   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
5175   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
5176
5177     if test "$USE_NLS" = "yes"; then
5178     gt_use_preinstalled_gnugettext=no
5179
5180
5181         if test $gt_api_version -ge 3; then
5182           gt_revision_test_code='
5183 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
5184 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
5185 #endif
5186 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
5187 '
5188         else
5189           gt_revision_test_code=
5190         fi
5191         if test $gt_api_version -ge 2; then
5192           gt_expression_test_code=' + * ngettext ("", "", 0)'
5193         else
5194           gt_expression_test_code=
5195         fi
5196
5197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5198 $as_echo_n "checking for GNU gettext in libc... " >&6; }
5199 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
5200   $as_echo_n "(cached) " >&6
5201 else
5202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h.  */
5204 #include <libintl.h>
5205 $gt_revision_test_code
5206 extern int _nl_msg_cat_cntr;
5207 extern int *_nl_domain_bindings;
5208 int
5209 main ()
5210 {
5211 bindtextdomain ("", "");
5212 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
5213   ;
5214   return 0;
5215 }
5216 _ACEOF
5217 if ac_fn_c_try_link "$LINENO"; then :
5218   eval "$gt_func_gnugettext_libc=yes"
5219 else
5220   eval "$gt_func_gnugettext_libc=no"
5221 fi
5222 rm -f core conftest.err conftest.$ac_objext \
5223     conftest$ac_exeext conftest.$ac_ext
5224 fi
5225 eval ac_res=\$$gt_func_gnugettext_libc
5226                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5227 $as_echo "$ac_res" >&6; }
5228
5229         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
5230
5231
5232
5233
5234
5235           am_save_CPPFLAGS="$CPPFLAGS"
5236
5237   for element in $INCICONV; do
5238     haveit=
5239     for x in $CPPFLAGS; do
5240
5241   acl_save_prefix="$prefix"
5242   prefix="$acl_final_prefix"
5243   acl_save_exec_prefix="$exec_prefix"
5244   exec_prefix="$acl_final_exec_prefix"
5245   eval x=\"$x\"
5246   exec_prefix="$acl_save_exec_prefix"
5247   prefix="$acl_save_prefix"
5248
5249       if test "X$x" = "X$element"; then
5250         haveit=yes
5251         break
5252       fi
5253     done
5254     if test -z "$haveit"; then
5255       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5256     fi
5257   done
5258
5259
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5261 $as_echo_n "checking for iconv... " >&6; }
5262 if test "${am_cv_func_iconv+set}" = set; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265
5266     am_cv_func_iconv="no, consider installing GNU libiconv"
5267     am_cv_lib_iconv=no
5268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h.  */
5270 #include <stdlib.h>
5271 #include <iconv.h>
5272 int
5273 main ()
5274 {
5275 iconv_t cd = iconv_open("","");
5276        iconv(cd,NULL,NULL,NULL,NULL);
5277        iconv_close(cd);
5278   ;
5279   return 0;
5280 }
5281 _ACEOF
5282 if ac_fn_c_try_link "$LINENO"; then :
5283   am_cv_func_iconv=yes
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext \
5286     conftest$ac_exeext conftest.$ac_ext
5287     if test "$am_cv_func_iconv" != yes; then
5288       am_save_LIBS="$LIBS"
5289       LIBS="$LIBS $LIBICONV"
5290       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h.  */
5292 #include <stdlib.h>
5293 #include <iconv.h>
5294 int
5295 main ()
5296 {
5297 iconv_t cd = iconv_open("","");
5298          iconv(cd,NULL,NULL,NULL,NULL);
5299          iconv_close(cd);
5300   ;
5301   return 0;
5302 }
5303 _ACEOF
5304 if ac_fn_c_try_link "$LINENO"; then :
5305   am_cv_lib_iconv=yes
5306         am_cv_func_iconv=yes
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext \
5309     conftest$ac_exeext conftest.$ac_ext
5310       LIBS="$am_save_LIBS"
5311     fi
5312
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5315 $as_echo "$am_cv_func_iconv" >&6; }
5316   if test "$am_cv_func_iconv" = yes; then
5317     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
5318 $as_echo_n "checking for working iconv... " >&6; }
5319 if test "${am_cv_func_iconv_works+set}" = set; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322
5323             am_save_LIBS="$LIBS"
5324       if test $am_cv_lib_iconv = yes; then
5325         LIBS="$LIBS $LIBICONV"
5326       fi
5327       if test "$cross_compiling" = yes; then :
5328   case "$host_os" in
5329            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
5330            *)            am_cv_func_iconv_works="guessing yes" ;;
5331          esac
5332 else
5333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h.  */
5335
5336 #include <iconv.h>
5337 #include <string.h>
5338 int main ()
5339 {
5340   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
5341      returns.  */
5342   {
5343     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
5344     if (cd_utf8_to_88591 != (iconv_t)(-1))
5345       {
5346         static const char input[] = "\342\202\254"; /* EURO SIGN */
5347         char buf[10];
5348         const char *inptr = input;
5349         size_t inbytesleft = strlen (input);
5350         char *outptr = buf;
5351         size_t outbytesleft = sizeof (buf);
5352         size_t res = iconv (cd_utf8_to_88591,
5353                             (char **) &inptr, &inbytesleft,
5354                             &outptr, &outbytesleft);
5355         if (res == 0)
5356           return 1;
5357       }
5358   }
5359 #if 0 /* This bug could be worked around by the caller.  */
5360   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
5361   {
5362     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
5363     if (cd_88591_to_utf8 != (iconv_t)(-1))
5364       {
5365         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
5366         char buf[50];
5367         const char *inptr = input;
5368         size_t inbytesleft = strlen (input);
5369         char *outptr = buf;
5370         size_t outbytesleft = sizeof (buf);
5371         size_t res = iconv (cd_88591_to_utf8,
5372                             (char **) &inptr, &inbytesleft,
5373                             &outptr, &outbytesleft);
5374         if ((int)res > 0)
5375           return 1;
5376       }
5377   }
5378 #endif
5379   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
5380      provided.  */
5381   if (/* Try standardized names.  */
5382       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
5383       /* Try IRIX, OSF/1 names.  */
5384       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
5385       /* Try AIX names.  */
5386       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
5387       /* Try HP-UX names.  */
5388       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
5389     return 1;
5390   return 0;
5391 }
5392 _ACEOF
5393 if ac_fn_c_try_run "$LINENO"; then :
5394   am_cv_func_iconv_works=yes
5395 else
5396   am_cv_func_iconv_works=no
5397 fi
5398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5399   conftest.$ac_objext conftest.beam conftest.$ac_ext
5400 fi
5401
5402       LIBS="$am_save_LIBS"
5403
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
5406 $as_echo "$am_cv_func_iconv_works" >&6; }
5407     case "$am_cv_func_iconv_works" in
5408       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
5409       *)   am_func_iconv=yes ;;
5410     esac
5411   else
5412     am_func_iconv=no am_cv_lib_iconv=no
5413   fi
5414   if test "$am_func_iconv" = yes; then
5415
5416 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
5417
5418   fi
5419   if test "$am_cv_lib_iconv" = yes; then
5420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
5421 $as_echo_n "checking how to link with libiconv... " >&6; }
5422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
5423 $as_echo "$LIBICONV" >&6; }
5424   else
5425             CPPFLAGS="$am_save_CPPFLAGS"
5426     LIBICONV=
5427     LTLIBICONV=
5428   fi
5429
5430
5431
5432
5433
5434
5435
5436
5437     use_additional=yes
5438
5439   acl_save_prefix="$prefix"
5440   prefix="$acl_final_prefix"
5441   acl_save_exec_prefix="$exec_prefix"
5442   exec_prefix="$acl_final_exec_prefix"
5443
5444     eval additional_includedir=\"$includedir\"
5445     eval additional_libdir=\"$libdir\"
5446
5447   exec_prefix="$acl_save_exec_prefix"
5448   prefix="$acl_save_prefix"
5449
5450
5451 # Check whether --with-libintl-prefix was given.
5452 if test "${with_libintl_prefix+set}" = set; then :
5453   withval=$with_libintl_prefix;
5454     if test "X$withval" = "Xno"; then
5455       use_additional=no
5456     else
5457       if test "X$withval" = "X"; then
5458
5459   acl_save_prefix="$prefix"
5460   prefix="$acl_final_prefix"
5461   acl_save_exec_prefix="$exec_prefix"
5462   exec_prefix="$acl_final_exec_prefix"
5463
5464           eval additional_includedir=\"$includedir\"
5465           eval additional_libdir=\"$libdir\"
5466
5467   exec_prefix="$acl_save_exec_prefix"
5468   prefix="$acl_save_prefix"
5469
5470       else
5471         additional_includedir="$withval/include"
5472         additional_libdir="$withval/$acl_libdirstem"
5473       fi
5474     fi
5475
5476 fi
5477
5478       LIBINTL=
5479   LTLIBINTL=
5480   INCINTL=
5481   LIBINTL_PREFIX=
5482   rpathdirs=
5483   ltrpathdirs=
5484   names_already_handled=
5485   names_next_round='intl '
5486   while test -n "$names_next_round"; do
5487     names_this_round="$names_next_round"
5488     names_next_round=
5489     for name in $names_this_round; do
5490       already_handled=
5491       for n in $names_already_handled; do
5492         if test "$n" = "$name"; then
5493           already_handled=yes
5494           break
5495         fi
5496       done
5497       if test -z "$already_handled"; then
5498         names_already_handled="$names_already_handled $name"
5499                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5500         eval value=\"\$HAVE_LIB$uppername\"
5501         if test -n "$value"; then
5502           if test "$value" = yes; then
5503             eval value=\"\$LIB$uppername\"
5504             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5505             eval value=\"\$LTLIB$uppername\"
5506             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5507           else
5508                                     :
5509           fi
5510         else
5511                               found_dir=
5512           found_la=
5513           found_so=
5514           found_a=
5515           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
5516           if test -n "$acl_shlibext"; then
5517             shrext=".$acl_shlibext"             # typically: shrext=.so
5518           else
5519             shrext=
5520           fi
5521           if test $use_additional = yes; then
5522             dir="$additional_libdir"
5523                                     if test -n "$acl_shlibext"; then
5524               if test -f "$dir/$libname$shrext"; then
5525                 found_dir="$dir"
5526                 found_so="$dir/$libname$shrext"
5527               else
5528                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5529                   ver=`(cd "$dir" && \
5530                         for f in "$libname$shrext".*; do echo "$f"; done \
5531                         | sed -e "s,^$libname$shrext\\\\.,," \
5532                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5533                         | sed 1q ) 2>/dev/null`
5534                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5535                     found_dir="$dir"
5536                     found_so="$dir/$libname$shrext.$ver"
5537                   fi
5538                 else
5539                   eval library_names=\"$acl_library_names_spec\"
5540                   for f in $library_names; do
5541                     if test -f "$dir/$f"; then
5542                       found_dir="$dir"
5543                       found_so="$dir/$f"
5544                       break
5545                     fi
5546                   done
5547                 fi
5548               fi
5549             fi
5550                         if test "X$found_dir" = "X"; then
5551               if test -f "$dir/$libname.$acl_libext"; then
5552                 found_dir="$dir"
5553                 found_a="$dir/$libname.$acl_libext"
5554               fi
5555             fi
5556             if test "X$found_dir" != "X"; then
5557               if test -f "$dir/$libname.la"; then
5558                 found_la="$dir/$libname.la"
5559               fi
5560             fi
5561           fi
5562           if test "X$found_dir" = "X"; then
5563             for x in $LDFLAGS $LTLIBINTL; do
5564
5565   acl_save_prefix="$prefix"
5566   prefix="$acl_final_prefix"
5567   acl_save_exec_prefix="$exec_prefix"
5568   exec_prefix="$acl_final_exec_prefix"
5569   eval x=\"$x\"
5570   exec_prefix="$acl_save_exec_prefix"
5571   prefix="$acl_save_prefix"
5572
5573               case "$x" in
5574                 -L*)
5575                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5576                                     if test -n "$acl_shlibext"; then
5577                     if test -f "$dir/$libname$shrext"; then
5578                       found_dir="$dir"
5579                       found_so="$dir/$libname$shrext"
5580                     else
5581                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5582                         ver=`(cd "$dir" && \
5583                               for f in "$libname$shrext".*; do echo "$f"; done \
5584                               | sed -e "s,^$libname$shrext\\\\.,," \
5585                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5586                               | sed 1q ) 2>/dev/null`
5587                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5588                           found_dir="$dir"
5589                           found_so="$dir/$libname$shrext.$ver"
5590                         fi
5591                       else
5592                         eval library_names=\"$acl_library_names_spec\"
5593                         for f in $library_names; do
5594                           if test -f "$dir/$f"; then
5595                             found_dir="$dir"
5596                             found_so="$dir/$f"
5597                             break
5598                           fi
5599                         done
5600                       fi
5601                     fi
5602                   fi
5603                                     if test "X$found_dir" = "X"; then
5604                     if test -f "$dir/$libname.$acl_libext"; then
5605                       found_dir="$dir"
5606                       found_a="$dir/$libname.$acl_libext"
5607                     fi
5608                   fi
5609                   if test "X$found_dir" != "X"; then
5610                     if test -f "$dir/$libname.la"; then
5611                       found_la="$dir/$libname.la"
5612                     fi
5613                   fi
5614                   ;;
5615               esac
5616               if test "X$found_dir" != "X"; then
5617                 break
5618               fi
5619             done
5620           fi
5621           if test "X$found_dir" != "X"; then
5622                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5623             if test "X$found_so" != "X"; then
5624                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
5625                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5626               else
5627                                                                                 haveit=
5628                 for x in $ltrpathdirs; do
5629                   if test "X$x" = "X$found_dir"; then
5630                     haveit=yes
5631                     break
5632                   fi
5633                 done
5634                 if test -z "$haveit"; then
5635                   ltrpathdirs="$ltrpathdirs $found_dir"
5636                 fi
5637                                 if test "$acl_hardcode_direct" = yes; then
5638                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5639                 else
5640                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5641                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5642                                                             haveit=
5643                     for x in $rpathdirs; do
5644                       if test "X$x" = "X$found_dir"; then
5645                         haveit=yes
5646                         break
5647                       fi
5648                     done
5649                     if test -z "$haveit"; then
5650                       rpathdirs="$rpathdirs $found_dir"
5651                     fi
5652                   else
5653                                                                                 haveit=
5654                     for x in $LDFLAGS $LIBINTL; do
5655
5656   acl_save_prefix="$prefix"
5657   prefix="$acl_final_prefix"
5658   acl_save_exec_prefix="$exec_prefix"
5659   exec_prefix="$acl_final_exec_prefix"
5660   eval x=\"$x\"
5661   exec_prefix="$acl_save_exec_prefix"
5662   prefix="$acl_save_prefix"
5663
5664                       if test "X$x" = "X-L$found_dir"; then
5665                         haveit=yes
5666                         break
5667                       fi
5668                     done
5669                     if test -z "$haveit"; then
5670                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5671                     fi
5672                     if test "$acl_hardcode_minus_L" != no; then
5673                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5674                     else
5675                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5676                     fi
5677                   fi
5678                 fi
5679               fi
5680             else
5681               if test "X$found_a" != "X"; then
5682                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5683               else
5684                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5685               fi
5686             fi
5687                         additional_includedir=
5688             case "$found_dir" in
5689               */$acl_libdirstem | */$acl_libdirstem/)
5690                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5691                 LIBINTL_PREFIX="$basedir"
5692                 additional_includedir="$basedir/include"
5693                 ;;
5694             esac
5695             if test "X$additional_includedir" != "X"; then
5696                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5697                 haveit=
5698                 if test "X$additional_includedir" = "X/usr/local/include"; then
5699                   if test -n "$GCC"; then
5700                     case $host_os in
5701                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5702                     esac
5703                   fi
5704                 fi
5705                 if test -z "$haveit"; then
5706                   for x in $CPPFLAGS $INCINTL; do
5707
5708   acl_save_prefix="$prefix"
5709   prefix="$acl_final_prefix"
5710   acl_save_exec_prefix="$exec_prefix"
5711   exec_prefix="$acl_final_exec_prefix"
5712   eval x=\"$x\"
5713   exec_prefix="$acl_save_exec_prefix"
5714   prefix="$acl_save_prefix"
5715
5716                     if test "X$x" = "X-I$additional_includedir"; then
5717                       haveit=yes
5718                       break
5719                     fi
5720                   done
5721                   if test -z "$haveit"; then
5722                     if test -d "$additional_includedir"; then
5723                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5724                     fi
5725                   fi
5726                 fi
5727               fi
5728             fi
5729                         if test -n "$found_la"; then
5730                                                         save_libdir="$libdir"
5731               case "$found_la" in
5732                 */* | *\\*) . "$found_la" ;;
5733                 *) . "./$found_la" ;;
5734               esac
5735               libdir="$save_libdir"
5736                             for dep in $dependency_libs; do
5737                 case "$dep" in
5738                   -L*)
5739                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5740                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
5741                       haveit=
5742                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
5743                         if test -n "$GCC"; then
5744                           case $host_os in
5745                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5746                           esac
5747                         fi
5748                       fi
5749                       if test -z "$haveit"; then
5750                         haveit=
5751                         for x in $LDFLAGS $LIBINTL; do
5752
5753   acl_save_prefix="$prefix"
5754   prefix="$acl_final_prefix"
5755   acl_save_exec_prefix="$exec_prefix"
5756   exec_prefix="$acl_final_exec_prefix"
5757   eval x=\"$x\"
5758   exec_prefix="$acl_save_exec_prefix"
5759   prefix="$acl_save_prefix"
5760
5761                           if test "X$x" = "X-L$additional_libdir"; then
5762                             haveit=yes
5763                             break
5764                           fi
5765                         done
5766                         if test -z "$haveit"; then
5767                           if test -d "$additional_libdir"; then
5768                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5769                           fi
5770                         fi
5771                         haveit=
5772                         for x in $LDFLAGS $LTLIBINTL; do
5773
5774   acl_save_prefix="$prefix"
5775   prefix="$acl_final_prefix"
5776   acl_save_exec_prefix="$exec_prefix"
5777   exec_prefix="$acl_final_exec_prefix"
5778   eval x=\"$x\"
5779   exec_prefix="$acl_save_exec_prefix"
5780   prefix="$acl_save_prefix"
5781
5782                           if test "X$x" = "X-L$additional_libdir"; then
5783                             haveit=yes
5784                             break
5785                           fi
5786                         done
5787                         if test -z "$haveit"; then
5788                           if test -d "$additional_libdir"; then
5789                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5790                           fi
5791                         fi
5792                       fi
5793                     fi
5794                     ;;
5795                   -R*)
5796                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5797                     if test "$enable_rpath" != no; then
5798                                                                   haveit=
5799                       for x in $rpathdirs; do
5800                         if test "X$x" = "X$dir"; then
5801                           haveit=yes
5802                           break
5803                         fi
5804                       done
5805                       if test -z "$haveit"; then
5806                         rpathdirs="$rpathdirs $dir"
5807                       fi
5808                                                                   haveit=
5809                       for x in $ltrpathdirs; do
5810                         if test "X$x" = "X$dir"; then
5811                           haveit=yes
5812                           break
5813                         fi
5814                       done
5815                       if test -z "$haveit"; then
5816                         ltrpathdirs="$ltrpathdirs $dir"
5817                       fi
5818                     fi
5819                     ;;
5820                   -l*)
5821                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5822                     ;;
5823                   *.la)
5824                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5825                     ;;
5826                   *)
5827                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5828                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5829                     ;;
5830                 esac
5831               done
5832             fi
5833           else
5834                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5835             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5836           fi
5837         fi
5838       fi
5839     done
5840   done
5841   if test "X$rpathdirs" != "X"; then
5842     if test -n "$acl_hardcode_libdir_separator"; then
5843                         alldirs=
5844       for found_dir in $rpathdirs; do
5845         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5846       done
5847             acl_save_libdir="$libdir"
5848       libdir="$alldirs"
5849       eval flag=\"$acl_hardcode_libdir_flag_spec\"
5850       libdir="$acl_save_libdir"
5851       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5852     else
5853             for found_dir in $rpathdirs; do
5854         acl_save_libdir="$libdir"
5855         libdir="$found_dir"
5856         eval flag=\"$acl_hardcode_libdir_flag_spec\"
5857         libdir="$acl_save_libdir"
5858         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5859       done
5860     fi
5861   fi
5862   if test "X$ltrpathdirs" != "X"; then
5863             for found_dir in $ltrpathdirs; do
5864       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
5865     done
5866   fi
5867
5868           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5869 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
5870 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   gt_save_CPPFLAGS="$CPPFLAGS"
5874             CPPFLAGS="$CPPFLAGS $INCINTL"
5875             gt_save_LIBS="$LIBS"
5876             LIBS="$LIBS $LIBINTL"
5877                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h.  */
5879 #include <libintl.h>
5880 $gt_revision_test_code
5881 extern int _nl_msg_cat_cntr;
5882 extern
5883 #ifdef __cplusplus
5884 "C"
5885 #endif
5886 const char *_nl_expand_alias (const char *);
5887 int
5888 main ()
5889 {
5890 bindtextdomain ("", "");
5891 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5892   ;
5893   return 0;
5894 }
5895 _ACEOF
5896 if ac_fn_c_try_link "$LINENO"; then :
5897   eval "$gt_func_gnugettext_libintl=yes"
5898 else
5899   eval "$gt_func_gnugettext_libintl=no"
5900 fi
5901 rm -f core conftest.err conftest.$ac_objext \
5902     conftest$ac_exeext conftest.$ac_ext
5903                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
5904               LIBS="$LIBS $LIBICONV"
5905               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h.  */
5907 #include <libintl.h>
5908 $gt_revision_test_code
5909 extern int _nl_msg_cat_cntr;
5910 extern
5911 #ifdef __cplusplus
5912 "C"
5913 #endif
5914 const char *_nl_expand_alias (const char *);
5915 int
5916 main ()
5917 {
5918 bindtextdomain ("", "");
5919 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
5920   ;
5921   return 0;
5922 }
5923 _ACEOF
5924 if ac_fn_c_try_link "$LINENO"; then :
5925   LIBINTL="$LIBINTL $LIBICONV"
5926                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5927                 eval "$gt_func_gnugettext_libintl=yes"
5928
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext \
5931     conftest$ac_exeext conftest.$ac_ext
5932             fi
5933             CPPFLAGS="$gt_save_CPPFLAGS"
5934             LIBS="$gt_save_LIBS"
5935 fi
5936 eval ac_res=\$$gt_func_gnugettext_libintl
5937                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5938 $as_echo "$ac_res" >&6; }
5939         fi
5940
5941                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
5942            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
5943                 && test "$PACKAGE" != gettext-runtime \
5944                 && test "$PACKAGE" != gettext-tools; }; then
5945           gt_use_preinstalled_gnugettext=yes
5946         else
5947                     LIBINTL=
5948           LTLIBINTL=
5949           INCINTL=
5950         fi
5951
5952
5953
5954     if test -n "$INTL_MACOSX_LIBS"; then
5955       if test "$gt_use_preinstalled_gnugettext" = "yes" \
5956          || test "$nls_cv_use_gnu_gettext" = "yes"; then
5957                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
5958         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
5959       fi
5960     fi
5961
5962     if test "$gt_use_preinstalled_gnugettext" = "yes" \
5963        || test "$nls_cv_use_gnu_gettext" = "yes"; then
5964
5965 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5966
5967     else
5968       USE_NLS=no
5969     fi
5970   fi
5971
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
5973 $as_echo_n "checking whether to use NLS... " >&6; }
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5975 $as_echo "$USE_NLS" >&6; }
5976   if test "$USE_NLS" = "yes"; then
5977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
5978 $as_echo_n "checking where the gettext function comes from... " >&6; }
5979     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5980       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5981         gt_source="external libintl"
5982       else
5983         gt_source="libc"
5984       fi
5985     else
5986       gt_source="included intl directory"
5987     fi
5988     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
5989 $as_echo "$gt_source" >&6; }
5990   fi
5991
5992   if test "$USE_NLS" = "yes"; then
5993
5994     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5995       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
5996         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
5997 $as_echo_n "checking how to link with libintl... " >&6; }
5998         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
5999 $as_echo "$LIBINTL" >&6; }
6000
6001   for element in $INCINTL; do
6002     haveit=
6003     for x in $CPPFLAGS; do
6004
6005   acl_save_prefix="$prefix"
6006   prefix="$acl_final_prefix"
6007   acl_save_exec_prefix="$exec_prefix"
6008   exec_prefix="$acl_final_exec_prefix"
6009   eval x=\"$x\"
6010   exec_prefix="$acl_save_exec_prefix"
6011   prefix="$acl_save_prefix"
6012
6013       if test "X$x" = "X$element"; then
6014         haveit=yes
6015         break
6016       fi
6017     done
6018     if test -z "$haveit"; then
6019       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6020     fi
6021   done
6022
6023       fi
6024
6025
6026 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
6027
6028
6029 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
6030
6031     fi
6032
6033         POSUB=po
6034   fi
6035
6036
6037
6038     INTLLIBS="$LIBINTL"
6039
6040
6041
6042
6043
6044
6045
6046
6047 # Init libtool
6048 case `pwd` in
6049   *\ * | *\     *)
6050     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6051 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6052 esac
6053
6054
6055
6056 macro_version='2.2.6'
6057 macro_revision='1.3012'
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071 ltmain="$ac_aux_dir/ltmain.sh"
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6074 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6075 if test "${ac_cv_path_SED+set}" = set; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6079      for ac_i in 1 2 3 4 5 6 7; do
6080        ac_script="$ac_script$as_nl$ac_script"
6081      done
6082      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6083      { ac_script=; unset ac_script;}
6084      if test -z "$SED"; then
6085   ac_path_SED_found=false
6086   # Loop through the user's path and test for each of PROGNAME-LIST
6087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_prog in sed gsed; do
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6095       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6096 # Check for GNU ac_path_SED and select it if it is found.
6097   # Check for GNU $ac_path_SED
6098 case `"$ac_path_SED" --version 2>&1` in
6099 *GNU*)
6100   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6101 *)
6102   ac_count=0
6103   $as_echo_n 0123456789 >"conftest.in"
6104   while :
6105   do
6106     cat "conftest.in" "conftest.in" >"conftest.tmp"
6107     mv "conftest.tmp" "conftest.in"
6108     cp "conftest.in" "conftest.nl"
6109     $as_echo '' >> "conftest.nl"
6110     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6111     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6112     as_fn_arith $ac_count + 1 && ac_count=$as_val
6113     if test $ac_count -gt ${ac_path_SED_max-0}; then
6114       # Best one so far, save it but keep looking for a better one
6115       ac_cv_path_SED="$ac_path_SED"
6116       ac_path_SED_max=$ac_count
6117     fi
6118     # 10*(2^10) chars as input seems more than enough
6119     test $ac_count -gt 10 && break
6120   done
6121   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6122 esac
6123
6124       $ac_path_SED_found && break 3
6125     done
6126   done
6127   done
6128 IFS=$as_save_IFS
6129   if test -z "$ac_cv_path_SED"; then
6130     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6131   fi
6132 else
6133   ac_cv_path_SED=$SED
6134 fi
6135
6136 fi
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6138 $as_echo "$ac_cv_path_SED" >&6; }
6139  SED="$ac_cv_path_SED"
6140   rm -f conftest.sed
6141
6142 test -z "$SED" && SED=sed
6143 Xsed="$SED -e 1s/^X//"
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6157 if test "${ac_cv_path_GREP+set}" = set; then :
6158   $as_echo_n "(cached) " >&6
6159 else
6160   if test -z "$GREP"; then
6161   ac_path_GREP_found=false
6162   # Loop through the user's path and test for each of PROGNAME-LIST
6163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6165 do
6166   IFS=$as_save_IFS
6167   test -z "$as_dir" && as_dir=.
6168     for ac_prog in grep ggrep; do
6169     for ac_exec_ext in '' $ac_executable_extensions; do
6170       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6171       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6172 # Check for GNU ac_path_GREP and select it if it is found.
6173   # Check for GNU $ac_path_GREP
6174 case `"$ac_path_GREP" --version 2>&1` in
6175 *GNU*)
6176   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6177 *)
6178   ac_count=0
6179   $as_echo_n 0123456789 >"conftest.in"
6180   while :
6181   do
6182     cat "conftest.in" "conftest.in" >"conftest.tmp"
6183     mv "conftest.tmp" "conftest.in"
6184     cp "conftest.in" "conftest.nl"
6185     $as_echo 'GREP' >> "conftest.nl"
6186     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6187     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6188     as_fn_arith $ac_count + 1 && ac_count=$as_val
6189     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6190       # Best one so far, save it but keep looking for a better one
6191       ac_cv_path_GREP="$ac_path_GREP"
6192       ac_path_GREP_max=$ac_count
6193     fi
6194     # 10*(2^10) chars as input seems more than enough
6195     test $ac_count -gt 10 && break
6196   done
6197   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6198 esac
6199
6200       $ac_path_GREP_found && break 3
6201     done
6202   done
6203   done
6204 IFS=$as_save_IFS
6205   if test -z "$ac_cv_path_GREP"; then
6206     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6207   fi
6208 else
6209   ac_cv_path_GREP=$GREP
6210 fi
6211
6212 fi
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6214 $as_echo "$ac_cv_path_GREP" >&6; }
6215  GREP="$ac_cv_path_GREP"
6216
6217
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6219 $as_echo_n "checking for egrep... " >&6; }
6220 if test "${ac_cv_path_EGREP+set}" = set; then :
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6224    then ac_cv_path_EGREP="$GREP -E"
6225    else
6226      if test -z "$EGREP"; then
6227   ac_path_EGREP_found=false
6228   # Loop through the user's path and test for each of PROGNAME-LIST
6229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234     for ac_prog in egrep; do
6235     for ac_exec_ext in '' $ac_executable_extensions; do
6236       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6237       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6238 # Check for GNU ac_path_EGREP and select it if it is found.
6239   # Check for GNU $ac_path_EGREP
6240 case `"$ac_path_EGREP" --version 2>&1` in
6241 *GNU*)
6242   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6243 *)
6244   ac_count=0
6245   $as_echo_n 0123456789 >"conftest.in"
6246   while :
6247   do
6248     cat "conftest.in" "conftest.in" >"conftest.tmp"
6249     mv "conftest.tmp" "conftest.in"
6250     cp "conftest.in" "conftest.nl"
6251     $as_echo 'EGREP' >> "conftest.nl"
6252     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6253     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6254     as_fn_arith $ac_count + 1 && ac_count=$as_val
6255     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6256       # Best one so far, save it but keep looking for a better one
6257       ac_cv_path_EGREP="$ac_path_EGREP"
6258       ac_path_EGREP_max=$ac_count
6259     fi
6260     # 10*(2^10) chars as input seems more than enough
6261     test $ac_count -gt 10 && break
6262   done
6263   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6264 esac
6265
6266       $ac_path_EGREP_found && break 3
6267     done
6268   done
6269   done
6270 IFS=$as_save_IFS
6271   if test -z "$ac_cv_path_EGREP"; then
6272     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6273   fi
6274 else
6275   ac_cv_path_EGREP=$EGREP
6276 fi
6277
6278    fi
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6281 $as_echo "$ac_cv_path_EGREP" >&6; }
6282  EGREP="$ac_cv_path_EGREP"
6283
6284
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6286 $as_echo_n "checking for fgrep... " >&6; }
6287 if test "${ac_cv_path_FGREP+set}" = set; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6291    then ac_cv_path_FGREP="$GREP -F"
6292    else
6293      if test -z "$FGREP"; then
6294   ac_path_FGREP_found=false
6295   # Loop through the user's path and test for each of PROGNAME-LIST
6296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6298 do
6299   IFS=$as_save_IFS
6300   test -z "$as_dir" && as_dir=.
6301     for ac_prog in fgrep; do
6302     for ac_exec_ext in '' $ac_executable_extensions; do
6303       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6304       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6305 # Check for GNU ac_path_FGREP and select it if it is found.
6306   # Check for GNU $ac_path_FGREP
6307 case `"$ac_path_FGREP" --version 2>&1` in
6308 *GNU*)
6309   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6310 *)
6311   ac_count=0
6312   $as_echo_n 0123456789 >"conftest.in"
6313   while :
6314   do
6315     cat "conftest.in" "conftest.in" >"conftest.tmp"
6316     mv "conftest.tmp" "conftest.in"
6317     cp "conftest.in" "conftest.nl"
6318     $as_echo 'FGREP' >> "conftest.nl"
6319     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6320     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6321     as_fn_arith $ac_count + 1 && ac_count=$as_val
6322     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6323       # Best one so far, save it but keep looking for a better one
6324       ac_cv_path_FGREP="$ac_path_FGREP"
6325       ac_path_FGREP_max=$ac_count
6326     fi
6327     # 10*(2^10) chars as input seems more than enough
6328     test $ac_count -gt 10 && break
6329   done
6330   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6331 esac
6332
6333       $ac_path_FGREP_found && break 3
6334     done
6335   done
6336   done
6337 IFS=$as_save_IFS
6338   if test -z "$ac_cv_path_FGREP"; then
6339     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6340   fi
6341 else
6342   ac_cv_path_FGREP=$FGREP
6343 fi
6344
6345    fi
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6348 $as_echo "$ac_cv_path_FGREP" >&6; }
6349  FGREP="$ac_cv_path_FGREP"
6350
6351
6352 test -z "$GREP" && GREP=grep
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372 # Check whether --with-gnu-ld was given.
6373 if test "${with_gnu_ld+set}" = set; then :
6374   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6375 else
6376   with_gnu_ld=no
6377 fi
6378
6379 ac_prog=ld
6380 if test "$GCC" = yes; then
6381   # Check if gcc -print-prog-name=ld gives a path.
6382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6383 $as_echo_n "checking for ld used by $CC... " >&6; }
6384   case $host in
6385   *-*-mingw*)
6386     # gcc leaves a trailing carriage return which upsets mingw
6387     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6388   *)
6389     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6390   esac
6391   case $ac_prog in
6392     # Accept absolute paths.
6393     [\\/]* | ?:[\\/]*)
6394       re_direlt='/[^/][^/]*/\.\./'
6395       # Canonicalize the pathname of ld
6396       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6397       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6398         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6399       done
6400       test -z "$LD" && LD="$ac_prog"
6401       ;;
6402   "")
6403     # If it fails, then pretend we aren't using GCC.
6404     ac_prog=ld
6405     ;;
6406   *)
6407     # If it is relative, then search for the first ld in PATH.
6408     with_gnu_ld=unknown
6409     ;;
6410   esac
6411 elif test "$with_gnu_ld" = yes; then
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6413 $as_echo_n "checking for GNU ld... " >&6; }
6414 else
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6416 $as_echo_n "checking for non-GNU ld... " >&6; }
6417 fi
6418 if test "${lt_cv_path_LD+set}" = set; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   if test -z "$LD"; then
6422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6423   for ac_dir in $PATH; do
6424     IFS="$lt_save_ifs"
6425     test -z "$ac_dir" && ac_dir=.
6426     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6427       lt_cv_path_LD="$ac_dir/$ac_prog"
6428       # Check to see if the program is GNU ld.  I'd rather use --version,
6429       # but apparently some variants of GNU ld only accept -v.
6430       # Break only if it was the GNU/non-GNU ld that we prefer.
6431       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6432       *GNU* | *'with BFD'*)
6433         test "$with_gnu_ld" != no && break
6434         ;;
6435       *)
6436         test "$with_gnu_ld" != yes && break
6437         ;;
6438       esac
6439     fi
6440   done
6441   IFS="$lt_save_ifs"
6442 else
6443   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6444 fi
6445 fi
6446
6447 LD="$lt_cv_path_LD"
6448 if test -n "$LD"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6450 $as_echo "$LD" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6458 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6462 case `$LD -v 2>&1 </dev/null` in
6463 *GNU* | *'with BFD'*)
6464   lt_cv_prog_gnu_ld=yes
6465   ;;
6466 *)
6467   lt_cv_prog_gnu_ld=no
6468   ;;
6469 esac
6470 fi
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6473 with_gnu_ld=$lt_cv_prog_gnu_ld
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6484 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6485 if test "${lt_cv_path_NM+set}" = set; then :
6486   $as_echo_n "(cached) " >&6
6487 else
6488   if test -n "$NM"; then
6489   # Let the user override the test.
6490   lt_cv_path_NM="$NM"
6491 else
6492   lt_nm_to_check="${ac_tool_prefix}nm"
6493   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6494     lt_nm_to_check="$lt_nm_to_check nm"
6495   fi
6496   for lt_tmp_nm in $lt_nm_to_check; do
6497     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6498     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6499       IFS="$lt_save_ifs"
6500       test -z "$ac_dir" && ac_dir=.
6501       tmp_nm="$ac_dir/$lt_tmp_nm"
6502       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6503         # Check to see if the nm accepts a BSD-compat flag.
6504         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6505         #   nm: unknown option "B" ignored
6506         # Tru64's nm complains that /dev/null is an invalid object file
6507         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6508         */dev/null* | *'Invalid file or object type'*)
6509           lt_cv_path_NM="$tmp_nm -B"
6510           break
6511           ;;
6512         *)
6513           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6514           */dev/null*)
6515             lt_cv_path_NM="$tmp_nm -p"
6516             break
6517             ;;
6518           *)
6519             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6520             continue # so that we can try to find one that supports BSD flags
6521             ;;
6522           esac
6523           ;;
6524         esac
6525       fi
6526     done
6527     IFS="$lt_save_ifs"
6528   done
6529   : ${lt_cv_path_NM=no}
6530 fi
6531 fi
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6533 $as_echo "$lt_cv_path_NM" >&6; }
6534 if test "$lt_cv_path_NM" != "no"; then
6535   NM="$lt_cv_path_NM"
6536 else
6537   # Didn't find any BSD compatible name lister, look for dumpbin.
6538   if test -n "$ac_tool_prefix"; then
6539   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6540   do
6541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$DUMPBIN"; then
6549   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 DUMPBIN=$ac_cv_prog_DUMPBIN
6569 if test -n "$DUMPBIN"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6571 $as_echo "$DUMPBIN" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577
6578     test -n "$DUMPBIN" && break
6579   done
6580 fi
6581 if test -z "$DUMPBIN"; then
6582   ac_ct_DUMPBIN=$DUMPBIN
6583   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6584 do
6585   # Extract the first word of "$ac_prog", so it can be a program name with args.
6586 set dummy $ac_prog; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6590   $as_echo_n "(cached) " >&6
6591 else
6592   if test -n "$ac_ct_DUMPBIN"; then
6593   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598   IFS=$as_save_IFS
6599   test -z "$as_dir" && as_dir=.
6600     for ac_exec_ext in '' $ac_executable_extensions; do
6601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604     break 2
6605   fi
6606 done
6607   done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6613 if test -n "$ac_ct_DUMPBIN"; then
6614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6615 $as_echo "$ac_ct_DUMPBIN" >&6; }
6616 else
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622   test -n "$ac_ct_DUMPBIN" && break
6623 done
6624
6625   if test "x$ac_ct_DUMPBIN" = x; then
6626     DUMPBIN=":"
6627   else
6628     case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634     DUMPBIN=$ac_ct_DUMPBIN
6635   fi
6636 fi
6637
6638
6639   if test "$DUMPBIN" != ":"; then
6640     NM="$DUMPBIN"
6641   fi
6642 fi
6643 test -z "$NM" && NM=nm
6644
6645
6646
6647
6648
6649
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6651 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6652 if test "${lt_cv_nm_interface+set}" = set; then :
6653   $as_echo_n "(cached) " >&6
6654 else
6655   lt_cv_nm_interface="BSD nm"
6656   echo "int some_variable = 0;" > conftest.$ac_ext
6657   (eval echo "\"\$as_me:6657: $ac_compile\"" >&5)
6658   (eval "$ac_compile" 2>conftest.err)
6659   cat conftest.err >&5
6660   (eval echo "\"\$as_me:6660: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6661   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6662   cat conftest.err >&5
6663   (eval echo "\"\$as_me:6663: output\"" >&5)
6664   cat conftest.out >&5
6665   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6666     lt_cv_nm_interface="MS dumpbin"
6667   fi
6668   rm -f conftest*
6669 fi
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6671 $as_echo "$lt_cv_nm_interface" >&6; }
6672
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6674 $as_echo_n "checking whether ln -s works... " >&6; }
6675 LN_S=$as_ln_s
6676 if test "$LN_S" = "ln -s"; then
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6678 $as_echo "yes" >&6; }
6679 else
6680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6681 $as_echo "no, using $LN_S" >&6; }
6682 fi
6683
6684 # find the maximum length of command line arguments
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6686 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6687 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6688   $as_echo_n "(cached) " >&6
6689 else
6690     i=0
6691   teststring="ABCD"
6692
6693   case $build_os in
6694   msdosdjgpp*)
6695     # On DJGPP, this test can blow up pretty badly due to problems in libc
6696     # (any single argument exceeding 2000 bytes causes a buffer overrun
6697     # during glob expansion).  Even if it were fixed, the result of this
6698     # check would be larger than it should be.
6699     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6700     ;;
6701
6702   gnu*)
6703     # Under GNU Hurd, this test is not required because there is
6704     # no limit to the length of command line arguments.
6705     # Libtool will interpret -1 as no limit whatsoever
6706     lt_cv_sys_max_cmd_len=-1;
6707     ;;
6708
6709   cygwin* | mingw* | cegcc*)
6710     # On Win9x/ME, this test blows up -- it succeeds, but takes
6711     # about 5 minutes as the teststring grows exponentially.
6712     # Worse, since 9x/ME are not pre-emptively multitasking,
6713     # you end up with a "frozen" computer, even though with patience
6714     # the test eventually succeeds (with a max line length of 256k).
6715     # Instead, let's just punt: use the minimum linelength reported by
6716     # all of the supported platforms: 8192 (on NT/2K/XP).
6717     lt_cv_sys_max_cmd_len=8192;
6718     ;;
6719
6720   amigaos*)
6721     # On AmigaOS with pdksh, this test takes hours, literally.
6722     # So we just punt and use a minimum line length of 8192.
6723     lt_cv_sys_max_cmd_len=8192;
6724     ;;
6725
6726   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6727     # This has been around since 386BSD, at least.  Likely further.
6728     if test -x /sbin/sysctl; then
6729       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6730     elif test -x /usr/sbin/sysctl; then
6731       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6732     else
6733       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6734     fi
6735     # And add a safety zone
6736     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6737     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6738     ;;
6739
6740   interix*)
6741     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6742     lt_cv_sys_max_cmd_len=196608
6743     ;;
6744
6745   osf*)
6746     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6747     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6748     # nice to cause kernel panics so lets avoid the loop below.
6749     # First set a reasonable default.
6750     lt_cv_sys_max_cmd_len=16384
6751     #
6752     if test -x /sbin/sysconfig; then
6753       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6754         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6755       esac
6756     fi
6757     ;;
6758   sco3.2v5*)
6759     lt_cv_sys_max_cmd_len=102400
6760     ;;
6761   sysv5* | sco5v6* | sysv4.2uw2*)
6762     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6763     if test -n "$kargmax"; then
6764       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6765     else
6766       lt_cv_sys_max_cmd_len=32768
6767     fi
6768     ;;
6769   *)
6770     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6771     if test -n "$lt_cv_sys_max_cmd_len"; then
6772       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6773       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6774     else
6775       # Make teststring a little bigger before we do anything with it.
6776       # a 1K string should be a reasonable start.
6777       for i in 1 2 3 4 5 6 7 8 ; do
6778         teststring=$teststring$teststring
6779       done
6780       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6781       # If test is not a shell built-in, we'll probably end up computing a
6782       # maximum length that is only half of the actual maximum length, but
6783       # we can't tell.
6784       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6785                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6786               test $i != 17 # 1/2 MB should be enough
6787       do
6788         i=`expr $i + 1`
6789         teststring=$teststring$teststring
6790       done
6791       # Only check the string length outside the loop.
6792       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6793       teststring=
6794       # Add a significant safety factor because C++ compilers can tack on
6795       # massive amounts of additional arguments before passing them to the
6796       # linker.  It appears as though 1/2 is a usable value.
6797       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6798     fi
6799     ;;
6800   esac
6801
6802 fi
6803
6804 if test -n $lt_cv_sys_max_cmd_len ; then
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6806 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6807 else
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6809 $as_echo "none" >&6; }
6810 fi
6811 max_cmd_len=$lt_cv_sys_max_cmd_len
6812
6813
6814
6815
6816
6817
6818 : ${CP="cp -f"}
6819 : ${MV="mv -f"}
6820 : ${RM="rm -f"}
6821
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6823 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6824 # Try some XSI features
6825 xsi_shell=no
6826 ( _lt_dummy="a/b/c"
6827   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6828       = c,a/b,, \
6829     && eval 'test $(( 1 + 1 )) -eq 2 \
6830     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6831   && xsi_shell=yes
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6833 $as_echo "$xsi_shell" >&6; }
6834
6835
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6837 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6838 lt_shell_append=no
6839 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6840     >/dev/null 2>&1 \
6841   && lt_shell_append=yes
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6843 $as_echo "$lt_shell_append" >&6; }
6844
6845
6846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6847   lt_unset=unset
6848 else
6849   lt_unset=false
6850 fi
6851
6852
6853
6854
6855
6856 # test EBCDIC or ASCII
6857 case `echo X|tr X '\101'` in
6858  A) # ASCII based system
6859     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6860   lt_SP2NL='tr \040 \012'
6861   lt_NL2SP='tr \015\012 \040\040'
6862   ;;
6863  *) # EBCDIC based system
6864   lt_SP2NL='tr \100 \n'
6865   lt_NL2SP='tr \r\n \100\100'
6866   ;;
6867 esac
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6878 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6879 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6880   $as_echo_n "(cached) " >&6
6881 else
6882   lt_cv_ld_reload_flag='-r'
6883 fi
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6885 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6886 reload_flag=$lt_cv_ld_reload_flag
6887 case $reload_flag in
6888 "" | " "*) ;;
6889 *) reload_flag=" $reload_flag" ;;
6890 esac
6891 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6892 case $host_os in
6893   darwin*)
6894     if test "$GCC" = yes; then
6895       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6896     else
6897       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6898     fi
6899     ;;
6900 esac
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910 if test -n "$ac_tool_prefix"; then
6911   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6912 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 $as_echo_n "checking for $ac_word... " >&6; }
6915 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   if test -n "$OBJDUMP"; then
6919   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926     for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933   done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 OBJDUMP=$ac_cv_prog_OBJDUMP
6939 if test -n "$OBJDUMP"; then
6940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6941 $as_echo "$OBJDUMP" >&6; }
6942 else
6943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6944 $as_echo "no" >&6; }
6945 fi
6946
6947
6948 fi
6949 if test -z "$ac_cv_prog_OBJDUMP"; then
6950   ac_ct_OBJDUMP=$OBJDUMP
6951   # Extract the first word of "objdump", so it can be a program name with args.
6952 set dummy objdump; ac_word=$2
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954 $as_echo_n "checking for $ac_word... " >&6; }
6955 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6956   $as_echo_n "(cached) " >&6
6957 else
6958   if test -n "$ac_ct_OBJDUMP"; then
6959   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966     for ac_exec_ext in '' $ac_executable_extensions; do
6967   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6968     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973   done
6974 IFS=$as_save_IFS
6975
6976 fi
6977 fi
6978 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6979 if test -n "$ac_ct_OBJDUMP"; then
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6981 $as_echo "$ac_ct_OBJDUMP" >&6; }
6982 else
6983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6985 fi
6986
6987   if test "x$ac_ct_OBJDUMP" = x; then
6988     OBJDUMP="false"
6989   else
6990     case $cross_compiling:$ac_tool_warned in
6991 yes:)
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6994 ac_tool_warned=yes ;;
6995 esac
6996     OBJDUMP=$ac_ct_OBJDUMP
6997   fi
6998 else
6999   OBJDUMP="$ac_cv_prog_OBJDUMP"
7000 fi
7001
7002 test -z "$OBJDUMP" && OBJDUMP=objdump
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7013 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7014 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   lt_cv_file_magic_cmd='$MAGIC_CMD'
7018 lt_cv_file_magic_test_file=
7019 lt_cv_deplibs_check_method='unknown'
7020 # Need to set the preceding variable on all platforms that support
7021 # interlibrary dependencies.
7022 # 'none' -- dependencies not supported.
7023 # `unknown' -- same as none, but documents that we really don't know.
7024 # 'pass_all' -- all dependencies passed with no checks.
7025 # 'test_compile' -- check by making test program.
7026 # 'file_magic [[regex]]' -- check by looking for files in library path
7027 # which responds to the $file_magic_cmd with a given extended regex.
7028 # If you have `file' or equivalent on your system and you're not sure
7029 # whether `pass_all' will *always* work, you probably want this one.
7030
7031 case $host_os in
7032 aix[4-9]*)
7033   lt_cv_deplibs_check_method=pass_all
7034   ;;
7035
7036 beos*)
7037   lt_cv_deplibs_check_method=pass_all
7038   ;;
7039
7040 bsdi[45]*)
7041   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7042   lt_cv_file_magic_cmd='/usr/bin/file -L'
7043   lt_cv_file_magic_test_file=/shlib/libc.so
7044   ;;
7045
7046 cygwin*)
7047   # func_win32_libid is a shell function defined in ltmain.sh
7048   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049   lt_cv_file_magic_cmd='func_win32_libid'
7050   ;;
7051
7052 mingw* | pw32*)
7053   # Base MSYS/MinGW do not provide the 'file' command needed by
7054   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7055   # unless we find 'file', for example because we are cross-compiling.
7056   if ( file / ) >/dev/null 2>&1; then
7057     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7058     lt_cv_file_magic_cmd='func_win32_libid'
7059   else
7060     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7061     lt_cv_file_magic_cmd='$OBJDUMP -f'
7062   fi
7063   ;;
7064
7065 cegcc)
7066   # use the weaker test based on 'objdump'. See mingw*.
7067   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7068   lt_cv_file_magic_cmd='$OBJDUMP -f'
7069   ;;
7070
7071 darwin* | rhapsody*)
7072   lt_cv_deplibs_check_method=pass_all
7073   ;;
7074
7075 freebsd* | dragonfly*)
7076   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7077     case $host_cpu in
7078     i*86 )
7079       # Not sure whether the presence of OpenBSD here was a mistake.
7080       # Let's accept both of them until this is cleared up.
7081       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7082       lt_cv_file_magic_cmd=/usr/bin/file
7083       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7084       ;;
7085     esac
7086   else
7087     lt_cv_deplibs_check_method=pass_all
7088   fi
7089   ;;
7090
7091 gnu*)
7092   lt_cv_deplibs_check_method=pass_all
7093   ;;
7094
7095 hpux10.20* | hpux11*)
7096   lt_cv_file_magic_cmd=/usr/bin/file
7097   case $host_cpu in
7098   ia64*)
7099     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7100     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7101     ;;
7102   hppa*64*)
7103     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]'
7104     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7105     ;;
7106   *)
7107     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7108     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7109     ;;
7110   esac
7111   ;;
7112
7113 interix[3-9]*)
7114   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7115   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7116   ;;
7117
7118 irix5* | irix6* | nonstopux*)
7119   case $LD in
7120   *-32|*"-32 ") libmagic=32-bit;;
7121   *-n32|*"-n32 ") libmagic=N32;;
7122   *-64|*"-64 ") libmagic=64-bit;;
7123   *) libmagic=never-match;;
7124   esac
7125   lt_cv_deplibs_check_method=pass_all
7126   ;;
7127
7128 # This must be Linux ELF.
7129 linux* | k*bsd*-gnu)
7130   lt_cv_deplibs_check_method=pass_all
7131   ;;
7132
7133 netbsd* | netbsdelf*-gnu)
7134   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7135     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7136   else
7137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7138   fi
7139   ;;
7140
7141 newos6*)
7142   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7143   lt_cv_file_magic_cmd=/usr/bin/file
7144   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7145   ;;
7146
7147 *nto* | *qnx*)
7148   lt_cv_deplibs_check_method=pass_all
7149   ;;
7150
7151 openbsd*)
7152   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7154   else
7155     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7156   fi
7157   ;;
7158
7159 osf3* | osf4* | osf5*)
7160   lt_cv_deplibs_check_method=pass_all
7161   ;;
7162
7163 rdos*)
7164   lt_cv_deplibs_check_method=pass_all
7165   ;;
7166
7167 solaris*)
7168   lt_cv_deplibs_check_method=pass_all
7169   ;;
7170
7171 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7172   lt_cv_deplibs_check_method=pass_all
7173   ;;
7174
7175 sysv4 | sysv4.3*)
7176   case $host_vendor in
7177   motorola)
7178     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]'
7179     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7180     ;;
7181   ncr)
7182     lt_cv_deplibs_check_method=pass_all
7183     ;;
7184   sequent)
7185     lt_cv_file_magic_cmd='/bin/file'
7186     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7187     ;;
7188   sni)
7189     lt_cv_file_magic_cmd='/bin/file'
7190     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7191     lt_cv_file_magic_test_file=/lib/libc.so
7192     ;;
7193   siemens)
7194     lt_cv_deplibs_check_method=pass_all
7195     ;;
7196   pc)
7197     lt_cv_deplibs_check_method=pass_all
7198     ;;
7199   esac
7200   ;;
7201
7202 tpf*)
7203   lt_cv_deplibs_check_method=pass_all
7204   ;;
7205 esac
7206
7207 fi
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7209 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7210 file_magic_cmd=$lt_cv_file_magic_cmd
7211 deplibs_check_method=$lt_cv_deplibs_check_method
7212 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225 if test -n "$ac_tool_prefix"; then
7226   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7227 set dummy ${ac_tool_prefix}ar; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_AR+set}" = set; then :
7231   $as_echo_n "(cached) " >&6
7232 else
7233   if test -n "$AR"; then
7234   ac_cv_prog_AR="$AR" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239   IFS=$as_save_IFS
7240   test -z "$as_dir" && as_dir=.
7241     for ac_exec_ext in '' $ac_executable_extensions; do
7242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243     ac_cv_prog_AR="${ac_tool_prefix}ar"
7244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245     break 2
7246   fi
7247 done
7248   done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 AR=$ac_cv_prog_AR
7254 if test -n "$AR"; then
7255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7256 $as_echo "$AR" >&6; }
7257 else
7258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262
7263 fi
7264 if test -z "$ac_cv_prog_AR"; then
7265   ac_ct_AR=$AR
7266   # Extract the first word of "ar", so it can be a program name with args.
7267 set dummy ar; ac_word=$2
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 $as_echo_n "checking for $ac_word... " >&6; }
7270 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7271   $as_echo_n "(cached) " >&6
7272 else
7273   if test -n "$ac_ct_AR"; then
7274   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7275 else
7276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 for as_dir in $PATH
7278 do
7279   IFS=$as_save_IFS
7280   test -z "$as_dir" && as_dir=.
7281     for ac_exec_ext in '' $ac_executable_extensions; do
7282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7283     ac_cv_prog_ac_ct_AR="ar"
7284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285     break 2
7286   fi
7287 done
7288   done
7289 IFS=$as_save_IFS
7290
7291 fi
7292 fi
7293 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7294 if test -n "$ac_ct_AR"; then
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7296 $as_echo "$ac_ct_AR" >&6; }
7297 else
7298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299 $as_echo "no" >&6; }
7300 fi
7301
7302   if test "x$ac_ct_AR" = x; then
7303     AR="false"
7304   else
7305     case $cross_compiling:$ac_tool_warned in
7306 yes:)
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7309 ac_tool_warned=yes ;;
7310 esac
7311     AR=$ac_ct_AR
7312   fi
7313 else
7314   AR="$ac_cv_prog_AR"
7315 fi
7316
7317 test -z "$AR" && AR=ar
7318 test -z "$AR_FLAGS" && AR_FLAGS=cru
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330 if test -n "$ac_tool_prefix"; then
7331   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}strip; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_STRIP+set}" = set; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$STRIP"; then
7339   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 STRIP=$ac_cv_prog_STRIP
7359 if test -n "$STRIP"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7361 $as_echo "$STRIP" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367
7368 fi
7369 if test -z "$ac_cv_prog_STRIP"; then
7370   ac_ct_STRIP=$STRIP
7371   # Extract the first word of "strip", so it can be a program name with args.
7372 set dummy strip; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   if test -n "$ac_ct_STRIP"; then
7379   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386     for ac_exec_ext in '' $ac_executable_extensions; do
7387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388     ac_cv_prog_ac_ct_STRIP="strip"
7389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393   done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7399 if test -n "$ac_ct_STRIP"; then
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7401 $as_echo "$ac_ct_STRIP" >&6; }
7402 else
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407   if test "x$ac_ct_STRIP" = x; then
7408     STRIP=":"
7409   else
7410     case $cross_compiling:$ac_tool_warned in
7411 yes:)
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416     STRIP=$ac_ct_STRIP
7417   fi
7418 else
7419   STRIP="$ac_cv_prog_STRIP"
7420 fi
7421
7422 test -z "$STRIP" && STRIP=:
7423
7424
7425
7426
7427
7428
7429 if test -n "$ac_tool_prefix"; then
7430   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7431 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; }
7434 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   if test -n "$RANLIB"; then
7438   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7439 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445     for ac_exec_ext in '' $ac_executable_extensions; do
7446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449     break 2
7450   fi
7451 done
7452   done
7453 IFS=$as_save_IFS
7454
7455 fi
7456 fi
7457 RANLIB=$ac_cv_prog_RANLIB
7458 if test -n "$RANLIB"; then
7459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7460 $as_echo "$RANLIB" >&6; }
7461 else
7462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7463 $as_echo "no" >&6; }
7464 fi
7465
7466
7467 fi
7468 if test -z "$ac_cv_prog_RANLIB"; then
7469   ac_ct_RANLIB=$RANLIB
7470   # Extract the first word of "ranlib", so it can be a program name with args.
7471 set dummy ranlib; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 $as_echo_n "checking for $ac_word... " >&6; }
7474 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7475   $as_echo_n "(cached) " >&6
7476 else
7477   if test -n "$ac_ct_RANLIB"; then
7478   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7479 else
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 for as_dir in $PATH
7482 do
7483   IFS=$as_save_IFS
7484   test -z "$as_dir" && as_dir=.
7485     for ac_exec_ext in '' $ac_executable_extensions; do
7486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7487     ac_cv_prog_ac_ct_RANLIB="ranlib"
7488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489     break 2
7490   fi
7491 done
7492   done
7493 IFS=$as_save_IFS
7494
7495 fi
7496 fi
7497 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7498 if test -n "$ac_ct_RANLIB"; then
7499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7500 $as_echo "$ac_ct_RANLIB" >&6; }
7501 else
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }
7504 fi
7505
7506   if test "x$ac_ct_RANLIB" = x; then
7507     RANLIB=":"
7508   else
7509     case $cross_compiling:$ac_tool_warned in
7510 yes:)
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7513 ac_tool_warned=yes ;;
7514 esac
7515     RANLIB=$ac_ct_RANLIB
7516   fi
7517 else
7518   RANLIB="$ac_cv_prog_RANLIB"
7519 fi
7520
7521 test -z "$RANLIB" && RANLIB=:
7522
7523
7524
7525
7526
7527
7528 # Determine commands to create old-style static archives.
7529 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7530 old_postinstall_cmds='chmod 644 $oldlib'
7531 old_postuninstall_cmds=
7532
7533 if test -n "$RANLIB"; then
7534   case $host_os in
7535   openbsd*)
7536     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7537     ;;
7538   *)
7539     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7540     ;;
7541   esac
7542   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7543 fi
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 # If no C compiler was specified, use CC.
7579 LTCC=${LTCC-"$CC"}
7580
7581 # If no C compiler flags were specified, use CFLAGS.
7582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7583
7584 # Allow CC to be a program name with arguments.
7585 compiler=$CC
7586
7587
7588 # Check for command to grab the raw symbol name followed by C symbol from nm.
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7590 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7591 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594
7595 # These are sane defaults that work on at least a few old systems.
7596 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7597
7598 # Character class describing NM global symbol codes.
7599 symcode='[BCDEGRST]'
7600
7601 # Regexp to match symbols that can be accessed directly from C.
7602 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7603
7604 # Define system-specific variables.
7605 case $host_os in
7606 aix*)
7607   symcode='[BCDT]'
7608   ;;
7609 cygwin* | mingw* | pw32* | cegcc*)
7610   symcode='[ABCDGISTW]'
7611   ;;
7612 hpux*)
7613   if test "$host_cpu" = ia64; then
7614     symcode='[ABCDEGRST]'
7615   fi
7616   ;;
7617 irix* | nonstopux*)
7618   symcode='[BCDEGRST]'
7619   ;;
7620 osf*)
7621   symcode='[BCDEGQRST]'
7622   ;;
7623 solaris*)
7624   symcode='[BDRT]'
7625   ;;
7626 sco3.2v5*)
7627   symcode='[DT]'
7628   ;;
7629 sysv4.2uw2*)
7630   symcode='[DT]'
7631   ;;
7632 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7633   symcode='[ABDT]'
7634   ;;
7635 sysv4)
7636   symcode='[DFNSTU]'
7637   ;;
7638 esac
7639
7640 # If we're using GNU nm, then use its standard symbol codes.
7641 case `$NM -V 2>&1` in
7642 *GNU* | *'with BFD'*)
7643   symcode='[ABCDGIRSTW]' ;;
7644 esac
7645
7646 # Transform an extracted symbol line into a proper C declaration.
7647 # Some systems (esp. on ia64) link data and code symbols differently,
7648 # so use this general approach.
7649 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7650
7651 # Transform an extracted symbol line into symbol name and symbol address
7652 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7653 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7654
7655 # Handle CRLF in mingw tool chain
7656 opt_cr=
7657 case $build_os in
7658 mingw*)
7659   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7660   ;;
7661 esac
7662
7663 # Try without a prefix underscore, then with it.
7664 for ac_symprfx in "" "_"; do
7665
7666   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7667   symxfrm="\\1 $ac_symprfx\\2 \\2"
7668
7669   # Write the raw and C identifiers.
7670   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7671     # Fake it for dumpbin and say T for any non-static function
7672     # and D for any global variable.
7673     # Also find C++ and __fastcall symbols from MSVC++,
7674     # which start with @ or ?.
7675     lt_cv_sys_global_symbol_pipe="$AWK '"\
7676 "     {last_section=section; section=\$ 3};"\
7677 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7678 "     \$ 0!~/External *\|/{next};"\
7679 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7680 "     {if(hide[section]) next};"\
7681 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7682 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7683 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7684 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7685 "     ' prfx=^$ac_symprfx"
7686   else
7687     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7688   fi
7689
7690   # Check to see that the pipe works correctly.
7691   pipe_works=no
7692
7693   rm -f conftest*
7694   cat > conftest.$ac_ext <<_LT_EOF
7695 #ifdef __cplusplus
7696 extern "C" {
7697 #endif
7698 char nm_test_var;
7699 void nm_test_func(void);
7700 void nm_test_func(void){}
7701 #ifdef __cplusplus
7702 }
7703 #endif
7704 int main(){nm_test_var='a';nm_test_func();return(0);}
7705 _LT_EOF
7706
7707   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7708   (eval $ac_compile) 2>&5
7709   ac_status=$?
7710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711   test $ac_status = 0; }; then
7712     # Now try to grab the symbols.
7713     nlist=conftest.nm
7714     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7715   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7716   ac_status=$?
7717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718   test $ac_status = 0; } && test -s "$nlist"; then
7719       # Try sorting and uniquifying the output.
7720       if sort "$nlist" | uniq > "$nlist"T; then
7721         mv -f "$nlist"T "$nlist"
7722       else
7723         rm -f "$nlist"T
7724       fi
7725
7726       # Make sure that we snagged all the symbols we need.
7727       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7728         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7729           cat <<_LT_EOF > conftest.$ac_ext
7730 #ifdef __cplusplus
7731 extern "C" {
7732 #endif
7733
7734 _LT_EOF
7735           # Now generate the symbol file.
7736           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7737
7738           cat <<_LT_EOF >> conftest.$ac_ext
7739
7740 /* The mapping between symbol names and symbols.  */
7741 const struct {
7742   const char *name;
7743   void       *address;
7744 }
7745 lt__PROGRAM__LTX_preloaded_symbols[] =
7746 {
7747   { "@PROGRAM@", (void *) 0 },
7748 _LT_EOF
7749           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7750           cat <<\_LT_EOF >> conftest.$ac_ext
7751   {0, (void *) 0}
7752 };
7753
7754 /* This works around a problem in FreeBSD linker */
7755 #ifdef FREEBSD_WORKAROUND
7756 static const void *lt_preloaded_setup() {
7757   return lt__PROGRAM__LTX_preloaded_symbols;
7758 }
7759 #endif
7760
7761 #ifdef __cplusplus
7762 }
7763 #endif
7764 _LT_EOF
7765           # Now try linking the two files.
7766           mv conftest.$ac_objext conftstm.$ac_objext
7767           lt_save_LIBS="$LIBS"
7768           lt_save_CFLAGS="$CFLAGS"
7769           LIBS="conftstm.$ac_objext"
7770           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7771           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7772   (eval $ac_link) 2>&5
7773   ac_status=$?
7774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7775   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7776             pipe_works=yes
7777           fi
7778           LIBS="$lt_save_LIBS"
7779           CFLAGS="$lt_save_CFLAGS"
7780         else
7781           echo "cannot find nm_test_func in $nlist" >&5
7782         fi
7783       else
7784         echo "cannot find nm_test_var in $nlist" >&5
7785       fi
7786     else
7787       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7788     fi
7789   else
7790     echo "$progname: failed program was:" >&5
7791     cat conftest.$ac_ext >&5
7792   fi
7793   rm -rf conftest* conftst*
7794
7795   # Do not use the global_symbol_pipe unless it works.
7796   if test "$pipe_works" = yes; then
7797     break
7798   else
7799     lt_cv_sys_global_symbol_pipe=
7800   fi
7801 done
7802
7803 fi
7804
7805 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7806   lt_cv_sys_global_symbol_to_cdecl=
7807 fi
7808 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7810 $as_echo "failed" >&6; }
7811 else
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7813 $as_echo "ok" >&6; }
7814 fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837 # Check whether --enable-libtool-lock was given.
7838 if test "${enable_libtool_lock+set}" = set; then :
7839   enableval=$enable_libtool_lock;
7840 fi
7841
7842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7843
7844 # Some flags need to be propagated to the compiler or linker for good
7845 # libtool support.
7846 case $host in
7847 ia64-*-hpux*)
7848   # Find out which ABI we are using.
7849   echo 'int i;' > conftest.$ac_ext
7850   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7851   (eval $ac_compile) 2>&5
7852   ac_status=$?
7853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7854   test $ac_status = 0; }; then
7855     case `/usr/bin/file conftest.$ac_objext` in
7856       *ELF-32*)
7857         HPUX_IA64_MODE="32"
7858         ;;
7859       *ELF-64*)
7860         HPUX_IA64_MODE="64"
7861         ;;
7862     esac
7863   fi
7864   rm -rf conftest*
7865   ;;
7866 *-*-irix6*)
7867   # Find out which ABI we are using.
7868   echo '#line 7868 "configure"' > conftest.$ac_ext
7869   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870   (eval $ac_compile) 2>&5
7871   ac_status=$?
7872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873   test $ac_status = 0; }; then
7874     if test "$lt_cv_prog_gnu_ld" = yes; then
7875       case `/usr/bin/file conftest.$ac_objext` in
7876         *32-bit*)
7877           LD="${LD-ld} -melf32bsmip"
7878           ;;
7879         *N32*)
7880           LD="${LD-ld} -melf32bmipn32"
7881           ;;
7882         *64-bit*)
7883           LD="${LD-ld} -melf64bmip"
7884         ;;
7885       esac
7886     else
7887       case `/usr/bin/file conftest.$ac_objext` in
7888         *32-bit*)
7889           LD="${LD-ld} -32"
7890           ;;
7891         *N32*)
7892           LD="${LD-ld} -n32"
7893           ;;
7894         *64-bit*)
7895           LD="${LD-ld} -64"
7896           ;;
7897       esac
7898     fi
7899   fi
7900   rm -rf conftest*
7901   ;;
7902
7903 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7904 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7905   # Find out which ABI we are using.
7906   echo 'int i;' > conftest.$ac_ext
7907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7908   (eval $ac_compile) 2>&5
7909   ac_status=$?
7910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7911   test $ac_status = 0; }; then
7912     case `/usr/bin/file conftest.o` in
7913       *32-bit*)
7914         case $host in
7915           x86_64-*kfreebsd*-gnu)
7916             LD="${LD-ld} -m elf_i386_fbsd"
7917             ;;
7918           x86_64-*linux*)
7919             LD="${LD-ld} -m elf_i386"
7920             ;;
7921           ppc64-*linux*|powerpc64-*linux*)
7922             LD="${LD-ld} -m elf32ppclinux"
7923             ;;
7924           s390x-*linux*)
7925             LD="${LD-ld} -m elf_s390"
7926             ;;
7927           sparc64-*linux*)
7928             LD="${LD-ld} -m elf32_sparc"
7929             ;;
7930         esac
7931         ;;
7932       *64-bit*)
7933         case $host in
7934           x86_64-*kfreebsd*-gnu)
7935             LD="${LD-ld} -m elf_x86_64_fbsd"
7936             ;;
7937           x86_64-*linux*)
7938             LD="${LD-ld} -m elf_x86_64"
7939             ;;
7940           ppc*-*linux*|powerpc*-*linux*)
7941             LD="${LD-ld} -m elf64ppc"
7942             ;;
7943           s390*-*linux*|s390*-*tpf*)
7944             LD="${LD-ld} -m elf64_s390"
7945             ;;
7946           sparc*-*linux*)
7947             LD="${LD-ld} -m elf64_sparc"
7948             ;;
7949         esac
7950         ;;
7951     esac
7952   fi
7953   rm -rf conftest*
7954   ;;
7955
7956 *-*-sco3.2v5*)
7957   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7958   SAVE_CFLAGS="$CFLAGS"
7959   CFLAGS="$CFLAGS -belf"
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7961 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7962 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7963   $as_echo_n "(cached) " >&6
7964 else
7965   ac_ext=c
7966 ac_cpp='$CPP $CPPFLAGS'
7967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970
7971      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h.  */
7973
7974 int
7975 main ()
7976 {
7977
7978   ;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_link "$LINENO"; then :
7983   lt_cv_cc_needs_belf=yes
7984 else
7985   lt_cv_cc_needs_belf=no
7986 fi
7987 rm -f core conftest.err conftest.$ac_objext \
7988     conftest$ac_exeext conftest.$ac_ext
7989      ac_ext=c
7990 ac_cpp='$CPP $CPPFLAGS'
7991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7994
7995 fi
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7997 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7998   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7999     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8000     CFLAGS="$SAVE_CFLAGS"
8001   fi
8002   ;;
8003 sparc*-*solaris*)
8004   # Find out which ABI we are using.
8005   echo 'int i;' > conftest.$ac_ext
8006   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8007   (eval $ac_compile) 2>&5
8008   ac_status=$?
8009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8010   test $ac_status = 0; }; then
8011     case `/usr/bin/file conftest.o` in
8012     *64-bit*)
8013       case $lt_cv_prog_gnu_ld in
8014       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8015       *)
8016         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8017           LD="${LD-ld} -64"
8018         fi
8019         ;;
8020       esac
8021       ;;
8022     esac
8023   fi
8024   rm -rf conftest*
8025   ;;
8026 esac
8027
8028 need_locks="$enable_libtool_lock"
8029
8030
8031   case $host_os in
8032     rhapsody* | darwin*)
8033     if test -n "$ac_tool_prefix"; then
8034   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8035 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8037 $as_echo_n "checking for $ac_word... " >&6; }
8038 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8039   $as_echo_n "(cached) " >&6
8040 else
8041   if test -n "$DSYMUTIL"; then
8042   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8043 else
8044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045 for as_dir in $PATH
8046 do
8047   IFS=$as_save_IFS
8048   test -z "$as_dir" && as_dir=.
8049     for ac_exec_ext in '' $ac_executable_extensions; do
8050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8051     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8052     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8053     break 2
8054   fi
8055 done
8056   done
8057 IFS=$as_save_IFS
8058
8059 fi
8060 fi
8061 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8062 if test -n "$DSYMUTIL"; then
8063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8064 $as_echo "$DSYMUTIL" >&6; }
8065 else
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068 fi
8069
8070
8071 fi
8072 if test -z "$ac_cv_prog_DSYMUTIL"; then
8073   ac_ct_DSYMUTIL=$DSYMUTIL
8074   # Extract the first word of "dsymutil", so it can be a program name with args.
8075 set dummy dsymutil; ac_word=$2
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077 $as_echo_n "checking for $ac_word... " >&6; }
8078 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8079   $as_echo_n "(cached) " >&6
8080 else
8081   if test -n "$ac_ct_DSYMUTIL"; then
8082   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8083 else
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085 for as_dir in $PATH
8086 do
8087   IFS=$as_save_IFS
8088   test -z "$as_dir" && as_dir=.
8089     for ac_exec_ext in '' $ac_executable_extensions; do
8090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093     break 2
8094   fi
8095 done
8096   done
8097 IFS=$as_save_IFS
8098
8099 fi
8100 fi
8101 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8102 if test -n "$ac_ct_DSYMUTIL"; then
8103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8104 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8105 else
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107 $as_echo "no" >&6; }
8108 fi
8109
8110   if test "x$ac_ct_DSYMUTIL" = x; then
8111     DSYMUTIL=":"
8112   else
8113     case $cross_compiling:$ac_tool_warned in
8114 yes:)
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8116 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8117 ac_tool_warned=yes ;;
8118 esac
8119     DSYMUTIL=$ac_ct_DSYMUTIL
8120   fi
8121 else
8122   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8123 fi
8124
8125     if test -n "$ac_tool_prefix"; then
8126   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8127 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8131   $as_echo_n "(cached) " >&6
8132 else
8133   if test -n "$NMEDIT"; then
8134   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8135 else
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139   IFS=$as_save_IFS
8140   test -z "$as_dir" && as_dir=.
8141     for ac_exec_ext in '' $ac_executable_extensions; do
8142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8143     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8145     break 2
8146   fi
8147 done
8148   done
8149 IFS=$as_save_IFS
8150
8151 fi
8152 fi
8153 NMEDIT=$ac_cv_prog_NMEDIT
8154 if test -n "$NMEDIT"; then
8155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8156 $as_echo "$NMEDIT" >&6; }
8157 else
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8160 fi
8161
8162
8163 fi
8164 if test -z "$ac_cv_prog_NMEDIT"; then
8165   ac_ct_NMEDIT=$NMEDIT
8166   # Extract the first word of "nmedit", so it can be a program name with args.
8167 set dummy nmedit; ac_word=$2
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169 $as_echo_n "checking for $ac_word... " >&6; }
8170 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8171   $as_echo_n "(cached) " >&6
8172 else
8173   if test -n "$ac_ct_NMEDIT"; then
8174   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8175 else
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177 for as_dir in $PATH
8178 do
8179   IFS=$as_save_IFS
8180   test -z "$as_dir" && as_dir=.
8181     for ac_exec_ext in '' $ac_executable_extensions; do
8182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8183     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8185     break 2
8186   fi
8187 done
8188   done
8189 IFS=$as_save_IFS
8190
8191 fi
8192 fi
8193 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8194 if test -n "$ac_ct_NMEDIT"; then
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8196 $as_echo "$ac_ct_NMEDIT" >&6; }
8197 else
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 $as_echo "no" >&6; }
8200 fi
8201
8202   if test "x$ac_ct_NMEDIT" = x; then
8203     NMEDIT=":"
8204   else
8205     case $cross_compiling:$ac_tool_warned in
8206 yes:)
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8209 ac_tool_warned=yes ;;
8210 esac
8211     NMEDIT=$ac_ct_NMEDIT
8212   fi
8213 else
8214   NMEDIT="$ac_cv_prog_NMEDIT"
8215 fi
8216
8217     if test -n "$ac_tool_prefix"; then
8218   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8219 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8221 $as_echo_n "checking for $ac_word... " >&6; }
8222 if test "${ac_cv_prog_LIPO+set}" = set; then :
8223   $as_echo_n "(cached) " >&6
8224 else
8225   if test -n "$LIPO"; then
8226   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8227 else
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 for as_dir in $PATH
8230 do
8231   IFS=$as_save_IFS
8232   test -z "$as_dir" && as_dir=.
8233     for ac_exec_ext in '' $ac_executable_extensions; do
8234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8235     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237     break 2
8238   fi
8239 done
8240   done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 LIPO=$ac_cv_prog_LIPO
8246 if test -n "$LIPO"; then
8247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8248 $as_echo "$LIPO" >&6; }
8249 else
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8252 fi
8253
8254
8255 fi
8256 if test -z "$ac_cv_prog_LIPO"; then
8257   ac_ct_LIPO=$LIPO
8258   # Extract the first word of "lipo", so it can be a program name with args.
8259 set dummy lipo; ac_word=$2
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 $as_echo_n "checking for $ac_word... " >&6; }
8262 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   if test -n "$ac_ct_LIPO"; then
8266   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8267 else
8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8269 for as_dir in $PATH
8270 do
8271   IFS=$as_save_IFS
8272   test -z "$as_dir" && as_dir=.
8273     for ac_exec_ext in '' $ac_executable_extensions; do
8274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275     ac_cv_prog_ac_ct_LIPO="lipo"
8276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277     break 2
8278   fi
8279 done
8280   done
8281 IFS=$as_save_IFS
8282
8283 fi
8284 fi
8285 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8286 if test -n "$ac_ct_LIPO"; then
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8288 $as_echo "$ac_ct_LIPO" >&6; }
8289 else
8290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8292 fi
8293
8294   if test "x$ac_ct_LIPO" = x; then
8295     LIPO=":"
8296   else
8297     case $cross_compiling:$ac_tool_warned in
8298 yes:)
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8301 ac_tool_warned=yes ;;
8302 esac
8303     LIPO=$ac_ct_LIPO
8304   fi
8305 else
8306   LIPO="$ac_cv_prog_LIPO"
8307 fi
8308
8309     if test -n "$ac_tool_prefix"; then
8310   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8311 set dummy ${ac_tool_prefix}otool; ac_word=$2
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 $as_echo_n "checking for $ac_word... " >&6; }
8314 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   if test -n "$OTOOL"; then
8318   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8319 else
8320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321 for as_dir in $PATH
8322 do
8323   IFS=$as_save_IFS
8324   test -z "$as_dir" && as_dir=.
8325     for ac_exec_ext in '' $ac_executable_extensions; do
8326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8327     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329     break 2
8330   fi
8331 done
8332   done
8333 IFS=$as_save_IFS
8334
8335 fi
8336 fi
8337 OTOOL=$ac_cv_prog_OTOOL
8338 if test -n "$OTOOL"; then
8339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8340 $as_echo "$OTOOL" >&6; }
8341 else
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343 $as_echo "no" >&6; }
8344 fi
8345
8346
8347 fi
8348 if test -z "$ac_cv_prog_OTOOL"; then
8349   ac_ct_OTOOL=$OTOOL
8350   # Extract the first word of "otool", so it can be a program name with args.
8351 set dummy otool; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8355   $as_echo_n "(cached) " >&6
8356 else
8357   if test -n "$ac_ct_OTOOL"; then
8358   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8359 else
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8362 do
8363   IFS=$as_save_IFS
8364   test -z "$as_dir" && as_dir=.
8365     for ac_exec_ext in '' $ac_executable_extensions; do
8366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367     ac_cv_prog_ac_ct_OTOOL="otool"
8368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369     break 2
8370   fi
8371 done
8372   done
8373 IFS=$as_save_IFS
8374
8375 fi
8376 fi
8377 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8378 if test -n "$ac_ct_OTOOL"; then
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8380 $as_echo "$ac_ct_OTOOL" >&6; }
8381 else
8382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8384 fi
8385
8386   if test "x$ac_ct_OTOOL" = x; then
8387     OTOOL=":"
8388   else
8389     case $cross_compiling:$ac_tool_warned in
8390 yes:)
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8392 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8393 ac_tool_warned=yes ;;
8394 esac
8395     OTOOL=$ac_ct_OTOOL
8396   fi
8397 else
8398   OTOOL="$ac_cv_prog_OTOOL"
8399 fi
8400
8401     if test -n "$ac_tool_prefix"; then
8402   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8403 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405 $as_echo_n "checking for $ac_word... " >&6; }
8406 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   if test -n "$OTOOL64"; then
8410   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8411 else
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8414 do
8415   IFS=$as_save_IFS
8416   test -z "$as_dir" && as_dir=.
8417     for ac_exec_ext in '' $ac_executable_extensions; do
8418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421     break 2
8422   fi
8423 done
8424   done
8425 IFS=$as_save_IFS
8426
8427 fi
8428 fi
8429 OTOOL64=$ac_cv_prog_OTOOL64
8430 if test -n "$OTOOL64"; then
8431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8432 $as_echo "$OTOOL64" >&6; }
8433 else
8434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8436 fi
8437
8438
8439 fi
8440 if test -z "$ac_cv_prog_OTOOL64"; then
8441   ac_ct_OTOOL64=$OTOOL64
8442   # Extract the first word of "otool64", so it can be a program name with args.
8443 set dummy otool64; ac_word=$2
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8445 $as_echo_n "checking for $ac_word... " >&6; }
8446 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   if test -n "$ac_ct_OTOOL64"; then
8450   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8451 else
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8454 do
8455   IFS=$as_save_IFS
8456   test -z "$as_dir" && as_dir=.
8457     for ac_exec_ext in '' $ac_executable_extensions; do
8458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8459     ac_cv_prog_ac_ct_OTOOL64="otool64"
8460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461     break 2
8462   fi
8463 done
8464   done
8465 IFS=$as_save_IFS
8466
8467 fi
8468 fi
8469 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8470 if test -n "$ac_ct_OTOOL64"; then
8471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8472 $as_echo "$ac_ct_OTOOL64" >&6; }
8473 else
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8476 fi
8477
8478   if test "x$ac_ct_OTOOL64" = x; then
8479     OTOOL64=":"
8480   else
8481     case $cross_compiling:$ac_tool_warned in
8482 yes:)
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8485 ac_tool_warned=yes ;;
8486 esac
8487     OTOOL64=$ac_ct_OTOOL64
8488   fi
8489 else
8490   OTOOL64="$ac_cv_prog_OTOOL64"
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8520 $as_echo_n "checking for -single_module linker flag... " >&6; }
8521 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8522   $as_echo_n "(cached) " >&6
8523 else
8524   lt_cv_apple_cc_single_mod=no
8525       if test -z "${LT_MULTI_MODULE}"; then
8526         # By default we will add the -single_module flag. You can override
8527         # by either setting the environment variable LT_MULTI_MODULE
8528         # non-empty at configure time, or by adding -multi_module to the
8529         # link flags.
8530         rm -rf libconftest.dylib*
8531         echo "int foo(void){return 1;}" > conftest.c
8532         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8533 -dynamiclib -Wl,-single_module conftest.c" >&5
8534         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8535           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8536         _lt_result=$?
8537         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8538           lt_cv_apple_cc_single_mod=yes
8539         else
8540           cat conftest.err >&5
8541         fi
8542         rm -rf libconftest.dylib*
8543         rm -f conftest.*
8544       fi
8545 fi
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8547 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8549 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8550 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8551   $as_echo_n "(cached) " >&6
8552 else
8553   lt_cv_ld_exported_symbols_list=no
8554       save_LDFLAGS=$LDFLAGS
8555       echo "_main" > conftest.sym
8556       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8557       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h.  */
8559
8560 int
8561 main ()
8562 {
8563
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"; then :
8569   lt_cv_ld_exported_symbols_list=yes
8570 else
8571   lt_cv_ld_exported_symbols_list=no
8572 fi
8573 rm -f core conftest.err conftest.$ac_objext \
8574     conftest$ac_exeext conftest.$ac_ext
8575         LDFLAGS="$save_LDFLAGS"
8576
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8579 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8580     case $host_os in
8581     rhapsody* | darwin1.[012])
8582       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8583     darwin1.*)
8584       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8585     darwin*) # darwin 5.x on
8586       # if running on 10.5 or later, the deployment target defaults
8587       # to the OS version, if on x86, and 10.4, the deployment
8588       # target defaults to 10.4. Don't you love it?
8589       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8590         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8591           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8592         10.[012]*)
8593           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8594         10.*)
8595           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8596       esac
8597     ;;
8598   esac
8599     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8600       _lt_dar_single_mod='$single_module'
8601     fi
8602     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8603       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8604     else
8605       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8606     fi
8607     if test "$DSYMUTIL" != ":"; then
8608       _lt_dsymutil='~$DSYMUTIL $lib || :'
8609     else
8610       _lt_dsymutil=
8611     fi
8612     ;;
8613   esac
8614
8615 ac_ext=c
8616 ac_cpp='$CPP $CPPFLAGS'
8617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8621 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8622 # On Suns, sometimes $CPP names a directory.
8623 if test -n "$CPP" && test -d "$CPP"; then
8624   CPP=
8625 fi
8626 if test -z "$CPP"; then
8627   if test "${ac_cv_prog_CPP+set}" = set; then :
8628   $as_echo_n "(cached) " >&6
8629 else
8630       # Double quotes because CPP needs to be expanded
8631     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8632     do
8633       ac_preproc_ok=false
8634 for ac_c_preproc_warn_flag in '' yes
8635 do
8636   # Use a header file that comes with gcc, so configuring glibc
8637   # with a fresh cross-compiler works.
8638   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8639   # <limits.h> exists even on freestanding compilers.
8640   # On the NeXT, cc -E runs the code through the compiler's parser,
8641   # not just through cpp. "Syntax error" is here to catch this case.
8642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h.  */
8644 #ifdef __STDC__
8645 # include <limits.h>
8646 #else
8647 # include <assert.h>
8648 #endif
8649                      Syntax error
8650 _ACEOF
8651 if ac_fn_c_try_cpp "$LINENO"; then :
8652
8653 else
8654   # Broken: fails on valid input.
8655 continue
8656 fi
8657 rm -f conftest.err conftest.$ac_ext
8658
8659   # OK, works on sane cases.  Now check whether nonexistent headers
8660   # can be detected and how.
8661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h.  */
8663 #include <ac_nonexistent.h>
8664 _ACEOF
8665 if ac_fn_c_try_cpp "$LINENO"; then :
8666   # Broken: success on invalid input.
8667 continue
8668 else
8669   # Passes both tests.
8670 ac_preproc_ok=:
8671 break
8672 fi
8673 rm -f conftest.err conftest.$ac_ext
8674
8675 done
8676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8677 rm -f conftest.err conftest.$ac_ext
8678 if $ac_preproc_ok; then :
8679   break
8680 fi
8681
8682     done
8683     ac_cv_prog_CPP=$CPP
8684
8685 fi
8686   CPP=$ac_cv_prog_CPP
8687 else
8688   ac_cv_prog_CPP=$CPP
8689 fi
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8691 $as_echo "$CPP" >&6; }
8692 ac_preproc_ok=false
8693 for ac_c_preproc_warn_flag in '' yes
8694 do
8695   # Use a header file that comes with gcc, so configuring glibc
8696   # with a fresh cross-compiler works.
8697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8698   # <limits.h> exists even on freestanding compilers.
8699   # On the NeXT, cc -E runs the code through the compiler's parser,
8700   # not just through cpp. "Syntax error" is here to catch this case.
8701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702 /* end confdefs.h.  */
8703 #ifdef __STDC__
8704 # include <limits.h>
8705 #else
8706 # include <assert.h>
8707 #endif
8708                      Syntax error
8709 _ACEOF
8710 if ac_fn_c_try_cpp "$LINENO"; then :
8711
8712 else
8713   # Broken: fails on valid input.
8714 continue
8715 fi
8716 rm -f conftest.err conftest.$ac_ext
8717
8718   # OK, works on sane cases.  Now check whether nonexistent headers
8719   # can be detected and how.
8720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h.  */
8722 #include <ac_nonexistent.h>
8723 _ACEOF
8724 if ac_fn_c_try_cpp "$LINENO"; then :
8725   # Broken: success on invalid input.
8726 continue
8727 else
8728   # Passes both tests.
8729 ac_preproc_ok=:
8730 break
8731 fi
8732 rm -f conftest.err conftest.$ac_ext
8733
8734 done
8735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8736 rm -f conftest.err conftest.$ac_ext
8737 if $ac_preproc_ok; then :
8738
8739 else
8740   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8742 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8743 See \`config.log' for more details." "$LINENO" 5; }
8744 fi
8745
8746 ac_ext=c
8747 ac_cpp='$CPP $CPPFLAGS'
8748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8751
8752
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8754 $as_echo_n "checking for ANSI C header files... " >&6; }
8755 if test "${ac_cv_header_stdc+set}" = set; then :
8756   $as_echo_n "(cached) " >&6
8757 else
8758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h.  */
8760 #include <stdlib.h>
8761 #include <stdarg.h>
8762 #include <string.h>
8763 #include <float.h>
8764
8765 int
8766 main ()
8767 {
8768
8769   ;
8770   return 0;
8771 }
8772 _ACEOF
8773 if ac_fn_c_try_compile "$LINENO"; then :
8774   ac_cv_header_stdc=yes
8775 else
8776   ac_cv_header_stdc=no
8777 fi
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779
8780 if test $ac_cv_header_stdc = yes; then
8781   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8782   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h.  */
8784 #include <string.h>
8785
8786 _ACEOF
8787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8788   $EGREP "memchr" >/dev/null 2>&1; then :
8789
8790 else
8791   ac_cv_header_stdc=no
8792 fi
8793 rm -f conftest*
8794
8795 fi
8796
8797 if test $ac_cv_header_stdc = yes; then
8798   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h.  */
8801 #include <stdlib.h>
8802
8803 _ACEOF
8804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8805   $EGREP "free" >/dev/null 2>&1; then :
8806
8807 else
8808   ac_cv_header_stdc=no
8809 fi
8810 rm -f conftest*
8811
8812 fi
8813
8814 if test $ac_cv_header_stdc = yes; then
8815   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8816   if test "$cross_compiling" = yes; then :
8817   :
8818 else
8819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h.  */
8821 #include <ctype.h>
8822 #include <stdlib.h>
8823 #if ((' ' & 0x0FF) == 0x020)
8824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8826 #else
8827 # define ISLOWER(c) \
8828                    (('a' <= (c) && (c) <= 'i') \
8829                      || ('j' <= (c) && (c) <= 'r') \
8830                      || ('s' <= (c) && (c) <= 'z'))
8831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8832 #endif
8833
8834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8835 int
8836 main ()
8837 {
8838   int i;
8839   for (i = 0; i < 256; i++)
8840     if (XOR (islower (i), ISLOWER (i))
8841         || toupper (i) != TOUPPER (i))
8842       return 2;
8843   return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_c_try_run "$LINENO"; then :
8847
8848 else
8849   ac_cv_header_stdc=no
8850 fi
8851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8852   conftest.$ac_objext conftest.beam conftest.$ac_ext
8853 fi
8854
8855 fi
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8858 $as_echo "$ac_cv_header_stdc" >&6; }
8859 if test $ac_cv_header_stdc = yes; then
8860
8861 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8862
8863 fi
8864
8865 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8866 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8867                   inttypes.h stdint.h unistd.h
8868 do :
8869   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8870 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8871 "
8872 eval as_val=\$$as_ac_Header
8873    if test "x$as_val" = x""yes; then :
8874   cat >>confdefs.h <<_ACEOF
8875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8876 _ACEOF
8877
8878 fi
8879
8880 done
8881
8882
8883 for ac_header in dlfcn.h
8884 do :
8885   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8886 "
8887 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8888   cat >>confdefs.h <<_ACEOF
8889 #define HAVE_DLFCN_H 1
8890 _ACEOF
8891
8892 fi
8893
8894 done
8895
8896
8897
8898 # Set options
8899 # Check whether --enable-static was given.
8900 if test "${enable_static+set}" = set; then :
8901   enableval=$enable_static; p=${PACKAGE-default}
8902     case $enableval in
8903     yes) enable_static=yes ;;
8904     no) enable_static=no ;;
8905     *)
8906      enable_static=no
8907       # Look at the argument we got.  We use all the common list separators.
8908       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8909       for pkg in $enableval; do
8910         IFS="$lt_save_ifs"
8911         if test "X$pkg" = "X$p"; then
8912           enable_static=yes
8913         fi
8914       done
8915       IFS="$lt_save_ifs"
8916       ;;
8917     esac
8918 else
8919   enable_static=no
8920 fi
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931         enable_dlopen=no
8932
8933
8934   enable_win32_dll=no
8935
8936
8937             # Check whether --enable-shared was given.
8938 if test "${enable_shared+set}" = set; then :
8939   enableval=$enable_shared; p=${PACKAGE-default}
8940     case $enableval in
8941     yes) enable_shared=yes ;;
8942     no) enable_shared=no ;;
8943     *)
8944       enable_shared=no
8945       # Look at the argument we got.  We use all the common list separators.
8946       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8947       for pkg in $enableval; do
8948         IFS="$lt_save_ifs"
8949         if test "X$pkg" = "X$p"; then
8950           enable_shared=yes
8951         fi
8952       done
8953       IFS="$lt_save_ifs"
8954       ;;
8955     esac
8956 else
8957   enable_shared=yes
8958 fi
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970 # Check whether --with-pic was given.
8971 if test "${with_pic+set}" = set; then :
8972   withval=$with_pic; pic_mode="$withval"
8973 else
8974   pic_mode=default
8975 fi
8976
8977
8978 test -z "$pic_mode" && pic_mode=default
8979
8980
8981
8982
8983
8984
8985
8986   # Check whether --enable-fast-install was given.
8987 if test "${enable_fast_install+set}" = set; then :
8988   enableval=$enable_fast_install; p=${PACKAGE-default}
8989     case $enableval in
8990     yes) enable_fast_install=yes ;;
8991     no) enable_fast_install=no ;;
8992     *)
8993       enable_fast_install=no
8994       # Look at the argument we got.  We use all the common list separators.
8995       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8996       for pkg in $enableval; do
8997         IFS="$lt_save_ifs"
8998         if test "X$pkg" = "X$p"; then
8999           enable_fast_install=yes
9000         fi
9001       done
9002       IFS="$lt_save_ifs"
9003       ;;
9004     esac
9005 else
9006   enable_fast_install=yes
9007 fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019 # This can be used to rebuild libtool when needed
9020 LIBTOOL_DEPS="$ltmain"
9021
9022 # Always use our own libtool.
9023 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049 test -z "$LN_S" && LN_S="ln -s"
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064 if test -n "${ZSH_VERSION+set}" ; then
9065    setopt NO_GLOB_SUBST
9066 fi
9067
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9069 $as_echo_n "checking for objdir... " >&6; }
9070 if test "${lt_cv_objdir+set}" = set; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   rm -f .libs 2>/dev/null
9074 mkdir .libs 2>/dev/null
9075 if test -d .libs; then
9076   lt_cv_objdir=.libs
9077 else
9078   # MS-DOS does not allow filenames that begin with a dot.
9079   lt_cv_objdir=_libs
9080 fi
9081 rmdir .libs 2>/dev/null
9082 fi
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9084 $as_echo "$lt_cv_objdir" >&6; }
9085 objdir=$lt_cv_objdir
9086
9087
9088
9089
9090
9091 cat >>confdefs.h <<_ACEOF
9092 #define LT_OBJDIR "$lt_cv_objdir/"
9093 _ACEOF
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111 case $host_os in
9112 aix3*)
9113   # AIX sometimes has problems with the GCC collect2 program.  For some
9114   # reason, if we set the COLLECT_NAMES environment variable, the problems
9115   # vanish in a puff of smoke.
9116   if test "X${COLLECT_NAMES+set}" != Xset; then
9117     COLLECT_NAMES=
9118     export COLLECT_NAMES
9119   fi
9120   ;;
9121 esac
9122
9123 # Sed substitution that helps us do robust quoting.  It backslashifies
9124 # metacharacters that are still active within double-quoted strings.
9125 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9126
9127 # Same as above, but do not quote variable references.
9128 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9129
9130 # Sed substitution to delay expansion of an escaped shell variable in a
9131 # double_quote_subst'ed string.
9132 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9133
9134 # Sed substitution to delay expansion of an escaped single quote.
9135 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9136
9137 # Sed substitution to avoid accidental globbing in evaled expressions
9138 no_glob_subst='s/\*/\\\*/g'
9139
9140 # Global variables:
9141 ofile=libtool
9142 can_build_shared=yes
9143
9144 # All known linkers require a `.a' archive for static linking (except MSVC,
9145 # which needs '.lib').
9146 libext=a
9147
9148 with_gnu_ld="$lt_cv_prog_gnu_ld"
9149
9150 old_CC="$CC"
9151 old_CFLAGS="$CFLAGS"
9152
9153 # Set sane defaults for various variables
9154 test -z "$CC" && CC=cc
9155 test -z "$LTCC" && LTCC=$CC
9156 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9157 test -z "$LD" && LD=ld
9158 test -z "$ac_objext" && ac_objext=o
9159
9160 for cc_temp in $compiler""; do
9161   case $cc_temp in
9162     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9163     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9164     \-*) ;;
9165     *) break;;
9166   esac
9167 done
9168 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9169
9170
9171 # Only perform the check for file, if the check method requires it
9172 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9173 case $deplibs_check_method in
9174 file_magic*)
9175   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9176     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9177 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9178 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   case $MAGIC_CMD in
9182 [\\/*] |  ?:[\\/]*)
9183   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9184   ;;
9185 *)
9186   lt_save_MAGIC_CMD="$MAGIC_CMD"
9187   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9188   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9189   for ac_dir in $ac_dummy; do
9190     IFS="$lt_save_ifs"
9191     test -z "$ac_dir" && ac_dir=.
9192     if test -f $ac_dir/${ac_tool_prefix}file; then
9193       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9194       if test -n "$file_magic_test_file"; then
9195         case $deplibs_check_method in
9196         "file_magic "*)
9197           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9198           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9199           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9200             $EGREP "$file_magic_regex" > /dev/null; then
9201             :
9202           else
9203             cat <<_LT_EOF 1>&2
9204
9205 *** Warning: the command libtool uses to detect shared libraries,
9206 *** $file_magic_cmd, produces output that libtool cannot recognize.
9207 *** The result is that libtool may fail to recognize shared libraries
9208 *** as such.  This will affect the creation of libtool libraries that
9209 *** depend on shared libraries, but programs linked with such libtool
9210 *** libraries will work regardless of this problem.  Nevertheless, you
9211 *** may want to report the problem to your system manager and/or to
9212 *** bug-libtool@gnu.org
9213
9214 _LT_EOF
9215           fi ;;
9216         esac
9217       fi
9218       break
9219     fi
9220   done
9221   IFS="$lt_save_ifs"
9222   MAGIC_CMD="$lt_save_MAGIC_CMD"
9223   ;;
9224 esac
9225 fi
9226
9227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9228 if test -n "$MAGIC_CMD"; then
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9230 $as_echo "$MAGIC_CMD" >&6; }
9231 else
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235
9236
9237
9238
9239
9240 if test -z "$lt_cv_path_MAGIC_CMD"; then
9241   if test -n "$ac_tool_prefix"; then
9242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9243 $as_echo_n "checking for file... " >&6; }
9244 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9245   $as_echo_n "(cached) " >&6
9246 else
9247   case $MAGIC_CMD in
9248 [\\/*] |  ?:[\\/]*)
9249   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9250   ;;
9251 *)
9252   lt_save_MAGIC_CMD="$MAGIC_CMD"
9253   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9254   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9255   for ac_dir in $ac_dummy; do
9256     IFS="$lt_save_ifs"
9257     test -z "$ac_dir" && ac_dir=.
9258     if test -f $ac_dir/file; then
9259       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9260       if test -n "$file_magic_test_file"; then
9261         case $deplibs_check_method in
9262         "file_magic "*)
9263           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9264           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9265           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9266             $EGREP "$file_magic_regex" > /dev/null; then
9267             :
9268           else
9269             cat <<_LT_EOF 1>&2
9270
9271 *** Warning: the command libtool uses to detect shared libraries,
9272 *** $file_magic_cmd, produces output that libtool cannot recognize.
9273 *** The result is that libtool may fail to recognize shared libraries
9274 *** as such.  This will affect the creation of libtool libraries that
9275 *** depend on shared libraries, but programs linked with such libtool
9276 *** libraries will work regardless of this problem.  Nevertheless, you
9277 *** may want to report the problem to your system manager and/or to
9278 *** bug-libtool@gnu.org
9279
9280 _LT_EOF
9281           fi ;;
9282         esac
9283       fi
9284       break
9285     fi
9286   done
9287   IFS="$lt_save_ifs"
9288   MAGIC_CMD="$lt_save_MAGIC_CMD"
9289   ;;
9290 esac
9291 fi
9292
9293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9294 if test -n "$MAGIC_CMD"; then
9295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9296 $as_echo "$MAGIC_CMD" >&6; }
9297 else
9298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9299 $as_echo "no" >&6; }
9300 fi
9301
9302
9303   else
9304     MAGIC_CMD=:
9305   fi
9306 fi
9307
9308   fi
9309   ;;
9310 esac
9311
9312 # Use C for the default configuration in the libtool script
9313
9314 lt_save_CC="$CC"
9315 ac_ext=c
9316 ac_cpp='$CPP $CPPFLAGS'
9317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9320
9321
9322 # Source file extension for C test sources.
9323 ac_ext=c
9324
9325 # Object file extension for compiled C test sources.
9326 objext=o
9327 objext=$objext
9328
9329 # Code to be used in simple compile tests
9330 lt_simple_compile_test_code="int some_variable = 0;"
9331
9332 # Code to be used in simple link tests
9333 lt_simple_link_test_code='int main(){return(0);}'
9334
9335
9336
9337
9338
9339
9340
9341 # If no C compiler was specified, use CC.
9342 LTCC=${LTCC-"$CC"}
9343
9344 # If no C compiler flags were specified, use CFLAGS.
9345 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9346
9347 # Allow CC to be a program name with arguments.
9348 compiler=$CC
9349
9350 # Save the default compiler, since it gets overwritten when the other
9351 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9352 compiler_DEFAULT=$CC
9353
9354 # save warnings/boilerplate of simple test code
9355 ac_outfile=conftest.$ac_objext
9356 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9357 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9358 _lt_compiler_boilerplate=`cat conftest.err`
9359 $RM conftest*
9360
9361 ac_outfile=conftest.$ac_objext
9362 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9363 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9364 _lt_linker_boilerplate=`cat conftest.err`
9365 $RM -r conftest*
9366
9367
9368 ## CAVEAT EMPTOR:
9369 ## There is no encapsulation within the following macros, do not change
9370 ## the running order or otherwise move them around unless you know exactly
9371 ## what you are doing...
9372 if test -n "$compiler"; then
9373
9374 lt_prog_compiler_no_builtin_flag=
9375
9376 if test "$GCC" = yes; then
9377   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9378
9379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9380 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9381 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   lt_cv_prog_compiler_rtti_exceptions=no
9385    ac_outfile=conftest.$ac_objext
9386    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9387    lt_compiler_flag="-fno-rtti -fno-exceptions"
9388    # Insert the option either (1) after the last *FLAGS variable, or
9389    # (2) before a word containing "conftest.", or (3) at the end.
9390    # Note that $ac_compile itself does not contain backslashes and begins
9391    # with a dollar sign (not a hyphen), so the echo should work correctly.
9392    # The option is referenced via a variable to avoid confusing sed.
9393    lt_compile=`echo "$ac_compile" | $SED \
9394    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9395    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9396    -e 's:$: $lt_compiler_flag:'`
9397    (eval echo "\"\$as_me:9397: $lt_compile\"" >&5)
9398    (eval "$lt_compile" 2>conftest.err)
9399    ac_status=$?
9400    cat conftest.err >&5
9401    echo "$as_me:9401: \$? = $ac_status" >&5
9402    if (exit $ac_status) && test -s "$ac_outfile"; then
9403      # The compiler can only warn and ignore the option if not recognized
9404      # So say no if there are warnings other than the usual output.
9405      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9406      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9407      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9408        lt_cv_prog_compiler_rtti_exceptions=yes
9409      fi
9410    fi
9411    $RM conftest*
9412
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9415 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9416
9417 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9418     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9419 else
9420     :
9421 fi
9422
9423 fi
9424
9425
9426
9427
9428
9429
9430   lt_prog_compiler_wl=
9431 lt_prog_compiler_pic=
9432 lt_prog_compiler_static=
9433
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9435 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9436
9437   if test "$GCC" = yes; then
9438     lt_prog_compiler_wl='-Wl,'
9439     lt_prog_compiler_static='-static'
9440
9441     case $host_os in
9442       aix*)
9443       # All AIX code is PIC.
9444       if test "$host_cpu" = ia64; then
9445         # AIX 5 now supports IA64 processor
9446         lt_prog_compiler_static='-Bstatic'
9447       fi
9448       ;;
9449
9450     amigaos*)
9451       case $host_cpu in
9452       powerpc)
9453             # see comment about AmigaOS4 .so support
9454             lt_prog_compiler_pic='-fPIC'
9455         ;;
9456       m68k)
9457             # FIXME: we need at least 68020 code to build shared libraries, but
9458             # adding the `-m68020' flag to GCC prevents building anything better,
9459             # like `-m68040'.
9460             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9461         ;;
9462       esac
9463       ;;
9464
9465     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9466       # PIC is the default for these OSes.
9467       ;;
9468
9469     mingw* | cygwin* | pw32* | os2* | cegcc*)
9470       # This hack is so that the source file can tell whether it is being
9471       # built for inclusion in a dll (and should export symbols for example).
9472       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9473       # (--disable-auto-import) libraries
9474       lt_prog_compiler_pic='-DDLL_EXPORT'
9475       ;;
9476
9477     darwin* | rhapsody*)
9478       # PIC is the default on this platform
9479       # Common symbols not allowed in MH_DYLIB files
9480       lt_prog_compiler_pic='-fno-common'
9481       ;;
9482
9483     hpux*)
9484       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9485       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9486       # sets the default TLS model and affects inlining.
9487       case $host_cpu in
9488       hppa*64*)
9489         # +Z the default
9490         ;;
9491       *)
9492         lt_prog_compiler_pic='-fPIC'
9493         ;;
9494       esac
9495       ;;
9496
9497     interix[3-9]*)
9498       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9499       # Instead, we relocate shared libraries at runtime.
9500       ;;
9501
9502     msdosdjgpp*)
9503       # Just because we use GCC doesn't mean we suddenly get shared libraries
9504       # on systems that don't support them.
9505       lt_prog_compiler_can_build_shared=no
9506       enable_shared=no
9507       ;;
9508
9509     *nto* | *qnx*)
9510       # QNX uses GNU C++, but need to define -shared option too, otherwise
9511       # it will coredump.
9512       lt_prog_compiler_pic='-fPIC -shared'
9513       ;;
9514
9515     sysv4*MP*)
9516       if test -d /usr/nec; then
9517         lt_prog_compiler_pic=-Kconform_pic
9518       fi
9519       ;;
9520
9521     *)
9522       lt_prog_compiler_pic='-fPIC'
9523       ;;
9524     esac
9525   else
9526     # PORTME Check for flag to pass linker flags through the system compiler.
9527     case $host_os in
9528     aix*)
9529       lt_prog_compiler_wl='-Wl,'
9530       if test "$host_cpu" = ia64; then
9531         # AIX 5 now supports IA64 processor
9532         lt_prog_compiler_static='-Bstatic'
9533       else
9534         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9535       fi
9536       ;;
9537
9538     mingw* | cygwin* | pw32* | os2* | cegcc*)
9539       # This hack is so that the source file can tell whether it is being
9540       # built for inclusion in a dll (and should export symbols for example).
9541       lt_prog_compiler_pic='-DDLL_EXPORT'
9542       ;;
9543
9544     hpux9* | hpux10* | hpux11*)
9545       lt_prog_compiler_wl='-Wl,'
9546       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9547       # not for PA HP-UX.
9548       case $host_cpu in
9549       hppa*64*|ia64*)
9550         # +Z the default
9551         ;;
9552       *)
9553         lt_prog_compiler_pic='+Z'
9554         ;;
9555       esac
9556       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9557       lt_prog_compiler_static='${wl}-a ${wl}archive'
9558       ;;
9559
9560     irix5* | irix6* | nonstopux*)
9561       lt_prog_compiler_wl='-Wl,'
9562       # PIC (with -KPIC) is the default.
9563       lt_prog_compiler_static='-non_shared'
9564       ;;
9565
9566     linux* | k*bsd*-gnu)
9567       case $cc_basename in
9568       # old Intel for x86_64 which still supported -KPIC.
9569       ecc*)
9570         lt_prog_compiler_wl='-Wl,'
9571         lt_prog_compiler_pic='-KPIC'
9572         lt_prog_compiler_static='-static'
9573         ;;
9574       # icc used to be incompatible with GCC.
9575       # ICC 10 doesn't accept -KPIC any more.
9576       icc* | ifort*)
9577         lt_prog_compiler_wl='-Wl,'
9578         lt_prog_compiler_pic='-fPIC'
9579         lt_prog_compiler_static='-static'
9580         ;;
9581       # Lahey Fortran 8.1.
9582       lf95*)
9583         lt_prog_compiler_wl='-Wl,'
9584         lt_prog_compiler_pic='--shared'
9585         lt_prog_compiler_static='--static'
9586         ;;
9587       pgcc* | pgf77* | pgf90* | pgf95*)
9588         # Portland Group compilers (*not* the Pentium gcc compiler,
9589         # which looks to be a dead project)
9590         lt_prog_compiler_wl='-Wl,'
9591         lt_prog_compiler_pic='-fpic'
9592         lt_prog_compiler_static='-Bstatic'
9593         ;;
9594       ccc*)
9595         lt_prog_compiler_wl='-Wl,'
9596         # All Alpha code is PIC.
9597         lt_prog_compiler_static='-non_shared'
9598         ;;
9599       xl*)
9600         # IBM XL C 8.0/Fortran 10.1 on PPC
9601         lt_prog_compiler_wl='-Wl,'
9602         lt_prog_compiler_pic='-qpic'
9603         lt_prog_compiler_static='-qstaticlink'
9604         ;;
9605       *)
9606         case `$CC -V 2>&1 | sed 5q` in
9607         *Sun\ C*)
9608           # Sun C 5.9
9609           lt_prog_compiler_pic='-KPIC'
9610           lt_prog_compiler_static='-Bstatic'
9611           lt_prog_compiler_wl='-Wl,'
9612           ;;
9613         *Sun\ F*)
9614           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9615           lt_prog_compiler_pic='-KPIC'
9616           lt_prog_compiler_static='-Bstatic'
9617           lt_prog_compiler_wl=''
9618           ;;
9619         esac
9620         ;;
9621       esac
9622       ;;
9623
9624     newsos6)
9625       lt_prog_compiler_pic='-KPIC'
9626       lt_prog_compiler_static='-Bstatic'
9627       ;;
9628
9629     *nto* | *qnx*)
9630       # QNX uses GNU C++, but need to define -shared option too, otherwise
9631       # it will coredump.
9632       lt_prog_compiler_pic='-fPIC -shared'
9633       ;;
9634
9635     osf3* | osf4* | osf5*)
9636       lt_prog_compiler_wl='-Wl,'
9637       # All OSF/1 code is PIC.
9638       lt_prog_compiler_static='-non_shared'
9639       ;;
9640
9641     rdos*)
9642       lt_prog_compiler_static='-non_shared'
9643       ;;
9644
9645     solaris*)
9646       lt_prog_compiler_pic='-KPIC'
9647       lt_prog_compiler_static='-Bstatic'
9648       case $cc_basename in
9649       f77* | f90* | f95*)
9650         lt_prog_compiler_wl='-Qoption ld ';;
9651       *)
9652         lt_prog_compiler_wl='-Wl,';;
9653       esac
9654       ;;
9655
9656     sunos4*)
9657       lt_prog_compiler_wl='-Qoption ld '
9658       lt_prog_compiler_pic='-PIC'
9659       lt_prog_compiler_static='-Bstatic'
9660       ;;
9661
9662     sysv4 | sysv4.2uw2* | sysv4.3*)
9663       lt_prog_compiler_wl='-Wl,'
9664       lt_prog_compiler_pic='-KPIC'
9665       lt_prog_compiler_static='-Bstatic'
9666       ;;
9667
9668     sysv4*MP*)
9669       if test -d /usr/nec ;then
9670         lt_prog_compiler_pic='-Kconform_pic'
9671         lt_prog_compiler_static='-Bstatic'
9672       fi
9673       ;;
9674
9675     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9676       lt_prog_compiler_wl='-Wl,'
9677       lt_prog_compiler_pic='-KPIC'
9678       lt_prog_compiler_static='-Bstatic'
9679       ;;
9680
9681     unicos*)
9682       lt_prog_compiler_wl='-Wl,'
9683       lt_prog_compiler_can_build_shared=no
9684       ;;
9685
9686     uts4*)
9687       lt_prog_compiler_pic='-pic'
9688       lt_prog_compiler_static='-Bstatic'
9689       ;;
9690
9691     *)
9692       lt_prog_compiler_can_build_shared=no
9693       ;;
9694     esac
9695   fi
9696
9697 case $host_os in
9698   # For platforms which do not support PIC, -DPIC is meaningless:
9699   *djgpp*)
9700     lt_prog_compiler_pic=
9701     ;;
9702   *)
9703     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9704     ;;
9705 esac
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9707 $as_echo "$lt_prog_compiler_pic" >&6; }
9708
9709
9710
9711
9712
9713
9714 #
9715 # Check to make sure the PIC flag actually works.
9716 #
9717 if test -n "$lt_prog_compiler_pic"; then
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9720 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9721   $as_echo_n "(cached) " >&6
9722 else
9723   lt_cv_prog_compiler_pic_works=no
9724    ac_outfile=conftest.$ac_objext
9725    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9726    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9727    # Insert the option either (1) after the last *FLAGS variable, or
9728    # (2) before a word containing "conftest.", or (3) at the end.
9729    # Note that $ac_compile itself does not contain backslashes and begins
9730    # with a dollar sign (not a hyphen), so the echo should work correctly.
9731    # The option is referenced via a variable to avoid confusing sed.
9732    lt_compile=`echo "$ac_compile" | $SED \
9733    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9734    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9735    -e 's:$: $lt_compiler_flag:'`
9736    (eval echo "\"\$as_me:9736: $lt_compile\"" >&5)
9737    (eval "$lt_compile" 2>conftest.err)
9738    ac_status=$?
9739    cat conftest.err >&5
9740    echo "$as_me:9740: \$? = $ac_status" >&5
9741    if (exit $ac_status) && test -s "$ac_outfile"; then
9742      # The compiler can only warn and ignore the option if not recognized
9743      # So say no if there are warnings other than the usual output.
9744      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9745      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9746      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9747        lt_cv_prog_compiler_pic_works=yes
9748      fi
9749    fi
9750    $RM conftest*
9751
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9754 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9755
9756 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9757     case $lt_prog_compiler_pic in
9758      "" | " "*) ;;
9759      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9760      esac
9761 else
9762     lt_prog_compiler_pic=
9763      lt_prog_compiler_can_build_shared=no
9764 fi
9765
9766 fi
9767
9768
9769
9770
9771
9772
9773 #
9774 # Check to make sure the static flag actually works.
9775 #
9776 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9778 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9779 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9780   $as_echo_n "(cached) " >&6
9781 else
9782   lt_cv_prog_compiler_static_works=no
9783    save_LDFLAGS="$LDFLAGS"
9784    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9785    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9786    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9787      # The linker can only warn and ignore the option if not recognized
9788      # So say no if there are warnings
9789      if test -s conftest.err; then
9790        # Append any errors to the config.log.
9791        cat conftest.err 1>&5
9792        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9793        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9794        if diff conftest.exp conftest.er2 >/dev/null; then
9795          lt_cv_prog_compiler_static_works=yes
9796        fi
9797      else
9798        lt_cv_prog_compiler_static_works=yes
9799      fi
9800    fi
9801    $RM -r conftest*
9802    LDFLAGS="$save_LDFLAGS"
9803
9804 fi
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9806 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9807
9808 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9809     :
9810 else
9811     lt_prog_compiler_static=
9812 fi
9813
9814
9815
9816
9817
9818
9819
9820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9822 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9823   $as_echo_n "(cached) " >&6
9824 else
9825   lt_cv_prog_compiler_c_o=no
9826    $RM -r conftest 2>/dev/null
9827    mkdir conftest
9828    cd conftest
9829    mkdir out
9830    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9831
9832    lt_compiler_flag="-o out/conftest2.$ac_objext"
9833    # Insert the option either (1) after the last *FLAGS variable, or
9834    # (2) before a word containing "conftest.", or (3) at the end.
9835    # Note that $ac_compile itself does not contain backslashes and begins
9836    # with a dollar sign (not a hyphen), so the echo should work correctly.
9837    lt_compile=`echo "$ac_compile" | $SED \
9838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9840    -e 's:$: $lt_compiler_flag:'`
9841    (eval echo "\"\$as_me:9841: $lt_compile\"" >&5)
9842    (eval "$lt_compile" 2>out/conftest.err)
9843    ac_status=$?
9844    cat out/conftest.err >&5
9845    echo "$as_me:9845: \$? = $ac_status" >&5
9846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9847    then
9848      # The compiler can only warn and ignore the option if not recognized
9849      # So say no if there are warnings
9850      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9853        lt_cv_prog_compiler_c_o=yes
9854      fi
9855    fi
9856    chmod u+w . 2>&5
9857    $RM conftest*
9858    # SGI C++ compiler will create directory out/ii_files/ for
9859    # template instantiation
9860    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9861    $RM out/* && rmdir out
9862    cd ..
9863    $RM -r conftest
9864    $RM conftest*
9865
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9868 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9869
9870
9871
9872
9873
9874
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9877 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9878   $as_echo_n "(cached) " >&6
9879 else
9880   lt_cv_prog_compiler_c_o=no
9881    $RM -r conftest 2>/dev/null
9882    mkdir conftest
9883    cd conftest
9884    mkdir out
9885    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9886
9887    lt_compiler_flag="-o out/conftest2.$ac_objext"
9888    # Insert the option either (1) after the last *FLAGS variable, or
9889    # (2) before a word containing "conftest.", or (3) at the end.
9890    # Note that $ac_compile itself does not contain backslashes and begins
9891    # with a dollar sign (not a hyphen), so the echo should work correctly.
9892    lt_compile=`echo "$ac_compile" | $SED \
9893    -e 's:.*FLAGS}\{0,1\} :&$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>out/conftest.err)
9898    ac_status=$?
9899    cat out/conftest.err >&5
9900    echo "$as_me:9900: \$? = $ac_status" >&5
9901    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9902    then
9903      # The compiler can only warn and ignore the option if not recognized
9904      # So say no if there are warnings
9905      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9906      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9907      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9908        lt_cv_prog_compiler_c_o=yes
9909      fi
9910    fi
9911    chmod u+w . 2>&5
9912    $RM conftest*
9913    # SGI C++ compiler will create directory out/ii_files/ for
9914    # template instantiation
9915    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9916    $RM out/* && rmdir out
9917    cd ..
9918    $RM -r conftest
9919    $RM conftest*
9920
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9923 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9924
9925
9926
9927
9928 hard_links="nottested"
9929 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9930   # do not overwrite the value of need_locks provided by the user
9931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9932 $as_echo_n "checking if we can lock with hard links... " >&6; }
9933   hard_links=yes
9934   $RM conftest*
9935   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9936   touch conftest.a
9937   ln conftest.a conftest.b 2>&5 || hard_links=no
9938   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9940 $as_echo "$hard_links" >&6; }
9941   if test "$hard_links" = no; then
9942     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9943 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9944     need_locks=warn
9945   fi
9946 else
9947   need_locks=no
9948 fi
9949
9950
9951
9952
9953
9954
9955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9956 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9957
9958   runpath_var=
9959   allow_undefined_flag=
9960   always_export_symbols=no
9961   archive_cmds=
9962   archive_expsym_cmds=
9963   compiler_needs_object=no
9964   enable_shared_with_static_runtimes=no
9965   export_dynamic_flag_spec=
9966   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9967   hardcode_automatic=no
9968   hardcode_direct=no
9969   hardcode_direct_absolute=no
9970   hardcode_libdir_flag_spec=
9971   hardcode_libdir_flag_spec_ld=
9972   hardcode_libdir_separator=
9973   hardcode_minus_L=no
9974   hardcode_shlibpath_var=unsupported
9975   inherit_rpath=no
9976   link_all_deplibs=unknown
9977   module_cmds=
9978   module_expsym_cmds=
9979   old_archive_from_new_cmds=
9980   old_archive_from_expsyms_cmds=
9981   thread_safe_flag_spec=
9982   whole_archive_flag_spec=
9983   # include_expsyms should be a list of space-separated symbols to be *always*
9984   # included in the symbol list
9985   include_expsyms=
9986   # exclude_expsyms can be an extended regexp of symbols to exclude
9987   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9988   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9989   # as well as any symbol that contains `d'.
9990   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9991   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9992   # platforms (ab)use it in PIC code, but their linkers get confused if
9993   # the symbol is explicitly referenced.  Since portable code cannot
9994   # rely on this symbol name, it's probably fine to never include it in
9995   # preloaded symbol tables.
9996   # Exclude shared library initialization/finalization symbols.
9997   extract_expsyms_cmds=
9998
9999   case $host_os in
10000   cygwin* | mingw* | pw32* | cegcc*)
10001     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10002     # When not using gcc, we currently assume that we are using
10003     # Microsoft Visual C++.
10004     if test "$GCC" != yes; then
10005       with_gnu_ld=no
10006     fi
10007     ;;
10008   interix*)
10009     # we just hope/assume this is gcc and not c89 (= MSVC++)
10010     with_gnu_ld=yes
10011     ;;
10012   openbsd*)
10013     with_gnu_ld=no
10014     ;;
10015   linux* | k*bsd*-gnu)
10016     link_all_deplibs=no
10017     ;;
10018   esac
10019
10020   ld_shlibs=yes
10021   if test "$with_gnu_ld" = yes; then
10022     # If archive_cmds runs LD, not CC, wlarc should be empty
10023     wlarc='${wl}'
10024
10025     # Set some defaults for GNU ld with shared library support. These
10026     # are reset later if shared libraries are not supported. Putting them
10027     # here allows them to be overridden if necessary.
10028     runpath_var=LD_RUN_PATH
10029     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10030     export_dynamic_flag_spec='${wl}--export-dynamic'
10031     # ancient GNU ld didn't support --whole-archive et. al.
10032     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10033       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10034     else
10035       whole_archive_flag_spec=
10036     fi
10037     supports_anon_versioning=no
10038     case `$LD -v 2>&1` in
10039       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10040       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10041       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10042       *\ 2.11.*) ;; # other 2.11 versions
10043       *) supports_anon_versioning=yes ;;
10044     esac
10045
10046     # See if GNU ld supports shared libraries.
10047     case $host_os in
10048     aix[3-9]*)
10049       # On AIX/PPC, the GNU linker is very broken
10050       if test "$host_cpu" != ia64; then
10051         ld_shlibs=no
10052         cat <<_LT_EOF 1>&2
10053
10054 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10055 *** to be unable to reliably create shared libraries on AIX.
10056 *** Therefore, libtool is disabling shared libraries support.  If you
10057 *** really care for shared libraries, you may want to modify your PATH
10058 *** so that a non-GNU linker is found, and then restart.
10059
10060 _LT_EOF
10061       fi
10062       ;;
10063
10064     amigaos*)
10065       case $host_cpu in
10066       powerpc)
10067             # see comment about AmigaOS4 .so support
10068             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069             archive_expsym_cmds=''
10070         ;;
10071       m68k)
10072             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)'
10073             hardcode_libdir_flag_spec='-L$libdir'
10074             hardcode_minus_L=yes
10075         ;;
10076       esac
10077       ;;
10078
10079     beos*)
10080       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10081         allow_undefined_flag=unsupported
10082         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10083         # support --undefined.  This deserves some investigation.  FIXME
10084         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10085       else
10086         ld_shlibs=no
10087       fi
10088       ;;
10089
10090     cygwin* | mingw* | pw32* | cegcc*)
10091       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10092       # as there is no search path for DLLs.
10093       hardcode_libdir_flag_spec='-L$libdir'
10094       allow_undefined_flag=unsupported
10095       always_export_symbols=no
10096       enable_shared_with_static_runtimes=yes
10097       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10098
10099       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10100         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10101         # If the export-symbols file already is a .def file (1st line
10102         # is EXPORTS), use it as is; otherwise, prepend...
10103         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10104           cp $export_symbols $output_objdir/$soname.def;
10105         else
10106           echo EXPORTS > $output_objdir/$soname.def;
10107           cat $export_symbols >> $output_objdir/$soname.def;
10108         fi~
10109         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10110       else
10111         ld_shlibs=no
10112       fi
10113       ;;
10114
10115     interix[3-9]*)
10116       hardcode_direct=no
10117       hardcode_shlibpath_var=no
10118       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10119       export_dynamic_flag_spec='${wl}-E'
10120       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10121       # Instead, shared libraries are loaded at an image base (0x10000000 by
10122       # default) and relocated if they conflict, which is a slow very memory
10123       # consuming and fragmenting process.  To avoid this, we pick a random,
10124       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10125       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10126       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10127       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10128       ;;
10129
10130     gnu* | linux* | tpf* | k*bsd*-gnu)
10131       tmp_diet=no
10132       if test "$host_os" = linux-dietlibc; then
10133         case $cc_basename in
10134           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10135         esac
10136       fi
10137       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10138          && test "$tmp_diet" = no
10139       then
10140         tmp_addflag=
10141         tmp_sharedflag='-shared'
10142         case $cc_basename,$host_cpu in
10143         pgcc*)                          # Portland Group C compiler
10144           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10145           tmp_addflag=' $pic_flag'
10146           ;;
10147         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10148           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10149           tmp_addflag=' $pic_flag -Mnomain' ;;
10150         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10151           tmp_addflag=' -i_dynamic' ;;
10152         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10153           tmp_addflag=' -i_dynamic -nofor_main' ;;
10154         ifc* | ifort*)                  # Intel Fortran compiler
10155           tmp_addflag=' -nofor_main' ;;
10156         lf95*)                          # Lahey Fortran 8.1
10157           whole_archive_flag_spec=
10158           tmp_sharedflag='--shared' ;;
10159         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10160           tmp_sharedflag='-qmkshrobj'
10161           tmp_addflag= ;;
10162         esac
10163         case `$CC -V 2>&1 | sed 5q` in
10164         *Sun\ C*)                       # Sun C 5.9
10165           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10166           compiler_needs_object=yes
10167           tmp_sharedflag='-G' ;;
10168         *Sun\ F*)                       # Sun Fortran 8.3
10169           tmp_sharedflag='-G' ;;
10170         esac
10171         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10172
10173         if test "x$supports_anon_versioning" = xyes; then
10174           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10175             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10176             echo "local: *; };" >> $output_objdir/$libname.ver~
10177             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10178         fi
10179
10180         case $cc_basename in
10181         xlf*)
10182           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10183           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10184           hardcode_libdir_flag_spec=
10185           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10186           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10187           if test "x$supports_anon_versioning" = xyes; then
10188             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10189               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10190               echo "local: *; };" >> $output_objdir/$libname.ver~
10191               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10192           fi
10193           ;;
10194         esac
10195       else
10196         ld_shlibs=no
10197       fi
10198       ;;
10199
10200     netbsd* | netbsdelf*-gnu)
10201       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10202         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10203         wlarc=
10204       else
10205         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10206         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10207       fi
10208       ;;
10209
10210     solaris*)
10211       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10212         ld_shlibs=no
10213         cat <<_LT_EOF 1>&2
10214
10215 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10216 *** create shared libraries on Solaris systems.  Therefore, libtool
10217 *** is disabling shared libraries support.  We urge you to upgrade GNU
10218 *** binutils to release 2.9.1 or newer.  Another option is to modify
10219 *** your PATH or compiler configuration so that the native linker is
10220 *** used, and then restart.
10221
10222 _LT_EOF
10223       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10224         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10225         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10226       else
10227         ld_shlibs=no
10228       fi
10229       ;;
10230
10231     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10232       case `$LD -v 2>&1` in
10233         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10234         ld_shlibs=no
10235         cat <<_LT_EOF 1>&2
10236
10237 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10238 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10239 *** is disabling shared libraries support.  We urge you to upgrade GNU
10240 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10241 *** your PATH or compiler configuration so that the native linker is
10242 *** used, and then restart.
10243
10244 _LT_EOF
10245         ;;
10246         *)
10247           # For security reasons, it is highly recommended that you always
10248           # use absolute paths for naming shared libraries, and exclude the
10249           # DT_RUNPATH tag from executables and libraries.  But doing so
10250           # requires that you compile everything twice, which is a pain.
10251           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10252             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10253             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10255           else
10256             ld_shlibs=no
10257           fi
10258         ;;
10259       esac
10260       ;;
10261
10262     sunos4*)
10263       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10264       wlarc=
10265       hardcode_direct=yes
10266       hardcode_shlibpath_var=no
10267       ;;
10268
10269     *)
10270       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10271         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10272         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10273       else
10274         ld_shlibs=no
10275       fi
10276       ;;
10277     esac
10278
10279     if test "$ld_shlibs" = no; then
10280       runpath_var=
10281       hardcode_libdir_flag_spec=
10282       export_dynamic_flag_spec=
10283       whole_archive_flag_spec=
10284     fi
10285   else
10286     # PORTME fill in a description of your system's linker (not GNU ld)
10287     case $host_os in
10288     aix3*)
10289       allow_undefined_flag=unsupported
10290       always_export_symbols=yes
10291       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'
10292       # Note: this linker hardcodes the directories in LIBPATH if there
10293       # are no directories specified by -L.
10294       hardcode_minus_L=yes
10295       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10296         # Neither direct hardcoding nor static linking is supported with a
10297         # broken collect2.
10298         hardcode_direct=unsupported
10299       fi
10300       ;;
10301
10302     aix[4-9]*)
10303       if test "$host_cpu" = ia64; then
10304         # On IA64, the linker does run time linking by default, so we don't
10305         # have to do anything special.
10306         aix_use_runtimelinking=no
10307         exp_sym_flag='-Bexport'
10308         no_entry_flag=""
10309       else
10310         # If we're using GNU nm, then we don't want the "-C" option.
10311         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10312         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10313           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'
10314         else
10315           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'
10316         fi
10317         aix_use_runtimelinking=no
10318
10319         # Test if we are trying to use run time linking or normal
10320         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10321         # need to do runtime linking.
10322         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10323           for ld_flag in $LDFLAGS; do
10324           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10325             aix_use_runtimelinking=yes
10326             break
10327           fi
10328           done
10329           ;;
10330         esac
10331
10332         exp_sym_flag='-bexport'
10333         no_entry_flag='-bnoentry'
10334       fi
10335
10336       # When large executables or shared objects are built, AIX ld can
10337       # have problems creating the table of contents.  If linking a library
10338       # or program results in "error TOC overflow" add -mminimal-toc to
10339       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10340       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10341
10342       archive_cmds=''
10343       hardcode_direct=yes
10344       hardcode_direct_absolute=yes
10345       hardcode_libdir_separator=':'
10346       link_all_deplibs=yes
10347       file_list_spec='${wl}-f,'
10348
10349       if test "$GCC" = yes; then
10350         case $host_os in aix4.[012]|aix4.[012].*)
10351         # We only want to do this on AIX 4.2 and lower, the check
10352         # below for broken collect2 doesn't work under 4.3+
10353           collect2name=`${CC} -print-prog-name=collect2`
10354           if test -f "$collect2name" &&
10355            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10356           then
10357           # We have reworked collect2
10358           :
10359           else
10360           # We have old collect2
10361           hardcode_direct=unsupported
10362           # It fails to find uninstalled libraries when the uninstalled
10363           # path is not listed in the libpath.  Setting hardcode_minus_L
10364           # to unsupported forces relinking
10365           hardcode_minus_L=yes
10366           hardcode_libdir_flag_spec='-L$libdir'
10367           hardcode_libdir_separator=
10368           fi
10369           ;;
10370         esac
10371         shared_flag='-shared'
10372         if test "$aix_use_runtimelinking" = yes; then
10373           shared_flag="$shared_flag "'${wl}-G'
10374         fi
10375         link_all_deplibs=no
10376       else
10377         # not using gcc
10378         if test "$host_cpu" = ia64; then
10379         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10380         # chokes on -Wl,-G. The following line is correct:
10381           shared_flag='-G'
10382         else
10383           if test "$aix_use_runtimelinking" = yes; then
10384             shared_flag='${wl}-G'
10385           else
10386             shared_flag='${wl}-bM:SRE'
10387           fi
10388         fi
10389       fi
10390
10391       export_dynamic_flag_spec='${wl}-bexpall'
10392       # It seems that -bexpall does not export symbols beginning with
10393       # underscore (_), so it is better to generate a list of symbols to export.
10394       always_export_symbols=yes
10395       if test "$aix_use_runtimelinking" = yes; then
10396         # Warning - without using the other runtime loading flags (-brtl),
10397         # -berok will link without error, but may produce a broken library.
10398         allow_undefined_flag='-berok'
10399         # Determine the default libpath from the value encoded in an
10400         # empty executable.
10401         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h.  */
10403
10404 int
10405 main ()
10406 {
10407
10408   ;
10409   return 0;
10410 }
10411 _ACEOF
10412 if ac_fn_c_try_link "$LINENO"; then :
10413
10414 lt_aix_libpath_sed='
10415     /Import File Strings/,/^$/ {
10416         /^0/ {
10417             s/^0  *\(.*\)$/\1/
10418             p
10419         }
10420     }'
10421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10422 # Check for a 64-bit object if we didn't find anything.
10423 if test -z "$aix_libpath"; then
10424   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10425 fi
10426 fi
10427 rm -f core conftest.err conftest.$ac_objext \
10428     conftest$ac_exeext conftest.$ac_ext
10429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10430
10431         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10432         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10433       else
10434         if test "$host_cpu" = ia64; then
10435           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10436           allow_undefined_flag="-z nodefs"
10437           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10438         else
10439          # Determine the default libpath from the value encoded in an
10440          # empty executable.
10441          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h.  */
10443
10444 int
10445 main ()
10446 {
10447
10448   ;
10449   return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_link "$LINENO"; then :
10453
10454 lt_aix_libpath_sed='
10455     /Import File Strings/,/^$/ {
10456         /^0/ {
10457             s/^0  *\(.*\)$/\1/
10458             p
10459         }
10460     }'
10461 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10462 # Check for a 64-bit object if we didn't find anything.
10463 if test -z "$aix_libpath"; then
10464   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10465 fi
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext \
10468     conftest$ac_exeext conftest.$ac_ext
10469 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10470
10471          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10472           # Warning - without using the other run time loading flags,
10473           # -berok will link without error, but may produce a broken library.
10474           no_undefined_flag=' ${wl}-bernotok'
10475           allow_undefined_flag=' ${wl}-berok'
10476           # Exported symbols can be pulled into shared objects from archives
10477           whole_archive_flag_spec='$convenience'
10478           archive_cmds_need_lc=yes
10479           # This is similar to how AIX traditionally builds its shared libraries.
10480           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10481         fi
10482       fi
10483       ;;
10484
10485     amigaos*)
10486       case $host_cpu in
10487       powerpc)
10488             # see comment about AmigaOS4 .so support
10489             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10490             archive_expsym_cmds=''
10491         ;;
10492       m68k)
10493             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)'
10494             hardcode_libdir_flag_spec='-L$libdir'
10495             hardcode_minus_L=yes
10496         ;;
10497       esac
10498       ;;
10499
10500     bsdi[45]*)
10501       export_dynamic_flag_spec=-rdynamic
10502       ;;
10503
10504     cygwin* | mingw* | pw32* | cegcc*)
10505       # When not using gcc, we currently assume that we are using
10506       # Microsoft Visual C++.
10507       # hardcode_libdir_flag_spec is actually meaningless, as there is
10508       # no search path for DLLs.
10509       hardcode_libdir_flag_spec=' '
10510       allow_undefined_flag=unsupported
10511       # Tell ltmain to make .lib files, not .a files.
10512       libext=lib
10513       # Tell ltmain to make .dll files, not .so files.
10514       shrext_cmds=".dll"
10515       # FIXME: Setting linknames here is a bad hack.
10516       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10517       # The linker will automatically build a .lib file if we build a DLL.
10518       old_archive_from_new_cmds='true'
10519       # FIXME: Should let the user specify the lib program.
10520       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10521       fix_srcfile_path='`cygpath -w "$srcfile"`'
10522       enable_shared_with_static_runtimes=yes
10523       ;;
10524
10525     darwin* | rhapsody*)
10526
10527
10528   archive_cmds_need_lc=no
10529   hardcode_direct=no
10530   hardcode_automatic=yes
10531   hardcode_shlibpath_var=unsupported
10532   whole_archive_flag_spec=''
10533   link_all_deplibs=yes
10534   allow_undefined_flag="$_lt_dar_allow_undefined"
10535   case $cc_basename in
10536      ifort*) _lt_dar_can_shared=yes ;;
10537      *) _lt_dar_can_shared=$GCC ;;
10538   esac
10539   if test "$_lt_dar_can_shared" = "yes"; then
10540     output_verbose_link_cmd=echo
10541     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10542     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10543     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10544     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10545
10546   else
10547   ld_shlibs=no
10548   fi
10549
10550       ;;
10551
10552     dgux*)
10553       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10554       hardcode_libdir_flag_spec='-L$libdir'
10555       hardcode_shlibpath_var=no
10556       ;;
10557
10558     freebsd1*)
10559       ld_shlibs=no
10560       ;;
10561
10562     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10563     # support.  Future versions do this automatically, but an explicit c++rt0.o
10564     # does not break anything, and helps significantly (at the cost of a little
10565     # extra space).
10566     freebsd2.2*)
10567       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10568       hardcode_libdir_flag_spec='-R$libdir'
10569       hardcode_direct=yes
10570       hardcode_shlibpath_var=no
10571       ;;
10572
10573     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10574     freebsd2*)
10575       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10576       hardcode_direct=yes
10577       hardcode_minus_L=yes
10578       hardcode_shlibpath_var=no
10579       ;;
10580
10581     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10582     freebsd* | dragonfly*)
10583       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10584       hardcode_libdir_flag_spec='-R$libdir'
10585       hardcode_direct=yes
10586       hardcode_shlibpath_var=no
10587       ;;
10588
10589     hpux9*)
10590       if test "$GCC" = yes; then
10591         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10592       else
10593         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'
10594       fi
10595       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10596       hardcode_libdir_separator=:
10597       hardcode_direct=yes
10598
10599       # hardcode_minus_L: Not really in the search PATH,
10600       # but as the default location of the library.
10601       hardcode_minus_L=yes
10602       export_dynamic_flag_spec='${wl}-E'
10603       ;;
10604
10605     hpux10*)
10606       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10607         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10608       else
10609         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10610       fi
10611       if test "$with_gnu_ld" = no; then
10612         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10613         hardcode_libdir_flag_spec_ld='+b $libdir'
10614         hardcode_libdir_separator=:
10615         hardcode_direct=yes
10616         hardcode_direct_absolute=yes
10617         export_dynamic_flag_spec='${wl}-E'
10618         # hardcode_minus_L: Not really in the search PATH,
10619         # but as the default location of the library.
10620         hardcode_minus_L=yes
10621       fi
10622       ;;
10623
10624     hpux11*)
10625       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10626         case $host_cpu in
10627         hppa*64*)
10628           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10629           ;;
10630         ia64*)
10631           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10632           ;;
10633         *)
10634           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10635           ;;
10636         esac
10637       else
10638         case $host_cpu in
10639         hppa*64*)
10640           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10641           ;;
10642         ia64*)
10643           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10644           ;;
10645         *)
10646           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10647           ;;
10648         esac
10649       fi
10650       if test "$with_gnu_ld" = no; then
10651         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10652         hardcode_libdir_separator=:
10653
10654         case $host_cpu in
10655         hppa*64*|ia64*)
10656           hardcode_direct=no
10657           hardcode_shlibpath_var=no
10658           ;;
10659         *)
10660           hardcode_direct=yes
10661           hardcode_direct_absolute=yes
10662           export_dynamic_flag_spec='${wl}-E'
10663
10664           # hardcode_minus_L: Not really in the search PATH,
10665           # but as the default location of the library.
10666           hardcode_minus_L=yes
10667           ;;
10668         esac
10669       fi
10670       ;;
10671
10672     irix5* | irix6* | nonstopux*)
10673       if test "$GCC" = yes; then
10674         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10675         # Try to use the -exported_symbol ld option, if it does not
10676         # work, assume that -exports_file does not work either and
10677         # implicitly export all symbols.
10678         save_LDFLAGS="$LDFLAGS"
10679         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10680         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h.  */
10682 int foo(void) {}
10683 _ACEOF
10684 if ac_fn_c_try_link "$LINENO"; then :
10685   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10686
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext \
10689     conftest$ac_exeext conftest.$ac_ext
10690         LDFLAGS="$save_LDFLAGS"
10691       else
10692         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10693         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10694       fi
10695       archive_cmds_need_lc='no'
10696       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10697       hardcode_libdir_separator=:
10698       inherit_rpath=yes
10699       link_all_deplibs=yes
10700       ;;
10701
10702     netbsd* | netbsdelf*-gnu)
10703       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10704         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10705       else
10706         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10707       fi
10708       hardcode_libdir_flag_spec='-R$libdir'
10709       hardcode_direct=yes
10710       hardcode_shlibpath_var=no
10711       ;;
10712
10713     newsos6)
10714       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10715       hardcode_direct=yes
10716       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10717       hardcode_libdir_separator=:
10718       hardcode_shlibpath_var=no
10719       ;;
10720
10721     *nto* | *qnx*)
10722       ;;
10723
10724     openbsd*)
10725       if test -f /usr/libexec/ld.so; then
10726         hardcode_direct=yes
10727         hardcode_shlibpath_var=no
10728         hardcode_direct_absolute=yes
10729         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10730           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10731           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10732           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10733           export_dynamic_flag_spec='${wl}-E'
10734         else
10735           case $host_os in
10736            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10737              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10738              hardcode_libdir_flag_spec='-R$libdir'
10739              ;;
10740            *)
10741              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10742              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10743              ;;
10744           esac
10745         fi
10746       else
10747         ld_shlibs=no
10748       fi
10749       ;;
10750
10751     os2*)
10752       hardcode_libdir_flag_spec='-L$libdir'
10753       hardcode_minus_L=yes
10754       allow_undefined_flag=unsupported
10755       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10756       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10757       ;;
10758
10759     osf3*)
10760       if test "$GCC" = yes; then
10761         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10762         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10763       else
10764         allow_undefined_flag=' -expect_unresolved \*'
10765         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10766       fi
10767       archive_cmds_need_lc='no'
10768       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10769       hardcode_libdir_separator=:
10770       ;;
10771
10772     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10773       if test "$GCC" = yes; then
10774         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10775         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10776         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10777       else
10778         allow_undefined_flag=' -expect_unresolved \*'
10779         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10780         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10781         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10782
10783         # Both c and cxx compiler support -rpath directly
10784         hardcode_libdir_flag_spec='-rpath $libdir'
10785       fi
10786       archive_cmds_need_lc='no'
10787       hardcode_libdir_separator=:
10788       ;;
10789
10790     solaris*)
10791       no_undefined_flag=' -z defs'
10792       if test "$GCC" = yes; then
10793         wlarc='${wl}'
10794         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10795         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10796           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10797       else
10798         case `$CC -V 2>&1` in
10799         *"Compilers 5.0"*)
10800           wlarc=''
10801           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10802           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10803           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10804           ;;
10805         *)
10806           wlarc='${wl}'
10807           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10808           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10809           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10810           ;;
10811         esac
10812       fi
10813       hardcode_libdir_flag_spec='-R$libdir'
10814       hardcode_shlibpath_var=no
10815       case $host_os in
10816       solaris2.[0-5] | solaris2.[0-5].*) ;;
10817       *)
10818         # The compiler driver will combine and reorder linker options,
10819         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10820         # but is careful enough not to reorder.
10821         # Supported since Solaris 2.6 (maybe 2.5.1?)
10822         if test "$GCC" = yes; then
10823           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10824         else
10825           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10826         fi
10827         ;;
10828       esac
10829       link_all_deplibs=yes
10830       ;;
10831
10832     sunos4*)
10833       if test "x$host_vendor" = xsequent; then
10834         # Use $CC to link under sequent, because it throws in some extra .o
10835         # files that make .init and .fini sections work.
10836         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10837       else
10838         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10839       fi
10840       hardcode_libdir_flag_spec='-L$libdir'
10841       hardcode_direct=yes
10842       hardcode_minus_L=yes
10843       hardcode_shlibpath_var=no
10844       ;;
10845
10846     sysv4)
10847       case $host_vendor in
10848         sni)
10849           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10850           hardcode_direct=yes # is this really true???
10851         ;;
10852         siemens)
10853           ## LD is ld it makes a PLAMLIB
10854           ## CC just makes a GrossModule.
10855           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10856           reload_cmds='$CC -r -o $output$reload_objs'
10857           hardcode_direct=no
10858         ;;
10859         motorola)
10860           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10861           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10862         ;;
10863       esac
10864       runpath_var='LD_RUN_PATH'
10865       hardcode_shlibpath_var=no
10866       ;;
10867
10868     sysv4.3*)
10869       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10870       hardcode_shlibpath_var=no
10871       export_dynamic_flag_spec='-Bexport'
10872       ;;
10873
10874     sysv4*MP*)
10875       if test -d /usr/nec; then
10876         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877         hardcode_shlibpath_var=no
10878         runpath_var=LD_RUN_PATH
10879         hardcode_runpath_var=yes
10880         ld_shlibs=yes
10881       fi
10882       ;;
10883
10884     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10885       no_undefined_flag='${wl}-z,text'
10886       archive_cmds_need_lc=no
10887       hardcode_shlibpath_var=no
10888       runpath_var='LD_RUN_PATH'
10889
10890       if test "$GCC" = yes; then
10891         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10892         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10893       else
10894         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896       fi
10897       ;;
10898
10899     sysv5* | sco3.2v5* | sco5v6*)
10900       # Note: We can NOT use -z defs as we might desire, because we do not
10901       # link with -lc, and that would cause any symbols used from libc to
10902       # always be unresolved, which means just about no library would
10903       # ever link correctly.  If we're not using GNU ld we use -z text
10904       # though, which does catch some bad symbols but isn't as heavy-handed
10905       # as -z defs.
10906       no_undefined_flag='${wl}-z,text'
10907       allow_undefined_flag='${wl}-z,nodefs'
10908       archive_cmds_need_lc=no
10909       hardcode_shlibpath_var=no
10910       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10911       hardcode_libdir_separator=':'
10912       link_all_deplibs=yes
10913       export_dynamic_flag_spec='${wl}-Bexport'
10914       runpath_var='LD_RUN_PATH'
10915
10916       if test "$GCC" = yes; then
10917         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919       else
10920         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10922       fi
10923       ;;
10924
10925     uts4*)
10926       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10927       hardcode_libdir_flag_spec='-L$libdir'
10928       hardcode_shlibpath_var=no
10929       ;;
10930
10931     *)
10932       ld_shlibs=no
10933       ;;
10934     esac
10935
10936     if test x$host_vendor = xsni; then
10937       case $host in
10938       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10939         export_dynamic_flag_spec='${wl}-Blargedynsym'
10940         ;;
10941       esac
10942     fi
10943   fi
10944
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10946 $as_echo "$ld_shlibs" >&6; }
10947 test "$ld_shlibs" = no && can_build_shared=no
10948
10949 with_gnu_ld=$with_gnu_ld
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965 #
10966 # Do we need to explicitly link libc?
10967 #
10968 case "x$archive_cmds_need_lc" in
10969 x|xyes)
10970   # Assume -lc should be added
10971   archive_cmds_need_lc=yes
10972
10973   if test "$enable_shared" = yes && test "$GCC" = yes; then
10974     case $archive_cmds in
10975     *'~'*)
10976       # FIXME: we may have to deal with multi-command sequences.
10977       ;;
10978     '$CC '*)
10979       # Test whether the compiler implicitly links with -lc since on some
10980       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10981       # to ld, don't add -lc before -lgcc.
10982       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10983 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10984       $RM conftest*
10985       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10986
10987       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10988   (eval $ac_compile) 2>&5
10989   ac_status=$?
10990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10991   test $ac_status = 0; } 2>conftest.err; then
10992         soname=conftest
10993         lib=conftest
10994         libobjs=conftest.$ac_objext
10995         deplibs=
10996         wl=$lt_prog_compiler_wl
10997         pic_flag=$lt_prog_compiler_pic
10998         compiler_flags=-v
10999         linker_flags=-v
11000         verstring=
11001         output_objdir=.
11002         libname=conftest
11003         lt_save_allow_undefined_flag=$allow_undefined_flag
11004         allow_undefined_flag=
11005         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11006   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11007   ac_status=$?
11008   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11009   test $ac_status = 0; }
11010         then
11011           archive_cmds_need_lc=no
11012         else
11013           archive_cmds_need_lc=yes
11014         fi
11015         allow_undefined_flag=$lt_save_allow_undefined_flag
11016       else
11017         cat conftest.err 1>&5
11018       fi
11019       $RM conftest*
11020       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11021 $as_echo "$archive_cmds_need_lc" >&6; }
11022       ;;
11023     esac
11024   fi
11025   ;;
11026 esac
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11185 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11186
11187 if test "$GCC" = yes; then
11188   case $host_os in
11189     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11190     *) lt_awk_arg="/^libraries:/" ;;
11191   esac
11192   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11193   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11194     # if the path contains ";" then we assume it to be the separator
11195     # otherwise default to the standard path separator (i.e. ":") - it is
11196     # assumed that no part of a normal pathname contains ";" but that should
11197     # okay in the real world where ";" in dirpaths is itself problematic.
11198     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11199   else
11200     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11201   fi
11202   # Ok, now we have the path, separated by spaces, we can step through it
11203   # and add multilib dir if necessary.
11204   lt_tmp_lt_search_path_spec=
11205   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11206   for lt_sys_path in $lt_search_path_spec; do
11207     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11208       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11209     else
11210       test -d "$lt_sys_path" && \
11211         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11212     fi
11213   done
11214   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11215 BEGIN {RS=" "; FS="/|\n";} {
11216   lt_foo="";
11217   lt_count=0;
11218   for (lt_i = NF; lt_i > 0; lt_i--) {
11219     if ($lt_i != "" && $lt_i != ".") {
11220       if ($lt_i == "..") {
11221         lt_count++;
11222       } else {
11223         if (lt_count == 0) {
11224           lt_foo="/" $lt_i lt_foo;
11225         } else {
11226           lt_count--;
11227         }
11228       }
11229     }
11230   }
11231   if (lt_foo != "") { lt_freq[lt_foo]++; }
11232   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11233 }'`
11234   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11235 else
11236   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11237 fi
11238 library_names_spec=
11239 libname_spec='lib$name'
11240 soname_spec=
11241 shrext_cmds=".so"
11242 postinstall_cmds=
11243 postuninstall_cmds=
11244 finish_cmds=
11245 finish_eval=
11246 shlibpath_var=
11247 shlibpath_overrides_runpath=unknown
11248 version_type=none
11249 dynamic_linker="$host_os ld.so"
11250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11251 need_lib_prefix=unknown
11252 hardcode_into_libs=no
11253
11254 # when you set need_version to no, make sure it does not cause -set_version
11255 # flags to be left without arguments
11256 need_version=unknown
11257
11258 case $host_os in
11259 aix3*)
11260   version_type=linux
11261   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11262   shlibpath_var=LIBPATH
11263
11264   # AIX 3 has no versioning support, so we append a major version to the name.
11265   soname_spec='${libname}${release}${shared_ext}$major'
11266   ;;
11267
11268 aix[4-9]*)
11269   version_type=linux
11270   need_lib_prefix=no
11271   need_version=no
11272   hardcode_into_libs=yes
11273   if test "$host_cpu" = ia64; then
11274     # AIX 5 supports IA64
11275     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11276     shlibpath_var=LD_LIBRARY_PATH
11277   else
11278     # With GCC up to 2.95.x, collect2 would create an import file
11279     # for dependence libraries.  The import file would start with
11280     # the line `#! .'.  This would cause the generated library to
11281     # depend on `.', always an invalid library.  This was fixed in
11282     # development snapshots of GCC prior to 3.0.
11283     case $host_os in
11284       aix4 | aix4.[01] | aix4.[01].*)
11285       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11286            echo ' yes '
11287            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11288         :
11289       else
11290         can_build_shared=no
11291       fi
11292       ;;
11293     esac
11294     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11295     # soname into executable. Probably we can add versioning support to
11296     # collect2, so additional links can be useful in future.
11297     if test "$aix_use_runtimelinking" = yes; then
11298       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11299       # instead of lib<name>.a to let people know that these are not
11300       # typical AIX shared libraries.
11301       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11302     else
11303       # We preserve .a as extension for shared libraries through AIX4.2
11304       # and later when we are not doing run time linking.
11305       library_names_spec='${libname}${release}.a $libname.a'
11306       soname_spec='${libname}${release}${shared_ext}$major'
11307     fi
11308     shlibpath_var=LIBPATH
11309   fi
11310   ;;
11311
11312 amigaos*)
11313   case $host_cpu in
11314   powerpc)
11315     # Since July 2007 AmigaOS4 officially supports .so libraries.
11316     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11317     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318     ;;
11319   m68k)
11320     library_names_spec='$libname.ixlibrary $libname.a'
11321     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11322     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'
11323     ;;
11324   esac
11325   ;;
11326
11327 beos*)
11328   library_names_spec='${libname}${shared_ext}'
11329   dynamic_linker="$host_os ld.so"
11330   shlibpath_var=LIBRARY_PATH
11331   ;;
11332
11333 bsdi[45]*)
11334   version_type=linux
11335   need_version=no
11336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337   soname_spec='${libname}${release}${shared_ext}$major'
11338   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11339   shlibpath_var=LD_LIBRARY_PATH
11340   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11341   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11342   # the default ld.so.conf also contains /usr/contrib/lib and
11343   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11344   # libtool to hard-code these into programs
11345   ;;
11346
11347 cygwin* | mingw* | pw32* | cegcc*)
11348   version_type=windows
11349   shrext_cmds=".dll"
11350   need_version=no
11351   need_lib_prefix=no
11352
11353   case $GCC,$host_os in
11354   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11355     library_names_spec='$libname.dll.a'
11356     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11357     postinstall_cmds='base_file=`basename \${file}`~
11358       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11359       dldir=$destdir/`dirname \$dlpath`~
11360       test -d \$dldir || mkdir -p \$dldir~
11361       $install_prog $dir/$dlname \$dldir/$dlname~
11362       chmod a+x \$dldir/$dlname~
11363       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11364         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11365       fi'
11366     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11367       dlpath=$dir/\$dldll~
11368        $RM \$dlpath'
11369     shlibpath_overrides_runpath=yes
11370
11371     case $host_os in
11372     cygwin*)
11373       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11374       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11375       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11376       ;;
11377     mingw* | cegcc*)
11378       # MinGW DLLs use traditional 'lib' prefix
11379       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11380       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11381       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11382         # It is most probably a Windows format PATH printed by
11383         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11384         # path with ; separators, and with drive letters. We can handle the
11385         # drive letters (cygwin fileutils understands them), so leave them,
11386         # especially as we might pass files found there to a mingw objdump,
11387         # which wouldn't understand a cygwinified path. Ahh.
11388         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11389       else
11390         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11391       fi
11392       ;;
11393     pw32*)
11394       # pw32 DLLs use 'pw' prefix rather than 'lib'
11395       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11396       ;;
11397     esac
11398     ;;
11399
11400   *)
11401     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11402     ;;
11403   esac
11404   dynamic_linker='Win32 ld.exe'
11405   # FIXME: first we should search . and the directory the executable is in
11406   shlibpath_var=PATH
11407   ;;
11408
11409 darwin* | rhapsody*)
11410   dynamic_linker="$host_os dyld"
11411   version_type=darwin
11412   need_lib_prefix=no
11413   need_version=no
11414   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11415   soname_spec='${libname}${release}${major}$shared_ext'
11416   shlibpath_overrides_runpath=yes
11417   shlibpath_var=DYLD_LIBRARY_PATH
11418   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11419
11420   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11421   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11422   ;;
11423
11424 dgux*)
11425   version_type=linux
11426   need_lib_prefix=no
11427   need_version=no
11428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11429   soname_spec='${libname}${release}${shared_ext}$major'
11430   shlibpath_var=LD_LIBRARY_PATH
11431   ;;
11432
11433 freebsd1*)
11434   dynamic_linker=no
11435   ;;
11436
11437 freebsd* | dragonfly*)
11438   # DragonFly does not have aout.  When/if they implement a new
11439   # versioning mechanism, adjust this.
11440   if test -x /usr/bin/objformat; then
11441     objformat=`/usr/bin/objformat`
11442   else
11443     case $host_os in
11444     freebsd[123]*) objformat=aout ;;
11445     *) objformat=elf ;;
11446     esac
11447   fi
11448   version_type=freebsd-$objformat
11449   case $version_type in
11450     freebsd-elf*)
11451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11452       need_version=no
11453       need_lib_prefix=no
11454       ;;
11455     freebsd-*)
11456       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11457       need_version=yes
11458       ;;
11459   esac
11460   shlibpath_var=LD_LIBRARY_PATH
11461   case $host_os in
11462   freebsd2*)
11463     shlibpath_overrides_runpath=yes
11464     ;;
11465   freebsd3.[01]* | freebsdelf3.[01]*)
11466     shlibpath_overrides_runpath=yes
11467     hardcode_into_libs=yes
11468     ;;
11469   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11470   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11471     shlibpath_overrides_runpath=no
11472     hardcode_into_libs=yes
11473     ;;
11474   *) # from 4.6 on, and DragonFly
11475     shlibpath_overrides_runpath=yes
11476     hardcode_into_libs=yes
11477     ;;
11478   esac
11479   ;;
11480
11481 gnu*)
11482   version_type=linux
11483   need_lib_prefix=no
11484   need_version=no
11485   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11486   soname_spec='${libname}${release}${shared_ext}$major'
11487   shlibpath_var=LD_LIBRARY_PATH
11488   hardcode_into_libs=yes
11489   ;;
11490
11491 hpux9* | hpux10* | hpux11*)
11492   # Give a soname corresponding to the major version so that dld.sl refuses to
11493   # link against other versions.
11494   version_type=sunos
11495   need_lib_prefix=no
11496   need_version=no
11497   case $host_cpu in
11498   ia64*)
11499     shrext_cmds='.so'
11500     hardcode_into_libs=yes
11501     dynamic_linker="$host_os dld.so"
11502     shlibpath_var=LD_LIBRARY_PATH
11503     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11504     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505     soname_spec='${libname}${release}${shared_ext}$major'
11506     if test "X$HPUX_IA64_MODE" = X32; then
11507       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11508     else
11509       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11510     fi
11511     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11512     ;;
11513   hppa*64*)
11514     shrext_cmds='.sl'
11515     hardcode_into_libs=yes
11516     dynamic_linker="$host_os dld.sl"
11517     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11518     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11519     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520     soname_spec='${libname}${release}${shared_ext}$major'
11521     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11522     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11523     ;;
11524   *)
11525     shrext_cmds='.sl'
11526     dynamic_linker="$host_os dld.sl"
11527     shlibpath_var=SHLIB_PATH
11528     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11529     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530     soname_spec='${libname}${release}${shared_ext}$major'
11531     ;;
11532   esac
11533   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11534   postinstall_cmds='chmod 555 $lib'
11535   ;;
11536
11537 interix[3-9]*)
11538   version_type=linux
11539   need_lib_prefix=no
11540   need_version=no
11541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11542   soname_spec='${libname}${release}${shared_ext}$major'
11543   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   shlibpath_overrides_runpath=no
11546   hardcode_into_libs=yes
11547   ;;
11548
11549 irix5* | irix6* | nonstopux*)
11550   case $host_os in
11551     nonstopux*) version_type=nonstopux ;;
11552     *)
11553         if test "$lt_cv_prog_gnu_ld" = yes; then
11554                 version_type=linux
11555         else
11556                 version_type=irix
11557         fi ;;
11558   esac
11559   need_lib_prefix=no
11560   need_version=no
11561   soname_spec='${libname}${release}${shared_ext}$major'
11562   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11563   case $host_os in
11564   irix5* | nonstopux*)
11565     libsuff= shlibsuff=
11566     ;;
11567   *)
11568     case $LD in # libtool.m4 will add one of these switches to LD
11569     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11570       libsuff= shlibsuff= libmagic=32-bit;;
11571     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11572       libsuff=32 shlibsuff=N32 libmagic=N32;;
11573     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11574       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11575     *) libsuff= shlibsuff= libmagic=never-match;;
11576     esac
11577     ;;
11578   esac
11579   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11580   shlibpath_overrides_runpath=no
11581   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11582   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11583   hardcode_into_libs=yes
11584   ;;
11585
11586 # No shared lib support for Linux oldld, aout, or coff.
11587 linux*oldld* | linux*aout* | linux*coff*)
11588   dynamic_linker=no
11589   ;;
11590
11591 # This must be Linux ELF.
11592 linux* | k*bsd*-gnu)
11593   version_type=linux
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597   soname_spec='${libname}${release}${shared_ext}$major'
11598   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11599   shlibpath_var=LD_LIBRARY_PATH
11600   shlibpath_overrides_runpath=no
11601   # Some binutils ld are patched to set DT_RUNPATH
11602   save_LDFLAGS=$LDFLAGS
11603   save_libdir=$libdir
11604   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11605        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h.  */
11608
11609 int
11610 main ()
11611 {
11612
11613   ;
11614   return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_link "$LINENO"; then :
11618   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11619   shlibpath_overrides_runpath=yes
11620 fi
11621 fi
11622 rm -f core conftest.err conftest.$ac_objext \
11623     conftest$ac_exeext conftest.$ac_ext
11624   LDFLAGS=$save_LDFLAGS
11625   libdir=$save_libdir
11626
11627   # This implies no fast_install, which is unacceptable.
11628   # Some rework will be needed to allow for fast_install
11629   # before this can be enabled.
11630   hardcode_into_libs=yes
11631
11632   # Append ld.so.conf contents to the search path
11633   if test -f /etc/ld.so.conf; then
11634     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11635     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11636   fi
11637
11638   # We used to test for /lib/ld.so.1 and disable shared libraries on
11639   # powerpc, because MkLinux only supported shared libraries with the
11640   # GNU dynamic linker.  Since this was broken with cross compilers,
11641   # most powerpc-linux boxes support dynamic linking these days and
11642   # people can always --disable-shared, the test was removed, and we
11643   # assume the GNU/Linux dynamic linker is in use.
11644   dynamic_linker='GNU/Linux ld.so'
11645   ;;
11646
11647 netbsdelf*-gnu)
11648   version_type=linux
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   shlibpath_var=LD_LIBRARY_PATH
11654   shlibpath_overrides_runpath=no
11655   hardcode_into_libs=yes
11656   dynamic_linker='NetBSD ld.elf_so'
11657   ;;
11658
11659 netbsd*)
11660   version_type=sunos
11661   need_lib_prefix=no
11662   need_version=no
11663   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11665     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11666     dynamic_linker='NetBSD (a.out) ld.so'
11667   else
11668     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11669     soname_spec='${libname}${release}${shared_ext}$major'
11670     dynamic_linker='NetBSD ld.elf_so'
11671   fi
11672   shlibpath_var=LD_LIBRARY_PATH
11673   shlibpath_overrides_runpath=yes
11674   hardcode_into_libs=yes
11675   ;;
11676
11677 newsos6)
11678   version_type=linux
11679   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680   shlibpath_var=LD_LIBRARY_PATH
11681   shlibpath_overrides_runpath=yes
11682   ;;
11683
11684 *nto* | *qnx*)
11685   version_type=qnx
11686   need_lib_prefix=no
11687   need_version=no
11688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11689   soname_spec='${libname}${release}${shared_ext}$major'
11690   shlibpath_var=LD_LIBRARY_PATH
11691   shlibpath_overrides_runpath=no
11692   hardcode_into_libs=yes
11693   dynamic_linker='ldqnx.so'
11694   ;;
11695
11696 openbsd*)
11697   version_type=sunos
11698   sys_lib_dlsearch_path_spec="/usr/lib"
11699   need_lib_prefix=no
11700   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11701   case $host_os in
11702     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11703     *)                          need_version=no  ;;
11704   esac
11705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11706   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11707   shlibpath_var=LD_LIBRARY_PATH
11708   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11709     case $host_os in
11710       openbsd2.[89] | openbsd2.[89].*)
11711         shlibpath_overrides_runpath=no
11712         ;;
11713       *)
11714         shlibpath_overrides_runpath=yes
11715         ;;
11716       esac
11717   else
11718     shlibpath_overrides_runpath=yes
11719   fi
11720   ;;
11721
11722 os2*)
11723   libname_spec='$name'
11724   shrext_cmds=".dll"
11725   need_lib_prefix=no
11726   library_names_spec='$libname${shared_ext} $libname.a'
11727   dynamic_linker='OS/2 ld.exe'
11728   shlibpath_var=LIBPATH
11729   ;;
11730
11731 osf3* | osf4* | osf5*)
11732   version_type=osf
11733   need_lib_prefix=no
11734   need_version=no
11735   soname_spec='${libname}${release}${shared_ext}$major'
11736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11737   shlibpath_var=LD_LIBRARY_PATH
11738   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11739   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11740   ;;
11741
11742 rdos*)
11743   dynamic_linker=no
11744   ;;
11745
11746 solaris*)
11747   version_type=linux
11748   need_lib_prefix=no
11749   need_version=no
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   soname_spec='${libname}${release}${shared_ext}$major'
11752   shlibpath_var=LD_LIBRARY_PATH
11753   shlibpath_overrides_runpath=yes
11754   hardcode_into_libs=yes
11755   # ldd complains unless libraries are executable
11756   postinstall_cmds='chmod +x $lib'
11757   ;;
11758
11759 sunos4*)
11760   version_type=sunos
11761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11762   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11763   shlibpath_var=LD_LIBRARY_PATH
11764   shlibpath_overrides_runpath=yes
11765   if test "$with_gnu_ld" = yes; then
11766     need_lib_prefix=no
11767   fi
11768   need_version=yes
11769   ;;
11770
11771 sysv4 | sysv4.3*)
11772   version_type=linux
11773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774   soname_spec='${libname}${release}${shared_ext}$major'
11775   shlibpath_var=LD_LIBRARY_PATH
11776   case $host_vendor in
11777     sni)
11778       shlibpath_overrides_runpath=no
11779       need_lib_prefix=no
11780       runpath_var=LD_RUN_PATH
11781       ;;
11782     siemens)
11783       need_lib_prefix=no
11784       ;;
11785     motorola)
11786       need_lib_prefix=no
11787       need_version=no
11788       shlibpath_overrides_runpath=no
11789       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11790       ;;
11791   esac
11792   ;;
11793
11794 sysv4*MP*)
11795   if test -d /usr/nec ;then
11796     version_type=linux
11797     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11798     soname_spec='$libname${shared_ext}.$major'
11799     shlibpath_var=LD_LIBRARY_PATH
11800   fi
11801   ;;
11802
11803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11804   version_type=freebsd-elf
11805   need_lib_prefix=no
11806   need_version=no
11807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11808   soname_spec='${libname}${release}${shared_ext}$major'
11809   shlibpath_var=LD_LIBRARY_PATH
11810   shlibpath_overrides_runpath=yes
11811   hardcode_into_libs=yes
11812   if test "$with_gnu_ld" = yes; then
11813     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11814   else
11815     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11816     case $host_os in
11817       sco3.2v5*)
11818         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11819         ;;
11820     esac
11821   fi
11822   sys_lib_dlsearch_path_spec='/usr/lib'
11823   ;;
11824
11825 tpf*)
11826   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11827   version_type=linux
11828   need_lib_prefix=no
11829   need_version=no
11830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831   shlibpath_var=LD_LIBRARY_PATH
11832   shlibpath_overrides_runpath=no
11833   hardcode_into_libs=yes
11834   ;;
11835
11836 uts4*)
11837   version_type=linux
11838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839   soname_spec='${libname}${release}${shared_ext}$major'
11840   shlibpath_var=LD_LIBRARY_PATH
11841   ;;
11842
11843 *)
11844   dynamic_linker=no
11845   ;;
11846 esac
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11848 $as_echo "$dynamic_linker" >&6; }
11849 test "$dynamic_linker" = no && can_build_shared=no
11850
11851 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11852 if test "$GCC" = yes; then
11853   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11854 fi
11855
11856 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11857   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11858 fi
11859 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11860   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11861 fi
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11950 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11951 hardcode_action=
11952 if test -n "$hardcode_libdir_flag_spec" ||
11953    test -n "$runpath_var" ||
11954    test "X$hardcode_automatic" = "Xyes" ; then
11955
11956   # We can hardcode non-existent directories.
11957   if test "$hardcode_direct" != no &&
11958      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11959      # have to relink, otherwise we might link with an installed library
11960      # when we should be linking with a yet-to-be-installed one
11961      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11962      test "$hardcode_minus_L" != no; then
11963     # Linking always hardcodes the temporary library directory.
11964     hardcode_action=relink
11965   else
11966     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11967     hardcode_action=immediate
11968   fi
11969 else
11970   # We cannot hardcode anything, or else we can only hardcode existing
11971   # directories.
11972   hardcode_action=unsupported
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11975 $as_echo "$hardcode_action" >&6; }
11976
11977 if test "$hardcode_action" = relink ||
11978    test "$inherit_rpath" = yes; then
11979   # Fast installation is not supported
11980   enable_fast_install=no
11981 elif test "$shlibpath_overrides_runpath" = yes ||
11982      test "$enable_shared" = no; then
11983   # Fast installation is not necessary
11984   enable_fast_install=needless
11985 fi
11986
11987
11988
11989
11990
11991
11992   if test "x$enable_dlopen" != xyes; then
11993   enable_dlopen=unknown
11994   enable_dlopen_self=unknown
11995   enable_dlopen_self_static=unknown
11996 else
11997   lt_cv_dlopen=no
11998   lt_cv_dlopen_libs=
11999
12000   case $host_os in
12001   beos*)
12002     lt_cv_dlopen="load_add_on"
12003     lt_cv_dlopen_libs=
12004     lt_cv_dlopen_self=yes
12005     ;;
12006
12007   mingw* | pw32* | cegcc*)
12008     lt_cv_dlopen="LoadLibrary"
12009     lt_cv_dlopen_libs=
12010     ;;
12011
12012   cygwin*)
12013     lt_cv_dlopen="dlopen"
12014     lt_cv_dlopen_libs=
12015     ;;
12016
12017   darwin*)
12018   # if libdl is installed we need to link against it
12019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12020 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12021 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12022   $as_echo_n "(cached) " >&6
12023 else
12024   ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-ldl  $LIBS"
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h.  */
12028
12029 /* Override any GCC internal prototype to avoid an error.
12030    Use char because int might match the return type of a GCC
12031    builtin and then its argument prototype would still apply.  */
12032 #ifdef __cplusplus
12033 extern "C"
12034 #endif
12035 char dlopen ();
12036 int
12037 main ()
12038 {
12039 return dlopen ();
12040   ;
12041   return 0;
12042 }
12043 _ACEOF
12044 if ac_fn_c_try_link "$LINENO"; then :
12045   ac_cv_lib_dl_dlopen=yes
12046 else
12047   ac_cv_lib_dl_dlopen=no
12048 fi
12049 rm -f core conftest.err conftest.$ac_objext \
12050     conftest$ac_exeext conftest.$ac_ext
12051 LIBS=$ac_check_lib_save_LIBS
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12054 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12055 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12056   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12057 else
12058
12059     lt_cv_dlopen="dyld"
12060     lt_cv_dlopen_libs=
12061     lt_cv_dlopen_self=yes
12062
12063 fi
12064
12065     ;;
12066
12067   *)
12068     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12069 if test "x$ac_cv_func_shl_load" = x""yes; then :
12070   lt_cv_dlopen="shl_load"
12071 else
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12073 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12074 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12075   $as_echo_n "(cached) " >&6
12076 else
12077   ac_check_lib_save_LIBS=$LIBS
12078 LIBS="-ldld  $LIBS"
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h.  */
12081
12082 /* Override any GCC internal prototype to avoid an error.
12083    Use char because int might match the return type of a GCC
12084    builtin and then its argument prototype would still apply.  */
12085 #ifdef __cplusplus
12086 extern "C"
12087 #endif
12088 char shl_load ();
12089 int
12090 main ()
12091 {
12092 return shl_load ();
12093   ;
12094   return 0;
12095 }
12096 _ACEOF
12097 if ac_fn_c_try_link "$LINENO"; then :
12098   ac_cv_lib_dld_shl_load=yes
12099 else
12100   ac_cv_lib_dld_shl_load=no
12101 fi
12102 rm -f core conftest.err conftest.$ac_objext \
12103     conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12105 fi
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12107 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12108 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12109   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12110 else
12111   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12112 if test "x$ac_cv_func_dlopen" = x""yes; then :
12113   lt_cv_dlopen="dlopen"
12114 else
12115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12116 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12117 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12118   $as_echo_n "(cached) " >&6
12119 else
12120   ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-ldl  $LIBS"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h.  */
12124
12125 /* Override any GCC internal prototype to avoid an error.
12126    Use char because int might match the return type of a GCC
12127    builtin and then its argument prototype would still apply.  */
12128 #ifdef __cplusplus
12129 extern "C"
12130 #endif
12131 char dlopen ();
12132 int
12133 main ()
12134 {
12135 return dlopen ();
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_link "$LINENO"; then :
12141   ac_cv_lib_dl_dlopen=yes
12142 else
12143   ac_cv_lib_dl_dlopen=no
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext \
12146     conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12150 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12151 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12152   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12153 else
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12155 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12156 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12157   $as_echo_n "(cached) " >&6
12158 else
12159   ac_check_lib_save_LIBS=$LIBS
12160 LIBS="-lsvld  $LIBS"
12161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h.  */
12163
12164 /* Override any GCC internal prototype to avoid an error.
12165    Use char because int might match the return type of a GCC
12166    builtin and then its argument prototype would still apply.  */
12167 #ifdef __cplusplus
12168 extern "C"
12169 #endif
12170 char dlopen ();
12171 int
12172 main ()
12173 {
12174 return dlopen ();
12175   ;
12176   return 0;
12177 }
12178 _ACEOF
12179 if ac_fn_c_try_link "$LINENO"; then :
12180   ac_cv_lib_svld_dlopen=yes
12181 else
12182   ac_cv_lib_svld_dlopen=no
12183 fi
12184 rm -f core conftest.err conftest.$ac_objext \
12185     conftest$ac_exeext conftest.$ac_ext
12186 LIBS=$ac_check_lib_save_LIBS
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12189 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12190 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12192 else
12193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12194 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12196   $as_echo_n "(cached) " >&6
12197 else
12198   ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-ldld  $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h.  */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204    Use char because int might match the return type of a GCC
12205    builtin and then its argument prototype would still apply.  */
12206 #ifdef __cplusplus
12207 extern "C"
12208 #endif
12209 char dld_link ();
12210 int
12211 main ()
12212 {
12213 return dld_link ();
12214   ;
12215   return 0;
12216 }
12217 _ACEOF
12218 if ac_fn_c_try_link "$LINENO"; then :
12219   ac_cv_lib_dld_dld_link=yes
12220 else
12221   ac_cv_lib_dld_dld_link=no
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224     conftest$ac_exeext conftest.$ac_ext
12225 LIBS=$ac_check_lib_save_LIBS
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12228 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12229 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12230   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12231 fi
12232
12233
12234 fi
12235
12236
12237 fi
12238
12239
12240 fi
12241
12242
12243 fi
12244
12245
12246 fi
12247
12248     ;;
12249   esac
12250
12251   if test "x$lt_cv_dlopen" != xno; then
12252     enable_dlopen=yes
12253   else
12254     enable_dlopen=no
12255   fi
12256
12257   case $lt_cv_dlopen in
12258   dlopen)
12259     save_CPPFLAGS="$CPPFLAGS"
12260     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12261
12262     save_LDFLAGS="$LDFLAGS"
12263     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12264
12265     save_LIBS="$LIBS"
12266     LIBS="$lt_cv_dlopen_libs $LIBS"
12267
12268     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12269 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12270 if test "${lt_cv_dlopen_self+set}" = set; then :
12271   $as_echo_n "(cached) " >&6
12272 else
12273           if test "$cross_compiling" = yes; then :
12274   lt_cv_dlopen_self=cross
12275 else
12276   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12277   lt_status=$lt_dlunknown
12278   cat > conftest.$ac_ext <<_LT_EOF
12279 #line 12279 "configure"
12280 #include "confdefs.h"
12281
12282 #if HAVE_DLFCN_H
12283 #include <dlfcn.h>
12284 #endif
12285
12286 #include <stdio.h>
12287
12288 #ifdef RTLD_GLOBAL
12289 #  define LT_DLGLOBAL           RTLD_GLOBAL
12290 #else
12291 #  ifdef DL_GLOBAL
12292 #    define LT_DLGLOBAL         DL_GLOBAL
12293 #  else
12294 #    define LT_DLGLOBAL         0
12295 #  endif
12296 #endif
12297
12298 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12299    find out it does not work in some platform. */
12300 #ifndef LT_DLLAZY_OR_NOW
12301 #  ifdef RTLD_LAZY
12302 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12303 #  else
12304 #    ifdef DL_LAZY
12305 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12306 #    else
12307 #      ifdef RTLD_NOW
12308 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12309 #      else
12310 #        ifdef DL_NOW
12311 #          define LT_DLLAZY_OR_NOW      DL_NOW
12312 #        else
12313 #          define LT_DLLAZY_OR_NOW      0
12314 #        endif
12315 #      endif
12316 #    endif
12317 #  endif
12318 #endif
12319
12320 void fnord() { int i=42;}
12321 int main ()
12322 {
12323   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12324   int status = $lt_dlunknown;
12325
12326   if (self)
12327     {
12328       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12329       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12330       /* dlclose (self); */
12331     }
12332   else
12333     puts (dlerror ());
12334
12335   return status;
12336 }
12337 _LT_EOF
12338   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12339   (eval $ac_link) 2>&5
12340   ac_status=$?
12341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12343     (./conftest; exit; ) >&5 2>/dev/null
12344     lt_status=$?
12345     case x$lt_status in
12346       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12347       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12348       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12349     esac
12350   else :
12351     # compilation failed
12352     lt_cv_dlopen_self=no
12353   fi
12354 fi
12355 rm -fr conftest*
12356
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12360 $as_echo "$lt_cv_dlopen_self" >&6; }
12361
12362     if test "x$lt_cv_dlopen_self" = xyes; then
12363       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12364       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12365 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12366 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12367   $as_echo_n "(cached) " >&6
12368 else
12369           if test "$cross_compiling" = yes; then :
12370   lt_cv_dlopen_self_static=cross
12371 else
12372   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12373   lt_status=$lt_dlunknown
12374   cat > conftest.$ac_ext <<_LT_EOF
12375 #line 12375 "configure"
12376 #include "confdefs.h"
12377
12378 #if HAVE_DLFCN_H
12379 #include <dlfcn.h>
12380 #endif
12381
12382 #include <stdio.h>
12383
12384 #ifdef RTLD_GLOBAL
12385 #  define LT_DLGLOBAL           RTLD_GLOBAL
12386 #else
12387 #  ifdef DL_GLOBAL
12388 #    define LT_DLGLOBAL         DL_GLOBAL
12389 #  else
12390 #    define LT_DLGLOBAL         0
12391 #  endif
12392 #endif
12393
12394 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12395    find out it does not work in some platform. */
12396 #ifndef LT_DLLAZY_OR_NOW
12397 #  ifdef RTLD_LAZY
12398 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12399 #  else
12400 #    ifdef DL_LAZY
12401 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12402 #    else
12403 #      ifdef RTLD_NOW
12404 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12405 #      else
12406 #        ifdef DL_NOW
12407 #          define LT_DLLAZY_OR_NOW      DL_NOW
12408 #        else
12409 #          define LT_DLLAZY_OR_NOW      0
12410 #        endif
12411 #      endif
12412 #    endif
12413 #  endif
12414 #endif
12415
12416 void fnord() { int i=42;}
12417 int main ()
12418 {
12419   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12420   int status = $lt_dlunknown;
12421
12422   if (self)
12423     {
12424       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12425       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12426       /* dlclose (self); */
12427     }
12428   else
12429     puts (dlerror ());
12430
12431   return status;
12432 }
12433 _LT_EOF
12434   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12435   (eval $ac_link) 2>&5
12436   ac_status=$?
12437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12438   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12439     (./conftest; exit; ) >&5 2>/dev/null
12440     lt_status=$?
12441     case x$lt_status in
12442       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12443       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12444       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12445     esac
12446   else :
12447     # compilation failed
12448     lt_cv_dlopen_self_static=no
12449   fi
12450 fi
12451 rm -fr conftest*
12452
12453
12454 fi
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12456 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12457     fi
12458
12459     CPPFLAGS="$save_CPPFLAGS"
12460     LDFLAGS="$save_LDFLAGS"
12461     LIBS="$save_LIBS"
12462     ;;
12463   esac
12464
12465   case $lt_cv_dlopen_self in
12466   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12467   *) enable_dlopen_self=unknown ;;
12468   esac
12469
12470   case $lt_cv_dlopen_self_static in
12471   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12472   *) enable_dlopen_self_static=unknown ;;
12473   esac
12474 fi
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492 striplib=
12493 old_striplib=
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12495 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12496 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12497   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12498   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12500 $as_echo "yes" >&6; }
12501 else
12502 # FIXME - insert some real tests, host_os isn't really good enough
12503   case $host_os in
12504   darwin*)
12505     if test -n "$STRIP" ; then
12506       striplib="$STRIP -x"
12507       old_striplib="$STRIP -S"
12508       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12509 $as_echo "yes" >&6; }
12510     else
12511       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12512 $as_echo "no" >&6; }
12513     fi
12514     ;;
12515   *)
12516     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518     ;;
12519   esac
12520 fi
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533   # Report which library types will actually be built
12534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12535 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12537 $as_echo "$can_build_shared" >&6; }
12538
12539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12540 $as_echo_n "checking whether to build shared libraries... " >&6; }
12541   test "$can_build_shared" = "no" && enable_shared=no
12542
12543   # On AIX, shared libraries and static libraries use the same namespace, and
12544   # are all built from PIC.
12545   case $host_os in
12546   aix3*)
12547     test "$enable_shared" = yes && enable_static=no
12548     if test -n "$RANLIB"; then
12549       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12550       postinstall_cmds='$RANLIB $lib'
12551     fi
12552     ;;
12553
12554   aix[4-9]*)
12555     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12556       test "$enable_shared" = yes && enable_static=no
12557     fi
12558     ;;
12559   esac
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12561 $as_echo "$enable_shared" >&6; }
12562
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12564 $as_echo_n "checking whether to build static libraries... " >&6; }
12565   # Make sure either enable_shared or enable_static is yes.
12566   test "$enable_shared" = yes || enable_static=yes
12567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12568 $as_echo "$enable_static" >&6; }
12569
12570
12571
12572
12573 fi
12574 ac_ext=c
12575 ac_cpp='$CPP $CPPFLAGS'
12576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12579
12580 CC="$lt_save_CC"
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594         ac_config_commands="$ac_config_commands libtool"
12595
12596
12597
12598
12599 # Only expand once:
12600
12601
12602
12603
12604 # Checks for programs.
12605 ac_ext=cpp
12606 ac_cpp='$CXXCPP $CPPFLAGS'
12607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12610 if test -z "$CXX"; then
12611   if test -n "$CCC"; then
12612     CXX=$CCC
12613   else
12614     if test -n "$ac_tool_prefix"; then
12615   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12616   do
12617     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if test "${ac_cv_prog_CXX+set}" = set; then :
12622   $as_echo_n "(cached) " >&6
12623 else
12624   if test -n "$CXX"; then
12625   ac_cv_prog_CXX="$CXX" # Let the user override the test.
12626 else
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12629 do
12630   IFS=$as_save_IFS
12631   test -z "$as_dir" && as_dir=.
12632     for ac_exec_ext in '' $ac_executable_extensions; do
12633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12634     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636     break 2
12637   fi
12638 done
12639   done
12640 IFS=$as_save_IFS
12641
12642 fi
12643 fi
12644 CXX=$ac_cv_prog_CXX
12645 if test -n "$CXX"; then
12646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12647 $as_echo "$CXX" >&6; }
12648 else
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651 fi
12652
12653
12654     test -n "$CXX" && break
12655   done
12656 fi
12657 if test -z "$CXX"; then
12658   ac_ct_CXX=$CXX
12659   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12660 do
12661   # Extract the first word of "$ac_prog", so it can be a program name with args.
12662 set dummy $ac_prog; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
12666   $as_echo_n "(cached) " >&6
12667 else
12668   if test -n "$ac_ct_CXX"; then
12669   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12670 else
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH
12673 do
12674   IFS=$as_save_IFS
12675   test -z "$as_dir" && as_dir=.
12676     for ac_exec_ext in '' $ac_executable_extensions; do
12677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12678     ac_cv_prog_ac_ct_CXX="$ac_prog"
12679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680     break 2
12681   fi
12682 done
12683   done
12684 IFS=$as_save_IFS
12685
12686 fi
12687 fi
12688 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12689 if test -n "$ac_ct_CXX"; then
12690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12691 $as_echo "$ac_ct_CXX" >&6; }
12692 else
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fi
12696
12697
12698   test -n "$ac_ct_CXX" && break
12699 done
12700
12701   if test "x$ac_ct_CXX" = x; then
12702     CXX="g++"
12703   else
12704     case $cross_compiling:$ac_tool_warned in
12705 yes:)
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12708 ac_tool_warned=yes ;;
12709 esac
12710     CXX=$ac_ct_CXX
12711   fi
12712 fi
12713
12714   fi
12715 fi
12716 # Provide some information about the compiler.
12717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12718 set X $ac_compile
12719 ac_compiler=$2
12720 for ac_option in --version -v -V -qversion; do
12721   { { ac_try="$ac_compiler $ac_option >&5"
12722 case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12727 $as_echo "$ac_try_echo"; } >&5
12728   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12729   ac_status=$?
12730   if test -s conftest.err; then
12731     sed '10a\
12732 ... rest of stderr output deleted ...
12733          10q' conftest.err >conftest.er1
12734     cat conftest.er1 >&5
12735     rm -f conftest.er1 conftest.err
12736   fi
12737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738   test $ac_status = 0; }
12739 done
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12742 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12743 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
12744   $as_echo_n "(cached) " >&6
12745 else
12746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h.  */
12748
12749 int
12750 main ()
12751 {
12752 #ifndef __GNUC__
12753        choke me
12754 #endif
12755
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_cxx_try_compile "$LINENO"; then :
12761   ac_compiler_gnu=yes
12762 else
12763   ac_compiler_gnu=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12767
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12770 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12771 if test $ac_compiler_gnu = yes; then
12772   GXX=yes
12773 else
12774   GXX=
12775 fi
12776 ac_test_CXXFLAGS=${CXXFLAGS+set}
12777 ac_save_CXXFLAGS=$CXXFLAGS
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12779 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12780 if test "${ac_cv_prog_cxx_g+set}" = set; then :
12781   $as_echo_n "(cached) " >&6
12782 else
12783   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12784    ac_cxx_werror_flag=yes
12785    ac_cv_prog_cxx_g=no
12786    CXXFLAGS="-g"
12787    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h.  */
12789
12790 int
12791 main ()
12792 {
12793
12794   ;
12795   return 0;
12796 }
12797 _ACEOF
12798 if ac_fn_cxx_try_compile "$LINENO"; then :
12799   ac_cv_prog_cxx_g=yes
12800 else
12801   CXXFLAGS=""
12802       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h.  */
12804
12805 int
12806 main ()
12807 {
12808
12809   ;
12810   return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_cxx_try_compile "$LINENO"; then :
12814
12815 else
12816   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12817          CXXFLAGS="-g"
12818          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h.  */
12820
12821 int
12822 main ()
12823 {
12824
12825   ;
12826   return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_cxx_try_compile "$LINENO"; then :
12830   ac_cv_prog_cxx_g=yes
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 fi
12836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12837    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12838 fi
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12840 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12841 if test "$ac_test_CXXFLAGS" = set; then
12842   CXXFLAGS=$ac_save_CXXFLAGS
12843 elif test $ac_cv_prog_cxx_g = yes; then
12844   if test "$GXX" = yes; then
12845     CXXFLAGS="-g -O2"
12846   else
12847     CXXFLAGS="-g"
12848   fi
12849 else
12850   if test "$GXX" = yes; then
12851     CXXFLAGS="-O2"
12852   else
12853     CXXFLAGS=
12854   fi
12855 fi
12856 ac_ext=c
12857 ac_cpp='$CPP $CPPFLAGS'
12858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12861
12862 depcc="$CXX"  am_compiler_list=
12863
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12865 $as_echo_n "checking dependency style of $depcc... " >&6; }
12866 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
12867   $as_echo_n "(cached) " >&6
12868 else
12869   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12870   # We make a subdir and do the tests there.  Otherwise we can end up
12871   # making bogus files that we don't know about and never remove.  For
12872   # instance it was reported that on HP-UX the gcc test will end up
12873   # making a dummy file named `D' -- because `-MD' means `put the output
12874   # in D'.
12875   mkdir conftest.dir
12876   # Copy depcomp to subdir because otherwise we won't find it if we're
12877   # using a relative directory.
12878   cp "$am_depcomp" conftest.dir
12879   cd conftest.dir
12880   # We will build objects and dependencies in a subdirectory because
12881   # it helps to detect inapplicable dependency modes.  For instance
12882   # both Tru64's cc and ICC support -MD to output dependencies as a
12883   # side effect of compilation, but ICC will put the dependencies in
12884   # the current directory while Tru64 will put them in the object
12885   # directory.
12886   mkdir sub
12887
12888   am_cv_CXX_dependencies_compiler_type=none
12889   if test "$am_compiler_list" = ""; then
12890      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12891   fi
12892   am__universal=false
12893   case " $depcc " in #(
12894      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12895      esac
12896
12897   for depmode in $am_compiler_list; do
12898     # Setup a source with many dependencies, because some compilers
12899     # like to wrap large dependency lists on column 80 (with \), and
12900     # we should not choose a depcomp mode which is confused by this.
12901     #
12902     # We need to recreate these files for each test, as the compiler may
12903     # overwrite some of them when testing with obscure command lines.
12904     # This happens at least with the AIX C compiler.
12905     : > sub/conftest.c
12906     for i in 1 2 3 4 5 6; do
12907       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12908       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12909       # Solaris 8's {/usr,}/bin/sh.
12910       touch sub/conftst$i.h
12911     done
12912     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12913
12914     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12915     # mode.  It turns out that the SunPro C++ compiler does not properly
12916     # handle `-M -o', and we need to detect this.  Also, some Intel
12917     # versions had trouble with output in subdirs
12918     am__obj=sub/conftest.${OBJEXT-o}
12919     am__minus_obj="-o $am__obj"
12920     case $depmode in
12921     gcc)
12922       # This depmode causes a compiler race in universal mode.
12923       test "$am__universal" = false || continue
12924       ;;
12925     nosideeffect)
12926       # after this tag, mechanisms are not by side-effect, so they'll
12927       # only be used when explicitly requested
12928       if test "x$enable_dependency_tracking" = xyes; then
12929         continue
12930       else
12931         break
12932       fi
12933       ;;
12934     msvisualcpp | msvcmsys)
12935       # This compiler won't grok `-c -o', but also, the minuso test has
12936       # not run yet.  These depmodes are late enough in the game, and
12937       # so weak that their functioning should not be impacted.
12938       am__obj=conftest.${OBJEXT-o}
12939       am__minus_obj=
12940       ;;
12941     none) break ;;
12942     esac
12943     if depmode=$depmode \
12944        source=sub/conftest.c object=$am__obj \
12945        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12946        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12947          >/dev/null 2>conftest.err &&
12948        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12949        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12950        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12951        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12952       # icc doesn't choke on unknown options, it will just issue warnings
12953       # or remarks (even with -Werror).  So we grep stderr for any message
12954       # that says an option was ignored or not supported.
12955       # When given -MP, icc 7.0 and 7.1 complain thusly:
12956       #   icc: Command line warning: ignoring option '-M'; no argument required
12957       # The diagnosis changed in icc 8.0:
12958       #   icc: Command line remark: option '-MP' not supported
12959       if (grep 'ignoring option' conftest.err ||
12960           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12961         am_cv_CXX_dependencies_compiler_type=$depmode
12962         break
12963       fi
12964     fi
12965   done
12966
12967   cd ..
12968   rm -rf conftest.dir
12969 else
12970   am_cv_CXX_dependencies_compiler_type=none
12971 fi
12972
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12975 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12976 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12977
12978  if
12979   test "x$enable_dependency_tracking" != xno \
12980   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12981   am__fastdepCXX_TRUE=
12982   am__fastdepCXX_FALSE='#'
12983 else
12984   am__fastdepCXX_TRUE='#'
12985   am__fastdepCXX_FALSE=
12986 fi
12987
12988
12989
12990 ac_ext=cpp
12991 ac_cpp='$CXXCPP $CPPFLAGS'
12992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12995 if test -z "$CXX"; then
12996   if test -n "$CCC"; then
12997     CXX=$CCC
12998   else
12999     if test -n "$ac_tool_prefix"; then
13000   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13001   do
13002     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if test "${ac_cv_prog_CXX+set}" = set; then :
13007   $as_echo_n "(cached) " >&6
13008 else
13009   if test -n "$CXX"; then
13010   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13014 do
13015   IFS=$as_save_IFS
13016   test -z "$as_dir" && as_dir=.
13017     for ac_exec_ext in '' $ac_executable_extensions; do
13018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021     break 2
13022   fi
13023 done
13024   done
13025 IFS=$as_save_IFS
13026
13027 fi
13028 fi
13029 CXX=$ac_cv_prog_CXX
13030 if test -n "$CXX"; then
13031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13032 $as_echo "$CXX" >&6; }
13033 else
13034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036 fi
13037
13038
13039     test -n "$CXX" && break
13040   done
13041 fi
13042 if test -z "$CXX"; then
13043   ac_ct_CXX=$CXX
13044   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13045 do
13046   # Extract the first word of "$ac_prog", so it can be a program name with args.
13047 set dummy $ac_prog; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049 $as_echo_n "checking for $ac_word... " >&6; }
13050 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13051   $as_echo_n "(cached) " >&6
13052 else
13053   if test -n "$ac_ct_CXX"; then
13054   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13055 else
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13058 do
13059   IFS=$as_save_IFS
13060   test -z "$as_dir" && as_dir=.
13061     for ac_exec_ext in '' $ac_executable_extensions; do
13062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063     ac_cv_prog_ac_ct_CXX="$ac_prog"
13064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065     break 2
13066   fi
13067 done
13068   done
13069 IFS=$as_save_IFS
13070
13071 fi
13072 fi
13073 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13074 if test -n "$ac_ct_CXX"; then
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13076 $as_echo "$ac_ct_CXX" >&6; }
13077 else
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079 $as_echo "no" >&6; }
13080 fi
13081
13082
13083   test -n "$ac_ct_CXX" && break
13084 done
13085
13086   if test "x$ac_ct_CXX" = x; then
13087     CXX="g++"
13088   else
13089     case $cross_compiling:$ac_tool_warned in
13090 yes:)
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13093 ac_tool_warned=yes ;;
13094 esac
13095     CXX=$ac_ct_CXX
13096   fi
13097 fi
13098
13099   fi
13100 fi
13101 # Provide some information about the compiler.
13102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13103 set X $ac_compile
13104 ac_compiler=$2
13105 for ac_option in --version -v -V -qversion; do
13106   { { ac_try="$ac_compiler $ac_option >&5"
13107 case "(($ac_try" in
13108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109   *) ac_try_echo=$ac_try;;
13110 esac
13111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13112 $as_echo "$ac_try_echo"; } >&5
13113   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13114   ac_status=$?
13115   if test -s conftest.err; then
13116     sed '10a\
13117 ... rest of stderr output deleted ...
13118          10q' conftest.err >conftest.er1
13119     cat conftest.er1 >&5
13120     rm -f conftest.er1 conftest.err
13121   fi
13122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13123   test $ac_status = 0; }
13124 done
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13127 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13128 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13129   $as_echo_n "(cached) " >&6
13130 else
13131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h.  */
13133
13134 int
13135 main ()
13136 {
13137 #ifndef __GNUC__
13138        choke me
13139 #endif
13140
13141   ;
13142   return 0;
13143 }
13144 _ACEOF
13145 if ac_fn_cxx_try_compile "$LINENO"; then :
13146   ac_compiler_gnu=yes
13147 else
13148   ac_compiler_gnu=no
13149 fi
13150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13151 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13152
13153 fi
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13155 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13156 if test $ac_compiler_gnu = yes; then
13157   GXX=yes
13158 else
13159   GXX=
13160 fi
13161 ac_test_CXXFLAGS=${CXXFLAGS+set}
13162 ac_save_CXXFLAGS=$CXXFLAGS
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13164 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13165 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13166   $as_echo_n "(cached) " >&6
13167 else
13168   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13169    ac_cxx_werror_flag=yes
13170    ac_cv_prog_cxx_g=no
13171    CXXFLAGS="-g"
13172    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h.  */
13174
13175 int
13176 main ()
13177 {
13178
13179   ;
13180   return 0;
13181 }
13182 _ACEOF
13183 if ac_fn_cxx_try_compile "$LINENO"; then :
13184   ac_cv_prog_cxx_g=yes
13185 else
13186   CXXFLAGS=""
13187       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h.  */
13189
13190 int
13191 main ()
13192 {
13193
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_cxx_try_compile "$LINENO"; then :
13199
13200 else
13201   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13202          CXXFLAGS="-g"
13203          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h.  */
13205
13206 int
13207 main ()
13208 {
13209
13210   ;
13211   return 0;
13212 }
13213 _ACEOF
13214 if ac_fn_cxx_try_compile "$LINENO"; then :
13215   ac_cv_prog_cxx_g=yes
13216 fi
13217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13218 fi
13219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13223 fi
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13225 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13226 if test "$ac_test_CXXFLAGS" = set; then
13227   CXXFLAGS=$ac_save_CXXFLAGS
13228 elif test $ac_cv_prog_cxx_g = yes; then
13229   if test "$GXX" = yes; then
13230     CXXFLAGS="-g -O2"
13231   else
13232     CXXFLAGS="-g"
13233   fi
13234 else
13235   if test "$GXX" = yes; then
13236     CXXFLAGS="-O2"
13237   else
13238     CXXFLAGS=
13239   fi
13240 fi
13241 ac_ext=c
13242 ac_cpp='$CPP $CPPFLAGS'
13243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13246
13247 depcc="$CXX"  am_compiler_list=
13248
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13250 $as_echo_n "checking dependency style of $depcc... " >&6; }
13251 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13252   $as_echo_n "(cached) " >&6
13253 else
13254   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13255   # We make a subdir and do the tests there.  Otherwise we can end up
13256   # making bogus files that we don't know about and never remove.  For
13257   # instance it was reported that on HP-UX the gcc test will end up
13258   # making a dummy file named `D' -- because `-MD' means `put the output
13259   # in D'.
13260   mkdir conftest.dir
13261   # Copy depcomp to subdir because otherwise we won't find it if we're
13262   # using a relative directory.
13263   cp "$am_depcomp" conftest.dir
13264   cd conftest.dir
13265   # We will build objects and dependencies in a subdirectory because
13266   # it helps to detect inapplicable dependency modes.  For instance
13267   # both Tru64's cc and ICC support -MD to output dependencies as a
13268   # side effect of compilation, but ICC will put the dependencies in
13269   # the current directory while Tru64 will put them in the object
13270   # directory.
13271   mkdir sub
13272
13273   am_cv_CXX_dependencies_compiler_type=none
13274   if test "$am_compiler_list" = ""; then
13275      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13276   fi
13277   am__universal=false
13278   case " $depcc " in #(
13279      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13280      esac
13281
13282   for depmode in $am_compiler_list; do
13283     # Setup a source with many dependencies, because some compilers
13284     # like to wrap large dependency lists on column 80 (with \), and
13285     # we should not choose a depcomp mode which is confused by this.
13286     #
13287     # We need to recreate these files for each test, as the compiler may
13288     # overwrite some of them when testing with obscure command lines.
13289     # This happens at least with the AIX C compiler.
13290     : > sub/conftest.c
13291     for i in 1 2 3 4 5 6; do
13292       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13293       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13294       # Solaris 8's {/usr,}/bin/sh.
13295       touch sub/conftst$i.h
13296     done
13297     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13298
13299     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13300     # mode.  It turns out that the SunPro C++ compiler does not properly
13301     # handle `-M -o', and we need to detect this.  Also, some Intel
13302     # versions had trouble with output in subdirs
13303     am__obj=sub/conftest.${OBJEXT-o}
13304     am__minus_obj="-o $am__obj"
13305     case $depmode in
13306     gcc)
13307       # This depmode causes a compiler race in universal mode.
13308       test "$am__universal" = false || continue
13309       ;;
13310     nosideeffect)
13311       # after this tag, mechanisms are not by side-effect, so they'll
13312       # only be used when explicitly requested
13313       if test "x$enable_dependency_tracking" = xyes; then
13314         continue
13315       else
13316         break
13317       fi
13318       ;;
13319     msvisualcpp | msvcmsys)
13320       # This compiler won't grok `-c -o', but also, the minuso test has
13321       # not run yet.  These depmodes are late enough in the game, and
13322       # so weak that their functioning should not be impacted.
13323       am__obj=conftest.${OBJEXT-o}
13324       am__minus_obj=
13325       ;;
13326     none) break ;;
13327     esac
13328     if depmode=$depmode \
13329        source=sub/conftest.c object=$am__obj \
13330        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13331        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13332          >/dev/null 2>conftest.err &&
13333        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13334        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13335        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13336        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13337       # icc doesn't choke on unknown options, it will just issue warnings
13338       # or remarks (even with -Werror).  So we grep stderr for any message
13339       # that says an option was ignored or not supported.
13340       # When given -MP, icc 7.0 and 7.1 complain thusly:
13341       #   icc: Command line warning: ignoring option '-M'; no argument required
13342       # The diagnosis changed in icc 8.0:
13343       #   icc: Command line remark: option '-MP' not supported
13344       if (grep 'ignoring option' conftest.err ||
13345           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13346         am_cv_CXX_dependencies_compiler_type=$depmode
13347         break
13348       fi
13349     fi
13350   done
13351
13352   cd ..
13353   rm -rf conftest.dir
13354 else
13355   am_cv_CXX_dependencies_compiler_type=none
13356 fi
13357
13358 fi
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13360 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13361 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13362
13363  if
13364   test "x$enable_dependency_tracking" != xno \
13365   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13366   am__fastdepCXX_TRUE=
13367   am__fastdepCXX_FALSE='#'
13368 else
13369   am__fastdepCXX_TRUE='#'
13370   am__fastdepCXX_FALSE=
13371 fi
13372
13373
13374 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13375     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13376     (test "X$CXX" != "Xg++"))) ; then
13377   ac_ext=cpp
13378 ac_cpp='$CXXCPP $CPPFLAGS'
13379 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13380 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13381 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13383 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13384 if test -z "$CXXCPP"; then
13385   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13386   $as_echo_n "(cached) " >&6
13387 else
13388       # Double quotes because CXXCPP needs to be expanded
13389     for CXXCPP in "$CXX -E" "/lib/cpp"
13390     do
13391       ac_preproc_ok=false
13392 for ac_cxx_preproc_warn_flag in '' yes
13393 do
13394   # Use a header file that comes with gcc, so configuring glibc
13395   # with a fresh cross-compiler works.
13396   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13397   # <limits.h> exists even on freestanding compilers.
13398   # On the NeXT, cc -E runs the code through the compiler's parser,
13399   # not just through cpp. "Syntax error" is here to catch this case.
13400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h.  */
13402 #ifdef __STDC__
13403 # include <limits.h>
13404 #else
13405 # include <assert.h>
13406 #endif
13407                      Syntax error
13408 _ACEOF
13409 if ac_fn_cxx_try_cpp "$LINENO"; then :
13410
13411 else
13412   # Broken: fails on valid input.
13413 continue
13414 fi
13415 rm -f conftest.err conftest.$ac_ext
13416
13417   # OK, works on sane cases.  Now check whether nonexistent headers
13418   # can be detected and how.
13419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h.  */
13421 #include <ac_nonexistent.h>
13422 _ACEOF
13423 if ac_fn_cxx_try_cpp "$LINENO"; then :
13424   # Broken: success on invalid input.
13425 continue
13426 else
13427   # Passes both tests.
13428 ac_preproc_ok=:
13429 break
13430 fi
13431 rm -f conftest.err conftest.$ac_ext
13432
13433 done
13434 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13435 rm -f conftest.err conftest.$ac_ext
13436 if $ac_preproc_ok; then :
13437   break
13438 fi
13439
13440     done
13441     ac_cv_prog_CXXCPP=$CXXCPP
13442
13443 fi
13444   CXXCPP=$ac_cv_prog_CXXCPP
13445 else
13446   ac_cv_prog_CXXCPP=$CXXCPP
13447 fi
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13449 $as_echo "$CXXCPP" >&6; }
13450 ac_preproc_ok=false
13451 for ac_cxx_preproc_warn_flag in '' yes
13452 do
13453   # Use a header file that comes with gcc, so configuring glibc
13454   # with a fresh cross-compiler works.
13455   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13456   # <limits.h> exists even on freestanding compilers.
13457   # On the NeXT, cc -E runs the code through the compiler's parser,
13458   # not just through cpp. "Syntax error" is here to catch this case.
13459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h.  */
13461 #ifdef __STDC__
13462 # include <limits.h>
13463 #else
13464 # include <assert.h>
13465 #endif
13466                      Syntax error
13467 _ACEOF
13468 if ac_fn_cxx_try_cpp "$LINENO"; then :
13469
13470 else
13471   # Broken: fails on valid input.
13472 continue
13473 fi
13474 rm -f conftest.err conftest.$ac_ext
13475
13476   # OK, works on sane cases.  Now check whether nonexistent headers
13477   # can be detected and how.
13478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h.  */
13480 #include <ac_nonexistent.h>
13481 _ACEOF
13482 if ac_fn_cxx_try_cpp "$LINENO"; then :
13483   # Broken: success on invalid input.
13484 continue
13485 else
13486   # Passes both tests.
13487 ac_preproc_ok=:
13488 break
13489 fi
13490 rm -f conftest.err conftest.$ac_ext
13491
13492 done
13493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13494 rm -f conftest.err conftest.$ac_ext
13495 if $ac_preproc_ok; then :
13496
13497 else
13498   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13500 _lt_caught_CXX_error=yes; }
13501 fi
13502
13503 ac_ext=c
13504 ac_cpp='$CPP $CPPFLAGS'
13505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13508
13509 else
13510   _lt_caught_CXX_error=yes
13511 fi
13512
13513
13514
13515
13516 ac_ext=cpp
13517 ac_cpp='$CXXCPP $CPPFLAGS'
13518 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13519 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13520 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13521
13522 archive_cmds_need_lc_CXX=no
13523 allow_undefined_flag_CXX=
13524 always_export_symbols_CXX=no
13525 archive_expsym_cmds_CXX=
13526 compiler_needs_object_CXX=no
13527 export_dynamic_flag_spec_CXX=
13528 hardcode_direct_CXX=no
13529 hardcode_direct_absolute_CXX=no
13530 hardcode_libdir_flag_spec_CXX=
13531 hardcode_libdir_flag_spec_ld_CXX=
13532 hardcode_libdir_separator_CXX=
13533 hardcode_minus_L_CXX=no
13534 hardcode_shlibpath_var_CXX=unsupported
13535 hardcode_automatic_CXX=no
13536 inherit_rpath_CXX=no
13537 module_cmds_CXX=
13538 module_expsym_cmds_CXX=
13539 link_all_deplibs_CXX=unknown
13540 old_archive_cmds_CXX=$old_archive_cmds
13541 no_undefined_flag_CXX=
13542 whole_archive_flag_spec_CXX=
13543 enable_shared_with_static_runtimes_CXX=no
13544
13545 # Source file extension for C++ test sources.
13546 ac_ext=cpp
13547
13548 # Object file extension for compiled C++ test sources.
13549 objext=o
13550 objext_CXX=$objext
13551
13552 # No sense in running all these tests if we already determined that
13553 # the CXX compiler isn't working.  Some variables (like enable_shared)
13554 # are currently assumed to apply to all compilers on this platform,
13555 # and will be corrupted by setting them based on a non-working compiler.
13556 if test "$_lt_caught_CXX_error" != yes; then
13557   # Code to be used in simple compile tests
13558   lt_simple_compile_test_code="int some_variable = 0;"
13559
13560   # Code to be used in simple link tests
13561   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13562
13563   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13564
13565
13566
13567
13568
13569
13570 # If no C compiler was specified, use CC.
13571 LTCC=${LTCC-"$CC"}
13572
13573 # If no C compiler flags were specified, use CFLAGS.
13574 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13575
13576 # Allow CC to be a program name with arguments.
13577 compiler=$CC
13578
13579
13580   # save warnings/boilerplate of simple test code
13581   ac_outfile=conftest.$ac_objext
13582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13584 _lt_compiler_boilerplate=`cat conftest.err`
13585 $RM conftest*
13586
13587   ac_outfile=conftest.$ac_objext
13588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13590 _lt_linker_boilerplate=`cat conftest.err`
13591 $RM -r conftest*
13592
13593
13594   # Allow CC to be a program name with arguments.
13595   lt_save_CC=$CC
13596   lt_save_LD=$LD
13597   lt_save_GCC=$GCC
13598   GCC=$GXX
13599   lt_save_with_gnu_ld=$with_gnu_ld
13600   lt_save_path_LD=$lt_cv_path_LD
13601   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13602     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13603   else
13604     $as_unset lt_cv_prog_gnu_ld
13605   fi
13606   if test -n "${lt_cv_path_LDCXX+set}"; then
13607     lt_cv_path_LD=$lt_cv_path_LDCXX
13608   else
13609     $as_unset lt_cv_path_LD
13610   fi
13611   test -z "${LDCXX+set}" || LD=$LDCXX
13612   CC=${CXX-"c++"}
13613   compiler=$CC
13614   compiler_CXX=$CC
13615   for cc_temp in $compiler""; do
13616   case $cc_temp in
13617     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13618     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13619     \-*) ;;
13620     *) break;;
13621   esac
13622 done
13623 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13624
13625
13626   if test -n "$compiler"; then
13627     # We don't want -fno-exception when compiling C++ code, so set the
13628     # no_builtin_flag separately
13629     if test "$GXX" = yes; then
13630       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13631     else
13632       lt_prog_compiler_no_builtin_flag_CXX=
13633     fi
13634
13635     if test "$GXX" = yes; then
13636       # Set up default GNU C++ configuration
13637
13638
13639
13640 # Check whether --with-gnu-ld was given.
13641 if test "${with_gnu_ld+set}" = set; then :
13642   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13643 else
13644   with_gnu_ld=no
13645 fi
13646
13647 ac_prog=ld
13648 if test "$GCC" = yes; then
13649   # Check if gcc -print-prog-name=ld gives a path.
13650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13651 $as_echo_n "checking for ld used by $CC... " >&6; }
13652   case $host in
13653   *-*-mingw*)
13654     # gcc leaves a trailing carriage return which upsets mingw
13655     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13656   *)
13657     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13658   esac
13659   case $ac_prog in
13660     # Accept absolute paths.
13661     [\\/]* | ?:[\\/]*)
13662       re_direlt='/[^/][^/]*/\.\./'
13663       # Canonicalize the pathname of ld
13664       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13665       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13666         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13667       done
13668       test -z "$LD" && LD="$ac_prog"
13669       ;;
13670   "")
13671     # If it fails, then pretend we aren't using GCC.
13672     ac_prog=ld
13673     ;;
13674   *)
13675     # If it is relative, then search for the first ld in PATH.
13676     with_gnu_ld=unknown
13677     ;;
13678   esac
13679 elif test "$with_gnu_ld" = yes; then
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13681 $as_echo_n "checking for GNU ld... " >&6; }
13682 else
13683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13684 $as_echo_n "checking for non-GNU ld... " >&6; }
13685 fi
13686 if test "${lt_cv_path_LD+set}" = set; then :
13687   $as_echo_n "(cached) " >&6
13688 else
13689   if test -z "$LD"; then
13690   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13691   for ac_dir in $PATH; do
13692     IFS="$lt_save_ifs"
13693     test -z "$ac_dir" && ac_dir=.
13694     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13695       lt_cv_path_LD="$ac_dir/$ac_prog"
13696       # Check to see if the program is GNU ld.  I'd rather use --version,
13697       # but apparently some variants of GNU ld only accept -v.
13698       # Break only if it was the GNU/non-GNU ld that we prefer.
13699       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13700       *GNU* | *'with BFD'*)
13701         test "$with_gnu_ld" != no && break
13702         ;;
13703       *)
13704         test "$with_gnu_ld" != yes && break
13705         ;;
13706       esac
13707     fi
13708   done
13709   IFS="$lt_save_ifs"
13710 else
13711   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13712 fi
13713 fi
13714
13715 LD="$lt_cv_path_LD"
13716 if test -n "$LD"; then
13717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13718 $as_echo "$LD" >&6; }
13719 else
13720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13721 $as_echo "no" >&6; }
13722 fi
13723 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13725 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13726 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13727   $as_echo_n "(cached) " >&6
13728 else
13729   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13730 case `$LD -v 2>&1 </dev/null` in
13731 *GNU* | *'with BFD'*)
13732   lt_cv_prog_gnu_ld=yes
13733   ;;
13734 *)
13735   lt_cv_prog_gnu_ld=no
13736   ;;
13737 esac
13738 fi
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13740 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13741 with_gnu_ld=$lt_cv_prog_gnu_ld
13742
13743
13744
13745
13746
13747
13748
13749       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13750       # archiving commands below assume that GNU ld is being used.
13751       if test "$with_gnu_ld" = yes; then
13752         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13753         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13754
13755         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13756         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13757
13758         # If archive_cmds runs LD, not CC, wlarc should be empty
13759         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13760         #     investigate it a little bit more. (MM)
13761         wlarc='${wl}'
13762
13763         # ancient GNU ld didn't support --whole-archive et. al.
13764         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13765           $GREP 'no-whole-archive' > /dev/null; then
13766           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13767         else
13768           whole_archive_flag_spec_CXX=
13769         fi
13770       else
13771         with_gnu_ld=no
13772         wlarc=
13773
13774         # A generic and very simple default shared library creation
13775         # command for GNU C++ for the case where it uses the native
13776         # linker, instead of GNU ld.  If possible, this setting should
13777         # overridden to take advantage of the native linker features on
13778         # the platform it is being used on.
13779         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13780       fi
13781
13782       # Commands to make compiler produce verbose output that lists
13783       # what "hidden" libraries, object files and flags are used when
13784       # linking a shared library.
13785       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13786
13787     else
13788       GXX=no
13789       with_gnu_ld=no
13790       wlarc=
13791     fi
13792
13793     # PORTME: fill in a description of your system's C++ link characteristics
13794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13795 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13796     ld_shlibs_CXX=yes
13797     case $host_os in
13798       aix3*)
13799         # FIXME: insert proper C++ library support
13800         ld_shlibs_CXX=no
13801         ;;
13802       aix[4-9]*)
13803         if test "$host_cpu" = ia64; then
13804           # On IA64, the linker does run time linking by default, so we don't
13805           # have to do anything special.
13806           aix_use_runtimelinking=no
13807           exp_sym_flag='-Bexport'
13808           no_entry_flag=""
13809         else
13810           aix_use_runtimelinking=no
13811
13812           # Test if we are trying to use run time linking or normal
13813           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13814           # need to do runtime linking.
13815           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13816             for ld_flag in $LDFLAGS; do
13817               case $ld_flag in
13818               *-brtl*)
13819                 aix_use_runtimelinking=yes
13820                 break
13821                 ;;
13822               esac
13823             done
13824             ;;
13825           esac
13826
13827           exp_sym_flag='-bexport'
13828           no_entry_flag='-bnoentry'
13829         fi
13830
13831         # When large executables or shared objects are built, AIX ld can
13832         # have problems creating the table of contents.  If linking a library
13833         # or program results in "error TOC overflow" add -mminimal-toc to
13834         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13835         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13836
13837         archive_cmds_CXX=''
13838         hardcode_direct_CXX=yes
13839         hardcode_direct_absolute_CXX=yes
13840         hardcode_libdir_separator_CXX=':'
13841         link_all_deplibs_CXX=yes
13842         file_list_spec_CXX='${wl}-f,'
13843
13844         if test "$GXX" = yes; then
13845           case $host_os in aix4.[012]|aix4.[012].*)
13846           # We only want to do this on AIX 4.2 and lower, the check
13847           # below for broken collect2 doesn't work under 4.3+
13848           collect2name=`${CC} -print-prog-name=collect2`
13849           if test -f "$collect2name" &&
13850              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13851           then
13852             # We have reworked collect2
13853             :
13854           else
13855             # We have old collect2
13856             hardcode_direct_CXX=unsupported
13857             # It fails to find uninstalled libraries when the uninstalled
13858             # path is not listed in the libpath.  Setting hardcode_minus_L
13859             # to unsupported forces relinking
13860             hardcode_minus_L_CXX=yes
13861             hardcode_libdir_flag_spec_CXX='-L$libdir'
13862             hardcode_libdir_separator_CXX=
13863           fi
13864           esac
13865           shared_flag='-shared'
13866           if test "$aix_use_runtimelinking" = yes; then
13867             shared_flag="$shared_flag "'${wl}-G'
13868           fi
13869         else
13870           # not using gcc
13871           if test "$host_cpu" = ia64; then
13872           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13873           # chokes on -Wl,-G. The following line is correct:
13874           shared_flag='-G'
13875           else
13876             if test "$aix_use_runtimelinking" = yes; then
13877               shared_flag='${wl}-G'
13878             else
13879               shared_flag='${wl}-bM:SRE'
13880             fi
13881           fi
13882         fi
13883
13884         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13885         # It seems that -bexpall does not export symbols beginning with
13886         # underscore (_), so it is better to generate a list of symbols to
13887         # export.
13888         always_export_symbols_CXX=yes
13889         if test "$aix_use_runtimelinking" = yes; then
13890           # Warning - without using the other runtime loading flags (-brtl),
13891           # -berok will link without error, but may produce a broken library.
13892           allow_undefined_flag_CXX='-berok'
13893           # Determine the default libpath from the value encoded in an empty
13894           # executable.
13895           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h.  */
13897
13898 int
13899 main ()
13900 {
13901
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 if ac_fn_cxx_try_link "$LINENO"; then :
13907
13908 lt_aix_libpath_sed='
13909     /Import File Strings/,/^$/ {
13910         /^0/ {
13911             s/^0  *\(.*\)$/\1/
13912             p
13913         }
13914     }'
13915 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13916 # Check for a 64-bit object if we didn't find anything.
13917 if test -z "$aix_libpath"; then
13918   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13919 fi
13920 fi
13921 rm -f core conftest.err conftest.$ac_objext \
13922     conftest$ac_exeext conftest.$ac_ext
13923 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13924
13925           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13926
13927           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13928         else
13929           if test "$host_cpu" = ia64; then
13930             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13931             allow_undefined_flag_CXX="-z nodefs"
13932             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13933           else
13934             # Determine the default libpath from the value encoded in an
13935             # empty executable.
13936             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h.  */
13938
13939 int
13940 main ()
13941 {
13942
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 if ac_fn_cxx_try_link "$LINENO"; then :
13948
13949 lt_aix_libpath_sed='
13950     /Import File Strings/,/^$/ {
13951         /^0/ {
13952             s/^0  *\(.*\)$/\1/
13953             p
13954         }
13955     }'
13956 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13957 # Check for a 64-bit object if we didn't find anything.
13958 if test -z "$aix_libpath"; then
13959   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13960 fi
13961 fi
13962 rm -f core conftest.err conftest.$ac_objext \
13963     conftest$ac_exeext conftest.$ac_ext
13964 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13965
13966             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13967             # Warning - without using the other run time loading flags,
13968             # -berok will link without error, but may produce a broken library.
13969             no_undefined_flag_CXX=' ${wl}-bernotok'
13970             allow_undefined_flag_CXX=' ${wl}-berok'
13971             # Exported symbols can be pulled into shared objects from archives
13972             whole_archive_flag_spec_CXX='$convenience'
13973             archive_cmds_need_lc_CXX=yes
13974             # This is similar to how AIX traditionally builds its shared
13975             # libraries.
13976             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13977           fi
13978         fi
13979         ;;
13980
13981       beos*)
13982         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13983           allow_undefined_flag_CXX=unsupported
13984           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13985           # support --undefined.  This deserves some investigation.  FIXME
13986           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987         else
13988           ld_shlibs_CXX=no
13989         fi
13990         ;;
13991
13992       chorus*)
13993         case $cc_basename in
13994           *)
13995           # FIXME: insert proper C++ library support
13996           ld_shlibs_CXX=no
13997           ;;
13998         esac
13999         ;;
14000
14001       cygwin* | mingw* | pw32* | cegcc*)
14002         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14003         # as there is no search path for DLLs.
14004         hardcode_libdir_flag_spec_CXX='-L$libdir'
14005         allow_undefined_flag_CXX=unsupported
14006         always_export_symbols_CXX=no
14007         enable_shared_with_static_runtimes_CXX=yes
14008
14009         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14010           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14011           # If the export-symbols file already is a .def file (1st line
14012           # is EXPORTS), use it as is; otherwise, prepend...
14013           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14014             cp $export_symbols $output_objdir/$soname.def;
14015           else
14016             echo EXPORTS > $output_objdir/$soname.def;
14017             cat $export_symbols >> $output_objdir/$soname.def;
14018           fi~
14019           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14020         else
14021           ld_shlibs_CXX=no
14022         fi
14023         ;;
14024       darwin* | rhapsody*)
14025
14026
14027   archive_cmds_need_lc_CXX=no
14028   hardcode_direct_CXX=no
14029   hardcode_automatic_CXX=yes
14030   hardcode_shlibpath_var_CXX=unsupported
14031   whole_archive_flag_spec_CXX=''
14032   link_all_deplibs_CXX=yes
14033   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14034   case $cc_basename in
14035      ifort*) _lt_dar_can_shared=yes ;;
14036      *) _lt_dar_can_shared=$GCC ;;
14037   esac
14038   if test "$_lt_dar_can_shared" = "yes"; then
14039     output_verbose_link_cmd=echo
14040     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14041     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14042     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14043     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14044        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14045       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14046       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14047     fi
14048
14049   else
14050   ld_shlibs_CXX=no
14051   fi
14052
14053         ;;
14054
14055       dgux*)
14056         case $cc_basename in
14057           ec++*)
14058             # FIXME: insert proper C++ library support
14059             ld_shlibs_CXX=no
14060             ;;
14061           ghcx*)
14062             # Green Hills C++ Compiler
14063             # FIXME: insert proper C++ library support
14064             ld_shlibs_CXX=no
14065             ;;
14066           *)
14067             # FIXME: insert proper C++ library support
14068             ld_shlibs_CXX=no
14069             ;;
14070         esac
14071         ;;
14072
14073       freebsd[12]*)
14074         # C++ shared libraries reported to be fairly broken before
14075         # switch to ELF
14076         ld_shlibs_CXX=no
14077         ;;
14078
14079       freebsd-elf*)
14080         archive_cmds_need_lc_CXX=no
14081         ;;
14082
14083       freebsd* | dragonfly*)
14084         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14085         # conventions
14086         ld_shlibs_CXX=yes
14087         ;;
14088
14089       gnu*)
14090         ;;
14091
14092       hpux9*)
14093         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14094         hardcode_libdir_separator_CXX=:
14095         export_dynamic_flag_spec_CXX='${wl}-E'
14096         hardcode_direct_CXX=yes
14097         hardcode_minus_L_CXX=yes # Not in the search PATH,
14098                                              # but as the default
14099                                              # location of the library.
14100
14101         case $cc_basename in
14102           CC*)
14103             # FIXME: insert proper C++ library support
14104             ld_shlibs_CXX=no
14105             ;;
14106           aCC*)
14107             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14108             # Commands to make compiler produce verbose output that lists
14109             # what "hidden" libraries, object files and flags are used when
14110             # linking a shared library.
14111             #
14112             # There doesn't appear to be a way to prevent this compiler from
14113             # explicitly linking system object files so we need to strip them
14114             # from the output so that they don't get included in the library
14115             # dependencies.
14116             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 "X$list" | $Xsed'
14117             ;;
14118           *)
14119             if test "$GXX" = yes; then
14120               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14121             else
14122               # FIXME: insert proper C++ library support
14123               ld_shlibs_CXX=no
14124             fi
14125             ;;
14126         esac
14127         ;;
14128
14129       hpux10*|hpux11*)
14130         if test $with_gnu_ld = no; then
14131           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14132           hardcode_libdir_separator_CXX=:
14133
14134           case $host_cpu in
14135             hppa*64*|ia64*)
14136               ;;
14137             *)
14138               export_dynamic_flag_spec_CXX='${wl}-E'
14139               ;;
14140           esac
14141         fi
14142         case $host_cpu in
14143           hppa*64*|ia64*)
14144             hardcode_direct_CXX=no
14145             hardcode_shlibpath_var_CXX=no
14146             ;;
14147           *)
14148             hardcode_direct_CXX=yes
14149             hardcode_direct_absolute_CXX=yes
14150             hardcode_minus_L_CXX=yes # Not in the search PATH,
14151                                                  # but as the default
14152                                                  # location of the library.
14153             ;;
14154         esac
14155
14156         case $cc_basename in
14157           CC*)
14158             # FIXME: insert proper C++ library support
14159             ld_shlibs_CXX=no
14160             ;;
14161           aCC*)
14162             case $host_cpu in
14163               hppa*64*)
14164                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14165                 ;;
14166               ia64*)
14167                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14168                 ;;
14169               *)
14170                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14171                 ;;
14172             esac
14173             # Commands to make compiler produce verbose output that lists
14174             # what "hidden" libraries, object files and flags are used when
14175             # linking a shared library.
14176             #
14177             # There doesn't appear to be a way to prevent this compiler from
14178             # explicitly linking system object files so we need to strip them
14179             # from the output so that they don't get included in the library
14180             # dependencies.
14181             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 "X$list" | $Xsed'
14182             ;;
14183           *)
14184             if test "$GXX" = yes; then
14185               if test $with_gnu_ld = no; then
14186                 case $host_cpu in
14187                   hppa*64*)
14188                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14189                     ;;
14190                   ia64*)
14191                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14192                     ;;
14193                   *)
14194                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14195                     ;;
14196                 esac
14197               fi
14198             else
14199               # FIXME: insert proper C++ library support
14200               ld_shlibs_CXX=no
14201             fi
14202             ;;
14203         esac
14204         ;;
14205
14206       interix[3-9]*)
14207         hardcode_direct_CXX=no
14208         hardcode_shlibpath_var_CXX=no
14209         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14210         export_dynamic_flag_spec_CXX='${wl}-E'
14211         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14212         # Instead, shared libraries are loaded at an image base (0x10000000 by
14213         # default) and relocated if they conflict, which is a slow very memory
14214         # consuming and fragmenting process.  To avoid this, we pick a random,
14215         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14216         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14217         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14218         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14219         ;;
14220       irix5* | irix6*)
14221         case $cc_basename in
14222           CC*)
14223             # SGI C++
14224             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14225
14226             # Archives containing C++ object files must be created using
14227             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14228             # necessary to make sure instantiated templates are included
14229             # in the archive.
14230             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14231             ;;
14232           *)
14233             if test "$GXX" = yes; then
14234               if test "$with_gnu_ld" = no; then
14235                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14236               else
14237                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14238               fi
14239             fi
14240             link_all_deplibs_CXX=yes
14241             ;;
14242         esac
14243         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14244         hardcode_libdir_separator_CXX=:
14245         inherit_rpath_CXX=yes
14246         ;;
14247
14248       linux* | k*bsd*-gnu)
14249         case $cc_basename in
14250           KCC*)
14251             # Kuck and Associates, Inc. (KAI) C++ Compiler
14252
14253             # KCC will only create a shared library if the output file
14254             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14255             # to its proper name (with version) after linking.
14256             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14257             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14258             # Commands to make compiler produce verbose output that lists
14259             # what "hidden" libraries, object files and flags are used when
14260             # linking a shared library.
14261             #
14262             # There doesn't appear to be a way to prevent this compiler from
14263             # explicitly linking system object files so we need to strip them
14264             # from the output so that they don't get included in the library
14265             # dependencies.
14266             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 "X$list" | $Xsed'
14267
14268             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14269             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14270
14271             # Archives containing C++ object files must be created using
14272             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14273             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14274             ;;
14275           icpc* | ecpc* )
14276             # Intel C++
14277             with_gnu_ld=yes
14278             # version 8.0 and above of icpc choke on multiply defined symbols
14279             # if we add $predep_objects and $postdep_objects, however 7.1 and
14280             # earlier do not add the objects themselves.
14281             case `$CC -V 2>&1` in
14282               *"Version 7."*)
14283                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14284                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14285                 ;;
14286               *)  # Version 8.0 or newer
14287                 tmp_idyn=
14288                 case $host_cpu in
14289                   ia64*) tmp_idyn=' -i_dynamic';;
14290                 esac
14291                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14292                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14293                 ;;
14294             esac
14295             archive_cmds_need_lc_CXX=no
14296             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14297             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14298             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14299             ;;
14300           pgCC* | pgcpp*)
14301             # Portland Group C++ compiler
14302             case `$CC -V` in
14303             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14304               prelink_cmds_CXX='tpldir=Template.dir~
14305                 rm -rf $tpldir~
14306                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14307                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14308               old_archive_cmds_CXX='tpldir=Template.dir~
14309                 rm -rf $tpldir~
14310                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14311                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14312                 $RANLIB $oldlib'
14313               archive_cmds_CXX='tpldir=Template.dir~
14314                 rm -rf $tpldir~
14315                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14316                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14317               archive_expsym_cmds_CXX='tpldir=Template.dir~
14318                 rm -rf $tpldir~
14319                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14320                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14321               ;;
14322             *) # Version 6 will use weak symbols
14323               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14324               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14325               ;;
14326             esac
14327
14328             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14329             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14330             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14331             ;;
14332           cxx*)
14333             # Compaq C++
14334             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14336
14337             runpath_var=LD_RUN_PATH
14338             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14339             hardcode_libdir_separator_CXX=:
14340
14341             # Commands to make compiler produce verbose output that lists
14342             # what "hidden" libraries, object files and flags are used when
14343             # linking a shared library.
14344             #
14345             # There doesn't appear to be a way to prevent this compiler from
14346             # explicitly linking system object files so we need to strip them
14347             # from the output so that they don't get included in the library
14348             # dependencies.
14349             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14350             ;;
14351           xl*)
14352             # IBM XL 8.0 on PPC, with GNU ld
14353             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14354             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14355             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356             if test "x$supports_anon_versioning" = xyes; then
14357               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14358                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14359                 echo "local: *; };" >> $output_objdir/$libname.ver~
14360                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14361             fi
14362             ;;
14363           *)
14364             case `$CC -V 2>&1 | sed 5q` in
14365             *Sun\ C*)
14366               # Sun C++ 5.9
14367               no_undefined_flag_CXX=' -zdefs'
14368               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14369               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14370               hardcode_libdir_flag_spec_CXX='-R$libdir'
14371               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14372               compiler_needs_object_CXX=yes
14373
14374               # Not sure whether something based on
14375               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14376               # would be better.
14377               output_verbose_link_cmd='echo'
14378
14379               # Archives containing C++ object files must be created using
14380               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14381               # necessary to make sure instantiated templates are included
14382               # in the archive.
14383               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14384               ;;
14385             esac
14386             ;;
14387         esac
14388         ;;
14389
14390       lynxos*)
14391         # FIXME: insert proper C++ library support
14392         ld_shlibs_CXX=no
14393         ;;
14394
14395       m88k*)
14396         # FIXME: insert proper C++ library support
14397         ld_shlibs_CXX=no
14398         ;;
14399
14400       mvs*)
14401         case $cc_basename in
14402           cxx*)
14403             # FIXME: insert proper C++ library support
14404             ld_shlibs_CXX=no
14405             ;;
14406           *)
14407             # FIXME: insert proper C++ library support
14408             ld_shlibs_CXX=no
14409             ;;
14410         esac
14411         ;;
14412
14413       netbsd*)
14414         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14415           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14416           wlarc=
14417           hardcode_libdir_flag_spec_CXX='-R$libdir'
14418           hardcode_direct_CXX=yes
14419           hardcode_shlibpath_var_CXX=no
14420         fi
14421         # Workaround some broken pre-1.5 toolchains
14422         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14423         ;;
14424
14425       *nto* | *qnx*)
14426         ld_shlibs_CXX=yes
14427         ;;
14428
14429       openbsd2*)
14430         # C++ shared libraries are fairly broken
14431         ld_shlibs_CXX=no
14432         ;;
14433
14434       openbsd*)
14435         if test -f /usr/libexec/ld.so; then
14436           hardcode_direct_CXX=yes
14437           hardcode_shlibpath_var_CXX=no
14438           hardcode_direct_absolute_CXX=yes
14439           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14440           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14441           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14442             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14443             export_dynamic_flag_spec_CXX='${wl}-E'
14444             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14445           fi
14446           output_verbose_link_cmd=echo
14447         else
14448           ld_shlibs_CXX=no
14449         fi
14450         ;;
14451
14452       osf3* | osf4* | osf5*)
14453         case $cc_basename in
14454           KCC*)
14455             # Kuck and Associates, Inc. (KAI) C++ Compiler
14456
14457             # KCC will only create a shared library if the output file
14458             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14459             # to its proper name (with version) after linking.
14460             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14461
14462             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14463             hardcode_libdir_separator_CXX=:
14464
14465             # Archives containing C++ object files must be created using
14466             # the KAI C++ compiler.
14467             case $host in
14468               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14469               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14470             esac
14471             ;;
14472           RCC*)
14473             # Rational C++ 2.4.1
14474             # FIXME: insert proper C++ library support
14475             ld_shlibs_CXX=no
14476             ;;
14477           cxx*)
14478             case $host in
14479               osf3*)
14480                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14481                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14482                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14483                 ;;
14484               *)
14485                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14486                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14487                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14488                   echo "-hidden">> $lib.exp~
14489                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14490                   $RM $lib.exp'
14491                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14492                 ;;
14493             esac
14494
14495             hardcode_libdir_separator_CXX=:
14496
14497             # Commands to make compiler produce verbose output that lists
14498             # what "hidden" libraries, object files and flags are used when
14499             # linking a shared library.
14500             #
14501             # There doesn't appear to be a way to prevent this compiler from
14502             # explicitly linking system object files so we need to strip them
14503             # from the output so that they don't get included in the library
14504             # dependencies.
14505             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
14506             ;;
14507           *)
14508             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14509               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14510               case $host in
14511                 osf3*)
14512                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14513                   ;;
14514                 *)
14515                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14516                   ;;
14517               esac
14518
14519               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14520               hardcode_libdir_separator_CXX=:
14521
14522               # Commands to make compiler produce verbose output that lists
14523               # what "hidden" libraries, object files and flags are used when
14524               # linking a shared library.
14525               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14526
14527             else
14528               # FIXME: insert proper C++ library support
14529               ld_shlibs_CXX=no
14530             fi
14531             ;;
14532         esac
14533         ;;
14534
14535       psos*)
14536         # FIXME: insert proper C++ library support
14537         ld_shlibs_CXX=no
14538         ;;
14539
14540       sunos4*)
14541         case $cc_basename in
14542           CC*)
14543             # Sun C++ 4.x
14544             # FIXME: insert proper C++ library support
14545             ld_shlibs_CXX=no
14546             ;;
14547           lcc*)
14548             # Lucid
14549             # FIXME: insert proper C++ library support
14550             ld_shlibs_CXX=no
14551             ;;
14552           *)
14553             # FIXME: insert proper C++ library support
14554             ld_shlibs_CXX=no
14555             ;;
14556         esac
14557         ;;
14558
14559       solaris*)
14560         case $cc_basename in
14561           CC*)
14562             # Sun C++ 4.2, 5.x and Centerline C++
14563             archive_cmds_need_lc_CXX=yes
14564             no_undefined_flag_CXX=' -zdefs'
14565             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14566             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14567               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14568
14569             hardcode_libdir_flag_spec_CXX='-R$libdir'
14570             hardcode_shlibpath_var_CXX=no
14571             case $host_os in
14572               solaris2.[0-5] | solaris2.[0-5].*) ;;
14573               *)
14574                 # The compiler driver will combine and reorder linker options,
14575                 # but understands `-z linker_flag'.
14576                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14577                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14578                 ;;
14579             esac
14580             link_all_deplibs_CXX=yes
14581
14582             output_verbose_link_cmd='echo'
14583
14584             # Archives containing C++ object files must be created using
14585             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14586             # necessary to make sure instantiated templates are included
14587             # in the archive.
14588             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14589             ;;
14590           gcx*)
14591             # Green Hills C++ Compiler
14592             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14593
14594             # The C++ compiler must be used to create the archive.
14595             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14596             ;;
14597           *)
14598             # GNU C++ compiler with Solaris linker
14599             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14600               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14601               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14602                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14603                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14604                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14605
14606                 # Commands to make compiler produce verbose output that lists
14607                 # what "hidden" libraries, object files and flags are used when
14608                 # linking a shared library.
14609                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14610               else
14611                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14612                 # platform.
14613                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14614                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14615                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14616
14617                 # Commands to make compiler produce verbose output that lists
14618                 # what "hidden" libraries, object files and flags are used when
14619                 # linking a shared library.
14620                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14621               fi
14622
14623               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14624               case $host_os in
14625                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14626                 *)
14627                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14628                   ;;
14629               esac
14630             fi
14631             ;;
14632         esac
14633         ;;
14634
14635     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14636       no_undefined_flag_CXX='${wl}-z,text'
14637       archive_cmds_need_lc_CXX=no
14638       hardcode_shlibpath_var_CXX=no
14639       runpath_var='LD_RUN_PATH'
14640
14641       case $cc_basename in
14642         CC*)
14643           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14644           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14645           ;;
14646         *)
14647           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14648           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14649           ;;
14650       esac
14651       ;;
14652
14653       sysv5* | sco3.2v5* | sco5v6*)
14654         # Note: We can NOT use -z defs as we might desire, because we do not
14655         # link with -lc, and that would cause any symbols used from libc to
14656         # always be unresolved, which means just about no library would
14657         # ever link correctly.  If we're not using GNU ld we use -z text
14658         # though, which does catch some bad symbols but isn't as heavy-handed
14659         # as -z defs.
14660         no_undefined_flag_CXX='${wl}-z,text'
14661         allow_undefined_flag_CXX='${wl}-z,nodefs'
14662         archive_cmds_need_lc_CXX=no
14663         hardcode_shlibpath_var_CXX=no
14664         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14665         hardcode_libdir_separator_CXX=':'
14666         link_all_deplibs_CXX=yes
14667         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14668         runpath_var='LD_RUN_PATH'
14669
14670         case $cc_basename in
14671           CC*)
14672             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14673             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14674             ;;
14675           *)
14676             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14677             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14678             ;;
14679         esac
14680       ;;
14681
14682       tandem*)
14683         case $cc_basename in
14684           NCC*)
14685             # NonStop-UX NCC 3.20
14686             # FIXME: insert proper C++ library support
14687             ld_shlibs_CXX=no
14688             ;;
14689           *)
14690             # FIXME: insert proper C++ library support
14691             ld_shlibs_CXX=no
14692             ;;
14693         esac
14694         ;;
14695
14696       vxworks*)
14697         # FIXME: insert proper C++ library support
14698         ld_shlibs_CXX=no
14699         ;;
14700
14701       *)
14702         # FIXME: insert proper C++ library support
14703         ld_shlibs_CXX=no
14704         ;;
14705     esac
14706
14707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14708 $as_echo "$ld_shlibs_CXX" >&6; }
14709     test "$ld_shlibs_CXX" = no && can_build_shared=no
14710
14711     GCC_CXX="$GXX"
14712     LD_CXX="$LD"
14713
14714     ## CAVEAT EMPTOR:
14715     ## There is no encapsulation within the following macros, do not change
14716     ## the running order or otherwise move them around unless you know exactly
14717     ## what you are doing...
14718     # Dependencies to place before and after the object being linked:
14719 predep_objects_CXX=
14720 postdep_objects_CXX=
14721 predeps_CXX=
14722 postdeps_CXX=
14723 compiler_lib_search_path_CXX=
14724
14725 cat > conftest.$ac_ext <<_LT_EOF
14726 class Foo
14727 {
14728 public:
14729   Foo (void) { a = 0; }
14730 private:
14731   int a;
14732 };
14733 _LT_EOF
14734
14735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14736   (eval $ac_compile) 2>&5
14737   ac_status=$?
14738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739   test $ac_status = 0; }; then
14740   # Parse the compiler output and extract the necessary
14741   # objects, libraries and library flags.
14742
14743   # Sentinel used to keep track of whether or not we are before
14744   # the conftest object file.
14745   pre_test_object_deps_done=no
14746
14747   for p in `eval "$output_verbose_link_cmd"`; do
14748     case $p in
14749
14750     -L* | -R* | -l*)
14751        # Some compilers place space between "-{L,R}" and the path.
14752        # Remove the space.
14753        if test $p = "-L" ||
14754           test $p = "-R"; then
14755          prev=$p
14756          continue
14757        else
14758          prev=
14759        fi
14760
14761        if test "$pre_test_object_deps_done" = no; then
14762          case $p in
14763          -L* | -R*)
14764            # Internal compiler library paths should come after those
14765            # provided the user.  The postdeps already come after the
14766            # user supplied libs so there is no need to process them.
14767            if test -z "$compiler_lib_search_path_CXX"; then
14768              compiler_lib_search_path_CXX="${prev}${p}"
14769            else
14770              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14771            fi
14772            ;;
14773          # The "-l" case would never come before the object being
14774          # linked, so don't bother handling this case.
14775          esac
14776        else
14777          if test -z "$postdeps_CXX"; then
14778            postdeps_CXX="${prev}${p}"
14779          else
14780            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14781          fi
14782        fi
14783        ;;
14784
14785     *.$objext)
14786        # This assumes that the test object file only shows up
14787        # once in the compiler output.
14788        if test "$p" = "conftest.$objext"; then
14789          pre_test_object_deps_done=yes
14790          continue
14791        fi
14792
14793        if test "$pre_test_object_deps_done" = no; then
14794          if test -z "$predep_objects_CXX"; then
14795            predep_objects_CXX="$p"
14796          else
14797            predep_objects_CXX="$predep_objects_CXX $p"
14798          fi
14799        else
14800          if test -z "$postdep_objects_CXX"; then
14801            postdep_objects_CXX="$p"
14802          else
14803            postdep_objects_CXX="$postdep_objects_CXX $p"
14804          fi
14805        fi
14806        ;;
14807
14808     *) ;; # Ignore the rest.
14809
14810     esac
14811   done
14812
14813   # Clean up.
14814   rm -f a.out a.exe
14815 else
14816   echo "libtool.m4: error: problem compiling CXX test program"
14817 fi
14818
14819 $RM -f confest.$objext
14820
14821 # PORTME: override above test on systems where it is broken
14822 case $host_os in
14823 interix[3-9]*)
14824   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14825   # hack all around it, let's just trust "g++" to DTRT.
14826   predep_objects_CXX=
14827   postdep_objects_CXX=
14828   postdeps_CXX=
14829   ;;
14830
14831 linux*)
14832   case `$CC -V 2>&1 | sed 5q` in
14833   *Sun\ C*)
14834     # Sun C++ 5.9
14835
14836     # The more standards-conforming stlport4 library is
14837     # incompatible with the Cstd library. Avoid specifying
14838     # it if it's in CXXFLAGS. Ignore libCrun as
14839     # -library=stlport4 depends on it.
14840     case " $CXX $CXXFLAGS " in
14841     *" -library=stlport4 "*)
14842       solaris_use_stlport4=yes
14843       ;;
14844     esac
14845
14846     if test "$solaris_use_stlport4" != yes; then
14847       postdeps_CXX='-library=Cstd -library=Crun'
14848     fi
14849     ;;
14850   esac
14851   ;;
14852
14853 solaris*)
14854   case $cc_basename in
14855   CC*)
14856     # The more standards-conforming stlport4 library is
14857     # incompatible with the Cstd library. Avoid specifying
14858     # it if it's in CXXFLAGS. Ignore libCrun as
14859     # -library=stlport4 depends on it.
14860     case " $CXX $CXXFLAGS " in
14861     *" -library=stlport4 "*)
14862       solaris_use_stlport4=yes
14863       ;;
14864     esac
14865
14866     # Adding this requires a known-good setup of shared libraries for
14867     # Sun compiler versions before 5.6, else PIC objects from an old
14868     # archive will be linked into the output, leading to subtle bugs.
14869     if test "$solaris_use_stlport4" != yes; then
14870       postdeps_CXX='-library=Cstd -library=Crun'
14871     fi
14872     ;;
14873   esac
14874   ;;
14875 esac
14876
14877
14878 case " $postdeps_CXX " in
14879 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14880 esac
14881  compiler_lib_search_dirs_CXX=
14882 if test -n "${compiler_lib_search_path_CXX}"; then
14883  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14884 fi
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916     lt_prog_compiler_wl_CXX=
14917 lt_prog_compiler_pic_CXX=
14918 lt_prog_compiler_static_CXX=
14919
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14921 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14922
14923   # C++ specific cases for pic, static, wl, etc.
14924   if test "$GXX" = yes; then
14925     lt_prog_compiler_wl_CXX='-Wl,'
14926     lt_prog_compiler_static_CXX='-static'
14927
14928     case $host_os in
14929     aix*)
14930       # All AIX code is PIC.
14931       if test "$host_cpu" = ia64; then
14932         # AIX 5 now supports IA64 processor
14933         lt_prog_compiler_static_CXX='-Bstatic'
14934       fi
14935       ;;
14936
14937     amigaos*)
14938       case $host_cpu in
14939       powerpc)
14940             # see comment about AmigaOS4 .so support
14941             lt_prog_compiler_pic_CXX='-fPIC'
14942         ;;
14943       m68k)
14944             # FIXME: we need at least 68020 code to build shared libraries, but
14945             # adding the `-m68020' flag to GCC prevents building anything better,
14946             # like `-m68040'.
14947             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14948         ;;
14949       esac
14950       ;;
14951
14952     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14953       # PIC is the default for these OSes.
14954       ;;
14955     mingw* | cygwin* | os2* | pw32* | cegcc*)
14956       # This hack is so that the source file can tell whether it is being
14957       # built for inclusion in a dll (and should export symbols for example).
14958       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14959       # (--disable-auto-import) libraries
14960       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14961       ;;
14962     darwin* | rhapsody*)
14963       # PIC is the default on this platform
14964       # Common symbols not allowed in MH_DYLIB files
14965       lt_prog_compiler_pic_CXX='-fno-common'
14966       ;;
14967     *djgpp*)
14968       # DJGPP does not support shared libraries at all
14969       lt_prog_compiler_pic_CXX=
14970       ;;
14971     interix[3-9]*)
14972       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14973       # Instead, we relocate shared libraries at runtime.
14974       ;;
14975     sysv4*MP*)
14976       if test -d /usr/nec; then
14977         lt_prog_compiler_pic_CXX=-Kconform_pic
14978       fi
14979       ;;
14980     hpux*)
14981       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14982       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14983       # sets the default TLS model and affects inlining.
14984       case $host_cpu in
14985       hppa*64*)
14986         ;;
14987       *)
14988         lt_prog_compiler_pic_CXX='-fPIC'
14989         ;;
14990       esac
14991       ;;
14992     *qnx* | *nto*)
14993       # QNX uses GNU C++, but need to define -shared option too, otherwise
14994       # it will coredump.
14995       lt_prog_compiler_pic_CXX='-fPIC -shared'
14996       ;;
14997     *)
14998       lt_prog_compiler_pic_CXX='-fPIC'
14999       ;;
15000     esac
15001   else
15002     case $host_os in
15003       aix[4-9]*)
15004         # All AIX code is PIC.
15005         if test "$host_cpu" = ia64; then
15006           # AIX 5 now supports IA64 processor
15007           lt_prog_compiler_static_CXX='-Bstatic'
15008         else
15009           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15010         fi
15011         ;;
15012       chorus*)
15013         case $cc_basename in
15014         cxch68*)
15015           # Green Hills C++ Compiler
15016           # _LT_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"
15017           ;;
15018         esac
15019         ;;
15020       dgux*)
15021         case $cc_basename in
15022           ec++*)
15023             lt_prog_compiler_pic_CXX='-KPIC'
15024             ;;
15025           ghcx*)
15026             # Green Hills C++ Compiler
15027             lt_prog_compiler_pic_CXX='-pic'
15028             ;;
15029           *)
15030             ;;
15031         esac
15032         ;;
15033       freebsd* | dragonfly*)
15034         # FreeBSD uses GNU C++
15035         ;;
15036       hpux9* | hpux10* | hpux11*)
15037         case $cc_basename in
15038           CC*)
15039             lt_prog_compiler_wl_CXX='-Wl,'
15040             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15041             if test "$host_cpu" != ia64; then
15042               lt_prog_compiler_pic_CXX='+Z'
15043             fi
15044             ;;
15045           aCC*)
15046             lt_prog_compiler_wl_CXX='-Wl,'
15047             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15048             case $host_cpu in
15049             hppa*64*|ia64*)
15050               # +Z the default
15051               ;;
15052             *)
15053               lt_prog_compiler_pic_CXX='+Z'
15054               ;;
15055             esac
15056             ;;
15057           *)
15058             ;;
15059         esac
15060         ;;
15061       interix*)
15062         # This is c89, which is MS Visual C++ (no shared libs)
15063         # Anyone wants to do a port?
15064         ;;
15065       irix5* | irix6* | nonstopux*)
15066         case $cc_basename in
15067           CC*)
15068             lt_prog_compiler_wl_CXX='-Wl,'
15069             lt_prog_compiler_static_CXX='-non_shared'
15070             # CC pic flag -KPIC is the default.
15071             ;;
15072           *)
15073             ;;
15074         esac
15075         ;;
15076       linux* | k*bsd*-gnu)
15077         case $cc_basename in
15078           KCC*)
15079             # KAI C++ Compiler
15080             lt_prog_compiler_wl_CXX='--backend -Wl,'
15081             lt_prog_compiler_pic_CXX='-fPIC'
15082             ;;
15083           ecpc* )
15084             # old Intel C++ for x86_64 which still supported -KPIC.
15085             lt_prog_compiler_wl_CXX='-Wl,'
15086             lt_prog_compiler_pic_CXX='-KPIC'
15087             lt_prog_compiler_static_CXX='-static'
15088             ;;
15089           icpc* )
15090             # Intel C++, used to be incompatible with GCC.
15091             # ICC 10 doesn't accept -KPIC any more.
15092             lt_prog_compiler_wl_CXX='-Wl,'
15093             lt_prog_compiler_pic_CXX='-fPIC'
15094             lt_prog_compiler_static_CXX='-static'
15095             ;;
15096           pgCC* | pgcpp*)
15097             # Portland Group C++ compiler
15098             lt_prog_compiler_wl_CXX='-Wl,'
15099             lt_prog_compiler_pic_CXX='-fpic'
15100             lt_prog_compiler_static_CXX='-Bstatic'
15101             ;;
15102           cxx*)
15103             # Compaq C++
15104             # Make sure the PIC flag is empty.  It appears that all Alpha
15105             # Linux and Compaq Tru64 Unix objects are PIC.
15106             lt_prog_compiler_pic_CXX=
15107             lt_prog_compiler_static_CXX='-non_shared'
15108             ;;
15109           xlc* | xlC*)
15110             # IBM XL 8.0 on PPC
15111             lt_prog_compiler_wl_CXX='-Wl,'
15112             lt_prog_compiler_pic_CXX='-qpic'
15113             lt_prog_compiler_static_CXX='-qstaticlink'
15114             ;;
15115           *)
15116             case `$CC -V 2>&1 | sed 5q` in
15117             *Sun\ C*)
15118               # Sun C++ 5.9
15119               lt_prog_compiler_pic_CXX='-KPIC'
15120               lt_prog_compiler_static_CXX='-Bstatic'
15121               lt_prog_compiler_wl_CXX='-Qoption ld '
15122               ;;
15123             esac
15124             ;;
15125         esac
15126         ;;
15127       lynxos*)
15128         ;;
15129       m88k*)
15130         ;;
15131       mvs*)
15132         case $cc_basename in
15133           cxx*)
15134             lt_prog_compiler_pic_CXX='-W c,exportall'
15135             ;;
15136           *)
15137             ;;
15138         esac
15139         ;;
15140       netbsd* | netbsdelf*-gnu)
15141         ;;
15142       *qnx* | *nto*)
15143         # QNX uses GNU C++, but need to define -shared option too, otherwise
15144         # it will coredump.
15145         lt_prog_compiler_pic_CXX='-fPIC -shared'
15146         ;;
15147       osf3* | osf4* | osf5*)
15148         case $cc_basename in
15149           KCC*)
15150             lt_prog_compiler_wl_CXX='--backend -Wl,'
15151             ;;
15152           RCC*)
15153             # Rational C++ 2.4.1
15154             lt_prog_compiler_pic_CXX='-pic'
15155             ;;
15156           cxx*)
15157             # Digital/Compaq C++
15158             lt_prog_compiler_wl_CXX='-Wl,'
15159             # Make sure the PIC flag is empty.  It appears that all Alpha
15160             # Linux and Compaq Tru64 Unix objects are PIC.
15161             lt_prog_compiler_pic_CXX=
15162             lt_prog_compiler_static_CXX='-non_shared'
15163             ;;
15164           *)
15165             ;;
15166         esac
15167         ;;
15168       psos*)
15169         ;;
15170       solaris*)
15171         case $cc_basename in
15172           CC*)
15173             # Sun C++ 4.2, 5.x and Centerline C++
15174             lt_prog_compiler_pic_CXX='-KPIC'
15175             lt_prog_compiler_static_CXX='-Bstatic'
15176             lt_prog_compiler_wl_CXX='-Qoption ld '
15177             ;;
15178           gcx*)
15179             # Green Hills C++ Compiler
15180             lt_prog_compiler_pic_CXX='-PIC'
15181             ;;
15182           *)
15183             ;;
15184         esac
15185         ;;
15186       sunos4*)
15187         case $cc_basename in
15188           CC*)
15189             # Sun C++ 4.x
15190             lt_prog_compiler_pic_CXX='-pic'
15191             lt_prog_compiler_static_CXX='-Bstatic'
15192             ;;
15193           lcc*)
15194             # Lucid
15195             lt_prog_compiler_pic_CXX='-pic'
15196             ;;
15197           *)
15198             ;;
15199         esac
15200         ;;
15201       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15202         case $cc_basename in
15203           CC*)
15204             lt_prog_compiler_wl_CXX='-Wl,'
15205             lt_prog_compiler_pic_CXX='-KPIC'
15206             lt_prog_compiler_static_CXX='-Bstatic'
15207             ;;
15208         esac
15209         ;;
15210       tandem*)
15211         case $cc_basename in
15212           NCC*)
15213             # NonStop-UX NCC 3.20
15214             lt_prog_compiler_pic_CXX='-KPIC'
15215             ;;
15216           *)
15217             ;;
15218         esac
15219         ;;
15220       vxworks*)
15221         ;;
15222       *)
15223         lt_prog_compiler_can_build_shared_CXX=no
15224         ;;
15225     esac
15226   fi
15227
15228 case $host_os in
15229   # For platforms which do not support PIC, -DPIC is meaningless:
15230   *djgpp*)
15231     lt_prog_compiler_pic_CXX=
15232     ;;
15233   *)
15234     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15235     ;;
15236 esac
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15238 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15239
15240
15241
15242 #
15243 # Check to make sure the PIC flag actually works.
15244 #
15245 if test -n "$lt_prog_compiler_pic_CXX"; then
15246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15247 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15248 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15249   $as_echo_n "(cached) " >&6
15250 else
15251   lt_cv_prog_compiler_pic_works_CXX=no
15252    ac_outfile=conftest.$ac_objext
15253    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15254    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15255    # Insert the option either (1) after the last *FLAGS variable, or
15256    # (2) before a word containing "conftest.", or (3) at the end.
15257    # Note that $ac_compile itself does not contain backslashes and begins
15258    # with a dollar sign (not a hyphen), so the echo should work correctly.
15259    # The option is referenced via a variable to avoid confusing sed.
15260    lt_compile=`echo "$ac_compile" | $SED \
15261    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15262    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15263    -e 's:$: $lt_compiler_flag:'`
15264    (eval echo "\"\$as_me:15264: $lt_compile\"" >&5)
15265    (eval "$lt_compile" 2>conftest.err)
15266    ac_status=$?
15267    cat conftest.err >&5
15268    echo "$as_me:15268: \$? = $ac_status" >&5
15269    if (exit $ac_status) && test -s "$ac_outfile"; then
15270      # The compiler can only warn and ignore the option if not recognized
15271      # So say no if there are warnings other than the usual output.
15272      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15273      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15274      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15275        lt_cv_prog_compiler_pic_works_CXX=yes
15276      fi
15277    fi
15278    $RM conftest*
15279
15280 fi
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15282 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15283
15284 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15285     case $lt_prog_compiler_pic_CXX in
15286      "" | " "*) ;;
15287      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15288      esac
15289 else
15290     lt_prog_compiler_pic_CXX=
15291      lt_prog_compiler_can_build_shared_CXX=no
15292 fi
15293
15294 fi
15295
15296
15297
15298 #
15299 # Check to make sure the static flag actually works.
15300 #
15301 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15303 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15304 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15305   $as_echo_n "(cached) " >&6
15306 else
15307   lt_cv_prog_compiler_static_works_CXX=no
15308    save_LDFLAGS="$LDFLAGS"
15309    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15310    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15311    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15312      # The linker can only warn and ignore the option if not recognized
15313      # So say no if there are warnings
15314      if test -s conftest.err; then
15315        # Append any errors to the config.log.
15316        cat conftest.err 1>&5
15317        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15318        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15319        if diff conftest.exp conftest.er2 >/dev/null; then
15320          lt_cv_prog_compiler_static_works_CXX=yes
15321        fi
15322      else
15323        lt_cv_prog_compiler_static_works_CXX=yes
15324      fi
15325    fi
15326    $RM -r conftest*
15327    LDFLAGS="$save_LDFLAGS"
15328
15329 fi
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15331 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15332
15333 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15334     :
15335 else
15336     lt_prog_compiler_static_CXX=
15337 fi
15338
15339
15340
15341
15342     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15343 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15344 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15345   $as_echo_n "(cached) " >&6
15346 else
15347   lt_cv_prog_compiler_c_o_CXX=no
15348    $RM -r conftest 2>/dev/null
15349    mkdir conftest
15350    cd conftest
15351    mkdir out
15352    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15353
15354    lt_compiler_flag="-o out/conftest2.$ac_objext"
15355    # Insert the option either (1) after the last *FLAGS variable, or
15356    # (2) before a word containing "conftest.", or (3) at the end.
15357    # Note that $ac_compile itself does not contain backslashes and begins
15358    # with a dollar sign (not a hyphen), so the echo should work correctly.
15359    lt_compile=`echo "$ac_compile" | $SED \
15360    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15361    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15362    -e 's:$: $lt_compiler_flag:'`
15363    (eval echo "\"\$as_me:15363: $lt_compile\"" >&5)
15364    (eval "$lt_compile" 2>out/conftest.err)
15365    ac_status=$?
15366    cat out/conftest.err >&5
15367    echo "$as_me:15367: \$? = $ac_status" >&5
15368    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15369    then
15370      # The compiler can only warn and ignore the option if not recognized
15371      # So say no if there are warnings
15372      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15373      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15374      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15375        lt_cv_prog_compiler_c_o_CXX=yes
15376      fi
15377    fi
15378    chmod u+w . 2>&5
15379    $RM conftest*
15380    # SGI C++ compiler will create directory out/ii_files/ for
15381    # template instantiation
15382    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15383    $RM out/* && rmdir out
15384    cd ..
15385    $RM -r conftest
15386    $RM conftest*
15387
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15390 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15391
15392
15393
15394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15395 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15396 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15397   $as_echo_n "(cached) " >&6
15398 else
15399   lt_cv_prog_compiler_c_o_CXX=no
15400    $RM -r conftest 2>/dev/null
15401    mkdir conftest
15402    cd conftest
15403    mkdir out
15404    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15405
15406    lt_compiler_flag="-o out/conftest2.$ac_objext"
15407    # Insert the option either (1) after the last *FLAGS variable, or
15408    # (2) before a word containing "conftest.", or (3) at the end.
15409    # Note that $ac_compile itself does not contain backslashes and begins
15410    # with a dollar sign (not a hyphen), so the echo should work correctly.
15411    lt_compile=`echo "$ac_compile" | $SED \
15412    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15413    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15414    -e 's:$: $lt_compiler_flag:'`
15415    (eval echo "\"\$as_me:15415: $lt_compile\"" >&5)
15416    (eval "$lt_compile" 2>out/conftest.err)
15417    ac_status=$?
15418    cat out/conftest.err >&5
15419    echo "$as_me:15419: \$? = $ac_status" >&5
15420    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15421    then
15422      # The compiler can only warn and ignore the option if not recognized
15423      # So say no if there are warnings
15424      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15425      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15426      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15427        lt_cv_prog_compiler_c_o_CXX=yes
15428      fi
15429    fi
15430    chmod u+w . 2>&5
15431    $RM conftest*
15432    # SGI C++ compiler will create directory out/ii_files/ for
15433    # template instantiation
15434    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15435    $RM out/* && rmdir out
15436    cd ..
15437    $RM -r conftest
15438    $RM conftest*
15439
15440 fi
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15442 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15443
15444
15445
15446
15447 hard_links="nottested"
15448 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15449   # do not overwrite the value of need_locks provided by the user
15450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15451 $as_echo_n "checking if we can lock with hard links... " >&6; }
15452   hard_links=yes
15453   $RM conftest*
15454   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15455   touch conftest.a
15456   ln conftest.a conftest.b 2>&5 || hard_links=no
15457   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15459 $as_echo "$hard_links" >&6; }
15460   if test "$hard_links" = no; then
15461     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15462 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15463     need_locks=warn
15464   fi
15465 else
15466   need_locks=no
15467 fi
15468
15469
15470
15471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15472 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15473
15474   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15475   case $host_os in
15476   aix[4-9]*)
15477     # If we're using GNU nm, then we don't want the "-C" option.
15478     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15479     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15480       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'
15481     else
15482       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'
15483     fi
15484     ;;
15485   pw32*)
15486     export_symbols_cmds_CXX="$ltdll_cmds"
15487   ;;
15488   cygwin* | mingw* | cegcc*)
15489     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15490   ;;
15491   linux* | k*bsd*-gnu)
15492     link_all_deplibs_CXX=no
15493   ;;
15494   *)
15495     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15496   ;;
15497   esac
15498   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15499
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15501 $as_echo "$ld_shlibs_CXX" >&6; }
15502 test "$ld_shlibs_CXX" = no && can_build_shared=no
15503
15504 with_gnu_ld_CXX=$with_gnu_ld
15505
15506
15507
15508
15509
15510
15511 #
15512 # Do we need to explicitly link libc?
15513 #
15514 case "x$archive_cmds_need_lc_CXX" in
15515 x|xyes)
15516   # Assume -lc should be added
15517   archive_cmds_need_lc_CXX=yes
15518
15519   if test "$enable_shared" = yes && test "$GCC" = yes; then
15520     case $archive_cmds_CXX in
15521     *'~'*)
15522       # FIXME: we may have to deal with multi-command sequences.
15523       ;;
15524     '$CC '*)
15525       # Test whether the compiler implicitly links with -lc since on some
15526       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15527       # to ld, don't add -lc before -lgcc.
15528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15529 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15530       $RM conftest*
15531       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15532
15533       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15534   (eval $ac_compile) 2>&5
15535   ac_status=$?
15536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15537   test $ac_status = 0; } 2>conftest.err; then
15538         soname=conftest
15539         lib=conftest
15540         libobjs=conftest.$ac_objext
15541         deplibs=
15542         wl=$lt_prog_compiler_wl_CXX
15543         pic_flag=$lt_prog_compiler_pic_CXX
15544         compiler_flags=-v
15545         linker_flags=-v
15546         verstring=
15547         output_objdir=.
15548         libname=conftest
15549         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15550         allow_undefined_flag_CXX=
15551         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15552   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15553   ac_status=$?
15554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15555   test $ac_status = 0; }
15556         then
15557           archive_cmds_need_lc_CXX=no
15558         else
15559           archive_cmds_need_lc_CXX=yes
15560         fi
15561         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15562       else
15563         cat conftest.err 1>&5
15564       fi
15565       $RM conftest*
15566       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
15567 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
15568       ;;
15569     esac
15570   fi
15571   ;;
15572 esac
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15638 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15639
15640 library_names_spec=
15641 libname_spec='lib$name'
15642 soname_spec=
15643 shrext_cmds=".so"
15644 postinstall_cmds=
15645 postuninstall_cmds=
15646 finish_cmds=
15647 finish_eval=
15648 shlibpath_var=
15649 shlibpath_overrides_runpath=unknown
15650 version_type=none
15651 dynamic_linker="$host_os ld.so"
15652 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15653 need_lib_prefix=unknown
15654 hardcode_into_libs=no
15655
15656 # when you set need_version to no, make sure it does not cause -set_version
15657 # flags to be left without arguments
15658 need_version=unknown
15659
15660 case $host_os in
15661 aix3*)
15662   version_type=linux
15663   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15664   shlibpath_var=LIBPATH
15665
15666   # AIX 3 has no versioning support, so we append a major version to the name.
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   ;;
15669
15670 aix[4-9]*)
15671   version_type=linux
15672   need_lib_prefix=no
15673   need_version=no
15674   hardcode_into_libs=yes
15675   if test "$host_cpu" = ia64; then
15676     # AIX 5 supports IA64
15677     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15678     shlibpath_var=LD_LIBRARY_PATH
15679   else
15680     # With GCC up to 2.95.x, collect2 would create an import file
15681     # for dependence libraries.  The import file would start with
15682     # the line `#! .'.  This would cause the generated library to
15683     # depend on `.', always an invalid library.  This was fixed in
15684     # development snapshots of GCC prior to 3.0.
15685     case $host_os in
15686       aix4 | aix4.[01] | aix4.[01].*)
15687       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15688            echo ' yes '
15689            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15690         :
15691       else
15692         can_build_shared=no
15693       fi
15694       ;;
15695     esac
15696     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15697     # soname into executable. Probably we can add versioning support to
15698     # collect2, so additional links can be useful in future.
15699     if test "$aix_use_runtimelinking" = yes; then
15700       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15701       # instead of lib<name>.a to let people know that these are not
15702       # typical AIX shared libraries.
15703       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704     else
15705       # We preserve .a as extension for shared libraries through AIX4.2
15706       # and later when we are not doing run time linking.
15707       library_names_spec='${libname}${release}.a $libname.a'
15708       soname_spec='${libname}${release}${shared_ext}$major'
15709     fi
15710     shlibpath_var=LIBPATH
15711   fi
15712   ;;
15713
15714 amigaos*)
15715   case $host_cpu in
15716   powerpc)
15717     # Since July 2007 AmigaOS4 officially supports .so libraries.
15718     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15719     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15720     ;;
15721   m68k)
15722     library_names_spec='$libname.ixlibrary $libname.a'
15723     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15724     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'
15725     ;;
15726   esac
15727   ;;
15728
15729 beos*)
15730   library_names_spec='${libname}${shared_ext}'
15731   dynamic_linker="$host_os ld.so"
15732   shlibpath_var=LIBRARY_PATH
15733   ;;
15734
15735 bsdi[45]*)
15736   version_type=linux
15737   need_version=no
15738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739   soname_spec='${libname}${release}${shared_ext}$major'
15740   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15741   shlibpath_var=LD_LIBRARY_PATH
15742   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15743   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15744   # the default ld.so.conf also contains /usr/contrib/lib and
15745   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15746   # libtool to hard-code these into programs
15747   ;;
15748
15749 cygwin* | mingw* | pw32* | cegcc*)
15750   version_type=windows
15751   shrext_cmds=".dll"
15752   need_version=no
15753   need_lib_prefix=no
15754
15755   case $GCC,$host_os in
15756   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15757     library_names_spec='$libname.dll.a'
15758     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15759     postinstall_cmds='base_file=`basename \${file}`~
15760       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15761       dldir=$destdir/`dirname \$dlpath`~
15762       test -d \$dldir || mkdir -p \$dldir~
15763       $install_prog $dir/$dlname \$dldir/$dlname~
15764       chmod a+x \$dldir/$dlname~
15765       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15766         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15767       fi'
15768     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15769       dlpath=$dir/\$dldll~
15770        $RM \$dlpath'
15771     shlibpath_overrides_runpath=yes
15772
15773     case $host_os in
15774     cygwin*)
15775       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15776       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15777       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15778       ;;
15779     mingw* | cegcc*)
15780       # MinGW DLLs use traditional 'lib' prefix
15781       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15782       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15783       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15784         # It is most probably a Windows format PATH printed by
15785         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15786         # path with ; separators, and with drive letters. We can handle the
15787         # drive letters (cygwin fileutils understands them), so leave them,
15788         # especially as we might pass files found there to a mingw objdump,
15789         # which wouldn't understand a cygwinified path. Ahh.
15790         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15791       else
15792         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15793       fi
15794       ;;
15795     pw32*)
15796       # pw32 DLLs use 'pw' prefix rather than 'lib'
15797       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15798       ;;
15799     esac
15800     ;;
15801
15802   *)
15803     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15804     ;;
15805   esac
15806   dynamic_linker='Win32 ld.exe'
15807   # FIXME: first we should search . and the directory the executable is in
15808   shlibpath_var=PATH
15809   ;;
15810
15811 darwin* | rhapsody*)
15812   dynamic_linker="$host_os dyld"
15813   version_type=darwin
15814   need_lib_prefix=no
15815   need_version=no
15816   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15817   soname_spec='${libname}${release}${major}$shared_ext'
15818   shlibpath_overrides_runpath=yes
15819   shlibpath_var=DYLD_LIBRARY_PATH
15820   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15821
15822   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15823   ;;
15824
15825 dgux*)
15826   version_type=linux
15827   need_lib_prefix=no
15828   need_version=no
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15830   soname_spec='${libname}${release}${shared_ext}$major'
15831   shlibpath_var=LD_LIBRARY_PATH
15832   ;;
15833
15834 freebsd1*)
15835   dynamic_linker=no
15836   ;;
15837
15838 freebsd* | dragonfly*)
15839   # DragonFly does not have aout.  When/if they implement a new
15840   # versioning mechanism, adjust this.
15841   if test -x /usr/bin/objformat; then
15842     objformat=`/usr/bin/objformat`
15843   else
15844     case $host_os in
15845     freebsd[123]*) objformat=aout ;;
15846     *) objformat=elf ;;
15847     esac
15848   fi
15849   version_type=freebsd-$objformat
15850   case $version_type in
15851     freebsd-elf*)
15852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15853       need_version=no
15854       need_lib_prefix=no
15855       ;;
15856     freebsd-*)
15857       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15858       need_version=yes
15859       ;;
15860   esac
15861   shlibpath_var=LD_LIBRARY_PATH
15862   case $host_os in
15863   freebsd2*)
15864     shlibpath_overrides_runpath=yes
15865     ;;
15866   freebsd3.[01]* | freebsdelf3.[01]*)
15867     shlibpath_overrides_runpath=yes
15868     hardcode_into_libs=yes
15869     ;;
15870   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15871   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15872     shlibpath_overrides_runpath=no
15873     hardcode_into_libs=yes
15874     ;;
15875   *) # from 4.6 on, and DragonFly
15876     shlibpath_overrides_runpath=yes
15877     hardcode_into_libs=yes
15878     ;;
15879   esac
15880   ;;
15881
15882 gnu*)
15883   version_type=linux
15884   need_lib_prefix=no
15885   need_version=no
15886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15887   soname_spec='${libname}${release}${shared_ext}$major'
15888   shlibpath_var=LD_LIBRARY_PATH
15889   hardcode_into_libs=yes
15890   ;;
15891
15892 hpux9* | hpux10* | hpux11*)
15893   # Give a soname corresponding to the major version so that dld.sl refuses to
15894   # link against other versions.
15895   version_type=sunos
15896   need_lib_prefix=no
15897   need_version=no
15898   case $host_cpu in
15899   ia64*)
15900     shrext_cmds='.so'
15901     hardcode_into_libs=yes
15902     dynamic_linker="$host_os dld.so"
15903     shlibpath_var=LD_LIBRARY_PATH
15904     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15906     soname_spec='${libname}${release}${shared_ext}$major'
15907     if test "X$HPUX_IA64_MODE" = X32; then
15908       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15909     else
15910       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15911     fi
15912     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15913     ;;
15914   hppa*64*)
15915     shrext_cmds='.sl'
15916     hardcode_into_libs=yes
15917     dynamic_linker="$host_os dld.sl"
15918     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15919     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15920     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921     soname_spec='${libname}${release}${shared_ext}$major'
15922     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15923     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15924     ;;
15925   *)
15926     shrext_cmds='.sl'
15927     dynamic_linker="$host_os dld.sl"
15928     shlibpath_var=SHLIB_PATH
15929     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15930     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931     soname_spec='${libname}${release}${shared_ext}$major'
15932     ;;
15933   esac
15934   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15935   postinstall_cmds='chmod 555 $lib'
15936   ;;
15937
15938 interix[3-9]*)
15939   version_type=linux
15940   need_lib_prefix=no
15941   need_version=no
15942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943   soname_spec='${libname}${release}${shared_ext}$major'
15944   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15945   shlibpath_var=LD_LIBRARY_PATH
15946   shlibpath_overrides_runpath=no
15947   hardcode_into_libs=yes
15948   ;;
15949
15950 irix5* | irix6* | nonstopux*)
15951   case $host_os in
15952     nonstopux*) version_type=nonstopux ;;
15953     *)
15954         if test "$lt_cv_prog_gnu_ld" = yes; then
15955                 version_type=linux
15956         else
15957                 version_type=irix
15958         fi ;;
15959   esac
15960   need_lib_prefix=no
15961   need_version=no
15962   soname_spec='${libname}${release}${shared_ext}$major'
15963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15964   case $host_os in
15965   irix5* | nonstopux*)
15966     libsuff= shlibsuff=
15967     ;;
15968   *)
15969     case $LD in # libtool.m4 will add one of these switches to LD
15970     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15971       libsuff= shlibsuff= libmagic=32-bit;;
15972     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15973       libsuff=32 shlibsuff=N32 libmagic=N32;;
15974     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15975       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15976     *) libsuff= shlibsuff= libmagic=never-match;;
15977     esac
15978     ;;
15979   esac
15980   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15981   shlibpath_overrides_runpath=no
15982   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15983   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15984   hardcode_into_libs=yes
15985   ;;
15986
15987 # No shared lib support for Linux oldld, aout, or coff.
15988 linux*oldld* | linux*aout* | linux*coff*)
15989   dynamic_linker=no
15990   ;;
15991
15992 # This must be Linux ELF.
15993 linux* | k*bsd*-gnu)
15994   version_type=linux
15995   need_lib_prefix=no
15996   need_version=no
15997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998   soname_spec='${libname}${release}${shared_ext}$major'
15999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16000   shlibpath_var=LD_LIBRARY_PATH
16001   shlibpath_overrides_runpath=no
16002   # Some binutils ld are patched to set DT_RUNPATH
16003   save_LDFLAGS=$LDFLAGS
16004   save_libdir=$libdir
16005   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16006        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008 /* end confdefs.h.  */
16009
16010 int
16011 main ()
16012 {
16013
16014   ;
16015   return 0;
16016 }
16017 _ACEOF
16018 if ac_fn_cxx_try_link "$LINENO"; then :
16019   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16020   shlibpath_overrides_runpath=yes
16021 fi
16022 fi
16023 rm -f core conftest.err conftest.$ac_objext \
16024     conftest$ac_exeext conftest.$ac_ext
16025   LDFLAGS=$save_LDFLAGS
16026   libdir=$save_libdir
16027
16028   # This implies no fast_install, which is unacceptable.
16029   # Some rework will be needed to allow for fast_install
16030   # before this can be enabled.
16031   hardcode_into_libs=yes
16032
16033   # Append ld.so.conf contents to the search path
16034   if test -f /etc/ld.so.conf; then
16035     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16036     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16037   fi
16038
16039   # We used to test for /lib/ld.so.1 and disable shared libraries on
16040   # powerpc, because MkLinux only supported shared libraries with the
16041   # GNU dynamic linker.  Since this was broken with cross compilers,
16042   # most powerpc-linux boxes support dynamic linking these days and
16043   # people can always --disable-shared, the test was removed, and we
16044   # assume the GNU/Linux dynamic linker is in use.
16045   dynamic_linker='GNU/Linux ld.so'
16046   ;;
16047
16048 netbsdelf*-gnu)
16049   version_type=linux
16050   need_lib_prefix=no
16051   need_version=no
16052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16053   soname_spec='${libname}${release}${shared_ext}$major'
16054   shlibpath_var=LD_LIBRARY_PATH
16055   shlibpath_overrides_runpath=no
16056   hardcode_into_libs=yes
16057   dynamic_linker='NetBSD ld.elf_so'
16058   ;;
16059
16060 netbsd*)
16061   version_type=sunos
16062   need_lib_prefix=no
16063   need_version=no
16064   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16066     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16067     dynamic_linker='NetBSD (a.out) ld.so'
16068   else
16069     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16070     soname_spec='${libname}${release}${shared_ext}$major'
16071     dynamic_linker='NetBSD ld.elf_so'
16072   fi
16073   shlibpath_var=LD_LIBRARY_PATH
16074   shlibpath_overrides_runpath=yes
16075   hardcode_into_libs=yes
16076   ;;
16077
16078 newsos6)
16079   version_type=linux
16080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081   shlibpath_var=LD_LIBRARY_PATH
16082   shlibpath_overrides_runpath=yes
16083   ;;
16084
16085 *nto* | *qnx*)
16086   version_type=qnx
16087   need_lib_prefix=no
16088   need_version=no
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090   soname_spec='${libname}${release}${shared_ext}$major'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   shlibpath_overrides_runpath=no
16093   hardcode_into_libs=yes
16094   dynamic_linker='ldqnx.so'
16095   ;;
16096
16097 openbsd*)
16098   version_type=sunos
16099   sys_lib_dlsearch_path_spec="/usr/lib"
16100   need_lib_prefix=no
16101   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16102   case $host_os in
16103     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16104     *)                          need_version=no  ;;
16105   esac
16106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16107   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16108   shlibpath_var=LD_LIBRARY_PATH
16109   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16110     case $host_os in
16111       openbsd2.[89] | openbsd2.[89].*)
16112         shlibpath_overrides_runpath=no
16113         ;;
16114       *)
16115         shlibpath_overrides_runpath=yes
16116         ;;
16117       esac
16118   else
16119     shlibpath_overrides_runpath=yes
16120   fi
16121   ;;
16122
16123 os2*)
16124   libname_spec='$name'
16125   shrext_cmds=".dll"
16126   need_lib_prefix=no
16127   library_names_spec='$libname${shared_ext} $libname.a'
16128   dynamic_linker='OS/2 ld.exe'
16129   shlibpath_var=LIBPATH
16130   ;;
16131
16132 osf3* | osf4* | osf5*)
16133   version_type=osf
16134   need_lib_prefix=no
16135   need_version=no
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138   shlibpath_var=LD_LIBRARY_PATH
16139   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16140   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16141   ;;
16142
16143 rdos*)
16144   dynamic_linker=no
16145   ;;
16146
16147 solaris*)
16148   version_type=linux
16149   need_lib_prefix=no
16150   need_version=no
16151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16152   soname_spec='${libname}${release}${shared_ext}$major'
16153   shlibpath_var=LD_LIBRARY_PATH
16154   shlibpath_overrides_runpath=yes
16155   hardcode_into_libs=yes
16156   # ldd complains unless libraries are executable
16157   postinstall_cmds='chmod +x $lib'
16158   ;;
16159
16160 sunos4*)
16161   version_type=sunos
16162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16163   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16164   shlibpath_var=LD_LIBRARY_PATH
16165   shlibpath_overrides_runpath=yes
16166   if test "$with_gnu_ld" = yes; then
16167     need_lib_prefix=no
16168   fi
16169   need_version=yes
16170   ;;
16171
16172 sysv4 | sysv4.3*)
16173   version_type=linux
16174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16175   soname_spec='${libname}${release}${shared_ext}$major'
16176   shlibpath_var=LD_LIBRARY_PATH
16177   case $host_vendor in
16178     sni)
16179       shlibpath_overrides_runpath=no
16180       need_lib_prefix=no
16181       runpath_var=LD_RUN_PATH
16182       ;;
16183     siemens)
16184       need_lib_prefix=no
16185       ;;
16186     motorola)
16187       need_lib_prefix=no
16188       need_version=no
16189       shlibpath_overrides_runpath=no
16190       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16191       ;;
16192   esac
16193   ;;
16194
16195 sysv4*MP*)
16196   if test -d /usr/nec ;then
16197     version_type=linux
16198     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16199     soname_spec='$libname${shared_ext}.$major'
16200     shlibpath_var=LD_LIBRARY_PATH
16201   fi
16202   ;;
16203
16204 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16205   version_type=freebsd-elf
16206   need_lib_prefix=no
16207   need_version=no
16208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16209   soname_spec='${libname}${release}${shared_ext}$major'
16210   shlibpath_var=LD_LIBRARY_PATH
16211   shlibpath_overrides_runpath=yes
16212   hardcode_into_libs=yes
16213   if test "$with_gnu_ld" = yes; then
16214     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16215   else
16216     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16217     case $host_os in
16218       sco3.2v5*)
16219         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16220         ;;
16221     esac
16222   fi
16223   sys_lib_dlsearch_path_spec='/usr/lib'
16224   ;;
16225
16226 tpf*)
16227   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16228   version_type=linux
16229   need_lib_prefix=no
16230   need_version=no
16231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232   shlibpath_var=LD_LIBRARY_PATH
16233   shlibpath_overrides_runpath=no
16234   hardcode_into_libs=yes
16235   ;;
16236
16237 uts4*)
16238   version_type=linux
16239   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240   soname_spec='${libname}${release}${shared_ext}$major'
16241   shlibpath_var=LD_LIBRARY_PATH
16242   ;;
16243
16244 *)
16245   dynamic_linker=no
16246   ;;
16247 esac
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16249 $as_echo "$dynamic_linker" >&6; }
16250 test "$dynamic_linker" = no && can_build_shared=no
16251
16252 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16253 if test "$GCC" = yes; then
16254   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16255 fi
16256
16257 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16258   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16259 fi
16260 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16261   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16262 fi
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16300 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16301 hardcode_action_CXX=
16302 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16303    test -n "$runpath_var_CXX" ||
16304    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16305
16306   # We can hardcode non-existent directories.
16307   if test "$hardcode_direct_CXX" != no &&
16308      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16309      # have to relink, otherwise we might link with an installed library
16310      # when we should be linking with a yet-to-be-installed one
16311      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16312      test "$hardcode_minus_L_CXX" != no; then
16313     # Linking always hardcodes the temporary library directory.
16314     hardcode_action_CXX=relink
16315   else
16316     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16317     hardcode_action_CXX=immediate
16318   fi
16319 else
16320   # We cannot hardcode anything, or else we can only hardcode existing
16321   # directories.
16322   hardcode_action_CXX=unsupported
16323 fi
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16325 $as_echo "$hardcode_action_CXX" >&6; }
16326
16327 if test "$hardcode_action_CXX" = relink ||
16328    test "$inherit_rpath_CXX" = yes; then
16329   # Fast installation is not supported
16330   enable_fast_install=no
16331 elif test "$shlibpath_overrides_runpath" = yes ||
16332      test "$enable_shared" = no; then
16333   # Fast installation is not necessary
16334   enable_fast_install=needless
16335 fi
16336
16337
16338
16339
16340
16341
16342
16343   fi # test -n "$compiler"
16344
16345   CC=$lt_save_CC
16346   LDCXX=$LD
16347   LD=$lt_save_LD
16348   GCC=$lt_save_GCC
16349   with_gnu_ld=$lt_save_with_gnu_ld
16350   lt_cv_path_LDCXX=$lt_cv_path_LD
16351   lt_cv_path_LD=$lt_save_path_LD
16352   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16353   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16354 fi # test "$_lt_caught_CXX_error" != yes
16355
16356 ac_ext=c
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16361
16362
16363 ac_ext=c
16364 ac_cpp='$CPP $CPPFLAGS'
16365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16368 if test -n "$ac_tool_prefix"; then
16369   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16370 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16372 $as_echo_n "checking for $ac_word... " >&6; }
16373 if test "${ac_cv_prog_CC+set}" = set; then :
16374   $as_echo_n "(cached) " >&6
16375 else
16376   if test -n "$CC"; then
16377   ac_cv_prog_CC="$CC" # Let the user override the test.
16378 else
16379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16380 for as_dir in $PATH
16381 do
16382   IFS=$as_save_IFS
16383   test -z "$as_dir" && as_dir=.
16384     for ac_exec_ext in '' $ac_executable_extensions; do
16385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16386     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16388     break 2
16389   fi
16390 done
16391   done
16392 IFS=$as_save_IFS
16393
16394 fi
16395 fi
16396 CC=$ac_cv_prog_CC
16397 if test -n "$CC"; then
16398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16399 $as_echo "$CC" >&6; }
16400 else
16401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16402 $as_echo "no" >&6; }
16403 fi
16404
16405
16406 fi
16407 if test -z "$ac_cv_prog_CC"; then
16408   ac_ct_CC=$CC
16409   # Extract the first word of "gcc", so it can be a program name with args.
16410 set dummy gcc; ac_word=$2
16411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16412 $as_echo_n "checking for $ac_word... " >&6; }
16413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
16414   $as_echo_n "(cached) " >&6
16415 else
16416   if test -n "$ac_ct_CC"; then
16417   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16418 else
16419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16420 for as_dir in $PATH
16421 do
16422   IFS=$as_save_IFS
16423   test -z "$as_dir" && as_dir=.
16424     for ac_exec_ext in '' $ac_executable_extensions; do
16425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16426     ac_cv_prog_ac_ct_CC="gcc"
16427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16428     break 2
16429   fi
16430 done
16431   done
16432 IFS=$as_save_IFS
16433
16434 fi
16435 fi
16436 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16437 if test -n "$ac_ct_CC"; then
16438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16439 $as_echo "$ac_ct_CC" >&6; }
16440 else
16441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16442 $as_echo "no" >&6; }
16443 fi
16444
16445   if test "x$ac_ct_CC" = x; then
16446     CC=""
16447   else
16448     case $cross_compiling:$ac_tool_warned in
16449 yes:)
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16452 ac_tool_warned=yes ;;
16453 esac
16454     CC=$ac_ct_CC
16455   fi
16456 else
16457   CC="$ac_cv_prog_CC"
16458 fi
16459
16460 if test -z "$CC"; then
16461           if test -n "$ac_tool_prefix"; then
16462     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16463 set dummy ${ac_tool_prefix}cc; ac_word=$2
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16465 $as_echo_n "checking for $ac_word... " >&6; }
16466 if test "${ac_cv_prog_CC+set}" = set; then :
16467   $as_echo_n "(cached) " >&6
16468 else
16469   if test -n "$CC"; then
16470   ac_cv_prog_CC="$CC" # Let the user override the test.
16471 else
16472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16473 for as_dir in $PATH
16474 do
16475   IFS=$as_save_IFS
16476   test -z "$as_dir" && as_dir=.
16477     for ac_exec_ext in '' $ac_executable_extensions; do
16478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16479     ac_cv_prog_CC="${ac_tool_prefix}cc"
16480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16481     break 2
16482   fi
16483 done
16484   done
16485 IFS=$as_save_IFS
16486
16487 fi
16488 fi
16489 CC=$ac_cv_prog_CC
16490 if test -n "$CC"; then
16491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16492 $as_echo "$CC" >&6; }
16493 else
16494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16495 $as_echo "no" >&6; }
16496 fi
16497
16498
16499   fi
16500 fi
16501 if test -z "$CC"; then
16502   # Extract the first word of "cc", so it can be a program name with args.
16503 set dummy cc; ac_word=$2
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16505 $as_echo_n "checking for $ac_word... " >&6; }
16506 if test "${ac_cv_prog_CC+set}" = set; then :
16507   $as_echo_n "(cached) " >&6
16508 else
16509   if test -n "$CC"; then
16510   ac_cv_prog_CC="$CC" # Let the user override the test.
16511 else
16512   ac_prog_rejected=no
16513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16514 for as_dir in $PATH
16515 do
16516   IFS=$as_save_IFS
16517   test -z "$as_dir" && as_dir=.
16518     for ac_exec_ext in '' $ac_executable_extensions; do
16519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16520     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16521        ac_prog_rejected=yes
16522        continue
16523      fi
16524     ac_cv_prog_CC="cc"
16525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16526     break 2
16527   fi
16528 done
16529   done
16530 IFS=$as_save_IFS
16531
16532 if test $ac_prog_rejected = yes; then
16533   # We found a bogon in the path, so make sure we never use it.
16534   set dummy $ac_cv_prog_CC
16535   shift
16536   if test $# != 0; then
16537     # We chose a different compiler from the bogus one.
16538     # However, it has the same basename, so the bogon will be chosen
16539     # first if we set CC to just the basename; use the full file name.
16540     shift
16541     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16542   fi
16543 fi
16544 fi
16545 fi
16546 CC=$ac_cv_prog_CC
16547 if test -n "$CC"; then
16548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16549 $as_echo "$CC" >&6; }
16550 else
16551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16552 $as_echo "no" >&6; }
16553 fi
16554
16555
16556 fi
16557 if test -z "$CC"; then
16558   if test -n "$ac_tool_prefix"; then
16559   for ac_prog in cl.exe
16560   do
16561     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16564 $as_echo_n "checking for $ac_word... " >&6; }
16565 if test "${ac_cv_prog_CC+set}" = set; then :
16566   $as_echo_n "(cached) " >&6
16567 else
16568   if test -n "$CC"; then
16569   ac_cv_prog_CC="$CC" # Let the user override the test.
16570 else
16571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16572 for as_dir in $PATH
16573 do
16574   IFS=$as_save_IFS
16575   test -z "$as_dir" && as_dir=.
16576     for ac_exec_ext in '' $ac_executable_extensions; do
16577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16578     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16580     break 2
16581   fi
16582 done
16583   done
16584 IFS=$as_save_IFS
16585
16586 fi
16587 fi
16588 CC=$ac_cv_prog_CC
16589 if test -n "$CC"; then
16590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16591 $as_echo "$CC" >&6; }
16592 else
16593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16594 $as_echo "no" >&6; }
16595 fi
16596
16597
16598     test -n "$CC" && break
16599   done
16600 fi
16601 if test -z "$CC"; then
16602   ac_ct_CC=$CC
16603   for ac_prog in cl.exe
16604 do
16605   # Extract the first word of "$ac_prog", so it can be a program name with args.
16606 set dummy $ac_prog; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16608 $as_echo_n "checking for $ac_word... " >&6; }
16609 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
16610   $as_echo_n "(cached) " >&6
16611 else
16612   if test -n "$ac_ct_CC"; then
16613   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16614 else
16615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16616 for as_dir in $PATH
16617 do
16618   IFS=$as_save_IFS
16619   test -z "$as_dir" && as_dir=.
16620     for ac_exec_ext in '' $ac_executable_extensions; do
16621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16622     ac_cv_prog_ac_ct_CC="$ac_prog"
16623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16624     break 2
16625   fi
16626 done
16627   done
16628 IFS=$as_save_IFS
16629
16630 fi
16631 fi
16632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16633 if test -n "$ac_ct_CC"; then
16634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16635 $as_echo "$ac_ct_CC" >&6; }
16636 else
16637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16639 fi
16640
16641
16642   test -n "$ac_ct_CC" && break
16643 done
16644
16645   if test "x$ac_ct_CC" = x; then
16646     CC=""
16647   else
16648     case $cross_compiling:$ac_tool_warned in
16649 yes:)
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16652 ac_tool_warned=yes ;;
16653 esac
16654     CC=$ac_ct_CC
16655   fi
16656 fi
16657
16658 fi
16659
16660
16661 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16663 as_fn_error "no acceptable C compiler found in \$PATH
16664 See \`config.log' for more details." "$LINENO" 5; }
16665
16666 # Provide some information about the compiler.
16667 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16668 set X $ac_compile
16669 ac_compiler=$2
16670 for ac_option in --version -v -V -qversion; do
16671   { { ac_try="$ac_compiler $ac_option >&5"
16672 case "(($ac_try" in
16673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674   *) ac_try_echo=$ac_try;;
16675 esac
16676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16677 $as_echo "$ac_try_echo"; } >&5
16678   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16679   ac_status=$?
16680   if test -s conftest.err; then
16681     sed '10a\
16682 ... rest of stderr output deleted ...
16683          10q' conftest.err >conftest.er1
16684     cat conftest.er1 >&5
16685     rm -f conftest.er1 conftest.err
16686   fi
16687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688   test $ac_status = 0; }
16689 done
16690
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16692 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16693 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
16694   $as_echo_n "(cached) " >&6
16695 else
16696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697 /* end confdefs.h.  */
16698
16699 int
16700 main ()
16701 {
16702 #ifndef __GNUC__
16703        choke me
16704 #endif
16705
16706   ;
16707   return 0;
16708 }
16709 _ACEOF
16710 if ac_fn_c_try_compile "$LINENO"; then :
16711   ac_compiler_gnu=yes
16712 else
16713   ac_compiler_gnu=no
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16717
16718 fi
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16720 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16721 if test $ac_compiler_gnu = yes; then
16722   GCC=yes
16723 else
16724   GCC=
16725 fi
16726 ac_test_CFLAGS=${CFLAGS+set}
16727 ac_save_CFLAGS=$CFLAGS
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16729 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16730 if test "${ac_cv_prog_cc_g+set}" = set; then :
16731   $as_echo_n "(cached) " >&6
16732 else
16733   ac_save_c_werror_flag=$ac_c_werror_flag
16734    ac_c_werror_flag=yes
16735    ac_cv_prog_cc_g=no
16736    CFLAGS="-g"
16737    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738 /* end confdefs.h.  */
16739
16740 int
16741 main ()
16742 {
16743
16744   ;
16745   return 0;
16746 }
16747 _ACEOF
16748 if ac_fn_c_try_compile "$LINENO"; then :
16749   ac_cv_prog_cc_g=yes
16750 else
16751   CFLAGS=""
16752       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16753 /* end confdefs.h.  */
16754
16755 int
16756 main ()
16757 {
16758
16759   ;
16760   return 0;
16761 }
16762 _ACEOF
16763 if ac_fn_c_try_compile "$LINENO"; then :
16764
16765 else
16766   ac_c_werror_flag=$ac_save_c_werror_flag
16767          CFLAGS="-g"
16768          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16769 /* end confdefs.h.  */
16770
16771 int
16772 main ()
16773 {
16774
16775   ;
16776   return 0;
16777 }
16778 _ACEOF
16779 if ac_fn_c_try_compile "$LINENO"; then :
16780   ac_cv_prog_cc_g=yes
16781 fi
16782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 fi
16784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16785 fi
16786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787    ac_c_werror_flag=$ac_save_c_werror_flag
16788 fi
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16790 $as_echo "$ac_cv_prog_cc_g" >&6; }
16791 if test "$ac_test_CFLAGS" = set; then
16792   CFLAGS=$ac_save_CFLAGS
16793 elif test $ac_cv_prog_cc_g = yes; then
16794   if test "$GCC" = yes; then
16795     CFLAGS="-g -O2"
16796   else
16797     CFLAGS="-g"
16798   fi
16799 else
16800   if test "$GCC" = yes; then
16801     CFLAGS="-O2"
16802   else
16803     CFLAGS=
16804   fi
16805 fi
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16807 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16808 if test "${ac_cv_prog_cc_c89+set}" = set; then :
16809   $as_echo_n "(cached) " >&6
16810 else
16811   ac_cv_prog_cc_c89=no
16812 ac_save_CC=$CC
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h.  */
16815 #include <stdarg.h>
16816 #include <stdio.h>
16817 #include <sys/types.h>
16818 #include <sys/stat.h>
16819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16820 struct buf { int x; };
16821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16822 static char *e (p, i)
16823      char **p;
16824      int i;
16825 {
16826   return p[i];
16827 }
16828 static char *f (char * (*g) (char **, int), char **p, ...)
16829 {
16830   char *s;
16831   va_list v;
16832   va_start (v,p);
16833   s = g (p, va_arg (v,int));
16834   va_end (v);
16835   return s;
16836 }
16837
16838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16839    function prototypes and stuff, but not '\xHH' hex character constants.
16840    These don't provoke an error unfortunately, instead are silently treated
16841    as 'x'.  The following induces an error, until -std is added to get
16842    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16843    array size at least.  It's necessary to write '\x00'==0 to get something
16844    that's true only with -std.  */
16845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16846
16847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16848    inside strings and character constants.  */
16849 #define FOO(x) 'x'
16850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16851
16852 int test (int i, double x);
16853 struct s1 {int (*f) (int a);};
16854 struct s2 {int (*f) (double a);};
16855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16856 int argc;
16857 char **argv;
16858 int
16859 main ()
16860 {
16861 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16862   ;
16863   return 0;
16864 }
16865 _ACEOF
16866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16867         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16868 do
16869   CC="$ac_save_CC $ac_arg"
16870   if ac_fn_c_try_compile "$LINENO"; then :
16871   ac_cv_prog_cc_c89=$ac_arg
16872 fi
16873 rm -f core conftest.err conftest.$ac_objext
16874   test "x$ac_cv_prog_cc_c89" != "xno" && break
16875 done
16876 rm -f conftest.$ac_ext
16877 CC=$ac_save_CC
16878
16879 fi
16880 # AC_CACHE_VAL
16881 case "x$ac_cv_prog_cc_c89" in
16882   x)
16883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16884 $as_echo "none needed" >&6; } ;;
16885   xno)
16886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16887 $as_echo "unsupported" >&6; } ;;
16888   *)
16889     CC="$CC $ac_cv_prog_cc_c89"
16890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16891 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16892 esac
16893 if test "x$ac_cv_prog_cc_c89" != xno; then :
16894
16895 fi
16896
16897 ac_ext=c
16898 ac_cpp='$CPP $CPPFLAGS'
16899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16902
16903 depcc="$CC"   am_compiler_list=
16904
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16906 $as_echo_n "checking dependency style of $depcc... " >&6; }
16907 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
16908   $as_echo_n "(cached) " >&6
16909 else
16910   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16911   # We make a subdir and do the tests there.  Otherwise we can end up
16912   # making bogus files that we don't know about and never remove.  For
16913   # instance it was reported that on HP-UX the gcc test will end up
16914   # making a dummy file named `D' -- because `-MD' means `put the output
16915   # in D'.
16916   mkdir conftest.dir
16917   # Copy depcomp to subdir because otherwise we won't find it if we're
16918   # using a relative directory.
16919   cp "$am_depcomp" conftest.dir
16920   cd conftest.dir
16921   # We will build objects and dependencies in a subdirectory because
16922   # it helps to detect inapplicable dependency modes.  For instance
16923   # both Tru64's cc and ICC support -MD to output dependencies as a
16924   # side effect of compilation, but ICC will put the dependencies in
16925   # the current directory while Tru64 will put them in the object
16926   # directory.
16927   mkdir sub
16928
16929   am_cv_CC_dependencies_compiler_type=none
16930   if test "$am_compiler_list" = ""; then
16931      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16932   fi
16933   am__universal=false
16934   case " $depcc " in #(
16935      *\ -arch\ *\ -arch\ *) am__universal=true ;;
16936      esac
16937
16938   for depmode in $am_compiler_list; do
16939     # Setup a source with many dependencies, because some compilers
16940     # like to wrap large dependency lists on column 80 (with \), and
16941     # we should not choose a depcomp mode which is confused by this.
16942     #
16943     # We need to recreate these files for each test, as the compiler may
16944     # overwrite some of them when testing with obscure command lines.
16945     # This happens at least with the AIX C compiler.
16946     : > sub/conftest.c
16947     for i in 1 2 3 4 5 6; do
16948       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16949       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16950       # Solaris 8's {/usr,}/bin/sh.
16951       touch sub/conftst$i.h
16952     done
16953     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16954
16955     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16956     # mode.  It turns out that the SunPro C++ compiler does not properly
16957     # handle `-M -o', and we need to detect this.  Also, some Intel
16958     # versions had trouble with output in subdirs
16959     am__obj=sub/conftest.${OBJEXT-o}
16960     am__minus_obj="-o $am__obj"
16961     case $depmode in
16962     gcc)
16963       # This depmode causes a compiler race in universal mode.
16964       test "$am__universal" = false || continue
16965       ;;
16966     nosideeffect)
16967       # after this tag, mechanisms are not by side-effect, so they'll
16968       # only be used when explicitly requested
16969       if test "x$enable_dependency_tracking" = xyes; then
16970         continue
16971       else
16972         break
16973       fi
16974       ;;
16975     msvisualcpp | msvcmsys)
16976       # This compiler won't grok `-c -o', but also, the minuso test has
16977       # not run yet.  These depmodes are late enough in the game, and
16978       # so weak that their functioning should not be impacted.
16979       am__obj=conftest.${OBJEXT-o}
16980       am__minus_obj=
16981       ;;
16982     none) break ;;
16983     esac
16984     if depmode=$depmode \
16985        source=sub/conftest.c object=$am__obj \
16986        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16987        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16988          >/dev/null 2>conftest.err &&
16989        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16990        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16991        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16992        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16993       # icc doesn't choke on unknown options, it will just issue warnings
16994       # or remarks (even with -Werror).  So we grep stderr for any message
16995       # that says an option was ignored or not supported.
16996       # When given -MP, icc 7.0 and 7.1 complain thusly:
16997       #   icc: Command line warning: ignoring option '-M'; no argument required
16998       # The diagnosis changed in icc 8.0:
16999       #   icc: Command line remark: option '-MP' not supported
17000       if (grep 'ignoring option' conftest.err ||
17001           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17002         am_cv_CC_dependencies_compiler_type=$depmode
17003         break
17004       fi
17005     fi
17006   done
17007
17008   cd ..
17009   rm -rf conftest.dir
17010 else
17011   am_cv_CC_dependencies_compiler_type=none
17012 fi
17013
17014 fi
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
17016 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
17017 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
17018
17019  if
17020   test "x$enable_dependency_tracking" != xno \
17021   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
17022   am__fastdepCC_TRUE=
17023   am__fastdepCC_FALSE='#'
17024 else
17025   am__fastdepCC_TRUE='#'
17026   am__fastdepCC_FALSE=
17027 fi
17028
17029
17030 ac_ext=cpp
17031 ac_cpp='$CXXCPP $CPPFLAGS'
17032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17035
17036
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17038 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17039 if test "${ac_cv_c_const+set}" = set; then :
17040   $as_echo_n "(cached) " >&6
17041 else
17042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h.  */
17044
17045 int
17046 main ()
17047 {
17048 /* FIXME: Include the comments suggested by Paul. */
17049 #ifndef __cplusplus
17050   /* Ultrix mips cc rejects this.  */
17051   typedef int charset[2];
17052   const charset cs;
17053   /* SunOS 4.1.1 cc rejects this.  */
17054   char const *const *pcpcc;
17055   char **ppc;
17056   /* NEC SVR4.0.2 mips cc rejects this.  */
17057   struct point {int x, y;};
17058   static struct point const zero = {0,0};
17059   /* AIX XL C 1.02.0.0 rejects this.
17060      It does not let you subtract one const X* pointer from another in
17061      an arm of an if-expression whose if-part is not a constant
17062      expression */
17063   const char *g = "string";
17064   pcpcc = &g + (g ? g-g : 0);
17065   /* HPUX 7.0 cc rejects these. */
17066   ++pcpcc;
17067   ppc = (char**) pcpcc;
17068   pcpcc = (char const *const *) ppc;
17069   { /* SCO 3.2v4 cc rejects this.  */
17070     char *t;
17071     char const *s = 0 ? (char *) 0 : (char const *) 0;
17072
17073     *t++ = 0;
17074     if (s) return 0;
17075   }
17076   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17077     int x[] = {25, 17};
17078     const int *foo = &x[0];
17079     ++foo;
17080   }
17081   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17082     typedef const int *iptr;
17083     iptr p = 0;
17084     ++p;
17085   }
17086   { /* AIX XL C 1.02.0.0 rejects this saying
17087        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17088     struct s { int j; const int *ap[3]; };
17089     struct s *b; b->j = 5;
17090   }
17091   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17092     const int foo = 10;
17093     if (!foo) return 0;
17094   }
17095   return !cs[0] && !zero.x;
17096 #endif
17097
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 if ac_fn_cxx_try_compile "$LINENO"; then :
17103   ac_cv_c_const=yes
17104 else
17105   ac_cv_c_const=no
17106 fi
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17108 fi
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17110 $as_echo "$ac_cv_c_const" >&6; }
17111 if test $ac_cv_c_const = no; then
17112
17113 $as_echo "#define const /**/" >>confdefs.h
17114
17115 fi
17116
17117 ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17118 if test "x$ac_cv_type_size_t" = x""yes; then :
17119
17120 else
17121
17122 cat >>confdefs.h <<_ACEOF
17123 #define size_t unsigned int
17124 _ACEOF
17125
17126 fi
17127
17128
17129 SCIM_VERSION=1.4.0
17130
17131 UNIKEY_CURRENT=1
17132 UNIKEY_REVISION=0
17133 UNIKEY_AGE=0
17134
17135
17136
17137
17138
17139
17140
17141 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17142         if test -n "$ac_tool_prefix"; then
17143   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17144 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17146 $as_echo_n "checking for $ac_word... " >&6; }
17147 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
17148   $as_echo_n "(cached) " >&6
17149 else
17150   case $PKG_CONFIG in
17151   [\\/]* | ?:[\\/]*)
17152   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17153   ;;
17154   *)
17155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17156 for as_dir in $PATH
17157 do
17158   IFS=$as_save_IFS
17159   test -z "$as_dir" && as_dir=.
17160     for ac_exec_ext in '' $ac_executable_extensions; do
17161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17162     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17164     break 2
17165   fi
17166 done
17167   done
17168 IFS=$as_save_IFS
17169
17170   ;;
17171 esac
17172 fi
17173 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17174 if test -n "$PKG_CONFIG"; then
17175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17176 $as_echo "$PKG_CONFIG" >&6; }
17177 else
17178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17179 $as_echo "no" >&6; }
17180 fi
17181
17182
17183 fi
17184 if test -z "$ac_cv_path_PKG_CONFIG"; then
17185   ac_pt_PKG_CONFIG=$PKG_CONFIG
17186   # Extract the first word of "pkg-config", so it can be a program name with args.
17187 set dummy pkg-config; ac_word=$2
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17189 $as_echo_n "checking for $ac_word... " >&6; }
17190 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
17191   $as_echo_n "(cached) " >&6
17192 else
17193   case $ac_pt_PKG_CONFIG in
17194   [\\/]* | ?:[\\/]*)
17195   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17196   ;;
17197   *)
17198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17199 for as_dir in $PATH
17200 do
17201   IFS=$as_save_IFS
17202   test -z "$as_dir" && as_dir=.
17203     for ac_exec_ext in '' $ac_executable_extensions; do
17204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17205     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17207     break 2
17208   fi
17209 done
17210   done
17211 IFS=$as_save_IFS
17212
17213   ;;
17214 esac
17215 fi
17216 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17217 if test -n "$ac_pt_PKG_CONFIG"; then
17218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17219 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
17220 else
17221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17222 $as_echo "no" >&6; }
17223 fi
17224
17225   if test "x$ac_pt_PKG_CONFIG" = x; then
17226     PKG_CONFIG=""
17227   else
17228     case $cross_compiling:$ac_tool_warned in
17229 yes:)
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17232 ac_tool_warned=yes ;;
17233 esac
17234     PKG_CONFIG=$ac_pt_PKG_CONFIG
17235   fi
17236 else
17237   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17238 fi
17239
17240 fi
17241 if test -n "$PKG_CONFIG"; then
17242         _pkg_min_version=0.9.0
17243         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17244 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17245         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17246                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17247 $as_echo "yes" >&6; }
17248         else
17249                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17250 $as_echo "no" >&6; }
17251                 PKG_CONFIG=""
17252         fi
17253
17254 fi
17255
17256 pkg_failed=no
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
17258 $as_echo_n "checking for GIO... " >&6; }
17259
17260 if test -n "$PKG_CONFIG"; then
17261     if test -n "$GIO_CFLAGS"; then
17262         pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
17263     else
17264         if test -n "$PKG_CONFIG" && \
17265     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17266     gio-2.0
17267 \""; } >&5
17268   ($PKG_CONFIG --exists --print-errors "
17269     gio-2.0
17270 ") 2>&5
17271   ac_status=$?
17272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17273   test $ac_status = 0; }; then
17274   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "
17275     gio-2.0
17276 " 2>/dev/null`
17277 else
17278   pkg_failed=yes
17279 fi
17280     fi
17281 else
17282         pkg_failed=untried
17283 fi
17284 if test -n "$PKG_CONFIG"; then
17285     if test -n "$GIO_LIBS"; then
17286         pkg_cv_GIO_LIBS="$GIO_LIBS"
17287     else
17288         if test -n "$PKG_CONFIG" && \
17289     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
17290     gio-2.0
17291 \""; } >&5
17292   ($PKG_CONFIG --exists --print-errors "
17293     gio-2.0
17294 ") 2>&5
17295   ac_status=$?
17296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17297   test $ac_status = 0; }; then
17298   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "
17299     gio-2.0
17300 " 2>/dev/null`
17301 else
17302   pkg_failed=yes
17303 fi
17304     fi
17305 else
17306         pkg_failed=untried
17307 fi
17308
17309
17310
17311 if test $pkg_failed = yes; then
17312
17313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17314         _pkg_short_errors_supported=yes
17315 else
17316         _pkg_short_errors_supported=no
17317 fi
17318         if test $_pkg_short_errors_supported = yes; then
17319                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "
17320     gio-2.0
17321 "`
17322         else
17323                 GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
17324     gio-2.0
17325 "`
17326         fi
17327         # Put the nasty error message in config.log where it belongs
17328         echo "$GIO_PKG_ERRORS" >&5
17329
17330         as_fn_error "Package requirements (
17331     gio-2.0
17332 ) were not met:
17333
17334 $GIO_PKG_ERRORS
17335
17336 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17337 installed software in a non-standard prefix.
17338
17339 Alternatively, you may set the environment variables GIO_CFLAGS
17340 and GIO_LIBS to avoid the need to call pkg-config.
17341 See the pkg-config man page for more details.
17342 " "$LINENO" 5
17343 elif test $pkg_failed = untried; then
17344         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17346 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
17347 is in your PATH or set the PKG_CONFIG environment variable to the full
17348 path to pkg-config.
17349
17350 Alternatively, you may set the environment variables GIO_CFLAGS
17351 and GIO_LIBS to avoid the need to call pkg-config.
17352 See the pkg-config man page for more details.
17353
17354 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17355 See \`config.log' for more details." "$LINENO" 5; }
17356 else
17357         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
17358         GIO_LIBS=$pkg_cv_GIO_LIBS
17359         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17361         :
17362 fi
17363
17364
17365
17366 pkg_failed=no
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM" >&5
17368 $as_echo_n "checking for SCIM... " >&6; }
17369
17370 if test -n "$PKG_CONFIG"; then
17371     if test -n "$SCIM_CFLAGS"; then
17372         pkg_cv_SCIM_CFLAGS="$SCIM_CFLAGS"
17373     else
17374         if test -n "$PKG_CONFIG" && \
17375     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5
17376   ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
17377   ac_status=$?
17378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17379   test $ac_status = 0; }; then
17380   pkg_cv_SCIM_CFLAGS=`$PKG_CONFIG --cflags "scim >= $SCIM_VERSION" 2>/dev/null`
17381 else
17382   pkg_failed=yes
17383 fi
17384     fi
17385 else
17386         pkg_failed=untried
17387 fi
17388 if test -n "$PKG_CONFIG"; then
17389     if test -n "$SCIM_LIBS"; then
17390         pkg_cv_SCIM_LIBS="$SCIM_LIBS"
17391     else
17392         if test -n "$PKG_CONFIG" && \
17393     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim >= \$SCIM_VERSION\""; } >&5
17394   ($PKG_CONFIG --exists --print-errors "scim >= $SCIM_VERSION") 2>&5
17395   ac_status=$?
17396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17397   test $ac_status = 0; }; then
17398   pkg_cv_SCIM_LIBS=`$PKG_CONFIG --libs "scim >= $SCIM_VERSION" 2>/dev/null`
17399 else
17400   pkg_failed=yes
17401 fi
17402     fi
17403 else
17404         pkg_failed=untried
17405 fi
17406
17407
17408
17409 if test $pkg_failed = yes; then
17410
17411 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17412         _pkg_short_errors_supported=yes
17413 else
17414         _pkg_short_errors_supported=no
17415 fi
17416         if test $_pkg_short_errors_supported = yes; then
17417                 SCIM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
17418         else
17419                 SCIM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim >= $SCIM_VERSION"`
17420         fi
17421         # Put the nasty error message in config.log where it belongs
17422         echo "$SCIM_PKG_ERRORS" >&5
17423
17424         as_fn_error "Package requirements (scim >= $SCIM_VERSION) were not met:
17425
17426 $SCIM_PKG_ERRORS
17427
17428 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17429 installed software in a non-standard prefix.
17430
17431 Alternatively, you may set the environment variables SCIM_CFLAGS
17432 and SCIM_LIBS to avoid the need to call pkg-config.
17433 See the pkg-config man page for more details.
17434 " "$LINENO" 5
17435 elif test $pkg_failed = untried; then
17436         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17438 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
17439 is in your PATH or set the PKG_CONFIG environment variable to the full
17440 path to pkg-config.
17441
17442 Alternatively, you may set the environment variables SCIM_CFLAGS
17443 and SCIM_LIBS to avoid the need to call pkg-config.
17444 See the pkg-config man page for more details.
17445
17446 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17447 See \`config.log' for more details." "$LINENO" 5; }
17448 else
17449         SCIM_CFLAGS=$pkg_cv_SCIM_CFLAGS
17450         SCIM_LIBS=$pkg_cv_SCIM_LIBS
17451         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17452 $as_echo "yes" >&6; }
17453         :
17454 fi
17455
17456
17457
17458 pkg_failed=no
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCIM_GTKUTILS" >&5
17460 $as_echo_n "checking for SCIM_GTKUTILS... " >&6; }
17461
17462 if test -n "$PKG_CONFIG"; then
17463     if test -n "$SCIM_GTKUTILS_CFLAGS"; then
17464         pkg_cv_SCIM_GTKUTILS_CFLAGS="$SCIM_GTKUTILS_CFLAGS"
17465     else
17466         if test -n "$PKG_CONFIG" && \
17467     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\""; } >&5
17468   ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
17469   ac_status=$?
17470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471   test $ac_status = 0; }; then
17472   pkg_cv_SCIM_GTKUTILS_CFLAGS=`$PKG_CONFIG --cflags "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
17473 else
17474   pkg_failed=yes
17475 fi
17476     fi
17477 else
17478         pkg_failed=untried
17479 fi
17480 if test -n "$PKG_CONFIG"; then
17481     if test -n "$SCIM_GTKUTILS_LIBS"; then
17482         pkg_cv_SCIM_GTKUTILS_LIBS="$SCIM_GTKUTILS_LIBS"
17483     else
17484         if test -n "$PKG_CONFIG" && \
17485     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"scim-gtkutils >= \$SCIM_VERSION\""; } >&5
17486   ($PKG_CONFIG --exists --print-errors "scim-gtkutils >= $SCIM_VERSION") 2>&5
17487   ac_status=$?
17488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489   test $ac_status = 0; }; then
17490   pkg_cv_SCIM_GTKUTILS_LIBS=`$PKG_CONFIG --libs "scim-gtkutils >= $SCIM_VERSION" 2>/dev/null`
17491 else
17492   pkg_failed=yes
17493 fi
17494     fi
17495 else
17496         pkg_failed=untried
17497 fi
17498
17499
17500
17501 if test $pkg_failed = yes; then
17502
17503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17504         _pkg_short_errors_supported=yes
17505 else
17506         _pkg_short_errors_supported=no
17507 fi
17508         if test $_pkg_short_errors_supported = yes; then
17509                 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
17510         else
17511                 SCIM_GTKUTILS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "scim-gtkutils >= $SCIM_VERSION"`
17512         fi
17513         # Put the nasty error message in config.log where it belongs
17514         echo "$SCIM_GTKUTILS_PKG_ERRORS" >&5
17515
17516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17517 $as_echo "no" >&6; }
17518                 SCIM_HAS_GTKUTILS=no
17519 elif test $pkg_failed = untried; then
17520         SCIM_HAS_GTKUTILS=no
17521 else
17522         SCIM_GTKUTILS_CFLAGS=$pkg_cv_SCIM_GTKUTILS_CFLAGS
17523         SCIM_GTKUTILS_LIBS=$pkg_cv_SCIM_GTKUTILS_LIBS
17524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17525 $as_echo "yes" >&6; }
17526         SCIM_HAS_GTKUTILS=yes
17527 fi
17528
17529
17530 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
17531   SCIM_BUILD_SETUP=1
17532 else
17533   SCIM_BUILD_SETUP=0
17534 fi
17535
17536  if test "$SCIM_HAS_GTKUTILS" = "yes"; then
17537   SCIM_BUILD_SETUP_TRUE=
17538   SCIM_BUILD_SETUP_FALSE='#'
17539 else
17540   SCIM_BUILD_SETUP_TRUE='#'
17541   SCIM_BUILD_SETUP_FALSE=
17542 fi
17543
17544
17545
17546
17547 # Checks for header files.
17548
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17550 $as_echo_n "checking for ANSI C header files... " >&6; }
17551 if test "${ac_cv_header_stdc+set}" = set; then :
17552   $as_echo_n "(cached) " >&6
17553 else
17554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h.  */
17556 #include <stdlib.h>
17557 #include <stdarg.h>
17558 #include <string.h>
17559 #include <float.h>
17560
17561 int
17562 main ()
17563 {
17564
17565   ;
17566   return 0;
17567 }
17568 _ACEOF
17569 if ac_fn_cxx_try_compile "$LINENO"; then :
17570   ac_cv_header_stdc=yes
17571 else
17572   ac_cv_header_stdc=no
17573 fi
17574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17575
17576 if test $ac_cv_header_stdc = yes; then
17577   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579 /* end confdefs.h.  */
17580 #include <string.h>
17581
17582 _ACEOF
17583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17584   $EGREP "memchr" >/dev/null 2>&1; then :
17585
17586 else
17587   ac_cv_header_stdc=no
17588 fi
17589 rm -f conftest*
17590
17591 fi
17592
17593 if test $ac_cv_header_stdc = yes; then
17594   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17596 /* end confdefs.h.  */
17597 #include <stdlib.h>
17598
17599 _ACEOF
17600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17601   $EGREP "free" >/dev/null 2>&1; then :
17602
17603 else
17604   ac_cv_header_stdc=no
17605 fi
17606 rm -f conftest*
17607
17608 fi
17609
17610 if test $ac_cv_header_stdc = yes; then
17611   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17612   if test "$cross_compiling" = yes; then :
17613   :
17614 else
17615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h.  */
17617 #include <ctype.h>
17618 #include <stdlib.h>
17619 #if ((' ' & 0x0FF) == 0x020)
17620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17622 #else
17623 # define ISLOWER(c) \
17624                    (('a' <= (c) && (c) <= 'i') \
17625                      || ('j' <= (c) && (c) <= 'r') \
17626                      || ('s' <= (c) && (c) <= 'z'))
17627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17628 #endif
17629
17630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17631 int
17632 main ()
17633 {
17634   int i;
17635   for (i = 0; i < 256; i++)
17636     if (XOR (islower (i), ISLOWER (i))
17637         || toupper (i) != TOUPPER (i))
17638       return 2;
17639   return 0;
17640 }
17641 _ACEOF
17642 if ac_fn_cxx_try_run "$LINENO"; then :
17643
17644 else
17645   ac_cv_header_stdc=no
17646 fi
17647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17648   conftest.$ac_objext conftest.beam conftest.$ac_ext
17649 fi
17650
17651 fi
17652 fi
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17654 $as_echo "$ac_cv_header_stdc" >&6; }
17655 if test $ac_cv_header_stdc = yes; then
17656
17657 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17658
17659 fi
17660
17661
17662 # Checks for library functions.
17663
17664
17665 # libtool option to control which symbols are exported
17666 # right now, symbols starting with _ are not exported
17667 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[^_].*"'
17668
17669
17670
17671 newprefix=`$PKG_CONFIG --variable=prefix scim`
17672 if test "x$newprefix" != "x"; then
17673   prefix=$newprefix
17674 fi
17675
17676 SCIM_ICONDIR=`$PKG_CONFIG --variable=icondir scim`
17677 SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
17678
17679 if test "x$SCIM_ICONDIR" = "x"; then
17680   SCIM_ICONDIR=${datadir}/scim/icons
17681 fi
17682
17683
17684 if test "x$SCIM_MODULEDIR" = "x"; then
17685   SCIM_MODULEDIR=${libdir}/scim-1.0
17686 fi
17687
17688
17689 ac_config_files="$ac_config_files Makefile scim-unikey.spec src/Makefile ukengine/Makefile icon/Makefile po/Makefile.in setup/Makefile"
17690
17691 cat >confcache <<\_ACEOF
17692 # This file is a shell script that caches the results of configure
17693 # tests run on this system so they can be shared between configure
17694 # scripts and configure runs, see configure's option --config-cache.
17695 # It is not useful on other systems.  If it contains results you don't
17696 # want to keep, you may remove or edit it.
17697 #
17698 # config.status only pays attention to the cache file if you give it
17699 # the --recheck option to rerun configure.
17700 #
17701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17703 # following values.
17704
17705 _ACEOF
17706
17707 # The following way of writing the cache mishandles newlines in values,
17708 # but we know of no workaround that is simple, portable, and efficient.
17709 # So, we kill variables containing newlines.
17710 # Ultrix sh set writes to stderr and can't be redirected directly,
17711 # and sets the high bit in the cache file unless we assign to the vars.
17712 (
17713   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17714     eval ac_val=\$$ac_var
17715     case $ac_val in #(
17716     *${as_nl}*)
17717       case $ac_var in #(
17718       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17719 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17720       esac
17721       case $ac_var in #(
17722       _ | IFS | as_nl) ;; #(
17723       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17724       *) { eval $ac_var=; unset $ac_var;} ;;
17725       esac ;;
17726     esac
17727   done
17728
17729   (set) 2>&1 |
17730     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17731     *${as_nl}ac_space=\ *)
17732       # `set' does not quote correctly, so add quotes: double-quote
17733       # substitution turns \\\\ into \\, and sed turns \\ into \.
17734       sed -n \
17735         "s/'/'\\\\''/g;
17736           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17737       ;; #(
17738     *)
17739       # `set' quotes correctly as required by POSIX, so do not add quotes.
17740       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17741       ;;
17742     esac |
17743     sort
17744 ) |
17745   sed '
17746      /^ac_cv_env_/b end
17747      t clear
17748      :clear
17749      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17750      t end
17751      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17752      :end' >>confcache
17753 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17754   if test -w "$cache_file"; then
17755     test "x$cache_file" != "x/dev/null" &&
17756       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17757 $as_echo "$as_me: updating cache $cache_file" >&6;}
17758     cat confcache >$cache_file
17759   else
17760     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17761 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17762   fi
17763 fi
17764 rm -f confcache
17765
17766 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17767 # Let make expand exec_prefix.
17768 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17769
17770 DEFS=-DHAVE_CONFIG_H
17771
17772 ac_libobjs=
17773 ac_ltlibobjs=
17774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17775   # 1. Remove the extension, and $U if already installed.
17776   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17777   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17778   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17779   #    will be set to the directory where LIBOBJS objects are built.
17780   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17781   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17782 done
17783 LIBOBJS=$ac_libobjs
17784
17785 LTLIBOBJS=$ac_ltlibobjs
17786
17787
17788  if test -n "$EXEEXT"; then
17789   am__EXEEXT_TRUE=
17790   am__EXEEXT_FALSE='#'
17791 else
17792   am__EXEEXT_TRUE='#'
17793   am__EXEEXT_FALSE=
17794 fi
17795
17796 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17797   as_fn_error "conditional \"AMDEP\" was never defined.
17798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17799 fi
17800 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17801   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17803 fi
17804 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17805   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17807 fi
17808 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17809   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17811 fi
17812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17813   as_fn_error "conditional \"am__fastdepCC\" was never defined.
17814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17815 fi
17816 if test -z "${SCIM_BUILD_SETUP_TRUE}" && test -z "${SCIM_BUILD_SETUP_FALSE}"; then
17817   as_fn_error "conditional \"SCIM_BUILD_SETUP\" was never defined.
17818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17819 fi
17820
17821 : ${CONFIG_STATUS=./config.status}
17822 ac_write_fail=0
17823 ac_clean_files_save=$ac_clean_files
17824 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17826 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17827 as_write_fail=0
17828 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17829 #! $SHELL
17830 # Generated by $as_me.
17831 # Run this file to recreate the current configuration.
17832 # Compiler output produced by configure, useful for debugging
17833 # configure, is in config.log if it exists.
17834
17835 debug=false
17836 ac_cs_recheck=false
17837 ac_cs_silent=false
17838
17839 SHELL=\${CONFIG_SHELL-$SHELL}
17840 export SHELL
17841 _ASEOF
17842 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17843 ## -------------------- ##
17844 ## M4sh Initialization. ##
17845 ## -------------------- ##
17846
17847 # Be more Bourne compatible
17848 DUALCASE=1; export DUALCASE # for MKS sh
17849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17850   emulate sh
17851   NULLCMD=:
17852   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17853   # is contrary to our usage.  Disable this feature.
17854   alias -g '${1+"$@"}'='"$@"'
17855   setopt NO_GLOB_SUBST
17856 else
17857   case `(set -o) 2>/dev/null` in #(
17858   *posix*) :
17859     set -o posix ;; #(
17860   *) :
17861      ;;
17862 esac
17863 fi
17864
17865
17866 as_nl='
17867 '
17868 export as_nl
17869 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17870 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17871 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17872 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17873 # Prefer a ksh shell builtin over an external printf program on Solaris,
17874 # but without wasting forks for bash or zsh.
17875 if test -z "$BASH_VERSION$ZSH_VERSION" \
17876     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17877   as_echo='print -r --'
17878   as_echo_n='print -rn --'
17879 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17880   as_echo='printf %s\n'
17881   as_echo_n='printf %s'
17882 else
17883   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17884     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17885     as_echo_n='/usr/ucb/echo -n'
17886   else
17887     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17888     as_echo_n_body='eval
17889       arg=$1;
17890       case $arg in #(
17891       *"$as_nl"*)
17892         expr "X$arg" : "X\\(.*\\)$as_nl";
17893         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17894       esac;
17895       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17896     '
17897     export as_echo_n_body
17898     as_echo_n='sh -c $as_echo_n_body as_echo'
17899   fi
17900   export as_echo_body
17901   as_echo='sh -c $as_echo_body as_echo'
17902 fi
17903
17904 # The user is always right.
17905 if test "${PATH_SEPARATOR+set}" != set; then
17906   PATH_SEPARATOR=:
17907   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17908     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17909       PATH_SEPARATOR=';'
17910   }
17911 fi
17912
17913
17914 # IFS
17915 # We need space, tab and new line, in precisely that order.  Quoting is
17916 # there to prevent editors from complaining about space-tab.
17917 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17918 # splitting by setting IFS to empty value.)
17919 IFS=" ""        $as_nl"
17920
17921 # Find who we are.  Look in the path if we contain no directory separator.
17922 case $0 in #((
17923   *[\\/]* ) as_myself=$0 ;;
17924   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17926 do
17927   IFS=$as_save_IFS
17928   test -z "$as_dir" && as_dir=.
17929     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17930   done
17931 IFS=$as_save_IFS
17932
17933      ;;
17934 esac
17935 # We did not find ourselves, most probably we were run as `sh COMMAND'
17936 # in which case we are not to be found in the path.
17937 if test "x$as_myself" = x; then
17938   as_myself=$0
17939 fi
17940 if test ! -f "$as_myself"; then
17941   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17942   exit 1
17943 fi
17944
17945 # Unset variables that we do not need and which cause bugs (e.g. in
17946 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17947 # suppresses any "Segmentation fault" message there.  '((' could
17948 # trigger a bug in pdksh 5.2.14.
17949 for as_var in BASH_ENV ENV MAIL MAILPATH
17950 do eval test x\${$as_var+set} = xset \
17951   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17952 done
17953 PS1='$ '
17954 PS2='> '
17955 PS4='+ '
17956
17957 # NLS nuisances.
17958 LC_ALL=C
17959 export LC_ALL
17960 LANGUAGE=C
17961 export LANGUAGE
17962
17963 # CDPATH.
17964 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17965
17966
17967 # as_fn_error ERROR [LINENO LOG_FD]
17968 # ---------------------------------
17969 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17970 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17971 # script with status $?, using 1 if that was 0.
17972 as_fn_error ()
17973 {
17974   as_status=$?; test $as_status -eq 0 && as_status=1
17975   if test "$3"; then
17976     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17977     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17978   fi
17979   $as_echo "$as_me: error: $1" >&2
17980   as_fn_exit $as_status
17981 } # as_fn_error
17982
17983
17984 # as_fn_set_status STATUS
17985 # -----------------------
17986 # Set $? to STATUS, without forking.
17987 as_fn_set_status ()
17988 {
17989   return $1
17990 } # as_fn_set_status
17991
17992 # as_fn_exit STATUS
17993 # -----------------
17994 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17995 as_fn_exit ()
17996 {
17997   set +e
17998   as_fn_set_status $1
17999   exit $1
18000 } # as_fn_exit
18001
18002 # as_fn_unset VAR
18003 # ---------------
18004 # Portably unset VAR.
18005 as_fn_unset ()
18006 {
18007   { eval $1=; unset $1;}
18008 }
18009 as_unset=as_fn_unset
18010 # as_fn_append VAR VALUE
18011 # ----------------------
18012 # Append the text in VALUE to the end of the definition contained in VAR. Take
18013 # advantage of any shell optimizations that allow amortized linear growth over
18014 # repeated appends, instead of the typical quadratic growth present in naive
18015 # implementations.
18016 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18017   eval 'as_fn_append ()
18018   {
18019     eval $1+=\$2
18020   }'
18021 else
18022   as_fn_append ()
18023   {
18024     eval $1=\$$1\$2
18025   }
18026 fi # as_fn_append
18027
18028 # as_fn_arith ARG...
18029 # ------------------
18030 # Perform arithmetic evaluation on the ARGs, and store the result in the
18031 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18032 # must be portable across $(()) and expr.
18033 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18034   eval 'as_fn_arith ()
18035   {
18036     as_val=$(( $* ))
18037   }'
18038 else
18039   as_fn_arith ()
18040   {
18041     as_val=`expr "$@" || test $? -eq 1`
18042   }
18043 fi # as_fn_arith
18044
18045
18046 if expr a : '\(a\)' >/dev/null 2>&1 &&
18047    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18048   as_expr=expr
18049 else
18050   as_expr=false
18051 fi
18052
18053 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18054   as_basename=basename
18055 else
18056   as_basename=false
18057 fi
18058
18059 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18060   as_dirname=dirname
18061 else
18062   as_dirname=false
18063 fi
18064
18065 as_me=`$as_basename -- "$0" ||
18066 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18067          X"$0" : 'X\(//\)$' \| \
18068          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18069 $as_echo X/"$0" |
18070     sed '/^.*\/\([^/][^/]*\)\/*$/{
18071             s//\1/
18072             q
18073           }
18074           /^X\/\(\/\/\)$/{
18075             s//\1/
18076             q
18077           }
18078           /^X\/\(\/\).*/{
18079             s//\1/
18080             q
18081           }
18082           s/.*/./; q'`
18083
18084 # Avoid depending upon Character Ranges.
18085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18088 as_cr_digits='0123456789'
18089 as_cr_alnum=$as_cr_Letters$as_cr_digits
18090
18091 ECHO_C= ECHO_N= ECHO_T=
18092 case `echo -n x` in #(((((
18093 -n*)
18094   case `echo 'xy\c'` in
18095   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18096   xy)  ECHO_C='\c';;
18097   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18098        ECHO_T=' ';;
18099   esac;;
18100 *)
18101   ECHO_N='-n';;
18102 esac
18103
18104 rm -f conf$$ conf$$.exe conf$$.file
18105 if test -d conf$$.dir; then
18106   rm -f conf$$.dir/conf$$.file
18107 else
18108   rm -f conf$$.dir
18109   mkdir conf$$.dir 2>/dev/null
18110 fi
18111 if (echo >conf$$.file) 2>/dev/null; then
18112   if ln -s conf$$.file conf$$ 2>/dev/null; then
18113     as_ln_s='ln -s'
18114     # ... but there are two gotchas:
18115     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18116     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18117     # In both cases, we have to default to `cp -p'.
18118     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18119       as_ln_s='cp -p'
18120   elif ln conf$$.file conf$$ 2>/dev/null; then
18121     as_ln_s=ln
18122   else
18123     as_ln_s='cp -p'
18124   fi
18125 else
18126   as_ln_s='cp -p'
18127 fi
18128 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18129 rmdir conf$$.dir 2>/dev/null
18130
18131
18132 # as_fn_mkdir_p
18133 # -------------
18134 # Create "$as_dir" as a directory, including parents if necessary.
18135 as_fn_mkdir_p ()
18136 {
18137
18138   case $as_dir in #(
18139   -*) as_dir=./$as_dir;;
18140   esac
18141   test -d "$as_dir" || eval $as_mkdir_p || {
18142     as_dirs=
18143     while :; do
18144       case $as_dir in #(
18145       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18146       *) as_qdir=$as_dir;;
18147       esac
18148       as_dirs="'$as_qdir' $as_dirs"
18149       as_dir=`$as_dirname -- "$as_dir" ||
18150 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18151          X"$as_dir" : 'X\(//\)[^/]' \| \
18152          X"$as_dir" : 'X\(//\)$' \| \
18153          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18154 $as_echo X"$as_dir" |
18155     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18156             s//\1/
18157             q
18158           }
18159           /^X\(\/\/\)[^/].*/{
18160             s//\1/
18161             q
18162           }
18163           /^X\(\/\/\)$/{
18164             s//\1/
18165             q
18166           }
18167           /^X\(\/\).*/{
18168             s//\1/
18169             q
18170           }
18171           s/.*/./; q'`
18172       test -d "$as_dir" && break
18173     done
18174     test -z "$as_dirs" || eval "mkdir $as_dirs"
18175   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18176
18177
18178 } # as_fn_mkdir_p
18179 if mkdir -p . 2>/dev/null; then
18180   as_mkdir_p='mkdir -p "$as_dir"'
18181 else
18182   test -d ./-p && rmdir ./-p
18183   as_mkdir_p=false
18184 fi
18185
18186 if test -x / >/dev/null 2>&1; then
18187   as_test_x='test -x'
18188 else
18189   if ls -dL / >/dev/null 2>&1; then
18190     as_ls_L_option=L
18191   else
18192     as_ls_L_option=
18193   fi
18194   as_test_x='
18195     eval sh -c '\''
18196       if test -d "$1"; then
18197         test -d "$1/.";
18198       else
18199         case $1 in #(
18200         -*)set "./$1";;
18201         esac;
18202         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18203         ???[sx]*):;;*)false;;esac;fi
18204     '\'' sh
18205   '
18206 fi
18207 as_executable_p=$as_test_x
18208
18209 # Sed expression to map a string onto a valid CPP name.
18210 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18211
18212 # Sed expression to map a string onto a valid variable name.
18213 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18214
18215
18216 exec 6>&1
18217 ## ----------------------------------- ##
18218 ## Main body of $CONFIG_STATUS script. ##
18219 ## ----------------------------------- ##
18220 _ASEOF
18221 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18222
18223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18224 # Save the log message, to keep $0 and so on meaningful, and to
18225 # report actual input values of CONFIG_FILES etc. instead of their
18226 # values after options handling.
18227 ac_log="
18228 This file was extended by scim-unikey $as_me 0.3.1, which was
18229 generated by GNU Autoconf 2.64.  Invocation command line was
18230
18231   CONFIG_FILES    = $CONFIG_FILES
18232   CONFIG_HEADERS  = $CONFIG_HEADERS
18233   CONFIG_LINKS    = $CONFIG_LINKS
18234   CONFIG_COMMANDS = $CONFIG_COMMANDS
18235   $ $0 $@
18236
18237 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18238 "
18239
18240 _ACEOF
18241
18242 case $ac_config_files in *"
18243 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18244 esac
18245
18246 case $ac_config_headers in *"
18247 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18248 esac
18249
18250
18251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18252 # Files that config.status was made for.
18253 config_files="$ac_config_files"
18254 config_headers="$ac_config_headers"
18255 config_commands="$ac_config_commands"
18256
18257 _ACEOF
18258
18259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18260 ac_cs_usage="\
18261 \`$as_me' instantiates files and other configuration actions
18262 from templates according to the current configuration.  Unless the files
18263 and actions are specified as TAGs, all are instantiated by default.
18264
18265 Usage: $0 [OPTION]... [TAG]...
18266
18267   -h, --help       print this help, then exit
18268   -V, --version    print version number and configuration settings, then exit
18269   -q, --quiet, --silent
18270                    do not print progress messages
18271   -d, --debug      don't remove temporary files
18272       --recheck    update $as_me by reconfiguring in the same conditions
18273       --file=FILE[:TEMPLATE]
18274                    instantiate the configuration file FILE
18275       --header=FILE[:TEMPLATE]
18276                    instantiate the configuration header FILE
18277
18278 Configuration files:
18279 $config_files
18280
18281 Configuration headers:
18282 $config_headers
18283
18284 Configuration commands:
18285 $config_commands
18286
18287 Report bugs to <mr.lequoctuan@gmail.com>."
18288
18289 _ACEOF
18290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18291 ac_cs_version="\\
18292 scim-unikey config.status 0.3.1
18293 configured by $0, generated by GNU Autoconf 2.64,
18294   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18295
18296 Copyright (C) 2009 Free Software Foundation, Inc.
18297 This config.status script is free software; the Free Software Foundation
18298 gives unlimited permission to copy, distribute and modify it."
18299
18300 ac_pwd='$ac_pwd'
18301 srcdir='$srcdir'
18302 INSTALL='$INSTALL'
18303 MKDIR_P='$MKDIR_P'
18304 AWK='$AWK'
18305 test -n "\$AWK" || AWK=awk
18306 _ACEOF
18307
18308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18309 # The default lists apply if the user does not specify any file.
18310 ac_need_defaults=:
18311 while test $# != 0
18312 do
18313   case $1 in
18314   --*=*)
18315     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18316     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18317     ac_shift=:
18318     ;;
18319   *)
18320     ac_option=$1
18321     ac_optarg=$2
18322     ac_shift=shift
18323     ;;
18324   esac
18325
18326   case $ac_option in
18327   # Handling of the options.
18328   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18329     ac_cs_recheck=: ;;
18330   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18331     $as_echo "$ac_cs_version"; exit ;;
18332   --debug | --debu | --deb | --de | --d | -d )
18333     debug=: ;;
18334   --file | --fil | --fi | --f )
18335     $ac_shift
18336     case $ac_optarg in
18337     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18338     esac
18339     as_fn_append CONFIG_FILES " '$ac_optarg'"
18340     ac_need_defaults=false;;
18341   --header | --heade | --head | --hea )
18342     $ac_shift
18343     case $ac_optarg in
18344     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18345     esac
18346     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18347     ac_need_defaults=false;;
18348   --he | --h)
18349     # Conflict between --help and --header
18350     as_fn_error "ambiguous option: \`$1'
18351 Try \`$0 --help' for more information.";;
18352   --help | --hel | -h )
18353     $as_echo "$ac_cs_usage"; exit ;;
18354   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18355   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18356     ac_cs_silent=: ;;
18357
18358   # This is an error.
18359   -*) as_fn_error "unrecognized option: \`$1'
18360 Try \`$0 --help' for more information." ;;
18361
18362   *) as_fn_append ac_config_targets " $1"
18363      ac_need_defaults=false ;;
18364
18365   esac
18366   shift
18367 done
18368
18369 ac_configure_extra_args=
18370
18371 if $ac_cs_silent; then
18372   exec 6>/dev/null
18373   ac_configure_extra_args="$ac_configure_extra_args --silent"
18374 fi
18375
18376 _ACEOF
18377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18378 if \$ac_cs_recheck; then
18379   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18380   shift
18381   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18382   CONFIG_SHELL='$SHELL'
18383   export CONFIG_SHELL
18384   exec "\$@"
18385 fi
18386
18387 _ACEOF
18388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389 exec 5>>config.log
18390 {
18391   echo
18392   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18393 ## Running $as_me. ##
18394 _ASBOX
18395   $as_echo "$ac_log"
18396 } >&5
18397
18398 _ACEOF
18399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18400 #
18401 # INIT-COMMANDS
18402 #
18403 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
18404     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
18405     # from automake < 1.5.
18406     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
18407     # Capture the value of LINGUAS because we need it to compute CATALOGS.
18408     LINGUAS="${LINGUAS-%UNSET%}"
18409
18410 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18411
18412
18413 # The HP-UX ksh and POSIX shell print the target directory to stdout
18414 # if CDPATH is set.
18415 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18416
18417 sed_quote_subst='$sed_quote_subst'
18418 double_quote_subst='$double_quote_subst'
18419 delay_variable_subst='$delay_variable_subst'
18420 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18421 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18422 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18423 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18424 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18425 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18426 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18427 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18428 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18429 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18430 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18431 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18432 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18433 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18434 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18435 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18436 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18437 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18438 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18439 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18440 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18441 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18442 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18443 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18444 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18445 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18446 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18447 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18448 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18449 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18450 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18451 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18452 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18453 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18454 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18455 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18456 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18457 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18458 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18459 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18460 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18461 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18462 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18463 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18464 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18466 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18467 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18468 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18469 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18470 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18471 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18472 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18473 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18474 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18475 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18476 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18477 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18478 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18479 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18480 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18481 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18482 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18483 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18484 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18485 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18486 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18487 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18488 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18489 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18490 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18491 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18492 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18493 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18494 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18495 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18496 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18497 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18498 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18499 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18500 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18501 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18502 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18503 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18504 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18505 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18506 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18507 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18508 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18509 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18510 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18511 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18512 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18513 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18514 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18515 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18516 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18517 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18518 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18519 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18520 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18521 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18522 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18523 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18524 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18525 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18526 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18527 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18528 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18529 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18530 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18531 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18532 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18533 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18534 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18535 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18536 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18537 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18538 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18539 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18540 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18541 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18542 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18543 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18544 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18545 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18546 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18547 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18548 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18549 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18550 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18551 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18552 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18553 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18554 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18555 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18556 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18557 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18558 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18559 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18560 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18561 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18562 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18563 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18564 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18565 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18566 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18567 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18568 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18569 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18570 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18571 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18572 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18573 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18574 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18575 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18576 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18577 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18578 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18579 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18580 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18581 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18582 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18583 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18584 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18585 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18586 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18587 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18588 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18589 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18590 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18591
18592 LTCC='$LTCC'
18593 LTCFLAGS='$LTCFLAGS'
18594 compiler='$compiler_DEFAULT'
18595
18596 # Quote evaled strings.
18597 for var in SED \
18598 GREP \
18599 EGREP \
18600 FGREP \
18601 LD \
18602 NM \
18603 LN_S \
18604 lt_SP2NL \
18605 lt_NL2SP \
18606 reload_flag \
18607 OBJDUMP \
18608 deplibs_check_method \
18609 file_magic_cmd \
18610 AR \
18611 AR_FLAGS \
18612 STRIP \
18613 RANLIB \
18614 CC \
18615 CFLAGS \
18616 compiler \
18617 lt_cv_sys_global_symbol_pipe \
18618 lt_cv_sys_global_symbol_to_cdecl \
18619 lt_cv_sys_global_symbol_to_c_name_address \
18620 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18621 SHELL \
18622 ECHO \
18623 lt_prog_compiler_no_builtin_flag \
18624 lt_prog_compiler_wl \
18625 lt_prog_compiler_pic \
18626 lt_prog_compiler_static \
18627 lt_cv_prog_compiler_c_o \
18628 need_locks \
18629 DSYMUTIL \
18630 NMEDIT \
18631 LIPO \
18632 OTOOL \
18633 OTOOL64 \
18634 shrext_cmds \
18635 export_dynamic_flag_spec \
18636 whole_archive_flag_spec \
18637 compiler_needs_object \
18638 with_gnu_ld \
18639 allow_undefined_flag \
18640 no_undefined_flag \
18641 hardcode_libdir_flag_spec \
18642 hardcode_libdir_flag_spec_ld \
18643 hardcode_libdir_separator \
18644 fix_srcfile_path \
18645 exclude_expsyms \
18646 include_expsyms \
18647 file_list_spec \
18648 variables_saved_for_relink \
18649 libname_spec \
18650 library_names_spec \
18651 soname_spec \
18652 finish_eval \
18653 old_striplib \
18654 striplib \
18655 compiler_lib_search_dirs \
18656 predep_objects \
18657 postdep_objects \
18658 predeps \
18659 postdeps \
18660 compiler_lib_search_path \
18661 LD_CXX \
18662 compiler_CXX \
18663 lt_prog_compiler_no_builtin_flag_CXX \
18664 lt_prog_compiler_wl_CXX \
18665 lt_prog_compiler_pic_CXX \
18666 lt_prog_compiler_static_CXX \
18667 lt_cv_prog_compiler_c_o_CXX \
18668 export_dynamic_flag_spec_CXX \
18669 whole_archive_flag_spec_CXX \
18670 compiler_needs_object_CXX \
18671 with_gnu_ld_CXX \
18672 allow_undefined_flag_CXX \
18673 no_undefined_flag_CXX \
18674 hardcode_libdir_flag_spec_CXX \
18675 hardcode_libdir_flag_spec_ld_CXX \
18676 hardcode_libdir_separator_CXX \
18677 fix_srcfile_path_CXX \
18678 exclude_expsyms_CXX \
18679 include_expsyms_CXX \
18680 file_list_spec_CXX \
18681 compiler_lib_search_dirs_CXX \
18682 predep_objects_CXX \
18683 postdep_objects_CXX \
18684 predeps_CXX \
18685 postdeps_CXX \
18686 compiler_lib_search_path_CXX; do
18687     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18688     *[\\\\\\\`\\"\\\$]*)
18689       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18690       ;;
18691     *)
18692       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18693       ;;
18694     esac
18695 done
18696
18697 # Double-quote double-evaled strings.
18698 for var in reload_cmds \
18699 old_postinstall_cmds \
18700 old_postuninstall_cmds \
18701 old_archive_cmds \
18702 extract_expsyms_cmds \
18703 old_archive_from_new_cmds \
18704 old_archive_from_expsyms_cmds \
18705 archive_cmds \
18706 archive_expsym_cmds \
18707 module_cmds \
18708 module_expsym_cmds \
18709 export_symbols_cmds \
18710 prelink_cmds \
18711 postinstall_cmds \
18712 postuninstall_cmds \
18713 finish_cmds \
18714 sys_lib_search_path_spec \
18715 sys_lib_dlsearch_path_spec \
18716 old_archive_cmds_CXX \
18717 old_archive_from_new_cmds_CXX \
18718 old_archive_from_expsyms_cmds_CXX \
18719 archive_cmds_CXX \
18720 archive_expsym_cmds_CXX \
18721 module_cmds_CXX \
18722 module_expsym_cmds_CXX \
18723 export_symbols_cmds_CXX \
18724 prelink_cmds_CXX; do
18725     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18726     *[\\\\\\\`\\"\\\$]*)
18727       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18728       ;;
18729     *)
18730       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18731       ;;
18732     esac
18733 done
18734
18735 # Fix-up fallback echo if it was mangled by the above quoting rules.
18736 case \$lt_ECHO in
18737 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18738   ;;
18739 esac
18740
18741 ac_aux_dir='$ac_aux_dir'
18742 xsi_shell='$xsi_shell'
18743 lt_shell_append='$lt_shell_append'
18744
18745 # See if we are running on zsh, and set the options which allow our
18746 # commands through without removal of \ escapes INIT.
18747 if test -n "\${ZSH_VERSION+set}" ; then
18748    setopt NO_GLOB_SUBST
18749 fi
18750
18751
18752     PACKAGE='$PACKAGE'
18753     VERSION='$VERSION'
18754     TIMESTAMP='$TIMESTAMP'
18755     RM='$RM'
18756     ofile='$ofile'
18757
18758
18759
18760
18761
18762
18763 _ACEOF
18764
18765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18766
18767 # Handling of arguments.
18768 for ac_config_target in $ac_config_targets
18769 do
18770   case $ac_config_target in
18771     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18772     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
18773     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18774     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18775     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18776     "scim-unikey.spec") CONFIG_FILES="$CONFIG_FILES scim-unikey.spec" ;;
18777     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18778     "ukengine/Makefile") CONFIG_FILES="$CONFIG_FILES ukengine/Makefile" ;;
18779     "icon/Makefile") CONFIG_FILES="$CONFIG_FILES icon/Makefile" ;;
18780     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18781     "setup/Makefile") CONFIG_FILES="$CONFIG_FILES setup/Makefile" ;;
18782
18783   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18784   esac
18785 done
18786
18787
18788 # If the user did not use the arguments to specify the items to instantiate,
18789 # then the envvar interface is used.  Set only those that are not.
18790 # We use the long form for the default assignment because of an extremely
18791 # bizarre bug on SunOS 4.1.3.
18792 if $ac_need_defaults; then
18793   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18794   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18795   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18796 fi
18797
18798 # Have a temporary directory for convenience.  Make it in the build tree
18799 # simply because there is no reason against having it here, and in addition,
18800 # creating and moving files from /tmp can sometimes cause problems.
18801 # Hook for its removal unless debugging.
18802 # Note that there is a small window in which the directory will not be cleaned:
18803 # after its creation but before its name has been assigned to `$tmp'.
18804 $debug ||
18805 {
18806   tmp=
18807   trap 'exit_status=$?
18808   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18809 ' 0
18810   trap 'as_fn_exit 1' 1 2 13 15
18811 }
18812 # Create a (secure) tmp directory for tmp files.
18813
18814 {
18815   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18816   test -n "$tmp" && test -d "$tmp"
18817 }  ||
18818 {
18819   tmp=./conf$$-$RANDOM
18820   (umask 077 && mkdir "$tmp")
18821 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18822
18823 # Set up the scripts for CONFIG_FILES section.
18824 # No need to generate them if there are no CONFIG_FILES.
18825 # This happens for instance with `./config.status config.h'.
18826 if test -n "$CONFIG_FILES"; then
18827
18828
18829 ac_cr=`echo X | tr X '\015'`
18830 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18831 # But we know of no other shell where ac_cr would be empty at this
18832 # point, so we can use a bashism as a fallback.
18833 if test "x$ac_cr" = x; then
18834   eval ac_cr=\$\'\\r\'
18835 fi
18836 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18837 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18838   ac_cs_awk_cr='\r'
18839 else
18840   ac_cs_awk_cr=$ac_cr
18841 fi
18842
18843 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18844 _ACEOF
18845
18846
18847 {
18848   echo "cat >conf$$subs.awk <<_ACEOF" &&
18849   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18850   echo "_ACEOF"
18851 } >conf$$subs.sh ||
18852   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18853 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18854 ac_delim='%!_!# '
18855 for ac_last_try in false false false false false :; do
18856   . ./conf$$subs.sh ||
18857     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18858
18859   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18860   if test $ac_delim_n = $ac_delim_num; then
18861     break
18862   elif $ac_last_try; then
18863     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18864   else
18865     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18866   fi
18867 done
18868 rm -f conf$$subs.sh
18869
18870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18871 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18872 _ACEOF
18873 sed -n '
18874 h
18875 s/^/S["/; s/!.*/"]=/
18876 p
18877 g
18878 s/^[^!]*!//
18879 :repl
18880 t repl
18881 s/'"$ac_delim"'$//
18882 t delim
18883 :nl
18884 h
18885 s/\(.\{148\}\).*/\1/
18886 t more1
18887 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18888 p
18889 n
18890 b repl
18891 :more1
18892 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18893 p
18894 g
18895 s/.\{148\}//
18896 t nl
18897 :delim
18898 h
18899 s/\(.\{148\}\).*/\1/
18900 t more2
18901 s/["\\]/\\&/g; s/^/"/; s/$/"/
18902 p
18903 b
18904 :more2
18905 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18906 p
18907 g
18908 s/.\{148\}//
18909 t delim
18910 ' <conf$$subs.awk | sed '
18911 /^[^""]/{
18912   N
18913   s/\n//
18914 }
18915 ' >>$CONFIG_STATUS || ac_write_fail=1
18916 rm -f conf$$subs.awk
18917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18918 _ACAWK
18919 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18920   for (key in S) S_is_set[key] = 1
18921   FS = "\a"
18922
18923 }
18924 {
18925   line = $ 0
18926   nfields = split(line, field, "@")
18927   substed = 0
18928   len = length(field[1])
18929   for (i = 2; i < nfields; i++) {
18930     key = field[i]
18931     keylen = length(key)
18932     if (S_is_set[key]) {
18933       value = S[key]
18934       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18935       len += length(value) + length(field[++i])
18936       substed = 1
18937     } else
18938       len += 1 + keylen
18939   }
18940
18941   print line
18942 }
18943
18944 _ACAWK
18945 _ACEOF
18946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18947 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18948   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18949 else
18950   cat
18951 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18952   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18953 _ACEOF
18954
18955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18957 # trailing colons and then remove the whole line if VPATH becomes empty
18958 # (actually we leave an empty line to preserve line numbers).
18959 if test "x$srcdir" = x.; then
18960   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18961 s/:*\$(srcdir):*/:/
18962 s/:*\${srcdir}:*/:/
18963 s/:*@srcdir@:*/:/
18964 s/^\([^=]*=[     ]*\):*/\1/
18965 s/:*$//
18966 s/^[^=]*=[       ]*$//
18967 }'
18968 fi
18969
18970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18971 fi # test -n "$CONFIG_FILES"
18972
18973 # Set up the scripts for CONFIG_HEADERS section.
18974 # No need to generate them if there are no CONFIG_HEADERS.
18975 # This happens for instance with `./config.status Makefile'.
18976 if test -n "$CONFIG_HEADERS"; then
18977 cat >"$tmp/defines.awk" <<\_ACAWK ||
18978 BEGIN {
18979 _ACEOF
18980
18981 # Transform confdefs.h into an awk script `defines.awk', embedded as
18982 # here-document in config.status, that substitutes the proper values into
18983 # config.h.in to produce config.h.
18984
18985 # Create a delimiter string that does not exist in confdefs.h, to ease
18986 # handling of long lines.
18987 ac_delim='%!_!# '
18988 for ac_last_try in false false :; do
18989   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18990   if test -z "$ac_t"; then
18991     break
18992   elif $ac_last_try; then
18993     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18994   else
18995     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18996   fi
18997 done
18998
18999 # For the awk script, D is an array of macro values keyed by name,
19000 # likewise P contains macro parameters if any.  Preserve backslash
19001 # newline sequences.
19002
19003 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19004 sed -n '
19005 s/.\{148\}/&'"$ac_delim"'/g
19006 t rset
19007 :rset
19008 s/^[     ]*#[    ]*define[       ][      ]*/ /
19009 t def
19010 d
19011 :def
19012 s/\\$//
19013 t bsnl
19014 s/["\\]/\\&/g
19015 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19016 D["\1"]=" \3"/p
19017 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
19018 d
19019 :bsnl
19020 s/["\\]/\\&/g
19021 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
19022 D["\1"]=" \3\\\\\\n"\\/p
19023 t cont
19024 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19025 t cont
19026 d
19027 :cont
19028 n
19029 s/.\{148\}/&'"$ac_delim"'/g
19030 t clear
19031 :clear
19032 s/\\$//
19033 t bsnlc
19034 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19035 d
19036 :bsnlc
19037 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19038 b cont
19039 ' <confdefs.h | sed '
19040 s/'"$ac_delim"'/"\\\
19041 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19042
19043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19044   for (key in D) D_is_set[key] = 1
19045   FS = "\a"
19046 }
19047 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19048   line = \$ 0
19049   split(line, arg, " ")
19050   if (arg[1] == "#") {
19051     defundef = arg[2]
19052     mac1 = arg[3]
19053   } else {
19054     defundef = substr(arg[1], 2)
19055     mac1 = arg[2]
19056   }
19057   split(mac1, mac2, "(") #)
19058   macro = mac2[1]
19059   prefix = substr(line, 1, index(line, defundef) - 1)
19060   if (D_is_set[macro]) {
19061     # Preserve the white space surrounding the "#".
19062     print prefix "define", macro P[macro] D[macro]
19063     next
19064   } else {
19065     # Replace #undef with comments.  This is necessary, for example,
19066     # in the case of _POSIX_SOURCE, which is predefined and required
19067     # on some systems where configure will not decide to define it.
19068     if (defundef == "undef") {
19069       print "/*", prefix defundef, macro, "*/"
19070       next
19071     }
19072   }
19073 }
19074 { print }
19075 _ACAWK
19076 _ACEOF
19077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19078   as_fn_error "could not setup config headers machinery" "$LINENO" 5
19079 fi # test -n "$CONFIG_HEADERS"
19080
19081
19082 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19083 shift
19084 for ac_tag
19085 do
19086   case $ac_tag in
19087   :[FHLC]) ac_mode=$ac_tag; continue;;
19088   esac
19089   case $ac_mode$ac_tag in
19090   :[FHL]*:*);;
19091   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19092   :[FH]-) ac_tag=-:-;;
19093   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19094   esac
19095   ac_save_IFS=$IFS
19096   IFS=:
19097   set x $ac_tag
19098   IFS=$ac_save_IFS
19099   shift
19100   ac_file=$1
19101   shift
19102
19103   case $ac_mode in
19104   :L) ac_source=$1;;
19105   :[FH])
19106     ac_file_inputs=
19107     for ac_f
19108     do
19109       case $ac_f in
19110       -) ac_f="$tmp/stdin";;
19111       *) # Look for the file first in the build tree, then in the source tree
19112          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19113          # because $ac_f cannot contain `:'.
19114          test -f "$ac_f" ||
19115            case $ac_f in
19116            [\\/$]*) false;;
19117            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19118            esac ||
19119            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19120       esac
19121       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19122       as_fn_append ac_file_inputs " '$ac_f'"
19123     done
19124
19125     # Let's still pretend it is `configure' which instantiates (i.e., don't
19126     # use $as_me), people would be surprised to read:
19127     #    /* config.h.  Generated by config.status.  */
19128     configure_input='Generated from '`
19129           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19130         `' by configure.'
19131     if test x"$ac_file" != x-; then
19132       configure_input="$ac_file.  $configure_input"
19133       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19134 $as_echo "$as_me: creating $ac_file" >&6;}
19135     fi
19136     # Neutralize special characters interpreted by sed in replacement strings.
19137     case $configure_input in #(
19138     *\&* | *\|* | *\\* )
19139        ac_sed_conf_input=`$as_echo "$configure_input" |
19140        sed 's/[\\\\&|]/\\\\&/g'`;; #(
19141     *) ac_sed_conf_input=$configure_input;;
19142     esac
19143
19144     case $ac_tag in
19145     *:-:* | *:-) cat >"$tmp/stdin" \
19146       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19147     esac
19148     ;;
19149   esac
19150
19151   ac_dir=`$as_dirname -- "$ac_file" ||
19152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19153          X"$ac_file" : 'X\(//\)[^/]' \| \
19154          X"$ac_file" : 'X\(//\)$' \| \
19155          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19156 $as_echo X"$ac_file" |
19157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19158             s//\1/
19159             q
19160           }
19161           /^X\(\/\/\)[^/].*/{
19162             s//\1/
19163             q
19164           }
19165           /^X\(\/\/\)$/{
19166             s//\1/
19167             q
19168           }
19169           /^X\(\/\).*/{
19170             s//\1/
19171             q
19172           }
19173           s/.*/./; q'`
19174   as_dir="$ac_dir"; as_fn_mkdir_p
19175   ac_builddir=.
19176
19177 case "$ac_dir" in
19178 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19179 *)
19180   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19181   # A ".." for each directory in $ac_dir_suffix.
19182   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19183   case $ac_top_builddir_sub in
19184   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19185   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19186   esac ;;
19187 esac
19188 ac_abs_top_builddir=$ac_pwd
19189 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19190 # for backward compatibility:
19191 ac_top_builddir=$ac_top_build_prefix
19192
19193 case $srcdir in
19194   .)  # We are building in place.
19195     ac_srcdir=.
19196     ac_top_srcdir=$ac_top_builddir_sub
19197     ac_abs_top_srcdir=$ac_pwd ;;
19198   [\\/]* | ?:[\\/]* )  # Absolute name.
19199     ac_srcdir=$srcdir$ac_dir_suffix;
19200     ac_top_srcdir=$srcdir
19201     ac_abs_top_srcdir=$srcdir ;;
19202   *) # Relative name.
19203     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19204     ac_top_srcdir=$ac_top_build_prefix$srcdir
19205     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19206 esac
19207 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19208
19209
19210   case $ac_mode in
19211   :F)
19212   #
19213   # CONFIG_FILE
19214   #
19215
19216   case $INSTALL in
19217   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19218   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19219   esac
19220   ac_MKDIR_P=$MKDIR_P
19221   case $MKDIR_P in
19222   [\\/$]* | ?:[\\/]* ) ;;
19223   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19224   esac
19225 _ACEOF
19226
19227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19228 # If the template does not know about datarootdir, expand it.
19229 # FIXME: This hack should be removed a few years after 2.60.
19230 ac_datarootdir_hack=; ac_datarootdir_seen=
19231 ac_sed_dataroot='
19232 /datarootdir/ {
19233   p
19234   q
19235 }
19236 /@datadir@/p
19237 /@docdir@/p
19238 /@infodir@/p
19239 /@localedir@/p
19240 /@mandir@/p'
19241 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19242 *datarootdir*) ac_datarootdir_seen=yes;;
19243 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19244   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19245 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19246 _ACEOF
19247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19248   ac_datarootdir_hack='
19249   s&@datadir@&$datadir&g
19250   s&@docdir@&$docdir&g
19251   s&@infodir@&$infodir&g
19252   s&@localedir@&$localedir&g
19253   s&@mandir@&$mandir&g
19254   s&\\\${datarootdir}&$datarootdir&g' ;;
19255 esac
19256 _ACEOF
19257
19258 # Neutralize VPATH when `$srcdir' = `.'.
19259 # Shell code in configure.ac might set extrasub.
19260 # FIXME: do we really want to maintain this feature?
19261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19262 ac_sed_extra="$ac_vpsub
19263 $extrasub
19264 _ACEOF
19265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19266 :t
19267 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19268 s|@configure_input@|$ac_sed_conf_input|;t t
19269 s&@top_builddir@&$ac_top_builddir_sub&;t t
19270 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19271 s&@srcdir@&$ac_srcdir&;t t
19272 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19273 s&@top_srcdir@&$ac_top_srcdir&;t t
19274 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19275 s&@builddir@&$ac_builddir&;t t
19276 s&@abs_builddir@&$ac_abs_builddir&;t t
19277 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19278 s&@INSTALL@&$ac_INSTALL&;t t
19279 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19280 $ac_datarootdir_hack
19281 "
19282 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19283   || as_fn_error "could not create $ac_file" "$LINENO" 5
19284
19285 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19286   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19287   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19288   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19289 which seems to be undefined.  Please make sure it is defined." >&5
19290 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19291 which seems to be undefined.  Please make sure it is defined." >&2;}
19292
19293   rm -f "$tmp/stdin"
19294   case $ac_file in
19295   -) cat "$tmp/out" && rm -f "$tmp/out";;
19296   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19297   esac \
19298   || as_fn_error "could not create $ac_file" "$LINENO" 5
19299  ;;
19300   :H)
19301   #
19302   # CONFIG_HEADER
19303   #
19304   if test x"$ac_file" != x-; then
19305     {
19306       $as_echo "/* $configure_input  */" \
19307       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19308     } >"$tmp/config.h" \
19309       || as_fn_error "could not create $ac_file" "$LINENO" 5
19310     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19311       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19312 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19313     else
19314       rm -f "$ac_file"
19315       mv "$tmp/config.h" "$ac_file" \
19316         || as_fn_error "could not create $ac_file" "$LINENO" 5
19317     fi
19318   else
19319     $as_echo "/* $configure_input  */" \
19320       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19321       || as_fn_error "could not create -" "$LINENO" 5
19322   fi
19323 # Compute "$ac_file"'s index in $config_headers.
19324 _am_arg="$ac_file"
19325 _am_stamp_count=1
19326 for _am_header in $config_headers :; do
19327   case $_am_header in
19328     $_am_arg | $_am_arg:* )
19329       break ;;
19330     * )
19331       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19332   esac
19333 done
19334 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19335 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19336          X"$_am_arg" : 'X\(//\)[^/]' \| \
19337          X"$_am_arg" : 'X\(//\)$' \| \
19338          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19339 $as_echo X"$_am_arg" |
19340     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19341             s//\1/
19342             q
19343           }
19344           /^X\(\/\/\)[^/].*/{
19345             s//\1/
19346             q
19347           }
19348           /^X\(\/\/\)$/{
19349             s//\1/
19350             q
19351           }
19352           /^X\(\/\).*/{
19353             s//\1/
19354             q
19355           }
19356           s/.*/./; q'`/stamp-h$_am_stamp_count
19357  ;;
19358
19359   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19360 $as_echo "$as_me: executing $ac_file commands" >&6;}
19361  ;;
19362   esac
19363
19364
19365   case $ac_file$ac_mode in
19366     "po-directories":C)
19367     for ac_file in $CONFIG_FILES; do
19368       # Support "outfile[:infile[:infile...]]"
19369       case "$ac_file" in
19370         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19371       esac
19372       # PO directories have a Makefile.in generated from Makefile.in.in.
19373       case "$ac_file" in */Makefile.in)
19374         # Adjust a relative srcdir.
19375         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19376         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19377         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19378         # In autoconf-2.13 it is called $ac_given_srcdir.
19379         # In autoconf-2.50 it is called $srcdir.
19380         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19381         case "$ac_given_srcdir" in
19382           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19383           /*) top_srcdir="$ac_given_srcdir" ;;
19384           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19385         esac
19386         # Treat a directory as a PO directory if and only if it has a
19387         # POTFILES.in file. This allows packages to have multiple PO
19388         # directories under different names or in different locations.
19389         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19390           rm -f "$ac_dir/POTFILES"
19391           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19392           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19393           POMAKEFILEDEPS="POTFILES.in"
19394           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19395           # on $ac_dir but don't depend on user-specified configuration
19396           # parameters.
19397           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19398             # The LINGUAS file contains the set of available languages.
19399             if test -n "$OBSOLETE_ALL_LINGUAS"; then
19400               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19401             fi
19402             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19403             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19404             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19405             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19406           else
19407             # The set of available languages was given in configure.in.
19408             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19409             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19410           fi
19411           # Compute POFILES
19412           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19413           # Compute UPDATEPOFILES
19414           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19415           # Compute DUMMYPOFILES
19416           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19417           # Compute GMOFILES
19418           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19419           case "$ac_given_srcdir" in
19420             .) srcdirpre= ;;
19421             *) srcdirpre='$(srcdir)/' ;;
19422           esac
19423           POFILES=
19424           UPDATEPOFILES=
19425           DUMMYPOFILES=
19426           GMOFILES=
19427           for lang in $ALL_LINGUAS; do
19428             POFILES="$POFILES $srcdirpre$lang.po"
19429             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19430             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19431             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19432           done
19433           # CATALOGS depends on both $ac_dir and the user's LINGUAS
19434           # environment variable.
19435           INST_LINGUAS=
19436           if test -n "$ALL_LINGUAS"; then
19437             for presentlang in $ALL_LINGUAS; do
19438               useit=no
19439               if test "%UNSET%" != "$LINGUAS"; then
19440                 desiredlanguages="$LINGUAS"
19441               else
19442                 desiredlanguages="$ALL_LINGUAS"
19443               fi
19444               for desiredlang in $desiredlanguages; do
19445                 # Use the presentlang catalog if desiredlang is
19446                 #   a. equal to presentlang, or
19447                 #   b. a variant of presentlang (because in this case,
19448                 #      presentlang can be used as a fallback for messages
19449                 #      which are not translated in the desiredlang catalog).
19450                 case "$desiredlang" in
19451                   "$presentlang"*) useit=yes;;
19452                 esac
19453               done
19454               if test $useit = yes; then
19455                 INST_LINGUAS="$INST_LINGUAS $presentlang"
19456               fi
19457             done
19458           fi
19459           CATALOGS=
19460           if test -n "$INST_LINGUAS"; then
19461             for lang in $INST_LINGUAS; do
19462               CATALOGS="$CATALOGS $lang.gmo"
19463             done
19464           fi
19465           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19466           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"
19467           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19468             if test -f "$f"; then
19469               case "$f" in
19470                 *.orig | *.bak | *~) ;;
19471                 *) cat "$f" >> "$ac_dir/Makefile" ;;
19472               esac
19473             fi
19474           done
19475         fi
19476         ;;
19477       esac
19478     done ;;
19479     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19480   # Autoconf 2.62 quotes --file arguments for eval, but not when files
19481   # are listed without --file.  Let's play safe and only enable the eval
19482   # if we detect the quoting.
19483   case $CONFIG_FILES in
19484   *\'*) eval set x "$CONFIG_FILES" ;;
19485   *)   set x $CONFIG_FILES ;;
19486   esac
19487   shift
19488   for mf
19489   do
19490     # Strip MF so we end up with the name of the file.
19491     mf=`echo "$mf" | sed -e 's/:.*$//'`
19492     # Check whether this is an Automake generated Makefile or not.
19493     # We used to match only the files named `Makefile.in', but
19494     # some people rename them; so instead we look at the file content.
19495     # Grep'ing the first line is not enough: some people post-process
19496     # each Makefile.in and add a new line on top of each file to say so.
19497     # Grep'ing the whole file is not good either: AIX grep has a line
19498     # limit of 2048, but all sed's we know have understand at least 4000.
19499     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19500       dirpart=`$as_dirname -- "$mf" ||
19501 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19502          X"$mf" : 'X\(//\)[^/]' \| \
19503          X"$mf" : 'X\(//\)$' \| \
19504          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19505 $as_echo X"$mf" |
19506     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19507             s//\1/
19508             q
19509           }
19510           /^X\(\/\/\)[^/].*/{
19511             s//\1/
19512             q
19513           }
19514           /^X\(\/\/\)$/{
19515             s//\1/
19516             q
19517           }
19518           /^X\(\/\).*/{
19519             s//\1/
19520             q
19521           }
19522           s/.*/./; q'`
19523     else
19524       continue
19525     fi
19526     # Extract the definition of DEPDIR, am__include, and am__quote
19527     # from the Makefile without running `make'.
19528     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19529     test -z "$DEPDIR" && continue
19530     am__include=`sed -n 's/^am__include = //p' < "$mf"`
19531     test -z "am__include" && continue
19532     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19533     # When using ansi2knr, U may be empty or an underscore; expand it
19534     U=`sed -n 's/^U = //p' < "$mf"`
19535     # Find all dependency output files, they are included files with
19536     # $(DEPDIR) in their names.  We invoke sed twice because it is the
19537     # simplest approach to changing $(DEPDIR) to its actual value in the
19538     # expansion.
19539     for file in `sed -n "
19540       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19541          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19542       # Make sure the directory exists.
19543       test -f "$dirpart/$file" && continue
19544       fdir=`$as_dirname -- "$file" ||
19545 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19546          X"$file" : 'X\(//\)[^/]' \| \
19547          X"$file" : 'X\(//\)$' \| \
19548          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19549 $as_echo X"$file" |
19550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19551             s//\1/
19552             q
19553           }
19554           /^X\(\/\/\)[^/].*/{
19555             s//\1/
19556             q
19557           }
19558           /^X\(\/\/\)$/{
19559             s//\1/
19560             q
19561           }
19562           /^X\(\/\).*/{
19563             s//\1/
19564             q
19565           }
19566           s/.*/./; q'`
19567       as_dir=$dirpart/$fdir; as_fn_mkdir_p
19568       # echo "creating $dirpart/$file"
19569       echo '# dummy' > "$dirpart/$file"
19570     done
19571   done
19572 }
19573  ;;
19574     "libtool":C)
19575
19576     # See if we are running on zsh, and set the options which allow our
19577     # commands through without removal of \ escapes.
19578     if test -n "${ZSH_VERSION+set}" ; then
19579       setopt NO_GLOB_SUBST
19580     fi
19581
19582     cfgfile="${ofile}T"
19583     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19584     $RM "$cfgfile"
19585
19586     cat <<_LT_EOF >> "$cfgfile"
19587 #! $SHELL
19588
19589 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19590 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19591 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19592 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19593 #
19594 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19595 #                 2006, 2007, 2008 Free Software Foundation, Inc.
19596 #   Written by Gordon Matzigkeit, 1996
19597 #
19598 #   This file is part of GNU Libtool.
19599 #
19600 # GNU Libtool is free software; you can redistribute it and/or
19601 # modify it under the terms of the GNU General Public License as
19602 # published by the Free Software Foundation; either version 2 of
19603 # the License, or (at your option) any later version.
19604 #
19605 # As a special exception to the GNU General Public License,
19606 # if you distribute this file as part of a program or library that
19607 # is built using GNU Libtool, you may include this file under the
19608 # same distribution terms that you use for the rest of that program.
19609 #
19610 # GNU Libtool is distributed in the hope that it will be useful,
19611 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19612 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19613 # GNU General Public License for more details.
19614 #
19615 # You should have received a copy of the GNU General Public License
19616 # along with GNU Libtool; see the file COPYING.  If not, a copy
19617 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19618 # obtained by writing to the Free Software Foundation, Inc.,
19619 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19620
19621
19622 # The names of the tagged configurations supported by this script.
19623 available_tags="CXX "
19624
19625 # ### BEGIN LIBTOOL CONFIG
19626
19627 # Which release of libtool.m4 was used?
19628 macro_version=$macro_version
19629 macro_revision=$macro_revision
19630
19631 # Whether or not to build static libraries.
19632 build_old_libs=$enable_static
19633
19634 # Whether or not to build shared libraries.
19635 build_libtool_libs=$enable_shared
19636
19637 # What type of objects to build.
19638 pic_mode=$pic_mode
19639
19640 # Whether or not to optimize for fast installation.
19641 fast_install=$enable_fast_install
19642
19643 # The host system.
19644 host_alias=$host_alias
19645 host=$host
19646 host_os=$host_os
19647
19648 # The build system.
19649 build_alias=$build_alias
19650 build=$build
19651 build_os=$build_os
19652
19653 # A sed program that does not truncate output.
19654 SED=$lt_SED
19655
19656 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19657 Xsed="\$SED -e 1s/^X//"
19658
19659 # A grep program that handles long lines.
19660 GREP=$lt_GREP
19661
19662 # An ERE matcher.
19663 EGREP=$lt_EGREP
19664
19665 # A literal string matcher.
19666 FGREP=$lt_FGREP
19667
19668 # A BSD- or MS-compatible name lister.
19669 NM=$lt_NM
19670
19671 # Whether we need soft or hard links.
19672 LN_S=$lt_LN_S
19673
19674 # What is the maximum length of a command?
19675 max_cmd_len=$max_cmd_len
19676
19677 # Object file suffix (normally "o").
19678 objext=$ac_objext
19679
19680 # Executable file suffix (normally "").
19681 exeext=$exeext
19682
19683 # whether the shell understands "unset".
19684 lt_unset=$lt_unset
19685
19686 # turn spaces into newlines.
19687 SP2NL=$lt_lt_SP2NL
19688
19689 # turn newlines into spaces.
19690 NL2SP=$lt_lt_NL2SP
19691
19692 # How to create reloadable object files.
19693 reload_flag=$lt_reload_flag
19694 reload_cmds=$lt_reload_cmds
19695
19696 # An object symbol dumper.
19697 OBJDUMP=$lt_OBJDUMP
19698
19699 # Method to check whether dependent libraries are shared objects.
19700 deplibs_check_method=$lt_deplibs_check_method
19701
19702 # Command to use when deplibs_check_method == "file_magic".
19703 file_magic_cmd=$lt_file_magic_cmd
19704
19705 # The archiver.
19706 AR=$lt_AR
19707 AR_FLAGS=$lt_AR_FLAGS
19708
19709 # A symbol stripping program.
19710 STRIP=$lt_STRIP
19711
19712 # Commands used to install an old-style archive.
19713 RANLIB=$lt_RANLIB
19714 old_postinstall_cmds=$lt_old_postinstall_cmds
19715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19716
19717 # A C compiler.
19718 LTCC=$lt_CC
19719
19720 # LTCC compiler flags.
19721 LTCFLAGS=$lt_CFLAGS
19722
19723 # Take the output of nm and produce a listing of raw symbols and C names.
19724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19725
19726 # Transform the output of nm in a proper C declaration.
19727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19728
19729 # Transform the output of nm in a C name address pair.
19730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19731
19732 # Transform the output of nm in a C name address pair when lib prefix is needed.
19733 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19734
19735 # The name of the directory that contains temporary libtool files.
19736 objdir=$objdir
19737
19738 # Shell to use when invoking shell scripts.
19739 SHELL=$lt_SHELL
19740
19741 # An echo program that does not interpret backslashes.
19742 ECHO=$lt_ECHO
19743
19744 # Used to examine libraries when file_magic_cmd begins with "file".
19745 MAGIC_CMD=$MAGIC_CMD
19746
19747 # Must we lock files when doing compilation?
19748 need_locks=$lt_need_locks
19749
19750 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19751 DSYMUTIL=$lt_DSYMUTIL
19752
19753 # Tool to change global to local symbols on Mac OS X.
19754 NMEDIT=$lt_NMEDIT
19755
19756 # Tool to manipulate fat objects and archives on Mac OS X.
19757 LIPO=$lt_LIPO
19758
19759 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19760 OTOOL=$lt_OTOOL
19761
19762 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19763 OTOOL64=$lt_OTOOL64
19764
19765 # Old archive suffix (normally "a").
19766 libext=$libext
19767
19768 # Shared library suffix (normally ".so").
19769 shrext_cmds=$lt_shrext_cmds
19770
19771 # The commands to extract the exported symbol list from a shared archive.
19772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19773
19774 # Variables whose values should be saved in libtool wrapper scripts and
19775 # restored at link time.
19776 variables_saved_for_relink=$lt_variables_saved_for_relink
19777
19778 # Do we need the "lib" prefix for modules?
19779 need_lib_prefix=$need_lib_prefix
19780
19781 # Do we need a version for libraries?
19782 need_version=$need_version
19783
19784 # Library versioning type.
19785 version_type=$version_type
19786
19787 # Shared library runtime path variable.
19788 runpath_var=$runpath_var
19789
19790 # Shared library path variable.
19791 shlibpath_var=$shlibpath_var
19792
19793 # Is shlibpath searched before the hard-coded library search path?
19794 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19795
19796 # Format of library name prefix.
19797 libname_spec=$lt_libname_spec
19798
19799 # List of archive names.  First name is the real one, the rest are links.
19800 # The last name is the one that the linker finds with -lNAME
19801 library_names_spec=$lt_library_names_spec
19802
19803 # The coded name of the library, if different from the real name.
19804 soname_spec=$lt_soname_spec
19805
19806 # Command to use after installation of a shared archive.
19807 postinstall_cmds=$lt_postinstall_cmds
19808
19809 # Command to use after uninstallation of a shared archive.
19810 postuninstall_cmds=$lt_postuninstall_cmds
19811
19812 # Commands used to finish a libtool library installation in a directory.
19813 finish_cmds=$lt_finish_cmds
19814
19815 # As "finish_cmds", except a single script fragment to be evaled but
19816 # not shown.
19817 finish_eval=$lt_finish_eval
19818
19819 # Whether we should hardcode library paths into libraries.
19820 hardcode_into_libs=$hardcode_into_libs
19821
19822 # Compile-time system search path for libraries.
19823 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19824
19825 # Run-time system search path for libraries.
19826 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19827
19828 # Whether dlopen is supported.
19829 dlopen_support=$enable_dlopen
19830
19831 # Whether dlopen of programs is supported.
19832 dlopen_self=$enable_dlopen_self
19833
19834 # Whether dlopen of statically linked programs is supported.
19835 dlopen_self_static=$enable_dlopen_self_static
19836
19837 # Commands to strip libraries.
19838 old_striplib=$lt_old_striplib
19839 striplib=$lt_striplib
19840
19841
19842 # The linker used to build libraries.
19843 LD=$lt_LD
19844
19845 # Commands used to build an old-style archive.
19846 old_archive_cmds=$lt_old_archive_cmds
19847
19848 # A language specific compiler.
19849 CC=$lt_compiler
19850
19851 # Is the compiler the GNU compiler?
19852 with_gcc=$GCC
19853
19854 # Compiler flag to turn off builtin functions.
19855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19856
19857 # How to pass a linker flag through the compiler.
19858 wl=$lt_lt_prog_compiler_wl
19859
19860 # Additional compiler flags for building library objects.
19861 pic_flag=$lt_lt_prog_compiler_pic
19862
19863 # Compiler flag to prevent dynamic linking.
19864 link_static_flag=$lt_lt_prog_compiler_static
19865
19866 # Does compiler simultaneously support -c and -o options?
19867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19868
19869 # Whether or not to add -lc for building shared libraries.
19870 build_libtool_need_lc=$archive_cmds_need_lc
19871
19872 # Whether or not to disallow shared libs when runtime libs are static.
19873 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19874
19875 # Compiler flag to allow reflexive dlopens.
19876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19877
19878 # Compiler flag to generate shared objects directly from archives.
19879 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19880
19881 # Whether the compiler copes with passing no objects directly.
19882 compiler_needs_object=$lt_compiler_needs_object
19883
19884 # Create an old-style archive from a shared archive.
19885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19886
19887 # Create a temporary old-style archive to link instead of a shared archive.
19888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19889
19890 # Commands used to build a shared archive.
19891 archive_cmds=$lt_archive_cmds
19892 archive_expsym_cmds=$lt_archive_expsym_cmds
19893
19894 # Commands used to build a loadable module if different from building
19895 # a shared archive.
19896 module_cmds=$lt_module_cmds
19897 module_expsym_cmds=$lt_module_expsym_cmds
19898
19899 # Whether we are building with GNU ld or not.
19900 with_gnu_ld=$lt_with_gnu_ld
19901
19902 # Flag that allows shared libraries with undefined symbols to be built.
19903 allow_undefined_flag=$lt_allow_undefined_flag
19904
19905 # Flag that enforces no undefined symbols.
19906 no_undefined_flag=$lt_no_undefined_flag
19907
19908 # Flag to hardcode \$libdir into a binary during linking.
19909 # This must work even if \$libdir does not exist
19910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19911
19912 # If ld is used when linking, flag to hardcode \$libdir into a binary
19913 # during linking.  This must work even if \$libdir does not exist.
19914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19915
19916 # Whether we need a single "-rpath" flag with a separated argument.
19917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19918
19919 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19920 # DIR into the resulting binary.
19921 hardcode_direct=$hardcode_direct
19922
19923 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19924 # DIR into the resulting binary and the resulting library dependency is
19925 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19926 # library is relocated.
19927 hardcode_direct_absolute=$hardcode_direct_absolute
19928
19929 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19930 # into the resulting binary.
19931 hardcode_minus_L=$hardcode_minus_L
19932
19933 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19934 # into the resulting binary.
19935 hardcode_shlibpath_var=$hardcode_shlibpath_var
19936
19937 # Set to "yes" if building a shared library automatically hardcodes DIR
19938 # into the library and all subsequent libraries and executables linked
19939 # against it.
19940 hardcode_automatic=$hardcode_automatic
19941
19942 # Set to yes if linker adds runtime paths of dependent libraries
19943 # to runtime path list.
19944 inherit_rpath=$inherit_rpath
19945
19946 # Whether libtool must link a program against all its dependency libraries.
19947 link_all_deplibs=$link_all_deplibs
19948
19949 # Fix the shell variable \$srcfile for the compiler.
19950 fix_srcfile_path=$lt_fix_srcfile_path
19951
19952 # Set to "yes" if exported symbols are required.
19953 always_export_symbols=$always_export_symbols
19954
19955 # The commands to list exported symbols.
19956 export_symbols_cmds=$lt_export_symbols_cmds
19957
19958 # Symbols that should not be listed in the preloaded symbols.
19959 exclude_expsyms=$lt_exclude_expsyms
19960
19961 # Symbols that must always be exported.
19962 include_expsyms=$lt_include_expsyms
19963
19964 # Commands necessary for linking programs (against libraries) with templates.
19965 prelink_cmds=$lt_prelink_cmds
19966
19967 # Specify filename containing input files.
19968 file_list_spec=$lt_file_list_spec
19969
19970 # How to hardcode a shared library path into an executable.
19971 hardcode_action=$hardcode_action
19972
19973 # The directories searched by this compiler when creating a shared library.
19974 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19975
19976 # Dependencies to place before and after the objects being linked to
19977 # create a shared library.
19978 predep_objects=$lt_predep_objects
19979 postdep_objects=$lt_postdep_objects
19980 predeps=$lt_predeps
19981 postdeps=$lt_postdeps
19982
19983 # The library search path used internally by the compiler when linking
19984 # a shared library.
19985 compiler_lib_search_path=$lt_compiler_lib_search_path
19986
19987 # ### END LIBTOOL CONFIG
19988
19989 _LT_EOF
19990
19991   case $host_os in
19992   aix3*)
19993     cat <<\_LT_EOF >> "$cfgfile"
19994 # AIX sometimes has problems with the GCC collect2 program.  For some
19995 # reason, if we set the COLLECT_NAMES environment variable, the problems
19996 # vanish in a puff of smoke.
19997 if test "X${COLLECT_NAMES+set}" != Xset; then
19998   COLLECT_NAMES=
19999   export COLLECT_NAMES
20000 fi
20001 _LT_EOF
20002     ;;
20003   esac
20004
20005
20006 ltmain="$ac_aux_dir/ltmain.sh"
20007
20008
20009   # We use sed instead of cat because bash on DJGPP gets confused if
20010   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20011   # text mode, it properly converts lines to CR/LF.  This bash problem
20012   # is reportedly fixed, but why not run on old versions too?
20013   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20014     || (rm -f "$cfgfile"; exit 1)
20015
20016   case $xsi_shell in
20017   yes)
20018     cat << \_LT_EOF >> "$cfgfile"
20019
20020 # func_dirname file append nondir_replacement
20021 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20022 # otherwise set result to NONDIR_REPLACEMENT.
20023 func_dirname ()
20024 {
20025   case ${1} in
20026     */*) func_dirname_result="${1%/*}${2}" ;;
20027     *  ) func_dirname_result="${3}" ;;
20028   esac
20029 }
20030
20031 # func_basename file
20032 func_basename ()
20033 {
20034   func_basename_result="${1##*/}"
20035 }
20036
20037 # func_dirname_and_basename file append nondir_replacement
20038 # perform func_basename and func_dirname in a single function
20039 # call:
20040 #   dirname:  Compute the dirname of FILE.  If nonempty,
20041 #             add APPEND to the result, otherwise set result
20042 #             to NONDIR_REPLACEMENT.
20043 #             value returned in "$func_dirname_result"
20044 #   basename: Compute filename of FILE.
20045 #             value retuned in "$func_basename_result"
20046 # Implementation must be kept synchronized with func_dirname
20047 # and func_basename. For efficiency, we do not delegate to
20048 # those functions but instead duplicate the functionality here.
20049 func_dirname_and_basename ()
20050 {
20051   case ${1} in
20052     */*) func_dirname_result="${1%/*}${2}" ;;
20053     *  ) func_dirname_result="${3}" ;;
20054   esac
20055   func_basename_result="${1##*/}"
20056 }
20057
20058 # func_stripname prefix suffix name
20059 # strip PREFIX and SUFFIX off of NAME.
20060 # PREFIX and SUFFIX must not contain globbing or regex special
20061 # characters, hashes, percent signs, but SUFFIX may contain a leading
20062 # dot (in which case that matches only a dot).
20063 func_stripname ()
20064 {
20065   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20066   # positional parameters, so assign one to ordinary parameter first.
20067   func_stripname_result=${3}
20068   func_stripname_result=${func_stripname_result#"${1}"}
20069   func_stripname_result=${func_stripname_result%"${2}"}
20070 }
20071
20072 # func_opt_split
20073 func_opt_split ()
20074 {
20075   func_opt_split_opt=${1%%=*}
20076   func_opt_split_arg=${1#*=}
20077 }
20078
20079 # func_lo2o object
20080 func_lo2o ()
20081 {
20082   case ${1} in
20083     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20084     *)    func_lo2o_result=${1} ;;
20085   esac
20086 }
20087
20088 # func_xform libobj-or-source
20089 func_xform ()
20090 {
20091   func_xform_result=${1%.*}.lo
20092 }
20093
20094 # func_arith arithmetic-term...
20095 func_arith ()
20096 {
20097   func_arith_result=$(( $* ))
20098 }
20099
20100 # func_len string
20101 # STRING may not start with a hyphen.
20102 func_len ()
20103 {
20104   func_len_result=${#1}
20105 }
20106
20107 _LT_EOF
20108     ;;
20109   *) # Bourne compatible functions.
20110     cat << \_LT_EOF >> "$cfgfile"
20111
20112 # func_dirname file append nondir_replacement
20113 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
20114 # otherwise set result to NONDIR_REPLACEMENT.
20115 func_dirname ()
20116 {
20117   # Extract subdirectory from the argument.
20118   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20119   if test "X$func_dirname_result" = "X${1}"; then
20120     func_dirname_result="${3}"
20121   else
20122     func_dirname_result="$func_dirname_result${2}"
20123   fi
20124 }
20125
20126 # func_basename file
20127 func_basename ()
20128 {
20129   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20130 }
20131
20132
20133 # func_stripname prefix suffix name
20134 # strip PREFIX and SUFFIX off of NAME.
20135 # PREFIX and SUFFIX must not contain globbing or regex special
20136 # characters, hashes, percent signs, but SUFFIX may contain a leading
20137 # dot (in which case that matches only a dot).
20138 # func_strip_suffix prefix name
20139 func_stripname ()
20140 {
20141   case ${2} in
20142     .*) func_stripname_result=`$ECHO "X${3}" \
20143            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20144     *)  func_stripname_result=`$ECHO "X${3}" \
20145            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20146   esac
20147 }
20148
20149 # sed scripts:
20150 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20151 my_sed_long_arg='1s/^-[^=]*=//'
20152
20153 # func_opt_split
20154 func_opt_split ()
20155 {
20156   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20157   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20158 }
20159
20160 # func_lo2o object
20161 func_lo2o ()
20162 {
20163   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20164 }
20165
20166 # func_xform libobj-or-source
20167 func_xform ()
20168 {
20169   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20170 }
20171
20172 # func_arith arithmetic-term...
20173 func_arith ()
20174 {
20175   func_arith_result=`expr "$@"`
20176 }
20177
20178 # func_len string
20179 # STRING may not start with a hyphen.
20180 func_len ()
20181 {
20182   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20183 }
20184
20185 _LT_EOF
20186 esac
20187
20188 case $lt_shell_append in
20189   yes)
20190     cat << \_LT_EOF >> "$cfgfile"
20191
20192 # func_append var value
20193 # Append VALUE to the end of shell variable VAR.
20194 func_append ()
20195 {
20196   eval "$1+=\$2"
20197 }
20198 _LT_EOF
20199     ;;
20200   *)
20201     cat << \_LT_EOF >> "$cfgfile"
20202
20203 # func_append var value
20204 # Append VALUE to the end of shell variable VAR.
20205 func_append ()
20206 {
20207   eval "$1=\$$1\$2"
20208 }
20209
20210 _LT_EOF
20211     ;;
20212   esac
20213
20214
20215   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20216     || (rm -f "$cfgfile"; exit 1)
20217
20218   mv -f "$cfgfile" "$ofile" ||
20219     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20220   chmod +x "$ofile"
20221
20222
20223     cat <<_LT_EOF >> "$ofile"
20224
20225 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20226
20227 # The linker used to build libraries.
20228 LD=$lt_LD_CXX
20229
20230 # Commands used to build an old-style archive.
20231 old_archive_cmds=$lt_old_archive_cmds_CXX
20232
20233 # A language specific compiler.
20234 CC=$lt_compiler_CXX
20235
20236 # Is the compiler the GNU compiler?
20237 with_gcc=$GCC_CXX
20238
20239 # Compiler flag to turn off builtin functions.
20240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20241
20242 # How to pass a linker flag through the compiler.
20243 wl=$lt_lt_prog_compiler_wl_CXX
20244
20245 # Additional compiler flags for building library objects.
20246 pic_flag=$lt_lt_prog_compiler_pic_CXX
20247
20248 # Compiler flag to prevent dynamic linking.
20249 link_static_flag=$lt_lt_prog_compiler_static_CXX
20250
20251 # Does compiler simultaneously support -c and -o options?
20252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20253
20254 # Whether or not to add -lc for building shared libraries.
20255 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20256
20257 # Whether or not to disallow shared libs when runtime libs are static.
20258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20259
20260 # Compiler flag to allow reflexive dlopens.
20261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20262
20263 # Compiler flag to generate shared objects directly from archives.
20264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20265
20266 # Whether the compiler copes with passing no objects directly.
20267 compiler_needs_object=$lt_compiler_needs_object_CXX
20268
20269 # Create an old-style archive from a shared archive.
20270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20271
20272 # Create a temporary old-style archive to link instead of a shared archive.
20273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20274
20275 # Commands used to build a shared archive.
20276 archive_cmds=$lt_archive_cmds_CXX
20277 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20278
20279 # Commands used to build a loadable module if different from building
20280 # a shared archive.
20281 module_cmds=$lt_module_cmds_CXX
20282 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20283
20284 # Whether we are building with GNU ld or not.
20285 with_gnu_ld=$lt_with_gnu_ld_CXX
20286
20287 # Flag that allows shared libraries with undefined symbols to be built.
20288 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20289
20290 # Flag that enforces no undefined symbols.
20291 no_undefined_flag=$lt_no_undefined_flag_CXX
20292
20293 # Flag to hardcode \$libdir into a binary during linking.
20294 # This must work even if \$libdir does not exist
20295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20296
20297 # If ld is used when linking, flag to hardcode \$libdir into a binary
20298 # during linking.  This must work even if \$libdir does not exist.
20299 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20300
20301 # Whether we need a single "-rpath" flag with a separated argument.
20302 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20303
20304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20305 # DIR into the resulting binary.
20306 hardcode_direct=$hardcode_direct_CXX
20307
20308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20309 # DIR into the resulting binary and the resulting library dependency is
20310 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20311 # library is relocated.
20312 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20313
20314 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20315 # into the resulting binary.
20316 hardcode_minus_L=$hardcode_minus_L_CXX
20317
20318 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20319 # into the resulting binary.
20320 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20321
20322 # Set to "yes" if building a shared library automatically hardcodes DIR
20323 # into the library and all subsequent libraries and executables linked
20324 # against it.
20325 hardcode_automatic=$hardcode_automatic_CXX
20326
20327 # Set to yes if linker adds runtime paths of dependent libraries
20328 # to runtime path list.
20329 inherit_rpath=$inherit_rpath_CXX
20330
20331 # Whether libtool must link a program against all its dependency libraries.
20332 link_all_deplibs=$link_all_deplibs_CXX
20333
20334 # Fix the shell variable \$srcfile for the compiler.
20335 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20336
20337 # Set to "yes" if exported symbols are required.
20338 always_export_symbols=$always_export_symbols_CXX
20339
20340 # The commands to list exported symbols.
20341 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20342
20343 # Symbols that should not be listed in the preloaded symbols.
20344 exclude_expsyms=$lt_exclude_expsyms_CXX
20345
20346 # Symbols that must always be exported.
20347 include_expsyms=$lt_include_expsyms_CXX
20348
20349 # Commands necessary for linking programs (against libraries) with templates.
20350 prelink_cmds=$lt_prelink_cmds_CXX
20351
20352 # Specify filename containing input files.
20353 file_list_spec=$lt_file_list_spec_CXX
20354
20355 # How to hardcode a shared library path into an executable.
20356 hardcode_action=$hardcode_action_CXX
20357
20358 # The directories searched by this compiler when creating a shared library.
20359 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20360
20361 # Dependencies to place before and after the objects being linked to
20362 # create a shared library.
20363 predep_objects=$lt_predep_objects_CXX
20364 postdep_objects=$lt_postdep_objects_CXX
20365 predeps=$lt_predeps_CXX
20366 postdeps=$lt_postdeps_CXX
20367
20368 # The library search path used internally by the compiler when linking
20369 # a shared library.
20370 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20371
20372 # ### END LIBTOOL TAG CONFIG: CXX
20373 _LT_EOF
20374
20375  ;;
20376
20377   esac
20378 done # for ac_tag
20379
20380
20381 as_fn_exit 0
20382 _ACEOF
20383 ac_clean_files=$ac_clean_files_save
20384
20385 test $ac_write_fail = 0 ||
20386   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20387
20388
20389 # configure is writing to config.log, and then calls config.status.
20390 # config.status does its own redirection, appending to config.log.
20391 # Unfortunately, on DOS this fails, as config.log is still kept open
20392 # by configure, so config.status won't be able to write to it; its
20393 # output is simply discarded.  So we exec the FD to /dev/null,
20394 # effectively closing config.log, so it can be properly (re)opened and
20395 # appended to by config.status.  When coming back to configure, we
20396 # need to make the FD available again.
20397 if test "$no_create" != yes; then
20398   ac_cs_success=:
20399   ac_config_status_args=
20400   test "$silent" = yes &&
20401     ac_config_status_args="$ac_config_status_args --quiet"
20402   exec 5>/dev/null
20403   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20404   exec 5>>config.log
20405   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20406   # would make configure fail if this is the last instruction.
20407   $ac_cs_success || as_fn_exit $?
20408 fi
20409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20410   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20412 fi
20413
20414