bfc9525395c1568fc4eacc00bc2d362be9c58065
[sharing-cli] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for sharing-plugin-cli 0.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
530
531 case X$lt_ECHO in
532 X*--fallback-echo)
533   # Remove one level of quotation (which was required for Make).
534   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535   ;;
536 esac
537
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540   # Discard the --no-reexec flag, and continue.
541   shift
542 elif test "X$1" = X--fallback-echo; then
543   # Avoid inline document here, it may be left over
544   :
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546   # Yippee, $ECHO works!
547   :
548 else
549   # Restart under the correct shell.
550   exec $SHELL "$0" --no-reexec ${1+"$@"}
551 fi
552
553 if test "X$1" = X--fallback-echo; then
554   # used as fallback echo
555   shift
556   cat <<_LT_EOF
557 $*
558 _LT_EOF
559   exit 0
560 fi
561
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566 if test -z "$lt_ECHO"; then
567   if test "X${echo_test_string+set}" != Xset; then
568     # find a string as large as possible, as long as the shell can cope with it
569     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573       then
574         break
575       fi
576     done
577   fi
578
579   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581      test "X$echo_testing_string" = "X$echo_test_string"; then
582     :
583   else
584     # The Solaris, AIX, and Digital Unix default echo programs unquote
585     # backslashes.  This makes it impossible to quote backslashes using
586     #   echo "$something" | sed 's/\\/\\\\/g'
587     #
588     # So, first we look for a working echo in the user's PATH.
589
590     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591     for dir in $PATH /usr/ucb; do
592       IFS="$lt_save_ifs"
593       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596          test "X$echo_testing_string" = "X$echo_test_string"; then
597         ECHO="$dir/echo"
598         break
599       fi
600     done
601     IFS="$lt_save_ifs"
602
603     if test "X$ECHO" = Xecho; then
604       # We didn't find a better echo, so look for alternatives.
605       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607          test "X$echo_testing_string" = "X$echo_test_string"; then
608         # This shell has a builtin print -r that does the trick.
609         ECHO='print -r'
610       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611            test "X$CONFIG_SHELL" != X/bin/ksh; then
612         # If we have ksh, try running configure again with it.
613         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614         export ORIGINAL_CONFIG_SHELL
615         CONFIG_SHELL=/bin/ksh
616         export CONFIG_SHELL
617         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618       else
619         # Try using printf.
620         ECHO='printf %s\n'
621         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623            test "X$echo_testing_string" = "X$echo_test_string"; then
624           # Cool, printf works
625           :
626         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627              test "X$echo_testing_string" = 'X\t' &&
628              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629              test "X$echo_testing_string" = "X$echo_test_string"; then
630           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631           export CONFIG_SHELL
632           SHELL="$CONFIG_SHELL"
633           export SHELL
634           ECHO="$CONFIG_SHELL $0 --fallback-echo"
635         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636              test "X$echo_testing_string" = 'X\t' &&
637              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638              test "X$echo_testing_string" = "X$echo_test_string"; then
639           ECHO="$CONFIG_SHELL $0 --fallback-echo"
640         else
641           # maybe with a smaller string...
642           prev=:
643
644           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646             then
647               break
648             fi
649             prev="$cmd"
650           done
651
652           if test "$prev" != 'sed 50q "$0"'; then
653             echo_test_string=`eval $prev`
654             export echo_test_string
655             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656           else
657             # Oops.  We lost completely, so just stick with echo.
658             ECHO=echo
659           fi
660         fi
661       fi
662     fi
663   fi
664 fi
665
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671 fi
672
673
674
675
676 exec 7<&0 </dev/null 6>&1
677
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683 #
684 # Initializations.
685 #
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
694
695 # Identity of this package.
696 PACKAGE_NAME='sharing-plugin-cli'
697 PACKAGE_TARNAME='sharing-plugin-cli'
698 PACKAGE_VERSION='0.1'
699 PACKAGE_STRING='sharing-plugin-cli 0.1'
700 PACKAGE_BUGREPORT=''
701 PACKAGE_URL=''
702
703 # Factoring default headers for most tests.
704 ac_includes_default="\
705 #include <stdio.h>
706 #ifdef HAVE_SYS_TYPES_H
707 # include <sys/types.h>
708 #endif
709 #ifdef HAVE_SYS_STAT_H
710 # include <sys/stat.h>
711 #endif
712 #ifdef STDC_HEADERS
713 # include <stdlib.h>
714 # include <stddef.h>
715 #else
716 # ifdef HAVE_STDLIB_H
717 #  include <stdlib.h>
718 # endif
719 #endif
720 #ifdef HAVE_STRING_H
721 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
722 #  include <memory.h>
723 # endif
724 # include <string.h>
725 #endif
726 #ifdef HAVE_STRINGS_H
727 # include <strings.h>
728 #endif
729 #ifdef HAVE_INTTYPES_H
730 # include <inttypes.h>
731 #endif
732 #ifdef HAVE_STDINT_H
733 # include <stdint.h>
734 #endif
735 #ifdef HAVE_UNISTD_H
736 # include <unistd.h>
737 #endif"
738
739 ac_subst_vars='am__EXEEXT_FALSE
740 am__EXEEXT_TRUE
741 LTLIBOBJS
742 LIBOBJS
743 PACKAGE_LOCALE_DIR
744 DEBUG_CFLAGS
745 servicesdir
746 pluginsdir
747 currentdir
748 SHARING_LIBS
749 SHARING_CFLAGS
750 PACKAGE_LIBS
751 PACKAGE_CFLAGS
752 PKG_CONFIG
753 CXXCPP
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 lt_ECHO
760 RANLIB
761 AR
762 OBJDUMP
763 NM
764 ac_ct_DUMPBIN
765 DUMPBIN
766 LD
767 FGREP
768 SED
769 host_os
770 host_vendor
771 host_cpu
772 host
773 build_os
774 build_vendor
775 build_cpu
776 build
777 LIBTOOL
778 LN_S
779 EGREP
780 GREP
781 CPP
782 am__fastdepCXX_FALSE
783 am__fastdepCXX_TRUE
784 CXXDEPMODE
785 ac_ct_CXX
786 CXXFLAGS
787 CXX
788 am__fastdepCC_FALSE
789 am__fastdepCC_TRUE
790 CCDEPMODE
791 AMDEPBACKSLASH
792 AMDEP_FALSE
793 AMDEP_TRUE
794 am__quote
795 am__include
796 DEPDIR
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
803 CC
804 MAINT
805 MAINTAINER_MODE_FALSE
806 MAINTAINER_MODE_TRUE
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
812 AWK
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_maintainer_mode
872 enable_shared
873 enable_static
874 enable_dependency_tracking
875 with_pic
876 enable_fast_install
877 with_gnu_ld
878 enable_libtool_lock
879 enable_debug
880 '
881       ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CXX
890 CXXFLAGS
891 CCC
892 CPP
893 CXXCPP
894 PKG_CONFIG
895 PACKAGE_CFLAGS
896 PACKAGE_LIBS
897 SHARING_CFLAGS
898 SHARING_LIBS'
899
900
901 # Initialize some variables set by options.
902 ac_init_help=
903 ac_init_version=false
904 ac_unrecognized_opts=
905 ac_unrecognized_sep=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
908 cache_file=/dev/null
909 exec_prefix=NONE
910 no_create=
911 no_recursion=
912 prefix=NONE
913 program_prefix=NONE
914 program_suffix=NONE
915 program_transform_name=s,x,x,
916 silent=
917 site=
918 srcdir=
919 verbose=
920 x_includes=NONE
921 x_libraries=NONE
922
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
941 htmldir='${docdir}'
942 dvidir='${docdir}'
943 pdfdir='${docdir}'
944 psdir='${docdir}'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
948
949 ac_prev=
950 ac_dashdash=
951 for ac_option
952 do
953   # If the previous option needs an argument, assign it.
954   if test -n "$ac_prev"; then
955     eval $ac_prev=\$ac_option
956     ac_prev=
957     continue
958   fi
959
960   case $ac_option in
961   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962   *)    ac_optarg=yes ;;
963   esac
964
965   # Accept the important Cygnus configure options, so we can diagnose typos.
966
967   case $ac_dashdash$ac_option in
968   --)
969     ac_dashdash=yes ;;
970
971   -bindir | --bindir | --bindi | --bind | --bin | --bi)
972     ac_prev=bindir ;;
973   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
974     bindir=$ac_optarg ;;
975
976   -build | --build | --buil | --bui | --bu)
977     ac_prev=build_alias ;;
978   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979     build_alias=$ac_optarg ;;
980
981   -cache-file | --cache-file | --cache-fil | --cache-fi \
982   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983     ac_prev=cache_file ;;
984   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986     cache_file=$ac_optarg ;;
987
988   --config-cache | -C)
989     cache_file=config.cache ;;
990
991   -datadir | --datadir | --datadi | --datad)
992     ac_prev=datadir ;;
993   -datadir=* | --datadir=* | --datadi=* | --datad=*)
994     datadir=$ac_optarg ;;
995
996   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997   | --dataroo | --dataro | --datar)
998     ac_prev=datarootdir ;;
999   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001     datarootdir=$ac_optarg ;;
1002
1003   -disable-* | --disable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=no ;;
1018
1019   -docdir | --docdir | --docdi | --doc | --do)
1020     ac_prev=docdir ;;
1021   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022     docdir=$ac_optarg ;;
1023
1024   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025     ac_prev=dvidir ;;
1026   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027     dvidir=$ac_optarg ;;
1028
1029   -enable-* | --enable-*)
1030     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031     # Reject names that are not valid shell variable names.
1032     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033       as_fn_error "invalid feature name: $ac_useropt"
1034     ac_useropt_orig=$ac_useropt
1035     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036     case $ac_user_opts in
1037       *"
1038 "enable_$ac_useropt"
1039 "*) ;;
1040       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041          ac_unrecognized_sep=', ';;
1042     esac
1043     eval enable_$ac_useropt=\$ac_optarg ;;
1044
1045   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047   | --exec | --exe | --ex)
1048     ac_prev=exec_prefix ;;
1049   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051   | --exec=* | --exe=* | --ex=*)
1052     exec_prefix=$ac_optarg ;;
1053
1054   -gas | --gas | --ga | --g)
1055     # Obsolete; use --with-gas.
1056     with_gas=yes ;;
1057
1058   -help | --help | --hel | --he | -h)
1059     ac_init_help=long ;;
1060   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061     ac_init_help=recursive ;;
1062   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063     ac_init_help=short ;;
1064
1065   -host | --host | --hos | --ho)
1066     ac_prev=host_alias ;;
1067   -host=* | --host=* | --hos=* | --ho=*)
1068     host_alias=$ac_optarg ;;
1069
1070   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071     ac_prev=htmldir ;;
1072   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073   | --ht=*)
1074     htmldir=$ac_optarg ;;
1075
1076   -includedir | --includedir | --includedi | --included | --include \
1077   | --includ | --inclu | --incl | --inc)
1078     ac_prev=includedir ;;
1079   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080   | --includ=* | --inclu=* | --incl=* | --inc=*)
1081     includedir=$ac_optarg ;;
1082
1083   -infodir | --infodir | --infodi | --infod | --info | --inf)
1084     ac_prev=infodir ;;
1085   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086     infodir=$ac_optarg ;;
1087
1088   -libdir | --libdir | --libdi | --libd)
1089     ac_prev=libdir ;;
1090   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091     libdir=$ac_optarg ;;
1092
1093   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094   | --libexe | --libex | --libe)
1095     ac_prev=libexecdir ;;
1096   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097   | --libexe=* | --libex=* | --libe=*)
1098     libexecdir=$ac_optarg ;;
1099
1100   -localedir | --localedir | --localedi | --localed | --locale)
1101     ac_prev=localedir ;;
1102   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103     localedir=$ac_optarg ;;
1104
1105   -localstatedir | --localstatedir | --localstatedi | --localstated \
1106   | --localstate | --localstat | --localsta | --localst | --locals)
1107     ac_prev=localstatedir ;;
1108   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110     localstatedir=$ac_optarg ;;
1111
1112   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113     ac_prev=mandir ;;
1114   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115     mandir=$ac_optarg ;;
1116
1117   -nfp | --nfp | --nf)
1118     # Obsolete; use --without-fp.
1119     with_fp=no ;;
1120
1121   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122   | --no-cr | --no-c | -n)
1123     no_create=yes ;;
1124
1125   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127     no_recursion=yes ;;
1128
1129   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131   | --oldin | --oldi | --old | --ol | --o)
1132     ac_prev=oldincludedir ;;
1133   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136     oldincludedir=$ac_optarg ;;
1137
1138   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139     ac_prev=prefix ;;
1140   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141     prefix=$ac_optarg ;;
1142
1143   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144   | --program-pre | --program-pr | --program-p)
1145     ac_prev=program_prefix ;;
1146   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148     program_prefix=$ac_optarg ;;
1149
1150   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151   | --program-suf | --program-su | --program-s)
1152     ac_prev=program_suffix ;;
1153   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155     program_suffix=$ac_optarg ;;
1156
1157   -program-transform-name | --program-transform-name \
1158   | --program-transform-nam | --program-transform-na \
1159   | --program-transform-n | --program-transform- \
1160   | --program-transform | --program-transfor \
1161   | --program-transfo | --program-transf \
1162   | --program-trans | --program-tran \
1163   | --progr-tra | --program-tr | --program-t)
1164     ac_prev=program_transform_name ;;
1165   -program-transform-name=* | --program-transform-name=* \
1166   | --program-transform-nam=* | --program-transform-na=* \
1167   | --program-transform-n=* | --program-transform-=* \
1168   | --program-transform=* | --program-transfor=* \
1169   | --program-transfo=* | --program-transf=* \
1170   | --program-trans=* | --program-tran=* \
1171   | --progr-tra=* | --program-tr=* | --program-t=*)
1172     program_transform_name=$ac_optarg ;;
1173
1174   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175     ac_prev=pdfdir ;;
1176   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177     pdfdir=$ac_optarg ;;
1178
1179   -psdir | --psdir | --psdi | --psd | --ps)
1180     ac_prev=psdir ;;
1181   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182     psdir=$ac_optarg ;;
1183
1184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185   | -silent | --silent | --silen | --sile | --sil)
1186     silent=yes ;;
1187
1188   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189     ac_prev=sbindir ;;
1190   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191   | --sbi=* | --sb=*)
1192     sbindir=$ac_optarg ;;
1193
1194   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196   | --sharedst | --shareds | --shared | --share | --shar \
1197   | --sha | --sh)
1198     ac_prev=sharedstatedir ;;
1199   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202   | --sha=* | --sh=*)
1203     sharedstatedir=$ac_optarg ;;
1204
1205   -site | --site | --sit)
1206     ac_prev=site ;;
1207   -site=* | --site=* | --sit=*)
1208     site=$ac_optarg ;;
1209
1210   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211     ac_prev=srcdir ;;
1212   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213     srcdir=$ac_optarg ;;
1214
1215   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216   | --syscon | --sysco | --sysc | --sys | --sy)
1217     ac_prev=sysconfdir ;;
1218   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220     sysconfdir=$ac_optarg ;;
1221
1222   -target | --target | --targe | --targ | --tar | --ta | --t)
1223     ac_prev=target_alias ;;
1224   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225     target_alias=$ac_optarg ;;
1226
1227   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228     verbose=yes ;;
1229
1230   -version | --version | --versio | --versi | --vers | -V)
1231     ac_init_version=: ;;
1232
1233   -with-* | --with-*)
1234     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1237       as_fn_error "invalid package name: $ac_useropt"
1238     ac_useropt_orig=$ac_useropt
1239     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240     case $ac_user_opts in
1241       *"
1242 "with_$ac_useropt"
1243 "*) ;;
1244       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1245          ac_unrecognized_sep=', ';;
1246     esac
1247     eval with_$ac_useropt=\$ac_optarg ;;
1248
1249   -without-* | --without-*)
1250     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1251     # Reject names that are not valid shell variable names.
1252     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253       as_fn_error "invalid package name: $ac_useropt"
1254     ac_useropt_orig=$ac_useropt
1255     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256     case $ac_user_opts in
1257       *"
1258 "with_$ac_useropt"
1259 "*) ;;
1260       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1261          ac_unrecognized_sep=', ';;
1262     esac
1263     eval with_$ac_useropt=no ;;
1264
1265   --x)
1266     # Obsolete; use --with-x.
1267     with_x=yes ;;
1268
1269   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1270   | --x-incl | --x-inc | --x-in | --x-i)
1271     ac_prev=x_includes ;;
1272   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1273   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1274     x_includes=$ac_optarg ;;
1275
1276   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1277   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1278     ac_prev=x_libraries ;;
1279   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1280   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1281     x_libraries=$ac_optarg ;;
1282
1283   -*) as_fn_error "unrecognized option: \`$ac_option'
1284 Try \`$0 --help' for more information."
1285     ;;
1286
1287   *=*)
1288     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1289     # Reject names that are not valid shell variable names.
1290     case $ac_envvar in #(
1291       '' | [0-9]* | *[!_$as_cr_alnum]* )
1292       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1293     esac
1294     eval $ac_envvar=\$ac_optarg
1295     export $ac_envvar ;;
1296
1297   *)
1298     # FIXME: should be removed in autoconf 3.0.
1299     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1300     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1302     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1303     ;;
1304
1305   esac
1306 done
1307
1308 if test -n "$ac_prev"; then
1309   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1310   as_fn_error "missing argument to $ac_option"
1311 fi
1312
1313 if test -n "$ac_unrecognized_opts"; then
1314   case $enable_option_checking in
1315     no) ;;
1316     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1317     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318   esac
1319 fi
1320
1321 # Check all directory arguments for consistency.
1322 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1323                 datadir sysconfdir sharedstatedir localstatedir includedir \
1324                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1325                 libdir localedir mandir
1326 do
1327   eval ac_val=\$$ac_var
1328   # Remove trailing slashes.
1329   case $ac_val in
1330     */ )
1331       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1332       eval $ac_var=\$ac_val;;
1333   esac
1334   # Be sure to have absolute directory names.
1335   case $ac_val in
1336     [\\/$]* | ?:[\\/]* )  continue;;
1337     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1338   esac
1339   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1340 done
1341
1342 # There might be people who depend on the old broken behavior: `$host'
1343 # used to hold the argument of --host etc.
1344 # FIXME: To remove some day.
1345 build=$build_alias
1346 host=$host_alias
1347 target=$target_alias
1348
1349 # FIXME: To remove some day.
1350 if test "x$host_alias" != x; then
1351   if test "x$build_alias" = x; then
1352     cross_compiling=maybe
1353     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1354     If a cross compiler is detected then cross compile mode will be used." >&2
1355   elif test "x$build_alias" != "x$host_alias"; then
1356     cross_compiling=yes
1357   fi
1358 fi
1359
1360 ac_tool_prefix=
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363 test "$silent" = yes && exec 6>/dev/null
1364
1365
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369   as_fn_error "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   as_fn_error "pwd does not report name of working directory"
1372
1373
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376   ac_srcdir_defaulted=yes
1377   # Try the directory containing this script, then the parent directory.
1378   ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380          X"$as_myself" : 'X\(//\)[^/]' \| \
1381          X"$as_myself" : 'X\(//\)$' \| \
1382          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\/\)[^/].*/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\/\)$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\).*/{
1397             s//\1/
1398             q
1399           }
1400           s/.*/./; q'`
1401   srcdir=$ac_confdir
1402   if test ! -r "$srcdir/$ac_unique_file"; then
1403     srcdir=..
1404   fi
1405 else
1406   ac_srcdir_defaulted=no
1407 fi
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1411 fi
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 ac_abs_confdir=`(
1414         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1415         pwd)`
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418   srcdir=.
1419 fi
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1423 case $srcdir in
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 esac
1426 for ac_var in $ac_precious_vars; do
1427   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_env_${ac_var}_value=\$${ac_var}
1429   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1432
1433 #
1434 # Report the --help message.
1435 #
1436 if test "$ac_init_help" = "long"; then
1437   # Omit some internal or obsolete options to make the list less imposing.
1438   # This message is too long to be a string in the A/UX 3.1 sh.
1439   cat <<_ACEOF
1440 \`configure' configures sharing-plugin-cli 0.1 to adapt to many kinds of systems.
1441
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447 Defaults for the options are specified in brackets.
1448
1449 Configuration:
1450   -h, --help              display this help and exit
1451       --help=short        display options specific to this package
1452       --help=recursive    display the short help of all the included packages
1453   -V, --version           display version information and exit
1454   -q, --quiet, --silent   do not print \`checking...' messages
1455       --cache-file=FILE   cache test results in FILE [disabled]
1456   -C, --config-cache      alias for \`--cache-file=config.cache'
1457   -n, --no-create         do not create output files
1458       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460 Installation directories:
1461   --prefix=PREFIX         install architecture-independent files in PREFIX
1462                           [$ac_default_prefix]
1463   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464                           [PREFIX]
1465
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1470
1471 For better control, use the options below.
1472
1473 Fine tuning of the installation directories:
1474   --bindir=DIR            user executables [EPREFIX/bin]
1475   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476   --libexecdir=DIR        program executables [EPREFIX/libexec]
1477   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480   --libdir=DIR            object code libraries [EPREFIX/lib]
1481   --includedir=DIR        C header files [PREFIX/include]
1482   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485   --infodir=DIR           info documentation [DATAROOTDIR/info]
1486   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487   --mandir=DIR            man documentation [DATAROOTDIR/man]
1488   --docdir=DIR            documentation root
1489                           [DATAROOTDIR/doc/sharing-plugin-cli]
1490   --htmldir=DIR           html documentation [DOCDIR]
1491   --dvidir=DIR            dvi documentation [DOCDIR]
1492   --pdfdir=DIR            pdf documentation [DOCDIR]
1493   --psdir=DIR             ps documentation [DOCDIR]
1494 _ACEOF
1495
1496   cat <<\_ACEOF
1497
1498 Program names:
1499   --program-prefix=PREFIX            prepend PREFIX to installed program names
1500   --program-suffix=SUFFIX            append SUFFIX to installed program names
1501   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1502
1503 System types:
1504   --build=BUILD     configure for building on BUILD [guessed]
1505   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1506 _ACEOF
1507 fi
1508
1509 if test -n "$ac_init_help"; then
1510   case $ac_init_help in
1511      short | recursive ) echo "Configuration of sharing-plugin-cli 0.1:";;
1512    esac
1513   cat <<\_ACEOF
1514
1515 Optional Features:
1516   --disable-option-checking  ignore unrecognized --enable/--with options
1517   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1518   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1519   --enable-maintainer-mode  enable make rules and dependencies not useful
1520                           (and sometimes confusing) to the casual installer
1521   --enable-shared[=PKGS]  build shared libraries [default=yes]
1522   --enable-static[=PKGS]  build static libraries [default=no]
1523   --disable-dependency-tracking  speeds up one-time build
1524   --enable-dependency-tracking   do not reject slow dependency extractors
1525   --enable-fast-install[=PKGS]
1526                           optimize for fast installation [default=yes]
1527   --disable-libtool-lock  avoid locking (might break parallel builds)
1528   --enable-debug          Turn on debug messages
1529
1530 Optional Packages:
1531   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1532   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1533   --with-pic              try to use only PIC/non-PIC objects [default=use
1534                           both]
1535   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   LIBS        libraries to pass to the linker, e.g. -l<library>
1543   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544               you have headers in a nonstandard directory <include dir>
1545   CXX         C++ compiler command
1546   CXXFLAGS    C++ compiler flags
1547   CPP         C preprocessor
1548   CXXCPP      C++ preprocessor
1549   PKG_CONFIG  path to pkg-config utility
1550   PACKAGE_CFLAGS
1551               C compiler flags for PACKAGE, overriding pkg-config
1552   PACKAGE_LIBS
1553               linker flags for PACKAGE, overriding pkg-config
1554   SHARING_CFLAGS
1555               C compiler flags for SHARING, overriding pkg-config
1556   SHARING_LIBS
1557               linker flags for SHARING, overriding pkg-config
1558
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1561
1562 Report bugs to the package provider.
1563 _ACEOF
1564 ac_status=$?
1565 fi
1566
1567 if test "$ac_init_help" = "recursive"; then
1568   # If there are subdirs, report their specific --help.
1569   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570     test -d "$ac_dir" ||
1571       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572       continue
1573     ac_builddir=.
1574
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577 *)
1578   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579   # A ".." for each directory in $ac_dir_suffix.
1580   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581   case $ac_top_builddir_sub in
1582   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584   esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1590
1591 case $srcdir in
1592   .)  # We are building in place.
1593     ac_srcdir=.
1594     ac_top_srcdir=$ac_top_builddir_sub
1595     ac_abs_top_srcdir=$ac_pwd ;;
1596   [\\/]* | ?:[\\/]* )  # Absolute name.
1597     ac_srcdir=$srcdir$ac_dir_suffix;
1598     ac_top_srcdir=$srcdir
1599     ac_abs_top_srcdir=$srcdir ;;
1600   *) # Relative name.
1601     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602     ac_top_srcdir=$ac_top_build_prefix$srcdir
1603     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606
1607     cd "$ac_dir" || { ac_status=$?; continue; }
1608     # Check for guested configure.
1609     if test -f "$ac_srcdir/configure.gnu"; then
1610       echo &&
1611       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612     elif test -f "$ac_srcdir/configure"; then
1613       echo &&
1614       $SHELL "$ac_srcdir/configure" --help=recursive
1615     else
1616       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617     fi || ac_status=$?
1618     cd "$ac_pwd" || { ac_status=$?; break; }
1619   done
1620 fi
1621
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624   cat <<\_ACEOF
1625 sharing-plugin-cli configure 0.1
1626 generated by GNU Autoconf 2.64
1627
1628 Copyright (C) 2009 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632   exit
1633 fi
1634
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1638
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile ()
1643 {
1644   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645   rm -f conftest.$ac_objext
1646   if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_compile") 2>conftest.err
1654   ac_status=$?
1655   if test -s conftest.err; then
1656     grep -v '^ *+' conftest.err >conftest.er1
1657     cat conftest.er1 >&5
1658     mv -f conftest.er1 conftest.err
1659   fi
1660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661   test $ac_status = 0; } && {
1662          test -z "$ac_c_werror_flag" ||
1663          test ! -s conftest.err
1664        } && test -s conftest.$ac_objext; then :
1665   ac_retval=0
1666 else
1667   $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670         ac_retval=1
1671 fi
1672   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673   return $ac_retval
1674
1675 } # ac_fn_c_try_compile
1676
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_link ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   rm -f conftest.$ac_objext conftest$ac_exeext
1684   if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687   *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691   (eval "$ac_link") 2>conftest.err
1692   ac_status=$?
1693   if test -s conftest.err; then
1694     grep -v '^ *+' conftest.err >conftest.er1
1695     cat conftest.er1 >&5
1696     mv -f conftest.er1 conftest.err
1697   fi
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } && {
1700          test -z "$ac_c_werror_flag" ||
1701          test ! -s conftest.err
1702        } && test -s conftest$ac_exeext && {
1703          test "$cross_compiling" = yes ||
1704          $as_test_x conftest$ac_exeext
1705        }; then :
1706   ac_retval=0
1707 else
1708   $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1710
1711         ac_retval=1
1712 fi
1713   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715   # interfere with the next link command; also delete a directory that is
1716   # left behind by Apple's compiler.  We do this before executing the actions.
1717   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719   return $ac_retval
1720
1721 } # ac_fn_c_try_link
1722
1723 # ac_fn_cxx_try_compile LINENO
1724 # ----------------------------
1725 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_cxx_try_compile ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   rm -f conftest.$ac_objext
1730   if { { ac_try="$ac_compile"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_compile") 2>conftest.err
1738   ac_status=$?
1739   if test -s conftest.err; then
1740     grep -v '^ *+' conftest.err >conftest.er1
1741     cat conftest.er1 >&5
1742     mv -f conftest.er1 conftest.err
1743   fi
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } && {
1746          test -z "$ac_cxx_werror_flag" ||
1747          test ! -s conftest.err
1748        } && test -s conftest.$ac_objext; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754         ac_retval=1
1755 fi
1756   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757   return $ac_retval
1758
1759 } # ac_fn_cxx_try_compile
1760
1761 # ac_fn_c_try_cpp LINENO
1762 # ----------------------
1763 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1764 ac_fn_c_try_cpp ()
1765 {
1766   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767   if { { ac_try="$ac_cpp conftest.$ac_ext"
1768 case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1775   ac_status=$?
1776   if test -s conftest.err; then
1777     grep -v '^ *+' conftest.err >conftest.er1
1778     cat conftest.er1 >&5
1779     mv -f conftest.er1 conftest.err
1780   fi
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } >/dev/null && {
1783          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1784          test ! -s conftest.err
1785        }; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791     ac_retval=1
1792 fi
1793   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794   return $ac_retval
1795
1796 } # ac_fn_c_try_cpp
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_link") 2>&5
1813   ac_status=$?
1814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816   { { case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_try") 2>&5
1823   ac_status=$?
1824   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825   test $ac_status = 0; }; }; then :
1826   ac_retval=0
1827 else
1828   $as_echo "$as_me: program exited with status $ac_status" >&5
1829        $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832        ac_retval=$ac_status
1833 fi
1834   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836   return $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850   $as_echo_n "(cached) " >&6
1851 else
1852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858   eval "$3=yes"
1859 else
1860   eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880   $as_echo_n "(cached) " >&6
1881 else
1882   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1886 #define $2 innocuous_$2
1887
1888 /* System header to define __stub macros and hopefully few prototypes,
1889     which can conflict with char $2 (); below.
1890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891     <limits.h> exists even on freestanding compilers.  */
1892
1893 #ifdef __STDC__
1894 # include <limits.h>
1895 #else
1896 # include <assert.h>
1897 #endif
1898
1899 #undef $2
1900
1901 /* Override any GCC internal prototype to avoid an error.
1902    Use char because int might match the return type of a GCC
1903    builtin and then its argument prototype would still apply.  */
1904 #ifdef __cplusplus
1905 extern "C"
1906 #endif
1907 char $2 ();
1908 /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS.  Some functions are actually named
1910     something starting with __ and the normal name is an alias.  */
1911 #if defined __stub_$2 || defined __stub___$2
1912 choke me
1913 #endif
1914
1915 int
1916 main ()
1917 {
1918 return $2 ();
1919   ;
1920   return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_link "$LINENO"; then :
1924   eval "$3=yes"
1925 else
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_cxx_try_cpp LINENO
1939 # ------------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_cxx_try_cpp ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   if { { ac_try="$ac_cpp conftest.$ac_ext"
1945 case "(($ac_try" in
1946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947   *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952   ac_status=$?
1953   if test -s conftest.err; then
1954     grep -v '^ *+' conftest.err >conftest.er1
1955     cat conftest.er1 >&5
1956     mv -f conftest.er1 conftest.err
1957   fi
1958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959   test $ac_status = 0; } >/dev/null && {
1960          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1961          test ! -s conftest.err
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968     ac_retval=1
1969 fi
1970   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971   return $ac_retval
1972
1973 } # ac_fn_cxx_try_cpp
1974
1975 # ac_fn_cxx_try_link LINENO
1976 # -------------------------
1977 # Try to link conftest.$ac_ext, and return whether this succeeded.
1978 ac_fn_cxx_try_link ()
1979 {
1980   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981   rm -f conftest.$ac_objext conftest$ac_exeext
1982   if { { ac_try="$ac_link"
1983 case "(($ac_try" in
1984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1985   *) ac_try_echo=$ac_try;;
1986 esac
1987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1988 $as_echo "$ac_try_echo"; } >&5
1989   (eval "$ac_link") 2>conftest.err
1990   ac_status=$?
1991   if test -s conftest.err; then
1992     grep -v '^ *+' conftest.err >conftest.er1
1993     cat conftest.er1 >&5
1994     mv -f conftest.er1 conftest.err
1995   fi
1996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1997   test $ac_status = 0; } && {
1998          test -z "$ac_cxx_werror_flag" ||
1999          test ! -s conftest.err
2000        } && test -s conftest$ac_exeext && {
2001          test "$cross_compiling" = yes ||
2002          $as_test_x conftest$ac_exeext
2003        }; then :
2004   ac_retval=0
2005 else
2006   $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009         ac_retval=1
2010 fi
2011   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2012   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2013   # interfere with the next link command; also delete a directory that is
2014   # left behind by Apple's compiler.  We do this before executing the actions.
2015   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017   return $ac_retval
2018
2019 } # ac_fn_cxx_try_link
2020 cat >config.log <<_ACEOF
2021 This file contains any messages produced by compilers while
2022 running configure, to aid debugging if configure makes a mistake.
2023
2024 It was created by sharing-plugin-cli $as_me 0.1, which was
2025 generated by GNU Autoconf 2.64.  Invocation command line was
2026
2027   $ $0 $@
2028
2029 _ACEOF
2030 exec 5>>config.log
2031 {
2032 cat <<_ASUNAME
2033 ## --------- ##
2034 ## Platform. ##
2035 ## --------- ##
2036
2037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042
2043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2045
2046 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2047 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2050 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2051 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2052 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2053
2054 _ASUNAME
2055
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059   IFS=$as_save_IFS
2060   test -z "$as_dir" && as_dir=.
2061     $as_echo "PATH: $as_dir"
2062   done
2063 IFS=$as_save_IFS
2064
2065 } >&5
2066
2067 cat >&5 <<_ACEOF
2068
2069
2070 ## ----------- ##
2071 ## Core tests. ##
2072 ## ----------- ##
2073
2074 _ACEOF
2075
2076
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_configure_args=
2083 ac_configure_args0=
2084 ac_configure_args1=
2085 ac_must_keep_next=false
2086 for ac_pass in 1 2
2087 do
2088   for ac_arg
2089   do
2090     case $ac_arg in
2091     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093     | -silent | --silent | --silen | --sile | --sil)
2094       continue ;;
2095     *\'*)
2096       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097     esac
2098     case $ac_pass in
2099     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100     2)
2101       as_fn_append ac_configure_args1 " '$ac_arg'"
2102       if test $ac_must_keep_next = true; then
2103         ac_must_keep_next=false # Got value, back to normal.
2104       else
2105         case $ac_arg in
2106           *=* | --config-cache | -C | -disable-* | --disable-* \
2107           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109           | -with-* | --with-* | -without-* | --without-* | --x)
2110             case "$ac_configure_args0 " in
2111               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112             esac
2113             ;;
2114           -* ) ac_must_keep_next=true ;;
2115         esac
2116       fi
2117       as_fn_append ac_configure_args " '$ac_arg'"
2118       ;;
2119     esac
2120   done
2121 done
2122 { ac_configure_args0=; unset ac_configure_args0;}
2123 { ac_configure_args1=; unset ac_configure_args1;}
2124
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log.  We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131   # Save into config.log some information that might help in debugging.
2132   {
2133     echo
2134
2135     cat <<\_ASBOX
2136 ## ---------------- ##
2137 ## Cache variables. ##
2138 ## ---------------- ##
2139 _ASBOX
2140     echo
2141     # The following way of writing the cache mishandles newlines in values,
2142 (
2143   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144     eval ac_val=\$$ac_var
2145     case $ac_val in #(
2146     *${as_nl}*)
2147       case $ac_var in #(
2148       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150       esac
2151       case $ac_var in #(
2152       _ | IFS | as_nl) ;; #(
2153       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154       *) { eval $ac_var=; unset $ac_var;} ;;
2155       esac ;;
2156     esac
2157   done
2158   (set) 2>&1 |
2159     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160     *${as_nl}ac_space=\ *)
2161       sed -n \
2162         "s/'\''/'\''\\\\'\'''\''/g;
2163           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164       ;; #(
2165     *)
2166       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167       ;;
2168     esac |
2169     sort
2170 )
2171     echo
2172
2173     cat <<\_ASBOX
2174 ## ----------------- ##
2175 ## Output variables. ##
2176 ## ----------------- ##
2177 _ASBOX
2178     echo
2179     for ac_var in $ac_subst_vars
2180     do
2181       eval ac_val=\$$ac_var
2182       case $ac_val in
2183       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2184       esac
2185       $as_echo "$ac_var='\''$ac_val'\''"
2186     done | sort
2187     echo
2188
2189     if test -n "$ac_subst_files"; then
2190       cat <<\_ASBOX
2191 ## ------------------- ##
2192 ## File substitutions. ##
2193 ## ------------------- ##
2194 _ASBOX
2195       echo
2196       for ac_var in $ac_subst_files
2197       do
2198         eval ac_val=\$$ac_var
2199         case $ac_val in
2200         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2201         esac
2202         $as_echo "$ac_var='\''$ac_val'\''"
2203       done | sort
2204       echo
2205     fi
2206
2207     if test -s confdefs.h; then
2208       cat <<\_ASBOX
2209 ## ----------- ##
2210 ## confdefs.h. ##
2211 ## ----------- ##
2212 _ASBOX
2213       echo
2214       cat confdefs.h
2215       echo
2216     fi
2217     test "$ac_signal" != 0 &&
2218       $as_echo "$as_me: caught signal $ac_signal"
2219     $as_echo "$as_me: exit $exit_status"
2220   } >&5
2221   rm -f core *.core core.conftest.* &&
2222     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2223     exit $exit_status
2224 ' 0
2225 for ac_signal in 1 2 13 15; do
2226   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2227 done
2228 ac_signal=0
2229
2230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2231 rm -f -r conftest* confdefs.h
2232
2233 $as_echo "/* confdefs.h */" > confdefs.h
2234
2235 # Predefined preprocessor variables.
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_NAME "$PACKAGE_NAME"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_STRING "$PACKAGE_STRING"
2251 _ACEOF
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2255 _ACEOF
2256
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_URL "$PACKAGE_URL"
2259 _ACEOF
2260
2261
2262 # Let the site file select an alternate cache file if it wants to.
2263 # Prefer an explicitly selected file to automatically selected ones.
2264 ac_site_file1=NONE
2265 ac_site_file2=NONE
2266 if test -n "$CONFIG_SITE"; then
2267   ac_site_file1=$CONFIG_SITE
2268 elif test "x$prefix" != xNONE; then
2269   ac_site_file1=$prefix/share/config.site
2270   ac_site_file2=$prefix/etc/config.site
2271 else
2272   ac_site_file1=$ac_default_prefix/share/config.site
2273   ac_site_file2=$ac_default_prefix/etc/config.site
2274 fi
2275 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2276 do
2277   test "x$ac_site_file" = xNONE && continue
2278   if test -r "$ac_site_file"; then
2279     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2280 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2281     sed 's/^/| /' "$ac_site_file" >&5
2282     . "$ac_site_file"
2283   fi
2284 done
2285
2286 if test -r "$cache_file"; then
2287   # Some versions of bash will fail to source /dev/null (special
2288   # files actually), so we avoid doing that.
2289   if test -f "$cache_file"; then
2290     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2291 $as_echo "$as_me: loading cache $cache_file" >&6;}
2292     case $cache_file in
2293       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2294       *)                      . "./$cache_file";;
2295     esac
2296   fi
2297 else
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2299 $as_echo "$as_me: creating cache $cache_file" >&6;}
2300   >$cache_file
2301 fi
2302
2303 # Check that the precious variables saved in the cache have kept the same
2304 # value.
2305 ac_cache_corrupted=false
2306 for ac_var in $ac_precious_vars; do
2307   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2308   eval ac_new_set=\$ac_env_${ac_var}_set
2309   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2310   eval ac_new_val=\$ac_env_${ac_var}_value
2311   case $ac_old_set,$ac_new_set in
2312     set,)
2313       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2314 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2315       ac_cache_corrupted=: ;;
2316     ,set)
2317       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2319       ac_cache_corrupted=: ;;
2320     ,);;
2321     *)
2322       if test "x$ac_old_val" != "x$ac_new_val"; then
2323         # differences in whitespace do not lead to failure.
2324         ac_old_val_w=`echo x $ac_old_val`
2325         ac_new_val_w=`echo x $ac_new_val`
2326         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2327           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2328 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2329           ac_cache_corrupted=:
2330         else
2331           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2332 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2333           eval $ac_var=\$ac_old_val
2334         fi
2335         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2336 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2337         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2338 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2339       fi;;
2340   esac
2341   # Pass precious variables to config.status.
2342   if test "$ac_new_set" = set; then
2343     case $ac_new_val in
2344     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2345     *) ac_arg=$ac_var=$ac_new_val ;;
2346     esac
2347     case " $ac_configure_args " in
2348       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2349       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2350     esac
2351   fi
2352 done
2353 if $ac_cache_corrupted; then
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2356   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2357 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2358   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2359 fi
2360 ## -------------------- ##
2361 ## Main body of script. ##
2362 ## -------------------- ##
2363
2364 ac_ext=c
2365 ac_cpp='$CPP $CPPFLAGS'
2366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369
2370
2371 am__api_version='1.11'
2372
2373 ac_aux_dir=
2374 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2375   for ac_t in install-sh install.sh shtool; do
2376     if test -f "$ac_dir/$ac_t"; then
2377       ac_aux_dir=$ac_dir
2378       ac_install_sh="$ac_aux_dir/$ac_t -c"
2379       break 2
2380     fi
2381   done
2382 done
2383 if test -z "$ac_aux_dir"; then
2384   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2385 fi
2386
2387 # These three variables are undocumented and unsupported,
2388 # and are intended to be withdrawn in a future Autoconf release.
2389 # They can cause serious problems if a builder's source tree is in a directory
2390 # whose full name contains unusual characters.
2391 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2392 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2393 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2394
2395
2396 # Find a good install program.  We prefer a C program (faster),
2397 # so one script is as good as another.  But avoid the broken or
2398 # incompatible versions:
2399 # SysV /etc/install, /usr/sbin/install
2400 # SunOS /usr/etc/install
2401 # IRIX /sbin/install
2402 # AIX /bin/install
2403 # AmigaOS /C/install, which installs bootblocks on floppy discs
2404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407 # OS/2's system install, which has a completely different semantic
2408 # ./install, which can be erroneously created by make from ./install.sh.
2409 # Reject install programs that cannot install multiple files.
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2411 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2412 if test -z "$INSTALL"; then
2413 if test "${ac_cv_path_install+set}" = set; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421     # Account for people who put trailing slashes in PATH elements.
2422 case $as_dir/ in #((
2423   ./ | .// | /[cC]/* | \
2424   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2426   /usr/ucb/* ) ;;
2427   *)
2428     # OSF1 and SCO ODT 3.0 have their own names for install.
2429     # Don't use installbsd from OSF since it installs stuff as root
2430     # by default.
2431     for ac_prog in ginstall scoinst install; do
2432       for ac_exec_ext in '' $ac_executable_extensions; do
2433         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2434           if test $ac_prog = install &&
2435             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436             # AIX install.  It has an incompatible calling convention.
2437             :
2438           elif test $ac_prog = install &&
2439             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440             # program-specific install script used by HP pwplus--don't use.
2441             :
2442           else
2443             rm -rf conftest.one conftest.two conftest.dir
2444             echo one > conftest.one
2445             echo two > conftest.two
2446             mkdir conftest.dir
2447             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448               test -s conftest.one && test -s conftest.two &&
2449               test -s conftest.dir/conftest.one &&
2450               test -s conftest.dir/conftest.two
2451             then
2452               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2453               break 3
2454             fi
2455           fi
2456         fi
2457       done
2458     done
2459     ;;
2460 esac
2461
2462   done
2463 IFS=$as_save_IFS
2464
2465 rm -rf conftest.one conftest.two conftest.dir
2466
2467 fi
2468   if test "${ac_cv_path_install+set}" = set; then
2469     INSTALL=$ac_cv_path_install
2470   else
2471     # As a last resort, use the slow shell script.  Don't cache a
2472     # value for INSTALL within a source directory, because that will
2473     # break other packages using the cache if that directory is
2474     # removed, or if the value is a relative name.
2475     INSTALL=$ac_install_sh
2476   fi
2477 fi
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2479 $as_echo "$INSTALL" >&6; }
2480
2481 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482 # It thinks the first close brace ends the variable substitution.
2483 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2484
2485 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2486
2487 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2488
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2490 $as_echo_n "checking whether build environment is sane... " >&6; }
2491 # Just in case
2492 sleep 1
2493 echo timestamp > conftest.file
2494 # Reject unsafe characters in $srcdir or the absolute working directory
2495 # name.  Accept space and tab only in the latter.
2496 am_lf='
2497 '
2498 case `pwd` in
2499   *[\\\"\#\$\&\'\`$am_lf]*)
2500     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2501 esac
2502 case $srcdir in
2503   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2504     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2505 esac
2506
2507 # Do `set' in a subshell so we don't clobber the current shell's
2508 # arguments.  Must try -L first in case configure is actually a
2509 # symlink; some systems play weird games with the mod time of symlinks
2510 # (eg FreeBSD returns the mod time of the symlink's containing
2511 # directory).
2512 if (
2513    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2514    if test "$*" = "X"; then
2515       # -L didn't work.
2516       set X `ls -t "$srcdir/configure" conftest.file`
2517    fi
2518    rm -f conftest.file
2519    if test "$*" != "X $srcdir/configure conftest.file" \
2520       && test "$*" != "X conftest.file $srcdir/configure"; then
2521
2522       # If neither matched, then we have a broken ls.  This can happen
2523       # if, for instance, CONFIG_SHELL is bash and it inherits a
2524       # broken ls alias from the environment.  This has actually
2525       # happened.  Such a system could not be considered "sane".
2526       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2527 alias in your environment" "$LINENO" 5
2528    fi
2529
2530    test "$2" = conftest.file
2531    )
2532 then
2533    # Ok.
2534    :
2535 else
2536    as_fn_error "newly created file is older than distributed files!
2537 Check your system clock" "$LINENO" 5
2538 fi
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540 $as_echo "yes" >&6; }
2541 test "$program_prefix" != NONE &&
2542   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2543 # Use a double $ so make ignores it.
2544 test "$program_suffix" != NONE &&
2545   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2546 # Double any \ or $.
2547 # By default was `s,x,x', remove it if useless.
2548 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2549 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2550
2551 # expand $ac_aux_dir to an absolute path
2552 am_aux_dir=`cd $ac_aux_dir && pwd`
2553
2554 if test x"${MISSING+set}" != xset; then
2555   case $am_aux_dir in
2556   *\ * | *\     *)
2557     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2558   *)
2559     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2560   esac
2561 fi
2562 # Use eval to expand $SHELL
2563 if eval "$MISSING --run true"; then
2564   am_missing_run="$MISSING --run "
2565 else
2566   am_missing_run=
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2568 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2569 fi
2570
2571 if test x"${install_sh}" != xset; then
2572   case $am_aux_dir in
2573   *\ * | *\     *)
2574     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2575   *)
2576     install_sh="\${SHELL} $am_aux_dir/install-sh"
2577   esac
2578 fi
2579
2580 # Installed binaries are usually stripped using `strip' when the user
2581 # run `make install-strip'.  However `strip' might not be the right
2582 # tool to use in cross-compilation environments, therefore Automake
2583 # will honor the `STRIP' environment variable to overrule this program.
2584 if test "$cross_compiling" != no; then
2585   if test -n "$ac_tool_prefix"; then
2586   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2587 set dummy ${ac_tool_prefix}strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_STRIP+set}" = set; then :
2591   $as_echo_n "(cached) " >&6
2592 else
2593   if test -n "$STRIP"; then
2594   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2595 else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 for as_dir in $PATH
2598 do
2599   IFS=$as_save_IFS
2600   test -z "$as_dir" && as_dir=.
2601     for ac_exec_ext in '' $ac_executable_extensions; do
2602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2605     break 2
2606   fi
2607 done
2608   done
2609 IFS=$as_save_IFS
2610
2611 fi
2612 fi
2613 STRIP=$ac_cv_prog_STRIP
2614 if test -n "$STRIP"; then
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2616 $as_echo "$STRIP" >&6; }
2617 else
2618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 fi
2621
2622
2623 fi
2624 if test -z "$ac_cv_prog_STRIP"; then
2625   ac_ct_STRIP=$STRIP
2626   # Extract the first word of "strip", so it can be a program name with args.
2627 set dummy strip; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   if test -n "$ac_ct_STRIP"; then
2634   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2638 do
2639   IFS=$as_save_IFS
2640   test -z "$as_dir" && as_dir=.
2641     for ac_exec_ext in '' $ac_executable_extensions; do
2642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643     ac_cv_prog_ac_ct_STRIP="strip"
2644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645     break 2
2646   fi
2647 done
2648   done
2649 IFS=$as_save_IFS
2650
2651 fi
2652 fi
2653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2654 if test -n "$ac_ct_STRIP"; then
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2656 $as_echo "$ac_ct_STRIP" >&6; }
2657 else
2658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2660 fi
2661
2662   if test "x$ac_ct_STRIP" = x; then
2663     STRIP=":"
2664   else
2665     case $cross_compiling:$ac_tool_warned in
2666 yes:)
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2669 ac_tool_warned=yes ;;
2670 esac
2671     STRIP=$ac_ct_STRIP
2672   fi
2673 else
2674   STRIP="$ac_cv_prog_STRIP"
2675 fi
2676
2677 fi
2678 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2679
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2681 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2682 if test -z "$MKDIR_P"; then
2683   if test "${ac_cv_path_mkdir+set}" = set; then :
2684   $as_echo_n "(cached) " >&6
2685 else
2686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_prog in mkdir gmkdir; do
2692          for ac_exec_ext in '' $ac_executable_extensions; do
2693            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2694            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2695              'mkdir (GNU coreutils) '* | \
2696              'mkdir (coreutils) '* | \
2697              'mkdir (fileutils) '4.1*)
2698                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2699                break 3;;
2700            esac
2701          done
2702        done
2703   done
2704 IFS=$as_save_IFS
2705
2706 fi
2707
2708   if test "${ac_cv_path_mkdir+set}" = set; then
2709     MKDIR_P="$ac_cv_path_mkdir -p"
2710   else
2711     # As a last resort, use the slow shell script.  Don't cache a
2712     # value for MKDIR_P within a source directory, because that will
2713     # break other packages using the cache if that directory is
2714     # removed, or if the value is a relative name.
2715     test -d ./--version && rmdir ./--version
2716     MKDIR_P="$ac_install_sh -d"
2717   fi
2718 fi
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2720 $as_echo "$MKDIR_P" >&6; }
2721
2722 mkdir_p="$MKDIR_P"
2723 case $mkdir_p in
2724   [\\/$]* | ?:[\\/]*) ;;
2725   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2726 esac
2727
2728 for ac_prog in gawk mawk nawk awk
2729 do
2730   # Extract the first word of "$ac_prog", so it can be a program name with args.
2731 set dummy $ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if test "${ac_cv_prog_AWK+set}" = set; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   if test -n "$AWK"; then
2738   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743   IFS=$as_save_IFS
2744   test -z "$as_dir" && as_dir=.
2745     for ac_exec_ext in '' $ac_executable_extensions; do
2746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747     ac_cv_prog_AWK="$ac_prog"
2748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749     break 2
2750   fi
2751 done
2752   done
2753 IFS=$as_save_IFS
2754
2755 fi
2756 fi
2757 AWK=$ac_cv_prog_AWK
2758 if test -n "$AWK"; then
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2760 $as_echo "$AWK" >&6; }
2761 else
2762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2764 fi
2765
2766
2767   test -n "$AWK" && break
2768 done
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2771 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2772 set x ${MAKE-make}
2773 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   cat >conftest.make <<\_ACEOF
2778 SHELL = /bin/sh
2779 all:
2780         @echo '@@@%%%=$(MAKE)=@@@%%%'
2781 _ACEOF
2782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2784   *@@@%%%=?*=@@@%%%*)
2785     eval ac_cv_prog_make_${ac_make}_set=yes;;
2786   *)
2787     eval ac_cv_prog_make_${ac_make}_set=no;;
2788 esac
2789 rm -f conftest.make
2790 fi
2791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2793 $as_echo "yes" >&6; }
2794   SET_MAKE=
2795 else
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2798   SET_MAKE="MAKE=${MAKE-make}"
2799 fi
2800
2801 rm -rf .tst 2>/dev/null
2802 mkdir .tst 2>/dev/null
2803 if test -d .tst; then
2804   am__leading_dot=.
2805 else
2806   am__leading_dot=_
2807 fi
2808 rmdir .tst 2>/dev/null
2809
2810 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812   # is not polluted with repeated "-I."
2813   am__isrc=' -I$(srcdir)'
2814   # test to see if srcdir already configured
2815   if test -f $srcdir/config.status; then
2816     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2817   fi
2818 fi
2819
2820 # test whether we have cygpath
2821 if test -z "$CYGPATH_W"; then
2822   if (cygpath --version) >/dev/null 2>/dev/null; then
2823     CYGPATH_W='cygpath -w'
2824   else
2825     CYGPATH_W=echo
2826   fi
2827 fi
2828
2829
2830 # Define the identity of the package.
2831  PACKAGE='sharing-plugin-cli'
2832  VERSION='0.1'
2833
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE "$PACKAGE"
2837 _ACEOF
2838
2839
2840 cat >>confdefs.h <<_ACEOF
2841 #define VERSION "$VERSION"
2842 _ACEOF
2843
2844 # Some tools Automake needs.
2845
2846 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2847
2848
2849 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2850
2851
2852 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2853
2854
2855 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2856
2857
2858 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2859
2860 # We need awk for the "check" target.  The system "awk" is bad on
2861 # some platforms.
2862 # Always define AMTAR for backward compatibility.
2863
2864 AMTAR=${AMTAR-"${am_missing_run}tar"}
2865
2866 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2867
2868
2869
2870
2871
2872
2873
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2876     # Check whether --enable-maintainer-mode was given.
2877 if test "${enable_maintainer_mode+set}" = set; then :
2878   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2879 else
2880   USE_MAINTAINER_MODE=no
2881 fi
2882
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2885    if test $USE_MAINTAINER_MODE = yes; then
2886   MAINTAINER_MODE_TRUE=
2887   MAINTAINER_MODE_FALSE='#'
2888 else
2889   MAINTAINER_MODE_TRUE='#'
2890   MAINTAINER_MODE_FALSE=
2891 fi
2892
2893   MAINT=$MAINTAINER_MODE_TRUE
2894
2895
2896 ac_config_headers="$ac_config_headers config.h"
2897
2898
2899
2900
2901 # Check whether --enable-shared was given.
2902 if test "${enable_shared+set}" = set; then :
2903   enableval=$enable_shared; p=${PACKAGE-default}
2904     case $enableval in
2905     yes) enable_shared=yes ;;
2906     no) enable_shared=no ;;
2907     *)
2908       enable_shared=no
2909       # Look at the argument we got.  We use all the common list separators.
2910       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2911       for pkg in $enableval; do
2912         IFS="$lt_save_ifs"
2913         if test "X$pkg" = "X$p"; then
2914           enable_shared=yes
2915         fi
2916       done
2917       IFS="$lt_save_ifs"
2918       ;;
2919     esac
2920 else
2921   enable_shared=yes
2922 fi
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932 # Check whether --enable-static was given.
2933 if test "${enable_static+set}" = set; then :
2934   enableval=$enable_static; p=${PACKAGE-default}
2935     case $enableval in
2936     yes) enable_static=yes ;;
2937     no) enable_static=no ;;
2938     *)
2939      enable_static=no
2940       # Look at the argument we got.  We use all the common list separators.
2941       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2942       for pkg in $enableval; do
2943         IFS="$lt_save_ifs"
2944         if test "X$pkg" = "X$p"; then
2945           enable_static=yes
2946         fi
2947       done
2948       IFS="$lt_save_ifs"
2949       ;;
2950     esac
2951 else
2952   enable_static=no
2953 fi
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963 DEPDIR="${am__leading_dot}deps"
2964
2965 ac_config_commands="$ac_config_commands depfiles"
2966
2967
2968 am_make=${MAKE-make}
2969 cat > confinc << 'END'
2970 am__doit:
2971         @echo this is the am__doit target
2972 .PHONY: am__doit
2973 END
2974 # If we don't find an include directive, just comment out the code.
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2976 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2977 am__include="#"
2978 am__quote=
2979 _am_result=none
2980 # First try GNU make style include.
2981 echo "include confinc" > confmf
2982 # Ignore all kinds of additional output from `make'.
2983 case `$am_make -s -f confmf 2> /dev/null` in #(
2984 *the\ am__doit\ target*)
2985   am__include=include
2986   am__quote=
2987   _am_result=GNU
2988   ;;
2989 esac
2990 # Now try BSD make style include.
2991 if test "$am__include" = "#"; then
2992    echo '.include "confinc"' > confmf
2993    case `$am_make -s -f confmf 2> /dev/null` in #(
2994    *the\ am__doit\ target*)
2995      am__include=.include
2996      am__quote="\""
2997      _am_result=BSD
2998      ;;
2999    esac
3000 fi
3001
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3004 $as_echo "$_am_result" >&6; }
3005 rm -f confinc confmf
3006
3007 # Check whether --enable-dependency-tracking was given.
3008 if test "${enable_dependency_tracking+set}" = set; then :
3009   enableval=$enable_dependency_tracking;
3010 fi
3011
3012 if test "x$enable_dependency_tracking" != xno; then
3013   am_depcomp="$ac_aux_dir/depcomp"
3014   AMDEPBACKSLASH='\'
3015 fi
3016  if test "x$enable_dependency_tracking" != xno; then
3017   AMDEP_TRUE=
3018   AMDEP_FALSE='#'
3019 else
3020   AMDEP_TRUE='#'
3021   AMDEP_FALSE=
3022 fi
3023
3024
3025 ac_ext=c
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 if test -n "$ac_tool_prefix"; then
3031   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then :
3036   $as_echo_n "(cached) " >&6
3037 else
3038   if test -n "$CC"; then
3039   ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046     for ac_exec_ext in '' $ac_executable_extensions; do
3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053   done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068 fi
3069 if test -z "$ac_cv_prog_CC"; then
3070   ac_ct_CC=$CC
3071   # Extract the first word of "gcc", so it can be a program name with args.
3072 set dummy gcc; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test -n "$ac_ct_CC"; then
3079   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086     for ac_exec_ext in '' $ac_executable_extensions; do
3087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088     ac_cv_prog_ac_ct_CC="gcc"
3089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093   done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101 $as_echo "$ac_ct_CC" >&6; }
3102 else
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107   if test "x$ac_ct_CC" = x; then
3108     CC=""
3109   else
3110     case $cross_compiling:$ac_tool_warned in
3111 yes:)
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3115 esac
3116     CC=$ac_ct_CC
3117   fi
3118 else
3119   CC="$ac_cv_prog_CC"
3120 fi
3121
3122 if test -z "$CC"; then
3123           if test -n "$ac_tool_prefix"; then
3124     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3125 set dummy ${ac_tool_prefix}cc; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if test "${ac_cv_prog_CC+set}" = set; then :
3129   $as_echo_n "(cached) " >&6
3130 else
3131   if test -n "$CC"; then
3132   ac_cv_prog_CC="$CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3136 do
3137   IFS=$as_save_IFS
3138   test -z "$as_dir" && as_dir=.
3139     for ac_exec_ext in '' $ac_executable_extensions; do
3140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141     ac_cv_prog_CC="${ac_tool_prefix}cc"
3142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143     break 2
3144   fi
3145 done
3146   done
3147 IFS=$as_save_IFS
3148
3149 fi
3150 fi
3151 CC=$ac_cv_prog_CC
3152 if test -n "$CC"; then
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3154 $as_echo "$CC" >&6; }
3155 else
3156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3158 fi
3159
3160
3161   fi
3162 fi
3163 if test -z "$CC"; then
3164   # Extract the first word of "cc", so it can be a program name with args.
3165 set dummy cc; ac_word=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if test "${ac_cv_prog_CC+set}" = set; then :
3169   $as_echo_n "(cached) " >&6
3170 else
3171   if test -n "$CC"; then
3172   ac_cv_prog_CC="$CC" # Let the user override the test.
3173 else
3174   ac_prog_rejected=no
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178   IFS=$as_save_IFS
3179   test -z "$as_dir" && as_dir=.
3180     for ac_exec_ext in '' $ac_executable_extensions; do
3181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3183        ac_prog_rejected=yes
3184        continue
3185      fi
3186     ac_cv_prog_CC="cc"
3187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188     break 2
3189   fi
3190 done
3191   done
3192 IFS=$as_save_IFS
3193
3194 if test $ac_prog_rejected = yes; then
3195   # We found a bogon in the path, so make sure we never use it.
3196   set dummy $ac_cv_prog_CC
3197   shift
3198   if test $# != 0; then
3199     # We chose a different compiler from the bogus one.
3200     # However, it has the same basename, so the bogon will be chosen
3201     # first if we set CC to just the basename; use the full file name.
3202     shift
3203     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3204   fi
3205 fi
3206 fi
3207 fi
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 fi
3219 if test -z "$CC"; then
3220   if test -n "$ac_tool_prefix"; then
3221   for ac_prog in cl.exe
3222   do
3223     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if test "${ac_cv_prog_CC+set}" = set; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   if test -n "$CC"; then
3231   ac_cv_prog_CC="$CC" # Let the user override the test.
3232 else
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 for as_dir in $PATH
3235 do
3236   IFS=$as_save_IFS
3237   test -z "$as_dir" && as_dir=.
3238     for ac_exec_ext in '' $ac_executable_extensions; do
3239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3242     break 2
3243   fi
3244 done
3245   done
3246 IFS=$as_save_IFS
3247
3248 fi
3249 fi
3250 CC=$ac_cv_prog_CC
3251 if test -n "$CC"; then
3252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3253 $as_echo "$CC" >&6; }
3254 else
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256 $as_echo "no" >&6; }
3257 fi
3258
3259
3260     test -n "$CC" && break
3261   done
3262 fi
3263 if test -z "$CC"; then
3264   ac_ct_CC=$CC
3265   for ac_prog in cl.exe
3266 do
3267   # Extract the first word of "$ac_prog", so it can be a program name with args.
3268 set dummy $ac_prog; ac_word=$2
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 $as_echo_n "checking for $ac_word... " >&6; }
3271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3272   $as_echo_n "(cached) " >&6
3273 else
3274   if test -n "$ac_ct_CC"; then
3275   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276 else
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278 for as_dir in $PATH
3279 do
3280   IFS=$as_save_IFS
3281   test -z "$as_dir" && as_dir=.
3282     for ac_exec_ext in '' $ac_executable_extensions; do
3283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284     ac_cv_prog_ac_ct_CC="$ac_prog"
3285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286     break 2
3287   fi
3288 done
3289   done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295 if test -n "$ac_ct_CC"; then
3296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297 $as_echo "$ac_ct_CC" >&6; }
3298 else
3299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 fi
3302
3303
3304   test -n "$ac_ct_CC" && break
3305 done
3306
3307   if test "x$ac_ct_CC" = x; then
3308     CC=""
3309   else
3310     case $cross_compiling:$ac_tool_warned in
3311 yes:)
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3314 ac_tool_warned=yes ;;
3315 esac
3316     CC=$ac_ct_CC
3317   fi
3318 fi
3319
3320 fi
3321
3322
3323 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error "no acceptable C compiler found in \$PATH
3326 See \`config.log' for more details." "$LINENO" 5; }
3327
3328 # Provide some information about the compiler.
3329 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3330 set X $ac_compile
3331 ac_compiler=$2
3332 for ac_option in --version -v -V -qversion; do
3333   { { ac_try="$ac_compiler $ac_option >&5"
3334 case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3341   ac_status=$?
3342   if test -s conftest.err; then
3343     sed '10a\
3344 ... rest of stderr output deleted ...
3345          10q' conftest.err >conftest.er1
3346     cat conftest.er1 >&5
3347     rm -f conftest.er1 conftest.err
3348   fi
3349   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350   test $ac_status = 0; }
3351 done
3352
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355 #include <stdio.h>
3356 int
3357 main ()
3358 {
3359 FILE *f = fopen ("conftest.out", "w");
3360  return ferror (f) || fclose (f) != 0;
3361
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 ac_clean_files_save=$ac_clean_files
3367 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3368 # Try to create an executable without -o first, disregard a.out.
3369 # It will help us diagnose broken compilers, and finding out an intuition
3370 # of exeext.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3374
3375 # The possible output files:
3376 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3377
3378 ac_rmfiles=
3379 for ac_file in $ac_files
3380 do
3381   case $ac_file in
3382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3384   esac
3385 done
3386 rm -f $ac_rmfiles
3387
3388 if { { ac_try="$ac_link_default"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_link_default") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }; then :
3399   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3400 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3401 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3402 # so that the user can short-circuit this test for compilers unknown to
3403 # Autoconf.
3404 for ac_file in $ac_files ''
3405 do
3406   test -f "$ac_file" || continue
3407   case $ac_file in
3408     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3409         ;;
3410     [ab].out )
3411         # We found the default executable, but exeext='' is most
3412         # certainly right.
3413         break;;
3414     *.* )
3415         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3416         then :; else
3417            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418         fi
3419         # We set ac_cv_exeext here because the later test for it is not
3420         # safe: cross compilers may not add the suffix if given an `-o'
3421         # argument, so we may need to know it at that point already.
3422         # Even if this section looks crufty: it has the advantage of
3423         # actually working.
3424         break;;
3425     * )
3426         break;;
3427   esac
3428 done
3429 test "$ac_cv_exeext" = no && ac_cv_exeext=
3430
3431 else
3432   ac_file=''
3433 fi
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3435 $as_echo "$ac_file" >&6; }
3436 if test -z "$ac_file"; then :
3437   $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { as_fn_set_status 77
3443 as_fn_error "C compiler cannot create executables
3444 See \`config.log' for more details." "$LINENO" 5; }; }
3445 fi
3446 ac_exeext=$ac_cv_exeext
3447
3448 # Check that the compiler produces executables we can run.  If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 # If not cross compiling, check that we can run a simple program.
3453 if test "$cross_compiling" != yes; then
3454   if { ac_try='./$ac_file'
3455   { { case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461   (eval "$ac_try") 2>&5
3462   ac_status=$?
3463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464   test $ac_status = 0; }; }; then
3465     cross_compiling=no
3466   else
3467     if test "$cross_compiling" = maybe; then
3468         cross_compiling=yes
3469     else
3470         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error "cannot run C compiled programs.
3473 If you meant to cross compile, use \`--host'.
3474 See \`config.log' for more details." "$LINENO" 5; }
3475     fi
3476   fi
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479 $as_echo "yes" >&6; }
3480
3481 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3482 ac_clean_files=$ac_clean_files_save
3483 # Check that the compiler produces executables we can run.  If not, either
3484 # the compiler is broken, or we cross compile.
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3486 $as_echo_n "checking whether we are cross compiling... " >&6; }
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488 $as_echo "$cross_compiling" >&6; }
3489
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3491 $as_echo_n "checking for suffix of executables... " >&6; }
3492 if { { ac_try="$ac_link"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499   (eval "$ac_link") 2>&5
3500   ac_status=$?
3501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502   test $ac_status = 0; }; then :
3503   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3504 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3505 # work properly (i.e., refer to `conftest.exe'), while it won't with
3506 # `rm'.
3507 for ac_file in conftest.exe conftest conftest.*; do
3508   test -f "$ac_file" || continue
3509   case $ac_file in
3510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512           break;;
3513     * ) break;;
3514   esac
3515 done
3516 else
3517   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error "cannot compute suffix of executables: cannot compile and link
3520 See \`config.log' for more details." "$LINENO" 5; }
3521 fi
3522 rm -f conftest$ac_cv_exeext
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3524 $as_echo "$ac_cv_exeext" >&6; }
3525
3526 rm -f conftest.$ac_ext
3527 EXEEXT=$ac_cv_exeext
3528 ac_exeext=$EXEEXT
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3530 $as_echo_n "checking for suffix of object files... " >&6; }
3531 if test "${ac_cv_objext+set}" = set; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h.  */
3536
3537 int
3538 main ()
3539 {
3540
3541   ;
3542   return 0;
3543 }
3544 _ACEOF
3545 rm -f conftest.o conftest.obj
3546 if { { ac_try="$ac_compile"
3547 case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553   (eval "$ac_compile") 2>&5
3554   ac_status=$?
3555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3556   test $ac_status = 0; }; then :
3557   for ac_file in conftest.o conftest.obj conftest.*; do
3558   test -f "$ac_file" || continue;
3559   case $ac_file in
3560     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3561     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3562        break;;
3563   esac
3564 done
3565 else
3566   $as_echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3571 as_fn_error "cannot compute suffix of object files: cannot compile
3572 See \`config.log' for more details." "$LINENO" 5; }
3573 fi
3574 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3577 $as_echo "$ac_cv_objext" >&6; }
3578 OBJEXT=$ac_cv_objext
3579 ac_objext=$OBJEXT
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3581 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3582 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3583   $as_echo_n "(cached) " >&6
3584 else
3585   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3587
3588 int
3589 main ()
3590 {
3591 #ifndef __GNUC__
3592        choke me
3593 #endif
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600   ac_compiler_gnu=yes
3601 else
3602   ac_compiler_gnu=no
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3606
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3609 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3610 if test $ac_compiler_gnu = yes; then
3611   GCC=yes
3612 else
3613   GCC=
3614 fi
3615 ac_test_CFLAGS=${CFLAGS+set}
3616 ac_save_CFLAGS=$CFLAGS
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3618 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3619 if test "${ac_cv_prog_cc_g+set}" = set; then :
3620   $as_echo_n "(cached) " >&6
3621 else
3622   ac_save_c_werror_flag=$ac_c_werror_flag
3623    ac_c_werror_flag=yes
3624    ac_cv_prog_cc_g=no
3625    CFLAGS="-g"
3626    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h.  */
3628
3629 int
3630 main ()
3631 {
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638   ac_cv_prog_cc_g=yes
3639 else
3640   CFLAGS=""
3641       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h.  */
3643
3644 int
3645 main ()
3646 {
3647
3648   ;
3649   return 0;
3650 }
3651 _ACEOF
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653
3654 else
3655   ac_c_werror_flag=$ac_save_c_werror_flag
3656          CFLAGS="-g"
3657          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h.  */
3659
3660 int
3661 main ()
3662 {
3663
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669   ac_cv_prog_cc_g=yes
3670 fi
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 fi
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676    ac_c_werror_flag=$ac_save_c_werror_flag
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3679 $as_echo "$ac_cv_prog_cc_g" >&6; }
3680 if test "$ac_test_CFLAGS" = set; then
3681   CFLAGS=$ac_save_CFLAGS
3682 elif test $ac_cv_prog_cc_g = yes; then
3683   if test "$GCC" = yes; then
3684     CFLAGS="-g -O2"
3685   else
3686     CFLAGS="-g"
3687   fi
3688 else
3689   if test "$GCC" = yes; then
3690     CFLAGS="-O2"
3691   else
3692     CFLAGS=
3693   fi
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3696 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3697 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   ac_cv_prog_cc_c89=no
3701 ac_save_CC=$CC
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704 #include <stdarg.h>
3705 #include <stdio.h>
3706 #include <sys/types.h>
3707 #include <sys/stat.h>
3708 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3709 struct buf { int x; };
3710 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3711 static char *e (p, i)
3712      char **p;
3713      int i;
3714 {
3715   return p[i];
3716 }
3717 static char *f (char * (*g) (char **, int), char **p, ...)
3718 {
3719   char *s;
3720   va_list v;
3721   va_start (v,p);
3722   s = g (p, va_arg (v,int));
3723   va_end (v);
3724   return s;
3725 }
3726
3727 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3728    function prototypes and stuff, but not '\xHH' hex character constants.
3729    These don't provoke an error unfortunately, instead are silently treated
3730    as 'x'.  The following induces an error, until -std is added to get
3731    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3732    array size at least.  It's necessary to write '\x00'==0 to get something
3733    that's true only with -std.  */
3734 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3735
3736 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3737    inside strings and character constants.  */
3738 #define FOO(x) 'x'
3739 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3740
3741 int test (int i, double x);
3742 struct s1 {int (*f) (int a);};
3743 struct s2 {int (*f) (double a);};
3744 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3745 int argc;
3746 char **argv;
3747 int
3748 main ()
3749 {
3750 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3751   ;
3752   return 0;
3753 }
3754 _ACEOF
3755 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3756         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3757 do
3758   CC="$ac_save_CC $ac_arg"
3759   if ac_fn_c_try_compile "$LINENO"; then :
3760   ac_cv_prog_cc_c89=$ac_arg
3761 fi
3762 rm -f core conftest.err conftest.$ac_objext
3763   test "x$ac_cv_prog_cc_c89" != "xno" && break
3764 done
3765 rm -f conftest.$ac_ext
3766 CC=$ac_save_CC
3767
3768 fi
3769 # AC_CACHE_VAL
3770 case "x$ac_cv_prog_cc_c89" in
3771   x)
3772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3773 $as_echo "none needed" >&6; } ;;
3774   xno)
3775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3776 $as_echo "unsupported" >&6; } ;;
3777   *)
3778     CC="$CC $ac_cv_prog_cc_c89"
3779     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3780 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3781 esac
3782 if test "x$ac_cv_prog_cc_c89" != xno; then :
3783
3784 fi
3785
3786 ac_ext=c
3787 ac_cpp='$CPP $CPPFLAGS'
3788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3791
3792 depcc="$CC"   am_compiler_list=
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3795 $as_echo_n "checking dependency style of $depcc... " >&6; }
3796 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3797   $as_echo_n "(cached) " >&6
3798 else
3799   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3800   # We make a subdir and do the tests there.  Otherwise we can end up
3801   # making bogus files that we don't know about and never remove.  For
3802   # instance it was reported that on HP-UX the gcc test will end up
3803   # making a dummy file named `D' -- because `-MD' means `put the output
3804   # in D'.
3805   mkdir conftest.dir
3806   # Copy depcomp to subdir because otherwise we won't find it if we're
3807   # using a relative directory.
3808   cp "$am_depcomp" conftest.dir
3809   cd conftest.dir
3810   # We will build objects and dependencies in a subdirectory because
3811   # it helps to detect inapplicable dependency modes.  For instance
3812   # both Tru64's cc and ICC support -MD to output dependencies as a
3813   # side effect of compilation, but ICC will put the dependencies in
3814   # the current directory while Tru64 will put them in the object
3815   # directory.
3816   mkdir sub
3817
3818   am_cv_CC_dependencies_compiler_type=none
3819   if test "$am_compiler_list" = ""; then
3820      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3821   fi
3822   am__universal=false
3823   case " $depcc " in #(
3824      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3825      esac
3826
3827   for depmode in $am_compiler_list; do
3828     # Setup a source with many dependencies, because some compilers
3829     # like to wrap large dependency lists on column 80 (with \), and
3830     # we should not choose a depcomp mode which is confused by this.
3831     #
3832     # We need to recreate these files for each test, as the compiler may
3833     # overwrite some of them when testing with obscure command lines.
3834     # This happens at least with the AIX C compiler.
3835     : > sub/conftest.c
3836     for i in 1 2 3 4 5 6; do
3837       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3838       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3839       # Solaris 8's {/usr,}/bin/sh.
3840       touch sub/conftst$i.h
3841     done
3842     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3843
3844     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3845     # mode.  It turns out that the SunPro C++ compiler does not properly
3846     # handle `-M -o', and we need to detect this.  Also, some Intel
3847     # versions had trouble with output in subdirs
3848     am__obj=sub/conftest.${OBJEXT-o}
3849     am__minus_obj="-o $am__obj"
3850     case $depmode in
3851     gcc)
3852       # This depmode causes a compiler race in universal mode.
3853       test "$am__universal" = false || continue
3854       ;;
3855     nosideeffect)
3856       # after this tag, mechanisms are not by side-effect, so they'll
3857       # only be used when explicitly requested
3858       if test "x$enable_dependency_tracking" = xyes; then
3859         continue
3860       else
3861         break
3862       fi
3863       ;;
3864     msvisualcpp | msvcmsys)
3865       # This compiler won't grok `-c -o', but also, the minuso test has
3866       # not run yet.  These depmodes are late enough in the game, and
3867       # so weak that their functioning should not be impacted.
3868       am__obj=conftest.${OBJEXT-o}
3869       am__minus_obj=
3870       ;;
3871     none) break ;;
3872     esac
3873     if depmode=$depmode \
3874        source=sub/conftest.c object=$am__obj \
3875        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3876        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3877          >/dev/null 2>conftest.err &&
3878        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3879        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3880        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3881        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3882       # icc doesn't choke on unknown options, it will just issue warnings
3883       # or remarks (even with -Werror).  So we grep stderr for any message
3884       # that says an option was ignored or not supported.
3885       # When given -MP, icc 7.0 and 7.1 complain thusly:
3886       #   icc: Command line warning: ignoring option '-M'; no argument required
3887       # The diagnosis changed in icc 8.0:
3888       #   icc: Command line remark: option '-MP' not supported
3889       if (grep 'ignoring option' conftest.err ||
3890           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3891         am_cv_CC_dependencies_compiler_type=$depmode
3892         break
3893       fi
3894     fi
3895   done
3896
3897   cd ..
3898   rm -rf conftest.dir
3899 else
3900   am_cv_CC_dependencies_compiler_type=none
3901 fi
3902
3903 fi
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3905 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3906 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3907
3908  if
3909   test "x$enable_dependency_tracking" != xno \
3910   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3911   am__fastdepCC_TRUE=
3912   am__fastdepCC_FALSE='#'
3913 else
3914   am__fastdepCC_TRUE='#'
3915   am__fastdepCC_FALSE=
3916 fi
3917
3918
3919
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3921 $as_echo_n "checking for library containing strerror... " >&6; }
3922 if test "${ac_cv_search_strerror+set}" = set; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   ac_func_search_save_LIBS=$LIBS
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928
3929 /* Override any GCC internal prototype to avoid an error.
3930    Use char because int might match the return type of a GCC
3931    builtin and then its argument prototype would still apply.  */
3932 #ifdef __cplusplus
3933 extern "C"
3934 #endif
3935 char strerror ();
3936 int
3937 main ()
3938 {
3939 return strerror ();
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 for ac_lib in '' cposix; do
3945   if test -z "$ac_lib"; then
3946     ac_res="none required"
3947   else
3948     ac_res=-l$ac_lib
3949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3950   fi
3951   if ac_fn_c_try_link "$LINENO"; then :
3952   ac_cv_search_strerror=$ac_res
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext \
3955     conftest$ac_exeext
3956   if test "${ac_cv_search_strerror+set}" = set; then :
3957   break
3958 fi
3959 done
3960 if test "${ac_cv_search_strerror+set}" = set; then :
3961
3962 else
3963   ac_cv_search_strerror=no
3964 fi
3965 rm conftest.$ac_ext
3966 LIBS=$ac_func_search_save_LIBS
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3969 $as_echo "$ac_cv_search_strerror" >&6; }
3970 ac_res=$ac_cv_search_strerror
3971 if test "$ac_res" != no; then :
3972   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3973
3974 fi
3975
3976 ac_ext=cpp
3977 ac_cpp='$CXXCPP $CPPFLAGS'
3978 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3979 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3980 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3981 if test -z "$CXX"; then
3982   if test -n "$CCC"; then
3983     CXX=$CCC
3984   else
3985     if test -n "$ac_tool_prefix"; then
3986   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3987   do
3988     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if test "${ac_cv_prog_CXX+set}" = set; then :
3993   $as_echo_n "(cached) " >&6
3994 else
3995   if test -n "$CXX"; then
3996   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3997 else
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4000 do
4001   IFS=$as_save_IFS
4002   test -z "$as_dir" && as_dir=.
4003     for ac_exec_ext in '' $ac_executable_extensions; do
4004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007     break 2
4008   fi
4009 done
4010   done
4011 IFS=$as_save_IFS
4012
4013 fi
4014 fi
4015 CXX=$ac_cv_prog_CXX
4016 if test -n "$CXX"; then
4017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4018 $as_echo "$CXX" >&6; }
4019 else
4020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4022 fi
4023
4024
4025     test -n "$CXX" && break
4026   done
4027 fi
4028 if test -z "$CXX"; then
4029   ac_ct_CXX=$CXX
4030   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4031 do
4032   # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -n "$ac_ct_CXX"; then
4040   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047     for ac_exec_ext in '' $ac_executable_extensions; do
4048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4049     ac_cv_prog_ac_ct_CXX="$ac_prog"
4050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054   done
4055 IFS=$as_save_IFS
4056
4057 fi
4058 fi
4059 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4060 if test -n "$ac_ct_CXX"; then
4061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4062 $as_echo "$ac_ct_CXX" >&6; }
4063 else
4064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4066 fi
4067
4068
4069   test -n "$ac_ct_CXX" && break
4070 done
4071
4072   if test "x$ac_ct_CXX" = x; then
4073     CXX="g++"
4074   else
4075     case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081     CXX=$ac_ct_CXX
4082   fi
4083 fi
4084
4085   fi
4086 fi
4087 # Provide some information about the compiler.
4088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4089 set X $ac_compile
4090 ac_compiler=$2
4091 for ac_option in --version -v -V -qversion; do
4092   { { ac_try="$ac_compiler $ac_option >&5"
4093 case "(($ac_try" in
4094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095   *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4098 $as_echo "$ac_try_echo"; } >&5
4099   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4100   ac_status=$?
4101   if test -s conftest.err; then
4102     sed '10a\
4103 ... rest of stderr output deleted ...
4104          10q' conftest.err >conftest.er1
4105     cat conftest.er1 >&5
4106     rm -f conftest.er1 conftest.err
4107   fi
4108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109   test $ac_status = 0; }
4110 done
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4113 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4114 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h.  */
4119
4120 int
4121 main ()
4122 {
4123 #ifndef __GNUC__
4124        choke me
4125 #endif
4126
4127   ;
4128   return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_cxx_try_compile "$LINENO"; then :
4132   ac_compiler_gnu=yes
4133 else
4134   ac_compiler_gnu=no
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4138
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4141 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4142 if test $ac_compiler_gnu = yes; then
4143   GXX=yes
4144 else
4145   GXX=
4146 fi
4147 ac_test_CXXFLAGS=${CXXFLAGS+set}
4148 ac_save_CXXFLAGS=$CXXFLAGS
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4150 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4151 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4155    ac_cxx_werror_flag=yes
4156    ac_cv_prog_cxx_g=no
4157    CXXFLAGS="-g"
4158    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160
4161 int
4162 main ()
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_cxx_try_compile "$LINENO"; then :
4170   ac_cv_prog_cxx_g=yes
4171 else
4172   CXXFLAGS=""
4173       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h.  */
4175
4176 int
4177 main ()
4178 {
4179
4180   ;
4181   return 0;
4182 }
4183 _ACEOF
4184 if ac_fn_cxx_try_compile "$LINENO"; then :
4185
4186 else
4187   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4188          CXXFLAGS="-g"
4189          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h.  */
4191
4192 int
4193 main ()
4194 {
4195
4196   ;
4197   return 0;
4198 }
4199 _ACEOF
4200 if ac_fn_cxx_try_compile "$LINENO"; then :
4201   ac_cv_prog_cxx_g=yes
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4211 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4212 if test "$ac_test_CXXFLAGS" = set; then
4213   CXXFLAGS=$ac_save_CXXFLAGS
4214 elif test $ac_cv_prog_cxx_g = yes; then
4215   if test "$GXX" = yes; then
4216     CXXFLAGS="-g -O2"
4217   else
4218     CXXFLAGS="-g"
4219   fi
4220 else
4221   if test "$GXX" = yes; then
4222     CXXFLAGS="-O2"
4223   else
4224     CXXFLAGS=
4225   fi
4226 fi
4227 ac_ext=c
4228 ac_cpp='$CPP $CPPFLAGS'
4229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232
4233 depcc="$CXX"  am_compiler_list=
4234
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4236 $as_echo_n "checking dependency style of $depcc... " >&6; }
4237 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4238   $as_echo_n "(cached) " >&6
4239 else
4240   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4241   # We make a subdir and do the tests there.  Otherwise we can end up
4242   # making bogus files that we don't know about and never remove.  For
4243   # instance it was reported that on HP-UX the gcc test will end up
4244   # making a dummy file named `D' -- because `-MD' means `put the output
4245   # in D'.
4246   mkdir conftest.dir
4247   # Copy depcomp to subdir because otherwise we won't find it if we're
4248   # using a relative directory.
4249   cp "$am_depcomp" conftest.dir
4250   cd conftest.dir
4251   # We will build objects and dependencies in a subdirectory because
4252   # it helps to detect inapplicable dependency modes.  For instance
4253   # both Tru64's cc and ICC support -MD to output dependencies as a
4254   # side effect of compilation, but ICC will put the dependencies in
4255   # the current directory while Tru64 will put them in the object
4256   # directory.
4257   mkdir sub
4258
4259   am_cv_CXX_dependencies_compiler_type=none
4260   if test "$am_compiler_list" = ""; then
4261      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4262   fi
4263   am__universal=false
4264   case " $depcc " in #(
4265      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4266      esac
4267
4268   for depmode in $am_compiler_list; do
4269     # Setup a source with many dependencies, because some compilers
4270     # like to wrap large dependency lists on column 80 (with \), and
4271     # we should not choose a depcomp mode which is confused by this.
4272     #
4273     # We need to recreate these files for each test, as the compiler may
4274     # overwrite some of them when testing with obscure command lines.
4275     # This happens at least with the AIX C compiler.
4276     : > sub/conftest.c
4277     for i in 1 2 3 4 5 6; do
4278       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4279       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4280       # Solaris 8's {/usr,}/bin/sh.
4281       touch sub/conftst$i.h
4282     done
4283     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4284
4285     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4286     # mode.  It turns out that the SunPro C++ compiler does not properly
4287     # handle `-M -o', and we need to detect this.  Also, some Intel
4288     # versions had trouble with output in subdirs
4289     am__obj=sub/conftest.${OBJEXT-o}
4290     am__minus_obj="-o $am__obj"
4291     case $depmode in
4292     gcc)
4293       # This depmode causes a compiler race in universal mode.
4294       test "$am__universal" = false || continue
4295       ;;
4296     nosideeffect)
4297       # after this tag, mechanisms are not by side-effect, so they'll
4298       # only be used when explicitly requested
4299       if test "x$enable_dependency_tracking" = xyes; then
4300         continue
4301       else
4302         break
4303       fi
4304       ;;
4305     msvisualcpp | msvcmsys)
4306       # This compiler won't grok `-c -o', but also, the minuso test has
4307       # not run yet.  These depmodes are late enough in the game, and
4308       # so weak that their functioning should not be impacted.
4309       am__obj=conftest.${OBJEXT-o}
4310       am__minus_obj=
4311       ;;
4312     none) break ;;
4313     esac
4314     if depmode=$depmode \
4315        source=sub/conftest.c object=$am__obj \
4316        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4317        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4318          >/dev/null 2>conftest.err &&
4319        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4320        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4321        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4322        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4323       # icc doesn't choke on unknown options, it will just issue warnings
4324       # or remarks (even with -Werror).  So we grep stderr for any message
4325       # that says an option was ignored or not supported.
4326       # When given -MP, icc 7.0 and 7.1 complain thusly:
4327       #   icc: Command line warning: ignoring option '-M'; no argument required
4328       # The diagnosis changed in icc 8.0:
4329       #   icc: Command line remark: option '-MP' not supported
4330       if (grep 'ignoring option' conftest.err ||
4331           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4332         am_cv_CXX_dependencies_compiler_type=$depmode
4333         break
4334       fi
4335     fi
4336   done
4337
4338   cd ..
4339   rm -rf conftest.dir
4340 else
4341   am_cv_CXX_dependencies_compiler_type=none
4342 fi
4343
4344 fi
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4346 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4347 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4348
4349  if
4350   test "x$enable_dependency_tracking" != xno \
4351   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4352   am__fastdepCXX_TRUE=
4353   am__fastdepCXX_FALSE='#'
4354 else
4355   am__fastdepCXX_TRUE='#'
4356   am__fastdepCXX_FALSE=
4357 fi
4358
4359
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4366 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4367 # On Suns, sometimes $CPP names a directory.
4368 if test -n "$CPP" && test -d "$CPP"; then
4369   CPP=
4370 fi
4371 if test -z "$CPP"; then
4372   if test "${ac_cv_prog_CPP+set}" = set; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375       # Double quotes because CPP needs to be expanded
4376     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4377     do
4378       ac_preproc_ok=false
4379 for ac_c_preproc_warn_flag in '' yes
4380 do
4381   # Use a header file that comes with gcc, so configuring glibc
4382   # with a fresh cross-compiler works.
4383   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384   # <limits.h> exists even on freestanding compilers.
4385   # On the NeXT, cc -E runs the code through the compiler's parser,
4386   # not just through cpp. "Syntax error" is here to catch this case.
4387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h.  */
4389 #ifdef __STDC__
4390 # include <limits.h>
4391 #else
4392 # include <assert.h>
4393 #endif
4394                      Syntax error
4395 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"; then :
4397
4398 else
4399   # Broken: fails on valid input.
4400 continue
4401 fi
4402 rm -f conftest.err conftest.$ac_ext
4403
4404   # OK, works on sane cases.  Now check whether nonexistent headers
4405   # can be detected and how.
4406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h.  */
4408 #include <ac_nonexistent.h>
4409 _ACEOF
4410 if ac_fn_c_try_cpp "$LINENO"; then :
4411   # Broken: success on invalid input.
4412 continue
4413 else
4414   # Passes both tests.
4415 ac_preproc_ok=:
4416 break
4417 fi
4418 rm -f conftest.err conftest.$ac_ext
4419
4420 done
4421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4422 rm -f conftest.err conftest.$ac_ext
4423 if $ac_preproc_ok; then :
4424   break
4425 fi
4426
4427     done
4428     ac_cv_prog_CPP=$CPP
4429
4430 fi
4431   CPP=$ac_cv_prog_CPP
4432 else
4433   ac_cv_prog_CPP=$CPP
4434 fi
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4436 $as_echo "$CPP" >&6; }
4437 ac_preproc_ok=false
4438 for ac_c_preproc_warn_flag in '' yes
4439 do
4440   # Use a header file that comes with gcc, so configuring glibc
4441   # with a fresh cross-compiler works.
4442   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443   # <limits.h> exists even on freestanding compilers.
4444   # On the NeXT, cc -E runs the code through the compiler's parser,
4445   # not just through cpp. "Syntax error" is here to catch this case.
4446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h.  */
4448 #ifdef __STDC__
4449 # include <limits.h>
4450 #else
4451 # include <assert.h>
4452 #endif
4453                      Syntax error
4454 _ACEOF
4455 if ac_fn_c_try_cpp "$LINENO"; then :
4456
4457 else
4458   # Broken: fails on valid input.
4459 continue
4460 fi
4461 rm -f conftest.err conftest.$ac_ext
4462
4463   # OK, works on sane cases.  Now check whether nonexistent headers
4464   # can be detected and how.
4465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h.  */
4467 #include <ac_nonexistent.h>
4468 _ACEOF
4469 if ac_fn_c_try_cpp "$LINENO"; then :
4470   # Broken: success on invalid input.
4471 continue
4472 else
4473   # Passes both tests.
4474 ac_preproc_ok=:
4475 break
4476 fi
4477 rm -f conftest.err conftest.$ac_ext
4478
4479 done
4480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4481 rm -f conftest.err conftest.$ac_ext
4482 if $ac_preproc_ok; then :
4483
4484 else
4485   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4488 See \`config.log' for more details." "$LINENO" 5; }
4489 fi
4490
4491 ac_ext=c
4492 ac_cpp='$CPP $CPPFLAGS'
4493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4496
4497 ac_ext=c
4498 ac_cpp='$CPP $CPPFLAGS'
4499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4502 if test -n "$ac_tool_prefix"; then
4503   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if test "${ac_cv_prog_CC+set}" = set; then :
4508   $as_echo_n "(cached) " >&6
4509 else
4510   if test -n "$CC"; then
4511   ac_cv_prog_CC="$CC" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4515 do
4516   IFS=$as_save_IFS
4517   test -z "$as_dir" && as_dir=.
4518     for ac_exec_ext in '' $ac_executable_extensions; do
4519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522     break 2
4523   fi
4524 done
4525   done
4526 IFS=$as_save_IFS
4527
4528 fi
4529 fi
4530 CC=$ac_cv_prog_CC
4531 if test -n "$CC"; then
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4533 $as_echo "$CC" >&6; }
4534 else
4535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4537 fi
4538
4539
4540 fi
4541 if test -z "$ac_cv_prog_CC"; then
4542   ac_ct_CC=$CC
4543   # Extract the first word of "gcc", so it can be a program name with args.
4544 set dummy gcc; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4548   $as_echo_n "(cached) " >&6
4549 else
4550   if test -n "$ac_ct_CC"; then
4551   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558     for ac_exec_ext in '' $ac_executable_extensions; do
4559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560     ac_cv_prog_ac_ct_CC="gcc"
4561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562     break 2
4563   fi
4564 done
4565   done
4566 IFS=$as_save_IFS
4567
4568 fi
4569 fi
4570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4571 if test -n "$ac_ct_CC"; then
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4573 $as_echo "$ac_ct_CC" >&6; }
4574 else
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579   if test "x$ac_ct_CC" = x; then
4580     CC=""
4581   else
4582     case $cross_compiling:$ac_tool_warned in
4583 yes:)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4587 esac
4588     CC=$ac_ct_CC
4589   fi
4590 else
4591   CC="$ac_cv_prog_CC"
4592 fi
4593
4594 if test -z "$CC"; then
4595           if test -n "$ac_tool_prefix"; then
4596     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4597 set dummy ${ac_tool_prefix}cc; ac_word=$2
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599 $as_echo_n "checking for $ac_word... " >&6; }
4600 if test "${ac_cv_prog_CC+set}" = set; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603   if test -n "$CC"; then
4604   ac_cv_prog_CC="$CC" # Let the user override the test.
4605 else
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609   IFS=$as_save_IFS
4610   test -z "$as_dir" && as_dir=.
4611     for ac_exec_ext in '' $ac_executable_extensions; do
4612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613     ac_cv_prog_CC="${ac_tool_prefix}cc"
4614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615     break 2
4616   fi
4617 done
4618   done
4619 IFS=$as_save_IFS
4620
4621 fi
4622 fi
4623 CC=$ac_cv_prog_CC
4624 if test -n "$CC"; then
4625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4626 $as_echo "$CC" >&6; }
4627 else
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4630 fi
4631
4632
4633   fi
4634 fi
4635 if test -z "$CC"; then
4636   # Extract the first word of "cc", so it can be a program name with args.
4637 set dummy cc; ac_word=$2
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639 $as_echo_n "checking for $ac_word... " >&6; }
4640 if test "${ac_cv_prog_CC+set}" = set; then :
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test -n "$CC"; then
4644   ac_cv_prog_CC="$CC" # Let the user override the test.
4645 else
4646   ac_prog_rejected=no
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH
4649 do
4650   IFS=$as_save_IFS
4651   test -z "$as_dir" && as_dir=.
4652     for ac_exec_ext in '' $ac_executable_extensions; do
4653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4654     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4655        ac_prog_rejected=yes
4656        continue
4657      fi
4658     ac_cv_prog_CC="cc"
4659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660     break 2
4661   fi
4662 done
4663   done
4664 IFS=$as_save_IFS
4665
4666 if test $ac_prog_rejected = yes; then
4667   # We found a bogon in the path, so make sure we never use it.
4668   set dummy $ac_cv_prog_CC
4669   shift
4670   if test $# != 0; then
4671     # We chose a different compiler from the bogus one.
4672     # However, it has the same basename, so the bogon will be chosen
4673     # first if we set CC to just the basename; use the full file name.
4674     shift
4675     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4676   fi
4677 fi
4678 fi
4679 fi
4680 CC=$ac_cv_prog_CC
4681 if test -n "$CC"; then
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4683 $as_echo "$CC" >&6; }
4684 else
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689
4690 fi
4691 if test -z "$CC"; then
4692   if test -n "$ac_tool_prefix"; then
4693   for ac_prog in cl.exe
4694   do
4695     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_CC+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -n "$CC"; then
4703   ac_cv_prog_CC="$CC" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710     for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717   done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 CC=$ac_cv_prog_CC
4723 if test -n "$CC"; then
4724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725 $as_echo "$CC" >&6; }
4726 else
4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732     test -n "$CC" && break
4733   done
4734 fi
4735 if test -z "$CC"; then
4736   ac_ct_CC=$CC
4737   for ac_prog in cl.exe
4738 do
4739   # Extract the first word of "$ac_prog", so it can be a program name with args.
4740 set dummy $ac_prog; ac_word=$2
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 $as_echo_n "checking for $ac_word... " >&6; }
4743 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4744   $as_echo_n "(cached) " >&6
4745 else
4746   if test -n "$ac_ct_CC"; then
4747   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4748 else
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756     ac_cv_prog_ac_ct_CC="$ac_prog"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763
4764 fi
4765 fi
4766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4767 if test -n "$ac_ct_CC"; then
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4769 $as_echo "$ac_ct_CC" >&6; }
4770 else
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774
4775
4776   test -n "$ac_ct_CC" && break
4777 done
4778
4779   if test "x$ac_ct_CC" = x; then
4780     CC=""
4781   else
4782     case $cross_compiling:$ac_tool_warned in
4783 yes:)
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4786 ac_tool_warned=yes ;;
4787 esac
4788     CC=$ac_ct_CC
4789   fi
4790 fi
4791
4792 fi
4793
4794
4795 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4797 as_fn_error "no acceptable C compiler found in \$PATH
4798 See \`config.log' for more details." "$LINENO" 5; }
4799
4800 # Provide some information about the compiler.
4801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4802 set X $ac_compile
4803 ac_compiler=$2
4804 for ac_option in --version -v -V -qversion; do
4805   { { ac_try="$ac_compiler $ac_option >&5"
4806 case "(($ac_try" in
4807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808   *) ac_try_echo=$ac_try;;
4809 esac
4810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4811 $as_echo "$ac_try_echo"; } >&5
4812   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4813   ac_status=$?
4814   if test -s conftest.err; then
4815     sed '10a\
4816 ... rest of stderr output deleted ...
4817          10q' conftest.err >conftest.er1
4818     cat conftest.er1 >&5
4819     rm -f conftest.er1 conftest.err
4820   fi
4821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4822   test $ac_status = 0; }
4823 done
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4826 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4827 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4828   $as_echo_n "(cached) " >&6
4829 else
4830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h.  */
4832
4833 int
4834 main ()
4835 {
4836 #ifndef __GNUC__
4837        choke me
4838 #endif
4839
4840   ;
4841   return 0;
4842 }
4843 _ACEOF
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845   ac_compiler_gnu=yes
4846 else
4847   ac_compiler_gnu=no
4848 fi
4849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4851
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4854 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4855 if test $ac_compiler_gnu = yes; then
4856   GCC=yes
4857 else
4858   GCC=
4859 fi
4860 ac_test_CFLAGS=${CFLAGS+set}
4861 ac_save_CFLAGS=$CFLAGS
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4863 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4864 if test "${ac_cv_prog_cc_g+set}" = set; then :
4865   $as_echo_n "(cached) " >&6
4866 else
4867   ac_save_c_werror_flag=$ac_c_werror_flag
4868    ac_c_werror_flag=yes
4869    ac_cv_prog_cc_g=no
4870    CFLAGS="-g"
4871    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h.  */
4873
4874 int
4875 main ()
4876 {
4877
4878   ;
4879   return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883   ac_cv_prog_cc_g=yes
4884 else
4885   CFLAGS=""
4886       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h.  */
4888
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897 if ac_fn_c_try_compile "$LINENO"; then :
4898
4899 else
4900   ac_c_werror_flag=$ac_save_c_werror_flag
4901          CFLAGS="-g"
4902          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h.  */
4904
4905 int
4906 main ()
4907 {
4908
4909   ;
4910   return 0;
4911 }
4912 _ACEOF
4913 if ac_fn_c_try_compile "$LINENO"; then :
4914   ac_cv_prog_cc_g=yes
4915 fi
4916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4917 fi
4918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 fi
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921    ac_c_werror_flag=$ac_save_c_werror_flag
4922 fi
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4924 $as_echo "$ac_cv_prog_cc_g" >&6; }
4925 if test "$ac_test_CFLAGS" = set; then
4926   CFLAGS=$ac_save_CFLAGS
4927 elif test $ac_cv_prog_cc_g = yes; then
4928   if test "$GCC" = yes; then
4929     CFLAGS="-g -O2"
4930   else
4931     CFLAGS="-g"
4932   fi
4933 else
4934   if test "$GCC" = yes; then
4935     CFLAGS="-O2"
4936   else
4937     CFLAGS=
4938   fi
4939 fi
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4942 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   ac_cv_prog_cc_c89=no
4946 ac_save_CC=$CC
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949 #include <stdarg.h>
4950 #include <stdio.h>
4951 #include <sys/types.h>
4952 #include <sys/stat.h>
4953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4954 struct buf { int x; };
4955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4956 static char *e (p, i)
4957      char **p;
4958      int i;
4959 {
4960   return p[i];
4961 }
4962 static char *f (char * (*g) (char **, int), char **p, ...)
4963 {
4964   char *s;
4965   va_list v;
4966   va_start (v,p);
4967   s = g (p, va_arg (v,int));
4968   va_end (v);
4969   return s;
4970 }
4971
4972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4973    function prototypes and stuff, but not '\xHH' hex character constants.
4974    These don't provoke an error unfortunately, instead are silently treated
4975    as 'x'.  The following induces an error, until -std is added to get
4976    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4977    array size at least.  It's necessary to write '\x00'==0 to get something
4978    that's true only with -std.  */
4979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4980
4981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4982    inside strings and character constants.  */
4983 #define FOO(x) 'x'
4984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4985
4986 int test (int i, double x);
4987 struct s1 {int (*f) (int a);};
4988 struct s2 {int (*f) (double a);};
4989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4990 int argc;
4991 char **argv;
4992 int
4993 main ()
4994 {
4995 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4996   ;
4997   return 0;
4998 }
4999 _ACEOF
5000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5001         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5002 do
5003   CC="$ac_save_CC $ac_arg"
5004   if ac_fn_c_try_compile "$LINENO"; then :
5005   ac_cv_prog_cc_c89=$ac_arg
5006 fi
5007 rm -f core conftest.err conftest.$ac_objext
5008   test "x$ac_cv_prog_cc_c89" != "xno" && break
5009 done
5010 rm -f conftest.$ac_ext
5011 CC=$ac_save_CC
5012
5013 fi
5014 # AC_CACHE_VAL
5015 case "x$ac_cv_prog_cc_c89" in
5016   x)
5017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5018 $as_echo "none needed" >&6; } ;;
5019   xno)
5020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5021 $as_echo "unsupported" >&6; } ;;
5022   *)
5023     CC="$CC $ac_cv_prog_cc_c89"
5024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5026 esac
5027 if test "x$ac_cv_prog_cc_c89" != xno; then :
5028
5029 fi
5030
5031 ac_ext=c
5032 ac_cpp='$CPP $CPPFLAGS'
5033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5036
5037 depcc="$CC"   am_compiler_list=
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5040 $as_echo_n "checking dependency style of $depcc... " >&6; }
5041 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5042   $as_echo_n "(cached) " >&6
5043 else
5044   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5045   # We make a subdir and do the tests there.  Otherwise we can end up
5046   # making bogus files that we don't know about and never remove.  For
5047   # instance it was reported that on HP-UX the gcc test will end up
5048   # making a dummy file named `D' -- because `-MD' means `put the output
5049   # in D'.
5050   mkdir conftest.dir
5051   # Copy depcomp to subdir because otherwise we won't find it if we're
5052   # using a relative directory.
5053   cp "$am_depcomp" conftest.dir
5054   cd conftest.dir
5055   # We will build objects and dependencies in a subdirectory because
5056   # it helps to detect inapplicable dependency modes.  For instance
5057   # both Tru64's cc and ICC support -MD to output dependencies as a
5058   # side effect of compilation, but ICC will put the dependencies in
5059   # the current directory while Tru64 will put them in the object
5060   # directory.
5061   mkdir sub
5062
5063   am_cv_CC_dependencies_compiler_type=none
5064   if test "$am_compiler_list" = ""; then
5065      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5066   fi
5067   am__universal=false
5068   case " $depcc " in #(
5069      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5070      esac
5071
5072   for depmode in $am_compiler_list; do
5073     # Setup a source with many dependencies, because some compilers
5074     # like to wrap large dependency lists on column 80 (with \), and
5075     # we should not choose a depcomp mode which is confused by this.
5076     #
5077     # We need to recreate these files for each test, as the compiler may
5078     # overwrite some of them when testing with obscure command lines.
5079     # This happens at least with the AIX C compiler.
5080     : > sub/conftest.c
5081     for i in 1 2 3 4 5 6; do
5082       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5083       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5084       # Solaris 8's {/usr,}/bin/sh.
5085       touch sub/conftst$i.h
5086     done
5087     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5088
5089     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5090     # mode.  It turns out that the SunPro C++ compiler does not properly
5091     # handle `-M -o', and we need to detect this.  Also, some Intel
5092     # versions had trouble with output in subdirs
5093     am__obj=sub/conftest.${OBJEXT-o}
5094     am__minus_obj="-o $am__obj"
5095     case $depmode in
5096     gcc)
5097       # This depmode causes a compiler race in universal mode.
5098       test "$am__universal" = false || continue
5099       ;;
5100     nosideeffect)
5101       # after this tag, mechanisms are not by side-effect, so they'll
5102       # only be used when explicitly requested
5103       if test "x$enable_dependency_tracking" = xyes; then
5104         continue
5105       else
5106         break
5107       fi
5108       ;;
5109     msvisualcpp | msvcmsys)
5110       # This compiler won't grok `-c -o', but also, the minuso test has
5111       # not run yet.  These depmodes are late enough in the game, and
5112       # so weak that their functioning should not be impacted.
5113       am__obj=conftest.${OBJEXT-o}
5114       am__minus_obj=
5115       ;;
5116     none) break ;;
5117     esac
5118     if depmode=$depmode \
5119        source=sub/conftest.c object=$am__obj \
5120        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5121        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5122          >/dev/null 2>conftest.err &&
5123        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5124        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5125        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5126        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5127       # icc doesn't choke on unknown options, it will just issue warnings
5128       # or remarks (even with -Werror).  So we grep stderr for any message
5129       # that says an option was ignored or not supported.
5130       # When given -MP, icc 7.0 and 7.1 complain thusly:
5131       #   icc: Command line warning: ignoring option '-M'; no argument required
5132       # The diagnosis changed in icc 8.0:
5133       #   icc: Command line remark: option '-MP' not supported
5134       if (grep 'ignoring option' conftest.err ||
5135           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5136         am_cv_CC_dependencies_compiler_type=$depmode
5137         break
5138       fi
5139     fi
5140   done
5141
5142   cd ..
5143   rm -rf conftest.dir
5144 else
5145   am_cv_CC_dependencies_compiler_type=none
5146 fi
5147
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5150 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5152
5153  if
5154   test "x$enable_dependency_tracking" != xno \
5155   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5156   am__fastdepCC_TRUE=
5157   am__fastdepCC_FALSE='#'
5158 else
5159   am__fastdepCC_TRUE='#'
5160   am__fastdepCC_FALSE=
5161 fi
5162
5163
5164 ac_ext=c
5165 ac_cpp='$CPP $CPPFLAGS'
5166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5169 if test -n "$ac_tool_prefix"; then
5170   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5171 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if test "${ac_cv_prog_CC+set}" = set; then :
5175   $as_echo_n "(cached) " >&6
5176 else
5177   if test -n "$CC"; then
5178   ac_cv_prog_CC="$CC" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185     for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192   done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 CC=$ac_cv_prog_CC
5198 if test -n "$CC"; then
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5200 $as_echo "$CC" >&6; }
5201 else
5202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5204 fi
5205
5206
5207 fi
5208 if test -z "$ac_cv_prog_CC"; then
5209   ac_ct_CC=$CC
5210   # Extract the first word of "gcc", so it can be a program name with args.
5211 set dummy gcc; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217   if test -n "$ac_ct_CC"; then
5218   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225     for ac_exec_ext in '' $ac_executable_extensions; do
5226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227     ac_cv_prog_ac_ct_CC="gcc"
5228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232   done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5238 if test -n "$ac_ct_CC"; then
5239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5240 $as_echo "$ac_ct_CC" >&6; }
5241 else
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246   if test "x$ac_ct_CC" = x; then
5247     CC=""
5248   else
5249     case $cross_compiling:$ac_tool_warned in
5250 yes:)
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5253 ac_tool_warned=yes ;;
5254 esac
5255     CC=$ac_ct_CC
5256   fi
5257 else
5258   CC="$ac_cv_prog_CC"
5259 fi
5260
5261 if test -z "$CC"; then
5262           if test -n "$ac_tool_prefix"; then
5263     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5264 set dummy ${ac_tool_prefix}cc; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_CC+set}" = set; then :
5268   $as_echo_n "(cached) " >&6
5269 else
5270   if test -n "$CC"; then
5271   ac_cv_prog_CC="$CC" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278     for ac_exec_ext in '' $ac_executable_extensions; do
5279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280     ac_cv_prog_CC="${ac_tool_prefix}cc"
5281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282     break 2
5283   fi
5284 done
5285   done
5286 IFS=$as_save_IFS
5287
5288 fi
5289 fi
5290 CC=$ac_cv_prog_CC
5291 if test -n "$CC"; then
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5293 $as_echo "$CC" >&6; }
5294 else
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300   fi
5301 fi
5302 if test -z "$CC"; then
5303   # Extract the first word of "cc", so it can be a program name with args.
5304 set dummy cc; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if test "${ac_cv_prog_CC+set}" = set; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   if test -n "$CC"; then
5311   ac_cv_prog_CC="$CC" # Let the user override the test.
5312 else
5313   ac_prog_rejected=no
5314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5315 for as_dir in $PATH
5316 do
5317   IFS=$as_save_IFS
5318   test -z "$as_dir" && as_dir=.
5319     for ac_exec_ext in '' $ac_executable_extensions; do
5320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5321     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5322        ac_prog_rejected=yes
5323        continue
5324      fi
5325     ac_cv_prog_CC="cc"
5326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327     break 2
5328   fi
5329 done
5330   done
5331 IFS=$as_save_IFS
5332
5333 if test $ac_prog_rejected = yes; then
5334   # We found a bogon in the path, so make sure we never use it.
5335   set dummy $ac_cv_prog_CC
5336   shift
5337   if test $# != 0; then
5338     # We chose a different compiler from the bogus one.
5339     # However, it has the same basename, so the bogon will be chosen
5340     # first if we set CC to just the basename; use the full file name.
5341     shift
5342     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5343   fi
5344 fi
5345 fi
5346 fi
5347 CC=$ac_cv_prog_CC
5348 if test -n "$CC"; then
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5350 $as_echo "$CC" >&6; }
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 fi
5358 if test -z "$CC"; then
5359   if test -n "$ac_tool_prefix"; then
5360   for ac_prog in cl.exe
5361   do
5362     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5363 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_prog_CC+set}" = set; then :
5367   $as_echo_n "(cached) " >&6
5368 else
5369   if test -n "$CC"; then
5370   ac_cv_prog_CC="$CC" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375   IFS=$as_save_IFS
5376   test -z "$as_dir" && as_dir=.
5377     for ac_exec_ext in '' $ac_executable_extensions; do
5378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381     break 2
5382   fi
5383 done
5384   done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 CC=$ac_cv_prog_CC
5390 if test -n "$CC"; then
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5392 $as_echo "$CC" >&6; }
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399     test -n "$CC" && break
5400   done
5401 fi
5402 if test -z "$CC"; then
5403   ac_ct_CC=$CC
5404   for ac_prog in cl.exe
5405 do
5406   # Extract the first word of "$ac_prog", so it can be a program name with args.
5407 set dummy $ac_prog; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5411   $as_echo_n "(cached) " >&6
5412 else
5413   if test -n "$ac_ct_CC"; then
5414   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5418 do
5419   IFS=$as_save_IFS
5420   test -z "$as_dir" && as_dir=.
5421     for ac_exec_ext in '' $ac_executable_extensions; do
5422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423     ac_cv_prog_ac_ct_CC="$ac_prog"
5424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425     break 2
5426   fi
5427 done
5428   done
5429 IFS=$as_save_IFS
5430
5431 fi
5432 fi
5433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5434 if test -n "$ac_ct_CC"; then
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5436 $as_echo "$ac_ct_CC" >&6; }
5437 else
5438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 fi
5441
5442
5443   test -n "$ac_ct_CC" && break
5444 done
5445
5446   if test "x$ac_ct_CC" = x; then
5447     CC=""
5448   else
5449     case $cross_compiling:$ac_tool_warned in
5450 yes:)
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5453 ac_tool_warned=yes ;;
5454 esac
5455     CC=$ac_ct_CC
5456   fi
5457 fi
5458
5459 fi
5460
5461
5462 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5464 as_fn_error "no acceptable C compiler found in \$PATH
5465 See \`config.log' for more details." "$LINENO" 5; }
5466
5467 # Provide some information about the compiler.
5468 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5469 set X $ac_compile
5470 ac_compiler=$2
5471 for ac_option in --version -v -V -qversion; do
5472   { { ac_try="$ac_compiler $ac_option >&5"
5473 case "(($ac_try" in
5474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475   *) ac_try_echo=$ac_try;;
5476 esac
5477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5478 $as_echo "$ac_try_echo"; } >&5
5479   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5480   ac_status=$?
5481   if test -s conftest.err; then
5482     sed '10a\
5483 ... rest of stderr output deleted ...
5484          10q' conftest.err >conftest.er1
5485     cat conftest.er1 >&5
5486     rm -f conftest.er1 conftest.err
5487   fi
5488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5489   test $ac_status = 0; }
5490 done
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5493 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5494 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5495   $as_echo_n "(cached) " >&6
5496 else
5497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h.  */
5499
5500 int
5501 main ()
5502 {
5503 #ifndef __GNUC__
5504        choke me
5505 #endif
5506
5507   ;
5508   return 0;
5509 }
5510 _ACEOF
5511 if ac_fn_c_try_compile "$LINENO"; then :
5512   ac_compiler_gnu=yes
5513 else
5514   ac_compiler_gnu=no
5515 fi
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5518
5519 fi
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5521 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5522 if test $ac_compiler_gnu = yes; then
5523   GCC=yes
5524 else
5525   GCC=
5526 fi
5527 ac_test_CFLAGS=${CFLAGS+set}
5528 ac_save_CFLAGS=$CFLAGS
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5530 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5531 if test "${ac_cv_prog_cc_g+set}" = set; then :
5532   $as_echo_n "(cached) " >&6
5533 else
5534   ac_save_c_werror_flag=$ac_c_werror_flag
5535    ac_c_werror_flag=yes
5536    ac_cv_prog_cc_g=no
5537    CFLAGS="-g"
5538    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h.  */
5540
5541 int
5542 main ()
5543 {
5544
5545   ;
5546   return 0;
5547 }
5548 _ACEOF
5549 if ac_fn_c_try_compile "$LINENO"; then :
5550   ac_cv_prog_cc_g=yes
5551 else
5552   CFLAGS=""
5553       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554 /* end confdefs.h.  */
5555
5556 int
5557 main ()
5558 {
5559
5560   ;
5561   return 0;
5562 }
5563 _ACEOF
5564 if ac_fn_c_try_compile "$LINENO"; then :
5565
5566 else
5567   ac_c_werror_flag=$ac_save_c_werror_flag
5568          CFLAGS="-g"
5569          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h.  */
5571
5572 int
5573 main ()
5574 {
5575
5576   ;
5577   return 0;
5578 }
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581   ac_cv_prog_cc_g=yes
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588    ac_c_werror_flag=$ac_save_c_werror_flag
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5591 $as_echo "$ac_cv_prog_cc_g" >&6; }
5592 if test "$ac_test_CFLAGS" = set; then
5593   CFLAGS=$ac_save_CFLAGS
5594 elif test $ac_cv_prog_cc_g = yes; then
5595   if test "$GCC" = yes; then
5596     CFLAGS="-g -O2"
5597   else
5598     CFLAGS="-g"
5599   fi
5600 else
5601   if test "$GCC" = yes; then
5602     CFLAGS="-O2"
5603   else
5604     CFLAGS=
5605   fi
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5608 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5609 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   ac_cv_prog_cc_c89=no
5613 ac_save_CC=$CC
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h.  */
5616 #include <stdarg.h>
5617 #include <stdio.h>
5618 #include <sys/types.h>
5619 #include <sys/stat.h>
5620 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5621 struct buf { int x; };
5622 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5623 static char *e (p, i)
5624      char **p;
5625      int i;
5626 {
5627   return p[i];
5628 }
5629 static char *f (char * (*g) (char **, int), char **p, ...)
5630 {
5631   char *s;
5632   va_list v;
5633   va_start (v,p);
5634   s = g (p, va_arg (v,int));
5635   va_end (v);
5636   return s;
5637 }
5638
5639 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5640    function prototypes and stuff, but not '\xHH' hex character constants.
5641    These don't provoke an error unfortunately, instead are silently treated
5642    as 'x'.  The following induces an error, until -std is added to get
5643    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5644    array size at least.  It's necessary to write '\x00'==0 to get something
5645    that's true only with -std.  */
5646 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5647
5648 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5649    inside strings and character constants.  */
5650 #define FOO(x) 'x'
5651 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5652
5653 int test (int i, double x);
5654 struct s1 {int (*f) (int a);};
5655 struct s2 {int (*f) (double a);};
5656 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5657 int argc;
5658 char **argv;
5659 int
5660 main ()
5661 {
5662 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5668         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5669 do
5670   CC="$ac_save_CC $ac_arg"
5671   if ac_fn_c_try_compile "$LINENO"; then :
5672   ac_cv_prog_cc_c89=$ac_arg
5673 fi
5674 rm -f core conftest.err conftest.$ac_objext
5675   test "x$ac_cv_prog_cc_c89" != "xno" && break
5676 done
5677 rm -f conftest.$ac_ext
5678 CC=$ac_save_CC
5679
5680 fi
5681 # AC_CACHE_VAL
5682 case "x$ac_cv_prog_cc_c89" in
5683   x)
5684     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5685 $as_echo "none needed" >&6; } ;;
5686   xno)
5687     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5688 $as_echo "unsupported" >&6; } ;;
5689   *)
5690     CC="$CC $ac_cv_prog_cc_c89"
5691     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5692 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5693 esac
5694 if test "x$ac_cv_prog_cc_c89" != xno; then :
5695
5696 fi
5697
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704 depcc="$CC"   am_compiler_list=
5705
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5707 $as_echo_n "checking dependency style of $depcc... " >&6; }
5708 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5712   # We make a subdir and do the tests there.  Otherwise we can end up
5713   # making bogus files that we don't know about and never remove.  For
5714   # instance it was reported that on HP-UX the gcc test will end up
5715   # making a dummy file named `D' -- because `-MD' means `put the output
5716   # in D'.
5717   mkdir conftest.dir
5718   # Copy depcomp to subdir because otherwise we won't find it if we're
5719   # using a relative directory.
5720   cp "$am_depcomp" conftest.dir
5721   cd conftest.dir
5722   # We will build objects and dependencies in a subdirectory because
5723   # it helps to detect inapplicable dependency modes.  For instance
5724   # both Tru64's cc and ICC support -MD to output dependencies as a
5725   # side effect of compilation, but ICC will put the dependencies in
5726   # the current directory while Tru64 will put them in the object
5727   # directory.
5728   mkdir sub
5729
5730   am_cv_CC_dependencies_compiler_type=none
5731   if test "$am_compiler_list" = ""; then
5732      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5733   fi
5734   am__universal=false
5735   case " $depcc " in #(
5736      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5737      esac
5738
5739   for depmode in $am_compiler_list; do
5740     # Setup a source with many dependencies, because some compilers
5741     # like to wrap large dependency lists on column 80 (with \), and
5742     # we should not choose a depcomp mode which is confused by this.
5743     #
5744     # We need to recreate these files for each test, as the compiler may
5745     # overwrite some of them when testing with obscure command lines.
5746     # This happens at least with the AIX C compiler.
5747     : > sub/conftest.c
5748     for i in 1 2 3 4 5 6; do
5749       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5750       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5751       # Solaris 8's {/usr,}/bin/sh.
5752       touch sub/conftst$i.h
5753     done
5754     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5755
5756     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5757     # mode.  It turns out that the SunPro C++ compiler does not properly
5758     # handle `-M -o', and we need to detect this.  Also, some Intel
5759     # versions had trouble with output in subdirs
5760     am__obj=sub/conftest.${OBJEXT-o}
5761     am__minus_obj="-o $am__obj"
5762     case $depmode in
5763     gcc)
5764       # This depmode causes a compiler race in universal mode.
5765       test "$am__universal" = false || continue
5766       ;;
5767     nosideeffect)
5768       # after this tag, mechanisms are not by side-effect, so they'll
5769       # only be used when explicitly requested
5770       if test "x$enable_dependency_tracking" = xyes; then
5771         continue
5772       else
5773         break
5774       fi
5775       ;;
5776     msvisualcpp | msvcmsys)
5777       # This compiler won't grok `-c -o', but also, the minuso test has
5778       # not run yet.  These depmodes are late enough in the game, and
5779       # so weak that their functioning should not be impacted.
5780       am__obj=conftest.${OBJEXT-o}
5781       am__minus_obj=
5782       ;;
5783     none) break ;;
5784     esac
5785     if depmode=$depmode \
5786        source=sub/conftest.c object=$am__obj \
5787        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5788        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5789          >/dev/null 2>conftest.err &&
5790        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5791        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5792        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5793        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5794       # icc doesn't choke on unknown options, it will just issue warnings
5795       # or remarks (even with -Werror).  So we grep stderr for any message
5796       # that says an option was ignored or not supported.
5797       # When given -MP, icc 7.0 and 7.1 complain thusly:
5798       #   icc: Command line warning: ignoring option '-M'; no argument required
5799       # The diagnosis changed in icc 8.0:
5800       #   icc: Command line remark: option '-MP' not supported
5801       if (grep 'ignoring option' conftest.err ||
5802           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5803         am_cv_CC_dependencies_compiler_type=$depmode
5804         break
5805       fi
5806     fi
5807   done
5808
5809   cd ..
5810   rm -rf conftest.dir
5811 else
5812   am_cv_CC_dependencies_compiler_type=none
5813 fi
5814
5815 fi
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5817 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5818 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5819
5820  if
5821   test "x$enable_dependency_tracking" != xno \
5822   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5823   am__fastdepCC_TRUE=
5824   am__fastdepCC_FALSE='#'
5825 else
5826   am__fastdepCC_TRUE='#'
5827   am__fastdepCC_FALSE=
5828 fi
5829
5830
5831
5832 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5833
5834
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5836 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5837 if test "${ac_cv_path_GREP+set}" = set; then :
5838   $as_echo_n "(cached) " >&6
5839 else
5840   if test -z "$GREP"; then
5841   ac_path_GREP_found=false
5842   # Loop through the user's path and test for each of PROGNAME-LIST
5843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5845 do
5846   IFS=$as_save_IFS
5847   test -z "$as_dir" && as_dir=.
5848     for ac_prog in grep ggrep; do
5849     for ac_exec_ext in '' $ac_executable_extensions; do
5850       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5851       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5852 # Check for GNU ac_path_GREP and select it if it is found.
5853   # Check for GNU $ac_path_GREP
5854 case `"$ac_path_GREP" --version 2>&1` in
5855 *GNU*)
5856   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5857 *)
5858   ac_count=0
5859   $as_echo_n 0123456789 >"conftest.in"
5860   while :
5861   do
5862     cat "conftest.in" "conftest.in" >"conftest.tmp"
5863     mv "conftest.tmp" "conftest.in"
5864     cp "conftest.in" "conftest.nl"
5865     $as_echo 'GREP' >> "conftest.nl"
5866     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5867     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5868     as_fn_arith $ac_count + 1 && ac_count=$as_val
5869     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5870       # Best one so far, save it but keep looking for a better one
5871       ac_cv_path_GREP="$ac_path_GREP"
5872       ac_path_GREP_max=$ac_count
5873     fi
5874     # 10*(2^10) chars as input seems more than enough
5875     test $ac_count -gt 10 && break
5876   done
5877   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5878 esac
5879
5880       $ac_path_GREP_found && break 3
5881     done
5882   done
5883   done
5884 IFS=$as_save_IFS
5885   if test -z "$ac_cv_path_GREP"; then
5886     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5887   fi
5888 else
5889   ac_cv_path_GREP=$GREP
5890 fi
5891
5892 fi
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5894 $as_echo "$ac_cv_path_GREP" >&6; }
5895  GREP="$ac_cv_path_GREP"
5896
5897
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5899 $as_echo_n "checking for egrep... " >&6; }
5900 if test "${ac_cv_path_EGREP+set}" = set; then :
5901   $as_echo_n "(cached) " >&6
5902 else
5903   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5904    then ac_cv_path_EGREP="$GREP -E"
5905    else
5906      if test -z "$EGREP"; then
5907   ac_path_EGREP_found=false
5908   # Loop through the user's path and test for each of PROGNAME-LIST
5909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5911 do
5912   IFS=$as_save_IFS
5913   test -z "$as_dir" && as_dir=.
5914     for ac_prog in egrep; do
5915     for ac_exec_ext in '' $ac_executable_extensions; do
5916       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5917       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5918 # Check for GNU ac_path_EGREP and select it if it is found.
5919   # Check for GNU $ac_path_EGREP
5920 case `"$ac_path_EGREP" --version 2>&1` in
5921 *GNU*)
5922   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5923 *)
5924   ac_count=0
5925   $as_echo_n 0123456789 >"conftest.in"
5926   while :
5927   do
5928     cat "conftest.in" "conftest.in" >"conftest.tmp"
5929     mv "conftest.tmp" "conftest.in"
5930     cp "conftest.in" "conftest.nl"
5931     $as_echo 'EGREP' >> "conftest.nl"
5932     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5933     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5934     as_fn_arith $ac_count + 1 && ac_count=$as_val
5935     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5936       # Best one so far, save it but keep looking for a better one
5937       ac_cv_path_EGREP="$ac_path_EGREP"
5938       ac_path_EGREP_max=$ac_count
5939     fi
5940     # 10*(2^10) chars as input seems more than enough
5941     test $ac_count -gt 10 && break
5942   done
5943   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5944 esac
5945
5946       $ac_path_EGREP_found && break 3
5947     done
5948   done
5949   done
5950 IFS=$as_save_IFS
5951   if test -z "$ac_cv_path_EGREP"; then
5952     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5953   fi
5954 else
5955   ac_cv_path_EGREP=$EGREP
5956 fi
5957
5958    fi
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5961 $as_echo "$ac_cv_path_EGREP" >&6; }
5962  EGREP="$ac_cv_path_EGREP"
5963
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5966 $as_echo_n "checking for ANSI C header files... " >&6; }
5967 if test "${ac_cv_header_stdc+set}" = set; then :
5968   $as_echo_n "(cached) " >&6
5969 else
5970   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h.  */
5972 #include <stdlib.h>
5973 #include <stdarg.h>
5974 #include <string.h>
5975 #include <float.h>
5976
5977 int
5978 main ()
5979 {
5980
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986   ac_cv_header_stdc=yes
5987 else
5988   ac_cv_header_stdc=no
5989 fi
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991
5992 if test $ac_cv_header_stdc = yes; then
5993   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h.  */
5996 #include <string.h>
5997
5998 _ACEOF
5999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6000   $EGREP "memchr" >/dev/null 2>&1; then :
6001
6002 else
6003   ac_cv_header_stdc=no
6004 fi
6005 rm -f conftest*
6006
6007 fi
6008
6009 if test $ac_cv_header_stdc = yes; then
6010   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h.  */
6013 #include <stdlib.h>
6014
6015 _ACEOF
6016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6017   $EGREP "free" >/dev/null 2>&1; then :
6018
6019 else
6020   ac_cv_header_stdc=no
6021 fi
6022 rm -f conftest*
6023
6024 fi
6025
6026 if test $ac_cv_header_stdc = yes; then
6027   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6028   if test "$cross_compiling" = yes; then :
6029   :
6030 else
6031   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h.  */
6033 #include <ctype.h>
6034 #include <stdlib.h>
6035 #if ((' ' & 0x0FF) == 0x020)
6036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6038 #else
6039 # define ISLOWER(c) \
6040                    (('a' <= (c) && (c) <= 'i') \
6041                      || ('j' <= (c) && (c) <= 'r') \
6042                      || ('s' <= (c) && (c) <= 'z'))
6043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6044 #endif
6045
6046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6047 int
6048 main ()
6049 {
6050   int i;
6051   for (i = 0; i < 256; i++)
6052     if (XOR (islower (i), ISLOWER (i))
6053         || toupper (i) != TOUPPER (i))
6054       return 2;
6055   return 0;
6056 }
6057 _ACEOF
6058 if ac_fn_c_try_run "$LINENO"; then :
6059
6060 else
6061   ac_cv_header_stdc=no
6062 fi
6063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6064   conftest.$ac_objext conftest.beam conftest.$ac_ext
6065 fi
6066
6067 fi
6068 fi
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6070 $as_echo "$ac_cv_header_stdc" >&6; }
6071 if test $ac_cv_header_stdc = yes; then
6072
6073 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6074
6075 fi
6076
6077
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6079 $as_echo_n "checking whether ln -s works... " >&6; }
6080 LN_S=$as_ln_s
6081 if test "$LN_S" = "ln -s"; then
6082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6083 $as_echo "yes" >&6; }
6084 else
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6086 $as_echo "no, using $LN_S" >&6; }
6087 fi
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6091 set x ${MAKE-make}
6092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6093 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   cat >conftest.make <<\_ACEOF
6097 SHELL = /bin/sh
6098 all:
6099         @echo '@@@%%%=$(MAKE)=@@@%%%'
6100 _ACEOF
6101 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6103   *@@@%%%=?*=@@@%%%*)
6104     eval ac_cv_prog_make_${ac_make}_set=yes;;
6105   *)
6106     eval ac_cv_prog_make_${ac_make}_set=no;;
6107 esac
6108 rm -f conftest.make
6109 fi
6110 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6112 $as_echo "yes" >&6; }
6113   SET_MAKE=
6114 else
6115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 $as_echo "no" >&6; }
6117   SET_MAKE="MAKE=${MAKE-make}"
6118 fi
6119
6120 case `pwd` in
6121   *\ * | *\     *)
6122     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6123 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6124 esac
6125
6126
6127
6128 macro_version='2.2.6'
6129 macro_revision='1.3012'
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143 ltmain="$ac_aux_dir/ltmain.sh"
6144
6145 # Make sure we can run config.sub.
6146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6147   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6150 $as_echo_n "checking build system type... " >&6; }
6151 if test "${ac_cv_build+set}" = set; then :
6152   $as_echo_n "(cached) " >&6
6153 else
6154   ac_build_alias=$build_alias
6155 test "x$ac_build_alias" = x &&
6156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6157 test "x$ac_build_alias" = x &&
6158   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6160   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6161
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6164 $as_echo "$ac_cv_build" >&6; }
6165 case $ac_cv_build in
6166 *-*-*) ;;
6167 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6168 esac
6169 build=$ac_cv_build
6170 ac_save_IFS=$IFS; IFS='-'
6171 set x $ac_cv_build
6172 shift
6173 build_cpu=$1
6174 build_vendor=$2
6175 shift; shift
6176 # Remember, the first character of IFS is used to create $*,
6177 # except with old shells:
6178 build_os=$*
6179 IFS=$ac_save_IFS
6180 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6181
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6184 $as_echo_n "checking host system type... " >&6; }
6185 if test "${ac_cv_host+set}" = set; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test "x$host_alias" = x; then
6189   ac_cv_host=$ac_cv_build
6190 else
6191   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6192     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6193 fi
6194
6195 fi
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6197 $as_echo "$ac_cv_host" >&6; }
6198 case $ac_cv_host in
6199 *-*-*) ;;
6200 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6201 esac
6202 host=$ac_cv_host
6203 ac_save_IFS=$IFS; IFS='-'
6204 set x $ac_cv_host
6205 shift
6206 host_cpu=$1
6207 host_vendor=$2
6208 shift; shift
6209 # Remember, the first character of IFS is used to create $*,
6210 # except with old shells:
6211 host_os=$*
6212 IFS=$ac_save_IFS
6213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6214
6215
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6217 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6218 if test "${ac_cv_path_SED+set}" = set; then :
6219   $as_echo_n "(cached) " >&6
6220 else
6221             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6222      for ac_i in 1 2 3 4 5 6 7; do
6223        ac_script="$ac_script$as_nl$ac_script"
6224      done
6225      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6226      { ac_script=; unset ac_script;}
6227      if test -z "$SED"; then
6228   ac_path_SED_found=false
6229   # Loop through the user's path and test for each of PROGNAME-LIST
6230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235     for ac_prog in sed gsed; do
6236     for ac_exec_ext in '' $ac_executable_extensions; do
6237       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6238       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6239 # Check for GNU ac_path_SED and select it if it is found.
6240   # Check for GNU $ac_path_SED
6241 case `"$ac_path_SED" --version 2>&1` in
6242 *GNU*)
6243   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6244 *)
6245   ac_count=0
6246   $as_echo_n 0123456789 >"conftest.in"
6247   while :
6248   do
6249     cat "conftest.in" "conftest.in" >"conftest.tmp"
6250     mv "conftest.tmp" "conftest.in"
6251     cp "conftest.in" "conftest.nl"
6252     $as_echo '' >> "conftest.nl"
6253     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6254     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6255     as_fn_arith $ac_count + 1 && ac_count=$as_val
6256     if test $ac_count -gt ${ac_path_SED_max-0}; then
6257       # Best one so far, save it but keep looking for a better one
6258       ac_cv_path_SED="$ac_path_SED"
6259       ac_path_SED_max=$ac_count
6260     fi
6261     # 10*(2^10) chars as input seems more than enough
6262     test $ac_count -gt 10 && break
6263   done
6264   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6265 esac
6266
6267       $ac_path_SED_found && break 3
6268     done
6269   done
6270   done
6271 IFS=$as_save_IFS
6272   if test -z "$ac_cv_path_SED"; then
6273     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6274   fi
6275 else
6276   ac_cv_path_SED=$SED
6277 fi
6278
6279 fi
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6281 $as_echo "$ac_cv_path_SED" >&6; }
6282  SED="$ac_cv_path_SED"
6283   rm -f conftest.sed
6284
6285 test -z "$SED" && SED=sed
6286 Xsed="$SED -e 1s/^X//"
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6299 $as_echo_n "checking for fgrep... " >&6; }
6300 if test "${ac_cv_path_FGREP+set}" = set; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6304    then ac_cv_path_FGREP="$GREP -F"
6305    else
6306      if test -z "$FGREP"; then
6307   ac_path_FGREP_found=false
6308   # Loop through the user's path and test for each of PROGNAME-LIST
6309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6311 do
6312   IFS=$as_save_IFS
6313   test -z "$as_dir" && as_dir=.
6314     for ac_prog in fgrep; do
6315     for ac_exec_ext in '' $ac_executable_extensions; do
6316       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6317       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6318 # Check for GNU ac_path_FGREP and select it if it is found.
6319   # Check for GNU $ac_path_FGREP
6320 case `"$ac_path_FGREP" --version 2>&1` in
6321 *GNU*)
6322   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6323 *)
6324   ac_count=0
6325   $as_echo_n 0123456789 >"conftest.in"
6326   while :
6327   do
6328     cat "conftest.in" "conftest.in" >"conftest.tmp"
6329     mv "conftest.tmp" "conftest.in"
6330     cp "conftest.in" "conftest.nl"
6331     $as_echo 'FGREP' >> "conftest.nl"
6332     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6333     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6334     as_fn_arith $ac_count + 1 && ac_count=$as_val
6335     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6336       # Best one so far, save it but keep looking for a better one
6337       ac_cv_path_FGREP="$ac_path_FGREP"
6338       ac_path_FGREP_max=$ac_count
6339     fi
6340     # 10*(2^10) chars as input seems more than enough
6341     test $ac_count -gt 10 && break
6342   done
6343   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6344 esac
6345
6346       $ac_path_FGREP_found && break 3
6347     done
6348   done
6349   done
6350 IFS=$as_save_IFS
6351   if test -z "$ac_cv_path_FGREP"; then
6352     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6353   fi
6354 else
6355   ac_cv_path_FGREP=$FGREP
6356 fi
6357
6358    fi
6359 fi
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6361 $as_echo "$ac_cv_path_FGREP" >&6; }
6362  FGREP="$ac_cv_path_FGREP"
6363
6364
6365 test -z "$GREP" && GREP=grep
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385 # Check whether --with-gnu-ld was given.
6386 if test "${with_gnu_ld+set}" = set; then :
6387   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6388 else
6389   with_gnu_ld=no
6390 fi
6391
6392 ac_prog=ld
6393 if test "$GCC" = yes; then
6394   # Check if gcc -print-prog-name=ld gives a path.
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6396 $as_echo_n "checking for ld used by $CC... " >&6; }
6397   case $host in
6398   *-*-mingw*)
6399     # gcc leaves a trailing carriage return which upsets mingw
6400     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6401   *)
6402     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6403   esac
6404   case $ac_prog in
6405     # Accept absolute paths.
6406     [\\/]* | ?:[\\/]*)
6407       re_direlt='/[^/][^/]*/\.\./'
6408       # Canonicalize the pathname of ld
6409       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6410       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6411         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6412       done
6413       test -z "$LD" && LD="$ac_prog"
6414       ;;
6415   "")
6416     # If it fails, then pretend we aren't using GCC.
6417     ac_prog=ld
6418     ;;
6419   *)
6420     # If it is relative, then search for the first ld in PATH.
6421     with_gnu_ld=unknown
6422     ;;
6423   esac
6424 elif test "$with_gnu_ld" = yes; then
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6426 $as_echo_n "checking for GNU ld... " >&6; }
6427 else
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6429 $as_echo_n "checking for non-GNU ld... " >&6; }
6430 fi
6431 if test "${lt_cv_path_LD+set}" = set; then :
6432   $as_echo_n "(cached) " >&6
6433 else
6434   if test -z "$LD"; then
6435   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6436   for ac_dir in $PATH; do
6437     IFS="$lt_save_ifs"
6438     test -z "$ac_dir" && ac_dir=.
6439     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6440       lt_cv_path_LD="$ac_dir/$ac_prog"
6441       # Check to see if the program is GNU ld.  I'd rather use --version,
6442       # but apparently some variants of GNU ld only accept -v.
6443       # Break only if it was the GNU/non-GNU ld that we prefer.
6444       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6445       *GNU* | *'with BFD'*)
6446         test "$with_gnu_ld" != no && break
6447         ;;
6448       *)
6449         test "$with_gnu_ld" != yes && break
6450         ;;
6451       esac
6452     fi
6453   done
6454   IFS="$lt_save_ifs"
6455 else
6456   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6457 fi
6458 fi
6459
6460 LD="$lt_cv_path_LD"
6461 if test -n "$LD"; then
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6463 $as_echo "$LD" >&6; }
6464 else
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6470 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6471 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6475 case `$LD -v 2>&1 </dev/null` in
6476 *GNU* | *'with BFD'*)
6477   lt_cv_prog_gnu_ld=yes
6478   ;;
6479 *)
6480   lt_cv_prog_gnu_ld=no
6481   ;;
6482 esac
6483 fi
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6485 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6486 with_gnu_ld=$lt_cv_prog_gnu_ld
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6497 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6498 if test "${lt_cv_path_NM+set}" = set; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$NM"; then
6502   # Let the user override the test.
6503   lt_cv_path_NM="$NM"
6504 else
6505   lt_nm_to_check="${ac_tool_prefix}nm"
6506   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6507     lt_nm_to_check="$lt_nm_to_check nm"
6508   fi
6509   for lt_tmp_nm in $lt_nm_to_check; do
6510     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6511     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6512       IFS="$lt_save_ifs"
6513       test -z "$ac_dir" && ac_dir=.
6514       tmp_nm="$ac_dir/$lt_tmp_nm"
6515       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6516         # Check to see if the nm accepts a BSD-compat flag.
6517         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6518         #   nm: unknown option "B" ignored
6519         # Tru64's nm complains that /dev/null is an invalid object file
6520         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6521         */dev/null* | *'Invalid file or object type'*)
6522           lt_cv_path_NM="$tmp_nm -B"
6523           break
6524           ;;
6525         *)
6526           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6527           */dev/null*)
6528             lt_cv_path_NM="$tmp_nm -p"
6529             break
6530             ;;
6531           *)
6532             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6533             continue # so that we can try to find one that supports BSD flags
6534             ;;
6535           esac
6536           ;;
6537         esac
6538       fi
6539     done
6540     IFS="$lt_save_ifs"
6541   done
6542   : ${lt_cv_path_NM=no}
6543 fi
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6546 $as_echo "$lt_cv_path_NM" >&6; }
6547 if test "$lt_cv_path_NM" != "no"; then
6548   NM="$lt_cv_path_NM"
6549 else
6550   # Didn't find any BSD compatible name lister, look for dumpbin.
6551   if test -n "$ac_tool_prefix"; then
6552   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6553   do
6554     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6557 $as_echo_n "checking for $ac_word... " >&6; }
6558 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6559   $as_echo_n "(cached) " >&6
6560 else
6561   if test -n "$DUMPBIN"; then
6562   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567   IFS=$as_save_IFS
6568   test -z "$as_dir" && as_dir=.
6569     for ac_exec_ext in '' $ac_executable_extensions; do
6570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6571     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573     break 2
6574   fi
6575 done
6576   done
6577 IFS=$as_save_IFS
6578
6579 fi
6580 fi
6581 DUMPBIN=$ac_cv_prog_DUMPBIN
6582 if test -n "$DUMPBIN"; then
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6584 $as_echo "$DUMPBIN" >&6; }
6585 else
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6587 $as_echo "no" >&6; }
6588 fi
6589
6590
6591     test -n "$DUMPBIN" && break
6592   done
6593 fi
6594 if test -z "$DUMPBIN"; then
6595   ac_ct_DUMPBIN=$DUMPBIN
6596   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6597 do
6598   # Extract the first word of "$ac_prog", so it can be a program name with args.
6599 set dummy $ac_prog; ac_word=$2
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6601 $as_echo_n "checking for $ac_word... " >&6; }
6602 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6603   $as_echo_n "(cached) " >&6
6604 else
6605   if test -n "$ac_ct_DUMPBIN"; then
6606   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6607 else
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 for as_dir in $PATH
6610 do
6611   IFS=$as_save_IFS
6612   test -z "$as_dir" && as_dir=.
6613     for ac_exec_ext in '' $ac_executable_extensions; do
6614   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6615     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617     break 2
6618   fi
6619 done
6620   done
6621 IFS=$as_save_IFS
6622
6623 fi
6624 fi
6625 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6626 if test -n "$ac_ct_DUMPBIN"; then
6627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6628 $as_echo "$ac_ct_DUMPBIN" >&6; }
6629 else
6630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 $as_echo "no" >&6; }
6632 fi
6633
6634
6635   test -n "$ac_ct_DUMPBIN" && break
6636 done
6637
6638   if test "x$ac_ct_DUMPBIN" = x; then
6639     DUMPBIN=":"
6640   else
6641     case $cross_compiling:$ac_tool_warned in
6642 yes:)
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645 ac_tool_warned=yes ;;
6646 esac
6647     DUMPBIN=$ac_ct_DUMPBIN
6648   fi
6649 fi
6650
6651
6652   if test "$DUMPBIN" != ":"; then
6653     NM="$DUMPBIN"
6654   fi
6655 fi
6656 test -z "$NM" && NM=nm
6657
6658
6659
6660
6661
6662
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6664 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6665 if test "${lt_cv_nm_interface+set}" = set; then :
6666   $as_echo_n "(cached) " >&6
6667 else
6668   lt_cv_nm_interface="BSD nm"
6669   echo "int some_variable = 0;" > conftest.$ac_ext
6670   (eval echo "\"\$as_me:6670: $ac_compile\"" >&5)
6671   (eval "$ac_compile" 2>conftest.err)
6672   cat conftest.err >&5
6673   (eval echo "\"\$as_me:6673: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6674   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6675   cat conftest.err >&5
6676   (eval echo "\"\$as_me:6676: output\"" >&5)
6677   cat conftest.out >&5
6678   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6679     lt_cv_nm_interface="MS dumpbin"
6680   fi
6681   rm -f conftest*
6682 fi
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6684 $as_echo "$lt_cv_nm_interface" >&6; }
6685
6686 # find the maximum length of command line arguments
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6688 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6689 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6690   $as_echo_n "(cached) " >&6
6691 else
6692     i=0
6693   teststring="ABCD"
6694
6695   case $build_os in
6696   msdosdjgpp*)
6697     # On DJGPP, this test can blow up pretty badly due to problems in libc
6698     # (any single argument exceeding 2000 bytes causes a buffer overrun
6699     # during glob expansion).  Even if it were fixed, the result of this
6700     # check would be larger than it should be.
6701     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6702     ;;
6703
6704   gnu*)
6705     # Under GNU Hurd, this test is not required because there is
6706     # no limit to the length of command line arguments.
6707     # Libtool will interpret -1 as no limit whatsoever
6708     lt_cv_sys_max_cmd_len=-1;
6709     ;;
6710
6711   cygwin* | mingw* | cegcc*)
6712     # On Win9x/ME, this test blows up -- it succeeds, but takes
6713     # about 5 minutes as the teststring grows exponentially.
6714     # Worse, since 9x/ME are not pre-emptively multitasking,
6715     # you end up with a "frozen" computer, even though with patience
6716     # the test eventually succeeds (with a max line length of 256k).
6717     # Instead, let's just punt: use the minimum linelength reported by
6718     # all of the supported platforms: 8192 (on NT/2K/XP).
6719     lt_cv_sys_max_cmd_len=8192;
6720     ;;
6721
6722   amigaos*)
6723     # On AmigaOS with pdksh, this test takes hours, literally.
6724     # So we just punt and use a minimum line length of 8192.
6725     lt_cv_sys_max_cmd_len=8192;
6726     ;;
6727
6728   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6729     # This has been around since 386BSD, at least.  Likely further.
6730     if test -x /sbin/sysctl; then
6731       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6732     elif test -x /usr/sbin/sysctl; then
6733       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6734     else
6735       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6736     fi
6737     # And add a safety zone
6738     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6739     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6740     ;;
6741
6742   interix*)
6743     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6744     lt_cv_sys_max_cmd_len=196608
6745     ;;
6746
6747   osf*)
6748     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6749     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6750     # nice to cause kernel panics so lets avoid the loop below.
6751     # First set a reasonable default.
6752     lt_cv_sys_max_cmd_len=16384
6753     #
6754     if test -x /sbin/sysconfig; then
6755       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6756         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6757       esac
6758     fi
6759     ;;
6760   sco3.2v5*)
6761     lt_cv_sys_max_cmd_len=102400
6762     ;;
6763   sysv5* | sco5v6* | sysv4.2uw2*)
6764     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6765     if test -n "$kargmax"; then
6766       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6767     else
6768       lt_cv_sys_max_cmd_len=32768
6769     fi
6770     ;;
6771   *)
6772     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6773     if test -n "$lt_cv_sys_max_cmd_len"; then
6774       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6775       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6776     else
6777       # Make teststring a little bigger before we do anything with it.
6778       # a 1K string should be a reasonable start.
6779       for i in 1 2 3 4 5 6 7 8 ; do
6780         teststring=$teststring$teststring
6781       done
6782       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6783       # If test is not a shell built-in, we'll probably end up computing a
6784       # maximum length that is only half of the actual maximum length, but
6785       # we can't tell.
6786       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6787                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6788               test $i != 17 # 1/2 MB should be enough
6789       do
6790         i=`expr $i + 1`
6791         teststring=$teststring$teststring
6792       done
6793       # Only check the string length outside the loop.
6794       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6795       teststring=
6796       # Add a significant safety factor because C++ compilers can tack on
6797       # massive amounts of additional arguments before passing them to the
6798       # linker.  It appears as though 1/2 is a usable value.
6799       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6800     fi
6801     ;;
6802   esac
6803
6804 fi
6805
6806 if test -n $lt_cv_sys_max_cmd_len ; then
6807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6808 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6809 else
6810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6811 $as_echo "none" >&6; }
6812 fi
6813 max_cmd_len=$lt_cv_sys_max_cmd_len
6814
6815
6816
6817
6818
6819
6820 : ${CP="cp -f"}
6821 : ${MV="mv -f"}
6822 : ${RM="rm -f"}
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6825 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6826 # Try some XSI features
6827 xsi_shell=no
6828 ( _lt_dummy="a/b/c"
6829   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6830       = c,a/b,, \
6831     && eval 'test $(( 1 + 1 )) -eq 2 \
6832     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6833   && xsi_shell=yes
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6835 $as_echo "$xsi_shell" >&6; }
6836
6837
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6839 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6840 lt_shell_append=no
6841 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6842     >/dev/null 2>&1 \
6843   && lt_shell_append=yes
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6845 $as_echo "$lt_shell_append" >&6; }
6846
6847
6848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6849   lt_unset=unset
6850 else
6851   lt_unset=false
6852 fi
6853
6854
6855
6856
6857
6858 # test EBCDIC or ASCII
6859 case `echo X|tr X '\101'` in
6860  A) # ASCII based system
6861     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6862   lt_SP2NL='tr \040 \012'
6863   lt_NL2SP='tr \015\012 \040\040'
6864   ;;
6865  *) # EBCDIC based system
6866   lt_SP2NL='tr \100 \n'
6867   lt_NL2SP='tr \r\n \100\100'
6868   ;;
6869 esac
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6880 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6881 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6882   $as_echo_n "(cached) " >&6
6883 else
6884   lt_cv_ld_reload_flag='-r'
6885 fi
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6887 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6888 reload_flag=$lt_cv_ld_reload_flag
6889 case $reload_flag in
6890 "" | " "*) ;;
6891 *) reload_flag=" $reload_flag" ;;
6892 esac
6893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6894 case $host_os in
6895   darwin*)
6896     if test "$GCC" = yes; then
6897       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6898     else
6899       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6900     fi
6901     ;;
6902 esac
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912 if test -n "$ac_tool_prefix"; then
6913   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6918   $as_echo_n "(cached) " >&6
6919 else
6920   if test -n "$OBJDUMP"; then
6921   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926   IFS=$as_save_IFS
6927   test -z "$as_dir" && as_dir=.
6928     for ac_exec_ext in '' $ac_executable_extensions; do
6929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6930     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932     break 2
6933   fi
6934 done
6935   done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 OBJDUMP=$ac_cv_prog_OBJDUMP
6941 if test -n "$OBJDUMP"; then
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6943 $as_echo "$OBJDUMP" >&6; }
6944 else
6945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_OBJDUMP"; then
6952   ac_ct_OBJDUMP=$OBJDUMP
6953   # Extract the first word of "objdump", so it can be a program name with args.
6954 set dummy objdump; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6958   $as_echo_n "(cached) " >&6
6959 else
6960   if test -n "$ac_ct_OBJDUMP"; then
6961   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966   IFS=$as_save_IFS
6967   test -z "$as_dir" && as_dir=.
6968     for ac_exec_ext in '' $ac_executable_extensions; do
6969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972     break 2
6973   fi
6974 done
6975   done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6981 if test -n "$ac_ct_OBJDUMP"; then
6982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6983 $as_echo "$ac_ct_OBJDUMP" >&6; }
6984 else
6985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989   if test "x$ac_ct_OBJDUMP" = x; then
6990     OBJDUMP="false"
6991   else
6992     case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998     OBJDUMP=$ac_ct_OBJDUMP
6999   fi
7000 else
7001   OBJDUMP="$ac_cv_prog_OBJDUMP"
7002 fi
7003
7004 test -z "$OBJDUMP" && OBJDUMP=objdump
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7015 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7016 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7017   $as_echo_n "(cached) " >&6
7018 else
7019   lt_cv_file_magic_cmd='$MAGIC_CMD'
7020 lt_cv_file_magic_test_file=
7021 lt_cv_deplibs_check_method='unknown'
7022 # Need to set the preceding variable on all platforms that support
7023 # interlibrary dependencies.
7024 # 'none' -- dependencies not supported.
7025 # `unknown' -- same as none, but documents that we really don't know.
7026 # 'pass_all' -- all dependencies passed with no checks.
7027 # 'test_compile' -- check by making test program.
7028 # 'file_magic [[regex]]' -- check by looking for files in library path
7029 # which responds to the $file_magic_cmd with a given extended regex.
7030 # If you have `file' or equivalent on your system and you're not sure
7031 # whether `pass_all' will *always* work, you probably want this one.
7032
7033 case $host_os in
7034 aix[4-9]*)
7035   lt_cv_deplibs_check_method=pass_all
7036   ;;
7037
7038 beos*)
7039   lt_cv_deplibs_check_method=pass_all
7040   ;;
7041
7042 bsdi[45]*)
7043   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7044   lt_cv_file_magic_cmd='/usr/bin/file -L'
7045   lt_cv_file_magic_test_file=/shlib/libc.so
7046   ;;
7047
7048 cygwin*)
7049   # func_win32_libid is a shell function defined in ltmain.sh
7050   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7051   lt_cv_file_magic_cmd='func_win32_libid'
7052   ;;
7053
7054 mingw* | pw32*)
7055   # Base MSYS/MinGW do not provide the 'file' command needed by
7056   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7057   # unless we find 'file', for example because we are cross-compiling.
7058   if ( file / ) >/dev/null 2>&1; then
7059     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7060     lt_cv_file_magic_cmd='func_win32_libid'
7061   else
7062     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7063     lt_cv_file_magic_cmd='$OBJDUMP -f'
7064   fi
7065   ;;
7066
7067 cegcc)
7068   # use the weaker test based on 'objdump'. See mingw*.
7069   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7070   lt_cv_file_magic_cmd='$OBJDUMP -f'
7071   ;;
7072
7073 darwin* | rhapsody*)
7074   lt_cv_deplibs_check_method=pass_all
7075   ;;
7076
7077 freebsd* | dragonfly*)
7078   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7079     case $host_cpu in
7080     i*86 )
7081       # Not sure whether the presence of OpenBSD here was a mistake.
7082       # Let's accept both of them until this is cleared up.
7083       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7084       lt_cv_file_magic_cmd=/usr/bin/file
7085       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7086       ;;
7087     esac
7088   else
7089     lt_cv_deplibs_check_method=pass_all
7090   fi
7091   ;;
7092
7093 gnu*)
7094   lt_cv_deplibs_check_method=pass_all
7095   ;;
7096
7097 hpux10.20* | hpux11*)
7098   lt_cv_file_magic_cmd=/usr/bin/file
7099   case $host_cpu in
7100   ia64*)
7101     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7102     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7103     ;;
7104   hppa*64*)
7105     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]'
7106     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7107     ;;
7108   *)
7109     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7110     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7111     ;;
7112   esac
7113   ;;
7114
7115 interix[3-9]*)
7116   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7117   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7118   ;;
7119
7120 irix5* | irix6* | nonstopux*)
7121   case $LD in
7122   *-32|*"-32 ") libmagic=32-bit;;
7123   *-n32|*"-n32 ") libmagic=N32;;
7124   *-64|*"-64 ") libmagic=64-bit;;
7125   *) libmagic=never-match;;
7126   esac
7127   lt_cv_deplibs_check_method=pass_all
7128   ;;
7129
7130 # This must be Linux ELF.
7131 linux* | k*bsd*-gnu)
7132   lt_cv_deplibs_check_method=pass_all
7133   ;;
7134
7135 netbsd* | netbsdelf*-gnu)
7136   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7137     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7138   else
7139     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7140   fi
7141   ;;
7142
7143 newos6*)
7144   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7145   lt_cv_file_magic_cmd=/usr/bin/file
7146   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7147   ;;
7148
7149 *nto* | *qnx*)
7150   lt_cv_deplibs_check_method=pass_all
7151   ;;
7152
7153 openbsd*)
7154   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7155     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7156   else
7157     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7158   fi
7159   ;;
7160
7161 osf3* | osf4* | osf5*)
7162   lt_cv_deplibs_check_method=pass_all
7163   ;;
7164
7165 rdos*)
7166   lt_cv_deplibs_check_method=pass_all
7167   ;;
7168
7169 solaris*)
7170   lt_cv_deplibs_check_method=pass_all
7171   ;;
7172
7173 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7174   lt_cv_deplibs_check_method=pass_all
7175   ;;
7176
7177 sysv4 | sysv4.3*)
7178   case $host_vendor in
7179   motorola)
7180     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]'
7181     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7182     ;;
7183   ncr)
7184     lt_cv_deplibs_check_method=pass_all
7185     ;;
7186   sequent)
7187     lt_cv_file_magic_cmd='/bin/file'
7188     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7189     ;;
7190   sni)
7191     lt_cv_file_magic_cmd='/bin/file'
7192     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7193     lt_cv_file_magic_test_file=/lib/libc.so
7194     ;;
7195   siemens)
7196     lt_cv_deplibs_check_method=pass_all
7197     ;;
7198   pc)
7199     lt_cv_deplibs_check_method=pass_all
7200     ;;
7201   esac
7202   ;;
7203
7204 tpf*)
7205   lt_cv_deplibs_check_method=pass_all
7206   ;;
7207 esac
7208
7209 fi
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7211 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7212 file_magic_cmd=$lt_cv_file_magic_cmd
7213 deplibs_check_method=$lt_cv_deplibs_check_method
7214 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 if test -n "$ac_tool_prefix"; then
7228   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}ar; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_AR+set}" = set; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$AR"; then
7236   ac_cv_prog_AR="$AR" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243     for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_prog_AR="${ac_tool_prefix}ar"
7246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250   done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 AR=$ac_cv_prog_AR
7256 if test -n "$AR"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7258 $as_echo "$AR" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_AR"; then
7267   ac_ct_AR=$AR
7268   # Extract the first word of "ar", so it can be a program name with args.
7269 set dummy ar; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7273   $as_echo_n "(cached) " >&6
7274 else
7275   if test -n "$ac_ct_AR"; then
7276   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281   IFS=$as_save_IFS
7282   test -z "$as_dir" && as_dir=.
7283     for ac_exec_ext in '' $ac_executable_extensions; do
7284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285     ac_cv_prog_ac_ct_AR="ar"
7286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287     break 2
7288   fi
7289 done
7290   done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7296 if test -n "$ac_ct_AR"; then
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7298 $as_echo "$ac_ct_AR" >&6; }
7299 else
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304   if test "x$ac_ct_AR" = x; then
7305     AR="false"
7306   else
7307     case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313     AR=$ac_ct_AR
7314   fi
7315 else
7316   AR="$ac_cv_prog_AR"
7317 fi
7318
7319 test -z "$AR" && AR=ar
7320 test -z "$AR_FLAGS" && AR_FLAGS=cru
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332 if test -n "$ac_tool_prefix"; then
7333   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7334 set dummy ${ac_tool_prefix}strip; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if test "${ac_cv_prog_STRIP+set}" = set; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$STRIP"; then
7341   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 STRIP=$ac_cv_prog_STRIP
7361 if test -n "$STRIP"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7363 $as_echo "$STRIP" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369
7370 fi
7371 if test -z "$ac_cv_prog_STRIP"; then
7372   ac_ct_STRIP=$STRIP
7373   # Extract the first word of "strip", so it can be a program name with args.
7374 set dummy strip; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380   if test -n "$ac_ct_STRIP"; then
7381   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386   IFS=$as_save_IFS
7387   test -z "$as_dir" && as_dir=.
7388     for ac_exec_ext in '' $ac_executable_extensions; do
7389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7390     ac_cv_prog_ac_ct_STRIP="strip"
7391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392     break 2
7393   fi
7394 done
7395   done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7401 if test -n "$ac_ct_STRIP"; then
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7403 $as_echo "$ac_ct_STRIP" >&6; }
7404 else
7405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409   if test "x$ac_ct_STRIP" = x; then
7410     STRIP=":"
7411   else
7412     case $cross_compiling:$ac_tool_warned in
7413 yes:)
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7416 ac_tool_warned=yes ;;
7417 esac
7418     STRIP=$ac_ct_STRIP
7419   fi
7420 else
7421   STRIP="$ac_cv_prog_STRIP"
7422 fi
7423
7424 test -z "$STRIP" && STRIP=:
7425
7426
7427
7428
7429
7430
7431 if test -n "$ac_tool_prefix"; then
7432   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   if test -n "$RANLIB"; then
7440   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447     for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454   done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 RANLIB=$ac_cv_prog_RANLIB
7460 if test -n "$RANLIB"; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7462 $as_echo "$RANLIB" >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468
7469 fi
7470 if test -z "$ac_cv_prog_RANLIB"; then
7471   ac_ct_RANLIB=$RANLIB
7472   # Extract the first word of "ranlib", so it can be a program name with args.
7473 set dummy ranlib; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   if test -n "$ac_ct_RANLIB"; then
7480   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7489     ac_cv_prog_ac_ct_RANLIB="ranlib"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497 fi
7498 fi
7499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7500 if test -n "$ac_ct_RANLIB"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7502 $as_echo "$ac_ct_RANLIB" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508   if test "x$ac_ct_RANLIB" = x; then
7509     RANLIB=":"
7510   else
7511     case $cross_compiling:$ac_tool_warned in
7512 yes:)
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515 ac_tool_warned=yes ;;
7516 esac
7517     RANLIB=$ac_ct_RANLIB
7518   fi
7519 else
7520   RANLIB="$ac_cv_prog_RANLIB"
7521 fi
7522
7523 test -z "$RANLIB" && RANLIB=:
7524
7525
7526
7527
7528
7529
7530 # Determine commands to create old-style static archives.
7531 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7532 old_postinstall_cmds='chmod 644 $oldlib'
7533 old_postuninstall_cmds=
7534
7535 if test -n "$RANLIB"; then
7536   case $host_os in
7537   openbsd*)
7538     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7539     ;;
7540   *)
7541     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7542     ;;
7543   esac
7544   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7545 fi
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
7579
7580 # If no C compiler was specified, use CC.
7581 LTCC=${LTCC-"$CC"}
7582
7583 # If no C compiler flags were specified, use CFLAGS.
7584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7585
7586 # Allow CC to be a program name with arguments.
7587 compiler=$CC
7588
7589
7590 # Check for command to grab the raw symbol name followed by C symbol from nm.
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7592 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7593 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596
7597 # These are sane defaults that work on at least a few old systems.
7598 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7599
7600 # Character class describing NM global symbol codes.
7601 symcode='[BCDEGRST]'
7602
7603 # Regexp to match symbols that can be accessed directly from C.
7604 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7605
7606 # Define system-specific variables.
7607 case $host_os in
7608 aix*)
7609   symcode='[BCDT]'
7610   ;;
7611 cygwin* | mingw* | pw32* | cegcc*)
7612   symcode='[ABCDGISTW]'
7613   ;;
7614 hpux*)
7615   if test "$host_cpu" = ia64; then
7616     symcode='[ABCDEGRST]'
7617   fi
7618   ;;
7619 irix* | nonstopux*)
7620   symcode='[BCDEGRST]'
7621   ;;
7622 osf*)
7623   symcode='[BCDEGQRST]'
7624   ;;
7625 solaris*)
7626   symcode='[BDRT]'
7627   ;;
7628 sco3.2v5*)
7629   symcode='[DT]'
7630   ;;
7631 sysv4.2uw2*)
7632   symcode='[DT]'
7633   ;;
7634 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7635   symcode='[ABDT]'
7636   ;;
7637 sysv4)
7638   symcode='[DFNSTU]'
7639   ;;
7640 esac
7641
7642 # If we're using GNU nm, then use its standard symbol codes.
7643 case `$NM -V 2>&1` in
7644 *GNU* | *'with BFD'*)
7645   symcode='[ABCDGIRSTW]' ;;
7646 esac
7647
7648 # Transform an extracted symbol line into a proper C declaration.
7649 # Some systems (esp. on ia64) link data and code symbols differently,
7650 # so use this general approach.
7651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7652
7653 # Transform an extracted symbol line into symbol name and symbol address
7654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7655 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'"
7656
7657 # Handle CRLF in mingw tool chain
7658 opt_cr=
7659 case $build_os in
7660 mingw*)
7661   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7662   ;;
7663 esac
7664
7665 # Try without a prefix underscore, then with it.
7666 for ac_symprfx in "" "_"; do
7667
7668   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7669   symxfrm="\\1 $ac_symprfx\\2 \\2"
7670
7671   # Write the raw and C identifiers.
7672   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7673     # Fake it for dumpbin and say T for any non-static function
7674     # and D for any global variable.
7675     # Also find C++ and __fastcall symbols from MSVC++,
7676     # which start with @ or ?.
7677     lt_cv_sys_global_symbol_pipe="$AWK '"\
7678 "     {last_section=section; section=\$ 3};"\
7679 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7680 "     \$ 0!~/External *\|/{next};"\
7681 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7682 "     {if(hide[section]) next};"\
7683 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7684 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7685 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7686 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7687 "     ' prfx=^$ac_symprfx"
7688   else
7689     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7690   fi
7691
7692   # Check to see that the pipe works correctly.
7693   pipe_works=no
7694
7695   rm -f conftest*
7696   cat > conftest.$ac_ext <<_LT_EOF
7697 #ifdef __cplusplus
7698 extern "C" {
7699 #endif
7700 char nm_test_var;
7701 void nm_test_func(void);
7702 void nm_test_func(void){}
7703 #ifdef __cplusplus
7704 }
7705 #endif
7706 int main(){nm_test_var='a';nm_test_func();return(0);}
7707 _LT_EOF
7708
7709   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7710   (eval $ac_compile) 2>&5
7711   ac_status=$?
7712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7713   test $ac_status = 0; }; then
7714     # Now try to grab the symbols.
7715     nlist=conftest.nm
7716     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7717   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7718   ac_status=$?
7719   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720   test $ac_status = 0; } && test -s "$nlist"; then
7721       # Try sorting and uniquifying the output.
7722       if sort "$nlist" | uniq > "$nlist"T; then
7723         mv -f "$nlist"T "$nlist"
7724       else
7725         rm -f "$nlist"T
7726       fi
7727
7728       # Make sure that we snagged all the symbols we need.
7729       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7730         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7731           cat <<_LT_EOF > conftest.$ac_ext
7732 #ifdef __cplusplus
7733 extern "C" {
7734 #endif
7735
7736 _LT_EOF
7737           # Now generate the symbol file.
7738           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7739
7740           cat <<_LT_EOF >> conftest.$ac_ext
7741
7742 /* The mapping between symbol names and symbols.  */
7743 const struct {
7744   const char *name;
7745   void       *address;
7746 }
7747 lt__PROGRAM__LTX_preloaded_symbols[] =
7748 {
7749   { "@PROGRAM@", (void *) 0 },
7750 _LT_EOF
7751           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7752           cat <<\_LT_EOF >> conftest.$ac_ext
7753   {0, (void *) 0}
7754 };
7755
7756 /* This works around a problem in FreeBSD linker */
7757 #ifdef FREEBSD_WORKAROUND
7758 static const void *lt_preloaded_setup() {
7759   return lt__PROGRAM__LTX_preloaded_symbols;
7760 }
7761 #endif
7762
7763 #ifdef __cplusplus
7764 }
7765 #endif
7766 _LT_EOF
7767           # Now try linking the two files.
7768           mv conftest.$ac_objext conftstm.$ac_objext
7769           lt_save_LIBS="$LIBS"
7770           lt_save_CFLAGS="$CFLAGS"
7771           LIBS="conftstm.$ac_objext"
7772           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7773           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7774   (eval $ac_link) 2>&5
7775   ac_status=$?
7776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7778             pipe_works=yes
7779           fi
7780           LIBS="$lt_save_LIBS"
7781           CFLAGS="$lt_save_CFLAGS"
7782         else
7783           echo "cannot find nm_test_func in $nlist" >&5
7784         fi
7785       else
7786         echo "cannot find nm_test_var in $nlist" >&5
7787       fi
7788     else
7789       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7790     fi
7791   else
7792     echo "$progname: failed program was:" >&5
7793     cat conftest.$ac_ext >&5
7794   fi
7795   rm -rf conftest* conftst*
7796
7797   # Do not use the global_symbol_pipe unless it works.
7798   if test "$pipe_works" = yes; then
7799     break
7800   else
7801     lt_cv_sys_global_symbol_pipe=
7802   fi
7803 done
7804
7805 fi
7806
7807 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7808   lt_cv_sys_global_symbol_to_cdecl=
7809 fi
7810 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7812 $as_echo "failed" >&6; }
7813 else
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7815 $as_echo "ok" >&6; }
7816 fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839 # Check whether --enable-libtool-lock was given.
7840 if test "${enable_libtool_lock+set}" = set; then :
7841   enableval=$enable_libtool_lock;
7842 fi
7843
7844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7845
7846 # Some flags need to be propagated to the compiler or linker for good
7847 # libtool support.
7848 case $host in
7849 ia64-*-hpux*)
7850   # Find out which ABI we are using.
7851   echo 'int i;' > conftest.$ac_ext
7852   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7853   (eval $ac_compile) 2>&5
7854   ac_status=$?
7855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7856   test $ac_status = 0; }; then
7857     case `/usr/bin/file conftest.$ac_objext` in
7858       *ELF-32*)
7859         HPUX_IA64_MODE="32"
7860         ;;
7861       *ELF-64*)
7862         HPUX_IA64_MODE="64"
7863         ;;
7864     esac
7865   fi
7866   rm -rf conftest*
7867   ;;
7868 *-*-irix6*)
7869   # Find out which ABI we are using.
7870   echo '#line 7870 "configure"' > conftest.$ac_ext
7871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7872   (eval $ac_compile) 2>&5
7873   ac_status=$?
7874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875   test $ac_status = 0; }; then
7876     if test "$lt_cv_prog_gnu_ld" = yes; then
7877       case `/usr/bin/file conftest.$ac_objext` in
7878         *32-bit*)
7879           LD="${LD-ld} -melf32bsmip"
7880           ;;
7881         *N32*)
7882           LD="${LD-ld} -melf32bmipn32"
7883           ;;
7884         *64-bit*)
7885           LD="${LD-ld} -melf64bmip"
7886         ;;
7887       esac
7888     else
7889       case `/usr/bin/file conftest.$ac_objext` in
7890         *32-bit*)
7891           LD="${LD-ld} -32"
7892           ;;
7893         *N32*)
7894           LD="${LD-ld} -n32"
7895           ;;
7896         *64-bit*)
7897           LD="${LD-ld} -64"
7898           ;;
7899       esac
7900     fi
7901   fi
7902   rm -rf conftest*
7903   ;;
7904
7905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7907   # Find out which ABI we are using.
7908   echo 'int i;' > conftest.$ac_ext
7909   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7910   (eval $ac_compile) 2>&5
7911   ac_status=$?
7912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7913   test $ac_status = 0; }; then
7914     case `/usr/bin/file conftest.o` in
7915       *32-bit*)
7916         case $host in
7917           x86_64-*kfreebsd*-gnu)
7918             LD="${LD-ld} -m elf_i386_fbsd"
7919             ;;
7920           x86_64-*linux*)
7921             LD="${LD-ld} -m elf_i386"
7922             ;;
7923           ppc64-*linux*|powerpc64-*linux*)
7924             LD="${LD-ld} -m elf32ppclinux"
7925             ;;
7926           s390x-*linux*)
7927             LD="${LD-ld} -m elf_s390"
7928             ;;
7929           sparc64-*linux*)
7930             LD="${LD-ld} -m elf32_sparc"
7931             ;;
7932         esac
7933         ;;
7934       *64-bit*)
7935         case $host in
7936           x86_64-*kfreebsd*-gnu)
7937             LD="${LD-ld} -m elf_x86_64_fbsd"
7938             ;;
7939           x86_64-*linux*)
7940             LD="${LD-ld} -m elf_x86_64"
7941             ;;
7942           ppc*-*linux*|powerpc*-*linux*)
7943             LD="${LD-ld} -m elf64ppc"
7944             ;;
7945           s390*-*linux*|s390*-*tpf*)
7946             LD="${LD-ld} -m elf64_s390"
7947             ;;
7948           sparc*-*linux*)
7949             LD="${LD-ld} -m elf64_sparc"
7950             ;;
7951         esac
7952         ;;
7953     esac
7954   fi
7955   rm -rf conftest*
7956   ;;
7957
7958 *-*-sco3.2v5*)
7959   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7960   SAVE_CFLAGS="$CFLAGS"
7961   CFLAGS="$CFLAGS -belf"
7962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7963 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7964 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   ac_ext=c
7968 ac_cpp='$CPP $CPPFLAGS'
7969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7972
7973      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h.  */
7975
7976 int
7977 main ()
7978 {
7979
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 if ac_fn_c_try_link "$LINENO"; then :
7985   lt_cv_cc_needs_belf=yes
7986 else
7987   lt_cv_cc_needs_belf=no
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext \
7990     conftest$ac_exeext conftest.$ac_ext
7991      ac_ext=c
7992 ac_cpp='$CPP $CPPFLAGS'
7993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7996
7997 fi
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7999 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8000   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8001     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8002     CFLAGS="$SAVE_CFLAGS"
8003   fi
8004   ;;
8005 sparc*-*solaris*)
8006   # Find out which ABI we are using.
8007   echo 'int i;' > conftest.$ac_ext
8008   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8009   (eval $ac_compile) 2>&5
8010   ac_status=$?
8011   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8012   test $ac_status = 0; }; then
8013     case `/usr/bin/file conftest.o` in
8014     *64-bit*)
8015       case $lt_cv_prog_gnu_ld in
8016       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8017       *)
8018         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8019           LD="${LD-ld} -64"
8020         fi
8021         ;;
8022       esac
8023       ;;
8024     esac
8025   fi
8026   rm -rf conftest*
8027   ;;
8028 esac
8029
8030 need_locks="$enable_libtool_lock"
8031
8032
8033   case $host_os in
8034     rhapsody* | darwin*)
8035     if test -n "$ac_tool_prefix"; then
8036   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8041   $as_echo_n "(cached) " >&6
8042 else
8043   if test -n "$DSYMUTIL"; then
8044   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8048 do
8049   IFS=$as_save_IFS
8050   test -z "$as_dir" && as_dir=.
8051     for ac_exec_ext in '' $ac_executable_extensions; do
8052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8053     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055     break 2
8056   fi
8057 done
8058   done
8059 IFS=$as_save_IFS
8060
8061 fi
8062 fi
8063 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8064 if test -n "$DSYMUTIL"; then
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8066 $as_echo "$DSYMUTIL" >&6; }
8067 else
8068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8070 fi
8071
8072
8073 fi
8074 if test -z "$ac_cv_prog_DSYMUTIL"; then
8075   ac_ct_DSYMUTIL=$DSYMUTIL
8076   # Extract the first word of "dsymutil", so it can be a program name with args.
8077 set dummy dsymutil; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   if test -n "$ac_ct_DSYMUTIL"; then
8084   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8088 do
8089   IFS=$as_save_IFS
8090   test -z "$as_dir" && as_dir=.
8091     for ac_exec_ext in '' $ac_executable_extensions; do
8092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8093     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095     break 2
8096   fi
8097 done
8098   done
8099 IFS=$as_save_IFS
8100
8101 fi
8102 fi
8103 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8104 if test -n "$ac_ct_DSYMUTIL"; then
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8106 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8107 else
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8110 fi
8111
8112   if test "x$ac_ct_DSYMUTIL" = x; then
8113     DSYMUTIL=":"
8114   else
8115     case $cross_compiling:$ac_tool_warned in
8116 yes:)
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned=yes ;;
8120 esac
8121     DSYMUTIL=$ac_ct_DSYMUTIL
8122   fi
8123 else
8124   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8125 fi
8126
8127     if test -n "$ac_tool_prefix"; then
8128   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8129 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131 $as_echo_n "checking for $ac_word... " >&6; }
8132 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8133   $as_echo_n "(cached) " >&6
8134 else
8135   if test -n "$NMEDIT"; then
8136   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8137 else
8138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141   IFS=$as_save_IFS
8142   test -z "$as_dir" && as_dir=.
8143     for ac_exec_ext in '' $ac_executable_extensions; do
8144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8145     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147     break 2
8148   fi
8149 done
8150   done
8151 IFS=$as_save_IFS
8152
8153 fi
8154 fi
8155 NMEDIT=$ac_cv_prog_NMEDIT
8156 if test -n "$NMEDIT"; then
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8158 $as_echo "$NMEDIT" >&6; }
8159 else
8160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8162 fi
8163
8164
8165 fi
8166 if test -z "$ac_cv_prog_NMEDIT"; then
8167   ac_ct_NMEDIT=$NMEDIT
8168   # Extract the first word of "nmedit", so it can be a program name with args.
8169 set dummy nmedit; ac_word=$2
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171 $as_echo_n "checking for $ac_word... " >&6; }
8172 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8173   $as_echo_n "(cached) " >&6
8174 else
8175   if test -n "$ac_ct_NMEDIT"; then
8176   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181   IFS=$as_save_IFS
8182   test -z "$as_dir" && as_dir=.
8183     for ac_exec_ext in '' $ac_executable_extensions; do
8184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8185     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187     break 2
8188   fi
8189 done
8190   done
8191 IFS=$as_save_IFS
8192
8193 fi
8194 fi
8195 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8196 if test -n "$ac_ct_NMEDIT"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8198 $as_echo "$ac_ct_NMEDIT" >&6; }
8199 else
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203
8204   if test "x$ac_ct_NMEDIT" = x; then
8205     NMEDIT=":"
8206   else
8207     case $cross_compiling:$ac_tool_warned in
8208 yes:)
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8211 ac_tool_warned=yes ;;
8212 esac
8213     NMEDIT=$ac_ct_NMEDIT
8214   fi
8215 else
8216   NMEDIT="$ac_cv_prog_NMEDIT"
8217 fi
8218
8219     if test -n "$ac_tool_prefix"; then
8220   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8221 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223 $as_echo_n "checking for $ac_word... " >&6; }
8224 if test "${ac_cv_prog_LIPO+set}" = set; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   if test -n "$LIPO"; then
8228   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8229 else
8230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231 for as_dir in $PATH
8232 do
8233   IFS=$as_save_IFS
8234   test -z "$as_dir" && as_dir=.
8235     for ac_exec_ext in '' $ac_executable_extensions; do
8236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8237     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239     break 2
8240   fi
8241 done
8242   done
8243 IFS=$as_save_IFS
8244
8245 fi
8246 fi
8247 LIPO=$ac_cv_prog_LIPO
8248 if test -n "$LIPO"; then
8249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8250 $as_echo "$LIPO" >&6; }
8251 else
8252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253 $as_echo "no" >&6; }
8254 fi
8255
8256
8257 fi
8258 if test -z "$ac_cv_prog_LIPO"; then
8259   ac_ct_LIPO=$LIPO
8260   # Extract the first word of "lipo", so it can be a program name with args.
8261 set dummy lipo; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   if test -n "$ac_ct_LIPO"; then
8268   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
8273   IFS=$as_save_IFS
8274   test -z "$as_dir" && as_dir=.
8275     for ac_exec_ext in '' $ac_executable_extensions; do
8276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277     ac_cv_prog_ac_ct_LIPO="lipo"
8278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279     break 2
8280   fi
8281 done
8282   done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8288 if test -n "$ac_ct_LIPO"; then
8289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8290 $as_echo "$ac_ct_LIPO" >&6; }
8291 else
8292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296   if test "x$ac_ct_LIPO" = x; then
8297     LIPO=":"
8298   else
8299     case $cross_compiling:$ac_tool_warned in
8300 yes:)
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8303 ac_tool_warned=yes ;;
8304 esac
8305     LIPO=$ac_ct_LIPO
8306   fi
8307 else
8308   LIPO="$ac_cv_prog_LIPO"
8309 fi
8310
8311     if test -n "$ac_tool_prefix"; then
8312   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8313 set dummy ${ac_tool_prefix}otool; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8317   $as_echo_n "(cached) " >&6
8318 else
8319   if test -n "$OTOOL"; then
8320   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8321 else
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8324 do
8325   IFS=$as_save_IFS
8326   test -z "$as_dir" && as_dir=.
8327     for ac_exec_ext in '' $ac_executable_extensions; do
8328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331     break 2
8332   fi
8333 done
8334   done
8335 IFS=$as_save_IFS
8336
8337 fi
8338 fi
8339 OTOOL=$ac_cv_prog_OTOOL
8340 if test -n "$OTOOL"; then
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8342 $as_echo "$OTOOL" >&6; }
8343 else
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 fi
8347
8348
8349 fi
8350 if test -z "$ac_cv_prog_OTOOL"; then
8351   ac_ct_OTOOL=$OTOOL
8352   # Extract the first word of "otool", so it can be a program name with args.
8353 set dummy otool; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8357   $as_echo_n "(cached) " >&6
8358 else
8359   if test -n "$ac_ct_OTOOL"; then
8360   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
8365   IFS=$as_save_IFS
8366   test -z "$as_dir" && as_dir=.
8367     for ac_exec_ext in '' $ac_executable_extensions; do
8368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369     ac_cv_prog_ac_ct_OTOOL="otool"
8370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371     break 2
8372   fi
8373 done
8374   done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8380 if test -n "$ac_ct_OTOOL"; then
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8382 $as_echo "$ac_ct_OTOOL" >&6; }
8383 else
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387
8388   if test "x$ac_ct_OTOOL" = x; then
8389     OTOOL=":"
8390   else
8391     case $cross_compiling:$ac_tool_warned in
8392 yes:)
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8395 ac_tool_warned=yes ;;
8396 esac
8397     OTOOL=$ac_ct_OTOOL
8398   fi
8399 else
8400   OTOOL="$ac_cv_prog_OTOOL"
8401 fi
8402
8403     if test -n "$ac_tool_prefix"; then
8404   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8405 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411   if test -n "$OTOOL64"; then
8412   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8413 else
8414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 for as_dir in $PATH
8416 do
8417   IFS=$as_save_IFS
8418   test -z "$as_dir" && as_dir=.
8419     for ac_exec_ext in '' $ac_executable_extensions; do
8420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8421     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423     break 2
8424   fi
8425 done
8426   done
8427 IFS=$as_save_IFS
8428
8429 fi
8430 fi
8431 OTOOL64=$ac_cv_prog_OTOOL64
8432 if test -n "$OTOOL64"; then
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8434 $as_echo "$OTOOL64" >&6; }
8435 else
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8438 fi
8439
8440
8441 fi
8442 if test -z "$ac_cv_prog_OTOOL64"; then
8443   ac_ct_OTOOL64=$OTOOL64
8444   # Extract the first word of "otool64", so it can be a program name with args.
8445 set dummy otool64; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8449   $as_echo_n "(cached) " >&6
8450 else
8451   if test -n "$ac_ct_OTOOL64"; then
8452   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8453 else
8454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8455 for as_dir in $PATH
8456 do
8457   IFS=$as_save_IFS
8458   test -z "$as_dir" && as_dir=.
8459     for ac_exec_ext in '' $ac_executable_extensions; do
8460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8461     ac_cv_prog_ac_ct_OTOOL64="otool64"
8462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8463     break 2
8464   fi
8465 done
8466   done
8467 IFS=$as_save_IFS
8468
8469 fi
8470 fi
8471 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8472 if test -n "$ac_ct_OTOOL64"; then
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8474 $as_echo "$ac_ct_OTOOL64" >&6; }
8475 else
8476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8477 $as_echo "no" >&6; }
8478 fi
8479
8480   if test "x$ac_ct_OTOOL64" = x; then
8481     OTOOL64=":"
8482   else
8483     case $cross_compiling:$ac_tool_warned in
8484 yes:)
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8487 ac_tool_warned=yes ;;
8488 esac
8489     OTOOL64=$ac_ct_OTOOL64
8490   fi
8491 else
8492   OTOOL64="$ac_cv_prog_OTOOL64"
8493 fi
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
8520
8521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8522 $as_echo_n "checking for -single_module linker flag... " >&6; }
8523 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8524   $as_echo_n "(cached) " >&6
8525 else
8526   lt_cv_apple_cc_single_mod=no
8527       if test -z "${LT_MULTI_MODULE}"; then
8528         # By default we will add the -single_module flag. You can override
8529         # by either setting the environment variable LT_MULTI_MODULE
8530         # non-empty at configure time, or by adding -multi_module to the
8531         # link flags.
8532         rm -rf libconftest.dylib*
8533         echo "int foo(void){return 1;}" > conftest.c
8534         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8535 -dynamiclib -Wl,-single_module conftest.c" >&5
8536         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8537           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8538         _lt_result=$?
8539         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8540           lt_cv_apple_cc_single_mod=yes
8541         else
8542           cat conftest.err >&5
8543         fi
8544         rm -rf libconftest.dylib*
8545         rm -f conftest.*
8546       fi
8547 fi
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8549 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8551 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8552 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8553   $as_echo_n "(cached) " >&6
8554 else
8555   lt_cv_ld_exported_symbols_list=no
8556       save_LDFLAGS=$LDFLAGS
8557       echo "_main" > conftest.sym
8558       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h.  */
8561
8562 int
8563 main ()
8564 {
8565
8566   ;
8567   return 0;
8568 }
8569 _ACEOF
8570 if ac_fn_c_try_link "$LINENO"; then :
8571   lt_cv_ld_exported_symbols_list=yes
8572 else
8573   lt_cv_ld_exported_symbols_list=no
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext \
8576     conftest$ac_exeext conftest.$ac_ext
8577         LDFLAGS="$save_LDFLAGS"
8578
8579 fi
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8581 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8582     case $host_os in
8583     rhapsody* | darwin1.[012])
8584       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8585     darwin1.*)
8586       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8587     darwin*) # darwin 5.x on
8588       # if running on 10.5 or later, the deployment target defaults
8589       # to the OS version, if on x86, and 10.4, the deployment
8590       # target defaults to 10.4. Don't you love it?
8591       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8592         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8593           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8594         10.[012]*)
8595           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8596         10.*)
8597           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8598       esac
8599     ;;
8600   esac
8601     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8602       _lt_dar_single_mod='$single_module'
8603     fi
8604     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8605       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8606     else
8607       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8608     fi
8609     if test "$DSYMUTIL" != ":"; then
8610       _lt_dsymutil='~$DSYMUTIL $lib || :'
8611     else
8612       _lt_dsymutil=
8613     fi
8614     ;;
8615   esac
8616
8617 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8618 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8619                   inttypes.h stdint.h unistd.h
8620 do :
8621   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8622 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8623 "
8624 eval as_val=\$$as_ac_Header
8625    if test "x$as_val" = x""yes; then :
8626   cat >>confdefs.h <<_ACEOF
8627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8628 _ACEOF
8629
8630 fi
8631
8632 done
8633
8634
8635 for ac_header in dlfcn.h
8636 do :
8637   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8638 "
8639 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8640   cat >>confdefs.h <<_ACEOF
8641 #define HAVE_DLFCN_H 1
8642 _ACEOF
8643
8644 fi
8645
8646 done
8647
8648
8649
8650 ac_ext=cpp
8651 ac_cpp='$CXXCPP $CPPFLAGS'
8652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8655 if test -z "$CXX"; then
8656   if test -n "$CCC"; then
8657     CXX=$CCC
8658   else
8659     if test -n "$ac_tool_prefix"; then
8660   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8661   do
8662     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8665 $as_echo_n "checking for $ac_word... " >&6; }
8666 if test "${ac_cv_prog_CXX+set}" = set; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669   if test -n "$CXX"; then
8670   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8671 else
8672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 for as_dir in $PATH
8674 do
8675   IFS=$as_save_IFS
8676   test -z "$as_dir" && as_dir=.
8677     for ac_exec_ext in '' $ac_executable_extensions; do
8678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8681     break 2
8682   fi
8683 done
8684   done
8685 IFS=$as_save_IFS
8686
8687 fi
8688 fi
8689 CXX=$ac_cv_prog_CXX
8690 if test -n "$CXX"; then
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8692 $as_echo "$CXX" >&6; }
8693 else
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699     test -n "$CXX" && break
8700   done
8701 fi
8702 if test -z "$CXX"; then
8703   ac_ct_CXX=$CXX
8704   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8705 do
8706   # Extract the first word of "$ac_prog", so it can be a program name with args.
8707 set dummy $ac_prog; ac_word=$2
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8709 $as_echo_n "checking for $ac_word... " >&6; }
8710 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8711   $as_echo_n "(cached) " >&6
8712 else
8713   if test -n "$ac_ct_CXX"; then
8714   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8715 else
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8718 do
8719   IFS=$as_save_IFS
8720   test -z "$as_dir" && as_dir=.
8721     for ac_exec_ext in '' $ac_executable_extensions; do
8722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723     ac_cv_prog_ac_ct_CXX="$ac_prog"
8724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725     break 2
8726   fi
8727 done
8728   done
8729 IFS=$as_save_IFS
8730
8731 fi
8732 fi
8733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8734 if test -n "$ac_ct_CXX"; then
8735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8736 $as_echo "$ac_ct_CXX" >&6; }
8737 else
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8739 $as_echo "no" >&6; }
8740 fi
8741
8742
8743   test -n "$ac_ct_CXX" && break
8744 done
8745
8746   if test "x$ac_ct_CXX" = x; then
8747     CXX="g++"
8748   else
8749     case $cross_compiling:$ac_tool_warned in
8750 yes:)
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8753 ac_tool_warned=yes ;;
8754 esac
8755     CXX=$ac_ct_CXX
8756   fi
8757 fi
8758
8759   fi
8760 fi
8761 # Provide some information about the compiler.
8762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8763 set X $ac_compile
8764 ac_compiler=$2
8765 for ac_option in --version -v -V -qversion; do
8766   { { ac_try="$ac_compiler $ac_option >&5"
8767 case "(($ac_try" in
8768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769   *) ac_try_echo=$ac_try;;
8770 esac
8771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8772 $as_echo "$ac_try_echo"; } >&5
8773   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8774   ac_status=$?
8775   if test -s conftest.err; then
8776     sed '10a\
8777 ... rest of stderr output deleted ...
8778          10q' conftest.err >conftest.er1
8779     cat conftest.er1 >&5
8780     rm -f conftest.er1 conftest.err
8781   fi
8782   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783   test $ac_status = 0; }
8784 done
8785
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8787 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8788 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8789   $as_echo_n "(cached) " >&6
8790 else
8791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h.  */
8793
8794 int
8795 main ()
8796 {
8797 #ifndef __GNUC__
8798        choke me
8799 #endif
8800
8801   ;
8802   return 0;
8803 }
8804 _ACEOF
8805 if ac_fn_cxx_try_compile "$LINENO"; then :
8806   ac_compiler_gnu=yes
8807 else
8808   ac_compiler_gnu=no
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8812
8813 fi
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8815 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8816 if test $ac_compiler_gnu = yes; then
8817   GXX=yes
8818 else
8819   GXX=
8820 fi
8821 ac_test_CXXFLAGS=${CXXFLAGS+set}
8822 ac_save_CXXFLAGS=$CXXFLAGS
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8824 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8825 if test "${ac_cv_prog_cxx_g+set}" = set; then :
8826   $as_echo_n "(cached) " >&6
8827 else
8828   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8829    ac_cxx_werror_flag=yes
8830    ac_cv_prog_cxx_g=no
8831    CXXFLAGS="-g"
8832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h.  */
8834
8835 int
8836 main ()
8837 {
8838
8839   ;
8840   return 0;
8841 }
8842 _ACEOF
8843 if ac_fn_cxx_try_compile "$LINENO"; then :
8844   ac_cv_prog_cxx_g=yes
8845 else
8846   CXXFLAGS=""
8847       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h.  */
8849
8850 int
8851 main ()
8852 {
8853
8854   ;
8855   return 0;
8856 }
8857 _ACEOF
8858 if ac_fn_cxx_try_compile "$LINENO"; then :
8859
8860 else
8861   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8862          CXXFLAGS="-g"
8863          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8864 /* end confdefs.h.  */
8865
8866 int
8867 main ()
8868 {
8869
8870   ;
8871   return 0;
8872 }
8873 _ACEOF
8874 if ac_fn_cxx_try_compile "$LINENO"; then :
8875   ac_cv_prog_cxx_g=yes
8876 fi
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 fi
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 fi
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8885 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8886 if test "$ac_test_CXXFLAGS" = set; then
8887   CXXFLAGS=$ac_save_CXXFLAGS
8888 elif test $ac_cv_prog_cxx_g = yes; then
8889   if test "$GXX" = yes; then
8890     CXXFLAGS="-g -O2"
8891   else
8892     CXXFLAGS="-g"
8893   fi
8894 else
8895   if test "$GXX" = yes; then
8896     CXXFLAGS="-O2"
8897   else
8898     CXXFLAGS=
8899   fi
8900 fi
8901 ac_ext=c
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8906
8907 depcc="$CXX"  am_compiler_list=
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8910 $as_echo_n "checking dependency style of $depcc... " >&6; }
8911 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8912   $as_echo_n "(cached) " >&6
8913 else
8914   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8915   # We make a subdir and do the tests there.  Otherwise we can end up
8916   # making bogus files that we don't know about and never remove.  For
8917   # instance it was reported that on HP-UX the gcc test will end up
8918   # making a dummy file named `D' -- because `-MD' means `put the output
8919   # in D'.
8920   mkdir conftest.dir
8921   # Copy depcomp to subdir because otherwise we won't find it if we're
8922   # using a relative directory.
8923   cp "$am_depcomp" conftest.dir
8924   cd conftest.dir
8925   # We will build objects and dependencies in a subdirectory because
8926   # it helps to detect inapplicable dependency modes.  For instance
8927   # both Tru64's cc and ICC support -MD to output dependencies as a
8928   # side effect of compilation, but ICC will put the dependencies in
8929   # the current directory while Tru64 will put them in the object
8930   # directory.
8931   mkdir sub
8932
8933   am_cv_CXX_dependencies_compiler_type=none
8934   if test "$am_compiler_list" = ""; then
8935      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8936   fi
8937   am__universal=false
8938   case " $depcc " in #(
8939      *\ -arch\ *\ -arch\ *) am__universal=true ;;
8940      esac
8941
8942   for depmode in $am_compiler_list; do
8943     # Setup a source with many dependencies, because some compilers
8944     # like to wrap large dependency lists on column 80 (with \), and
8945     # we should not choose a depcomp mode which is confused by this.
8946     #
8947     # We need to recreate these files for each test, as the compiler may
8948     # overwrite some of them when testing with obscure command lines.
8949     # This happens at least with the AIX C compiler.
8950     : > sub/conftest.c
8951     for i in 1 2 3 4 5 6; do
8952       echo '#include "conftst'$i'.h"' >> sub/conftest.c
8953       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8954       # Solaris 8's {/usr,}/bin/sh.
8955       touch sub/conftst$i.h
8956     done
8957     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8958
8959     # We check with `-c' and `-o' for the sake of the "dashmstdout"
8960     # mode.  It turns out that the SunPro C++ compiler does not properly
8961     # handle `-M -o', and we need to detect this.  Also, some Intel
8962     # versions had trouble with output in subdirs
8963     am__obj=sub/conftest.${OBJEXT-o}
8964     am__minus_obj="-o $am__obj"
8965     case $depmode in
8966     gcc)
8967       # This depmode causes a compiler race in universal mode.
8968       test "$am__universal" = false || continue
8969       ;;
8970     nosideeffect)
8971       # after this tag, mechanisms are not by side-effect, so they'll
8972       # only be used when explicitly requested
8973       if test "x$enable_dependency_tracking" = xyes; then
8974         continue
8975       else
8976         break
8977       fi
8978       ;;
8979     msvisualcpp | msvcmsys)
8980       # This compiler won't grok `-c -o', but also, the minuso test has
8981       # not run yet.  These depmodes are late enough in the game, and
8982       # so weak that their functioning should not be impacted.
8983       am__obj=conftest.${OBJEXT-o}
8984       am__minus_obj=
8985       ;;
8986     none) break ;;
8987     esac
8988     if depmode=$depmode \
8989        source=sub/conftest.c object=$am__obj \
8990        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8991        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8992          >/dev/null 2>conftest.err &&
8993        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8994        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8995        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8996        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8997       # icc doesn't choke on unknown options, it will just issue warnings
8998       # or remarks (even with -Werror).  So we grep stderr for any message
8999       # that says an option was ignored or not supported.
9000       # When given -MP, icc 7.0 and 7.1 complain thusly:
9001       #   icc: Command line warning: ignoring option '-M'; no argument required
9002       # The diagnosis changed in icc 8.0:
9003       #   icc: Command line remark: option '-MP' not supported
9004       if (grep 'ignoring option' conftest.err ||
9005           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9006         am_cv_CXX_dependencies_compiler_type=$depmode
9007         break
9008       fi
9009     fi
9010   done
9011
9012   cd ..
9013   rm -rf conftest.dir
9014 else
9015   am_cv_CXX_dependencies_compiler_type=none
9016 fi
9017
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
9020 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
9021 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
9022
9023  if
9024   test "x$enable_dependency_tracking" != xno \
9025   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
9026   am__fastdepCXX_TRUE=
9027   am__fastdepCXX_FALSE='#'
9028 else
9029   am__fastdepCXX_TRUE='#'
9030   am__fastdepCXX_FALSE=
9031 fi
9032
9033
9034 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9035     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9036     (test "X$CXX" != "Xg++"))) ; then
9037   ac_ext=cpp
9038 ac_cpp='$CXXCPP $CPPFLAGS'
9039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9043 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9044 if test -z "$CXXCPP"; then
9045   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048       # Double quotes because CXXCPP needs to be expanded
9049     for CXXCPP in "$CXX -E" "/lib/cpp"
9050     do
9051       ac_preproc_ok=false
9052 for ac_cxx_preproc_warn_flag in '' yes
9053 do
9054   # Use a header file that comes with gcc, so configuring glibc
9055   # with a fresh cross-compiler works.
9056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9057   # <limits.h> exists even on freestanding compilers.
9058   # On the NeXT, cc -E runs the code through the compiler's parser,
9059   # not just through cpp. "Syntax error" is here to catch this case.
9060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h.  */
9062 #ifdef __STDC__
9063 # include <limits.h>
9064 #else
9065 # include <assert.h>
9066 #endif
9067                      Syntax error
9068 _ACEOF
9069 if ac_fn_cxx_try_cpp "$LINENO"; then :
9070
9071 else
9072   # Broken: fails on valid input.
9073 continue
9074 fi
9075 rm -f conftest.err conftest.$ac_ext
9076
9077   # OK, works on sane cases.  Now check whether nonexistent headers
9078   # can be detected and how.
9079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9080 /* end confdefs.h.  */
9081 #include <ac_nonexistent.h>
9082 _ACEOF
9083 if ac_fn_cxx_try_cpp "$LINENO"; then :
9084   # Broken: success on invalid input.
9085 continue
9086 else
9087   # Passes both tests.
9088 ac_preproc_ok=:
9089 break
9090 fi
9091 rm -f conftest.err conftest.$ac_ext
9092
9093 done
9094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9095 rm -f conftest.err conftest.$ac_ext
9096 if $ac_preproc_ok; then :
9097   break
9098 fi
9099
9100     done
9101     ac_cv_prog_CXXCPP=$CXXCPP
9102
9103 fi
9104   CXXCPP=$ac_cv_prog_CXXCPP
9105 else
9106   ac_cv_prog_CXXCPP=$CXXCPP
9107 fi
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9109 $as_echo "$CXXCPP" >&6; }
9110 ac_preproc_ok=false
9111 for ac_cxx_preproc_warn_flag in '' yes
9112 do
9113   # Use a header file that comes with gcc, so configuring glibc
9114   # with a fresh cross-compiler works.
9115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9116   # <limits.h> exists even on freestanding compilers.
9117   # On the NeXT, cc -E runs the code through the compiler's parser,
9118   # not just through cpp. "Syntax error" is here to catch this case.
9119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9120 /* end confdefs.h.  */
9121 #ifdef __STDC__
9122 # include <limits.h>
9123 #else
9124 # include <assert.h>
9125 #endif
9126                      Syntax error
9127 _ACEOF
9128 if ac_fn_cxx_try_cpp "$LINENO"; then :
9129
9130 else
9131   # Broken: fails on valid input.
9132 continue
9133 fi
9134 rm -f conftest.err conftest.$ac_ext
9135
9136   # OK, works on sane cases.  Now check whether nonexistent headers
9137   # can be detected and how.
9138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9139 /* end confdefs.h.  */
9140 #include <ac_nonexistent.h>
9141 _ACEOF
9142 if ac_fn_cxx_try_cpp "$LINENO"; then :
9143   # Broken: success on invalid input.
9144 continue
9145 else
9146   # Passes both tests.
9147 ac_preproc_ok=:
9148 break
9149 fi
9150 rm -f conftest.err conftest.$ac_ext
9151
9152 done
9153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9154 rm -f conftest.err conftest.$ac_ext
9155 if $ac_preproc_ok; then :
9156
9157 else
9158   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9160 _lt_caught_CXX_error=yes; }
9161 fi
9162
9163 ac_ext=c
9164 ac_cpp='$CPP $CPPFLAGS'
9165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9168
9169 else
9170   _lt_caught_CXX_error=yes
9171 fi
9172
9173
9174
9175
9176
9177 # Set options
9178
9179
9180
9181         enable_dlopen=no
9182
9183
9184   enable_win32_dll=no
9185
9186
9187
9188
9189
9190 # Check whether --with-pic was given.
9191 if test "${with_pic+set}" = set; then :
9192   withval=$with_pic; pic_mode="$withval"
9193 else
9194   pic_mode=default
9195 fi
9196
9197
9198 test -z "$pic_mode" && pic_mode=default
9199
9200
9201
9202
9203
9204
9205
9206   # Check whether --enable-fast-install was given.
9207 if test "${enable_fast_install+set}" = set; then :
9208   enableval=$enable_fast_install; p=${PACKAGE-default}
9209     case $enableval in
9210     yes) enable_fast_install=yes ;;
9211     no) enable_fast_install=no ;;
9212     *)
9213       enable_fast_install=no
9214       # Look at the argument we got.  We use all the common list separators.
9215       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9216       for pkg in $enableval; do
9217         IFS="$lt_save_ifs"
9218         if test "X$pkg" = "X$p"; then
9219           enable_fast_install=yes
9220         fi
9221       done
9222       IFS="$lt_save_ifs"
9223       ;;
9224     esac
9225 else
9226   enable_fast_install=yes
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239 # This can be used to rebuild libtool when needed
9240 LIBTOOL_DEPS="$ltmain"
9241
9242 # Always use our own libtool.
9243 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269 test -z "$LN_S" && LN_S="ln -s"
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284 if test -n "${ZSH_VERSION+set}" ; then
9285    setopt NO_GLOB_SUBST
9286 fi
9287
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9289 $as_echo_n "checking for objdir... " >&6; }
9290 if test "${lt_cv_objdir+set}" = set; then :
9291   $as_echo_n "(cached) " >&6
9292 else
9293   rm -f .libs 2>/dev/null
9294 mkdir .libs 2>/dev/null
9295 if test -d .libs; then
9296   lt_cv_objdir=.libs
9297 else
9298   # MS-DOS does not allow filenames that begin with a dot.
9299   lt_cv_objdir=_libs
9300 fi
9301 rmdir .libs 2>/dev/null
9302 fi
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9304 $as_echo "$lt_cv_objdir" >&6; }
9305 objdir=$lt_cv_objdir
9306
9307
9308
9309
9310
9311 cat >>confdefs.h <<_ACEOF
9312 #define LT_OBJDIR "$lt_cv_objdir/"
9313 _ACEOF
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331 case $host_os in
9332 aix3*)
9333   # AIX sometimes has problems with the GCC collect2 program.  For some
9334   # reason, if we set the COLLECT_NAMES environment variable, the problems
9335   # vanish in a puff of smoke.
9336   if test "X${COLLECT_NAMES+set}" != Xset; then
9337     COLLECT_NAMES=
9338     export COLLECT_NAMES
9339   fi
9340   ;;
9341 esac
9342
9343 # Sed substitution that helps us do robust quoting.  It backslashifies
9344 # metacharacters that are still active within double-quoted strings.
9345 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9346
9347 # Same as above, but do not quote variable references.
9348 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9349
9350 # Sed substitution to delay expansion of an escaped shell variable in a
9351 # double_quote_subst'ed string.
9352 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9353
9354 # Sed substitution to delay expansion of an escaped single quote.
9355 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9356
9357 # Sed substitution to avoid accidental globbing in evaled expressions
9358 no_glob_subst='s/\*/\\\*/g'
9359
9360 # Global variables:
9361 ofile=libtool
9362 can_build_shared=yes
9363
9364 # All known linkers require a `.a' archive for static linking (except MSVC,
9365 # which needs '.lib').
9366 libext=a
9367
9368 with_gnu_ld="$lt_cv_prog_gnu_ld"
9369
9370 old_CC="$CC"
9371 old_CFLAGS="$CFLAGS"
9372
9373 # Set sane defaults for various variables
9374 test -z "$CC" && CC=cc
9375 test -z "$LTCC" && LTCC=$CC
9376 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9377 test -z "$LD" && LD=ld
9378 test -z "$ac_objext" && ac_objext=o
9379
9380 for cc_temp in $compiler""; do
9381   case $cc_temp in
9382     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9383     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9384     \-*) ;;
9385     *) break;;
9386   esac
9387 done
9388 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9389
9390
9391 # Only perform the check for file, if the check method requires it
9392 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9393 case $deplibs_check_method in
9394 file_magic*)
9395   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9397 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9398 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9399   $as_echo_n "(cached) " >&6
9400 else
9401   case $MAGIC_CMD in
9402 [\\/*] |  ?:[\\/]*)
9403   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9404   ;;
9405 *)
9406   lt_save_MAGIC_CMD="$MAGIC_CMD"
9407   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9408   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9409   for ac_dir in $ac_dummy; do
9410     IFS="$lt_save_ifs"
9411     test -z "$ac_dir" && ac_dir=.
9412     if test -f $ac_dir/${ac_tool_prefix}file; then
9413       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9414       if test -n "$file_magic_test_file"; then
9415         case $deplibs_check_method in
9416         "file_magic "*)
9417           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9418           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9419           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9420             $EGREP "$file_magic_regex" > /dev/null; then
9421             :
9422           else
9423             cat <<_LT_EOF 1>&2
9424
9425 *** Warning: the command libtool uses to detect shared libraries,
9426 *** $file_magic_cmd, produces output that libtool cannot recognize.
9427 *** The result is that libtool may fail to recognize shared libraries
9428 *** as such.  This will affect the creation of libtool libraries that
9429 *** depend on shared libraries, but programs linked with such libtool
9430 *** libraries will work regardless of this problem.  Nevertheless, you
9431 *** may want to report the problem to your system manager and/or to
9432 *** bug-libtool@gnu.org
9433
9434 _LT_EOF
9435           fi ;;
9436         esac
9437       fi
9438       break
9439     fi
9440   done
9441   IFS="$lt_save_ifs"
9442   MAGIC_CMD="$lt_save_MAGIC_CMD"
9443   ;;
9444 esac
9445 fi
9446
9447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9448 if test -n "$MAGIC_CMD"; then
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9450 $as_echo "$MAGIC_CMD" >&6; }
9451 else
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457
9458
9459
9460 if test -z "$lt_cv_path_MAGIC_CMD"; then
9461   if test -n "$ac_tool_prefix"; then
9462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9463 $as_echo_n "checking for file... " >&6; }
9464 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9465   $as_echo_n "(cached) " >&6
9466 else
9467   case $MAGIC_CMD in
9468 [\\/*] |  ?:[\\/]*)
9469   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9470   ;;
9471 *)
9472   lt_save_MAGIC_CMD="$MAGIC_CMD"
9473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9474   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9475   for ac_dir in $ac_dummy; do
9476     IFS="$lt_save_ifs"
9477     test -z "$ac_dir" && ac_dir=.
9478     if test -f $ac_dir/file; then
9479       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9480       if test -n "$file_magic_test_file"; then
9481         case $deplibs_check_method in
9482         "file_magic "*)
9483           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9484           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9485           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9486             $EGREP "$file_magic_regex" > /dev/null; then
9487             :
9488           else
9489             cat <<_LT_EOF 1>&2
9490
9491 *** Warning: the command libtool uses to detect shared libraries,
9492 *** $file_magic_cmd, produces output that libtool cannot recognize.
9493 *** The result is that libtool may fail to recognize shared libraries
9494 *** as such.  This will affect the creation of libtool libraries that
9495 *** depend on shared libraries, but programs linked with such libtool
9496 *** libraries will work regardless of this problem.  Nevertheless, you
9497 *** may want to report the problem to your system manager and/or to
9498 *** bug-libtool@gnu.org
9499
9500 _LT_EOF
9501           fi ;;
9502         esac
9503       fi
9504       break
9505     fi
9506   done
9507   IFS="$lt_save_ifs"
9508   MAGIC_CMD="$lt_save_MAGIC_CMD"
9509   ;;
9510 esac
9511 fi
9512
9513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9514 if test -n "$MAGIC_CMD"; then
9515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9516 $as_echo "$MAGIC_CMD" >&6; }
9517 else
9518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9519 $as_echo "no" >&6; }
9520 fi
9521
9522
9523   else
9524     MAGIC_CMD=:
9525   fi
9526 fi
9527
9528   fi
9529   ;;
9530 esac
9531
9532 # Use C for the default configuration in the libtool script
9533
9534 lt_save_CC="$CC"
9535 ac_ext=c
9536 ac_cpp='$CPP $CPPFLAGS'
9537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9540
9541
9542 # Source file extension for C test sources.
9543 ac_ext=c
9544
9545 # Object file extension for compiled C test sources.
9546 objext=o
9547 objext=$objext
9548
9549 # Code to be used in simple compile tests
9550 lt_simple_compile_test_code="int some_variable = 0;"
9551
9552 # Code to be used in simple link tests
9553 lt_simple_link_test_code='int main(){return(0);}'
9554
9555
9556
9557
9558
9559
9560
9561 # If no C compiler was specified, use CC.
9562 LTCC=${LTCC-"$CC"}
9563
9564 # If no C compiler flags were specified, use CFLAGS.
9565 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9566
9567 # Allow CC to be a program name with arguments.
9568 compiler=$CC
9569
9570 # Save the default compiler, since it gets overwritten when the other
9571 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9572 compiler_DEFAULT=$CC
9573
9574 # save warnings/boilerplate of simple test code
9575 ac_outfile=conftest.$ac_objext
9576 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9577 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9578 _lt_compiler_boilerplate=`cat conftest.err`
9579 $RM conftest*
9580
9581 ac_outfile=conftest.$ac_objext
9582 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9583 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9584 _lt_linker_boilerplate=`cat conftest.err`
9585 $RM -r conftest*
9586
9587
9588 if test -n "$compiler"; then
9589
9590 lt_prog_compiler_no_builtin_flag=
9591
9592 if test "$GCC" = yes; then
9593   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9594
9595   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9596 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9597 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   lt_cv_prog_compiler_rtti_exceptions=no
9601    ac_outfile=conftest.$ac_objext
9602    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9603    lt_compiler_flag="-fno-rtti -fno-exceptions"
9604    # Insert the option either (1) after the last *FLAGS variable, or
9605    # (2) before a word containing "conftest.", or (3) at the end.
9606    # Note that $ac_compile itself does not contain backslashes and begins
9607    # with a dollar sign (not a hyphen), so the echo should work correctly.
9608    # The option is referenced via a variable to avoid confusing sed.
9609    lt_compile=`echo "$ac_compile" | $SED \
9610    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9611    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9612    -e 's:$: $lt_compiler_flag:'`
9613    (eval echo "\"\$as_me:9613: $lt_compile\"" >&5)
9614    (eval "$lt_compile" 2>conftest.err)
9615    ac_status=$?
9616    cat conftest.err >&5
9617    echo "$as_me:9617: \$? = $ac_status" >&5
9618    if (exit $ac_status) && test -s "$ac_outfile"; then
9619      # The compiler can only warn and ignore the option if not recognized
9620      # So say no if there are warnings other than the usual output.
9621      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9622      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9623      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9624        lt_cv_prog_compiler_rtti_exceptions=yes
9625      fi
9626    fi
9627    $RM conftest*
9628
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9631 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9632
9633 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9634     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9635 else
9636     :
9637 fi
9638
9639 fi
9640
9641
9642
9643
9644
9645
9646   lt_prog_compiler_wl=
9647 lt_prog_compiler_pic=
9648 lt_prog_compiler_static=
9649
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9651 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9652
9653   if test "$GCC" = yes; then
9654     lt_prog_compiler_wl='-Wl,'
9655     lt_prog_compiler_static='-static'
9656
9657     case $host_os in
9658       aix*)
9659       # All AIX code is PIC.
9660       if test "$host_cpu" = ia64; then
9661         # AIX 5 now supports IA64 processor
9662         lt_prog_compiler_static='-Bstatic'
9663       fi
9664       ;;
9665
9666     amigaos*)
9667       case $host_cpu in
9668       powerpc)
9669             # see comment about AmigaOS4 .so support
9670             lt_prog_compiler_pic='-fPIC'
9671         ;;
9672       m68k)
9673             # FIXME: we need at least 68020 code to build shared libraries, but
9674             # adding the `-m68020' flag to GCC prevents building anything better,
9675             # like `-m68040'.
9676             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9677         ;;
9678       esac
9679       ;;
9680
9681     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9682       # PIC is the default for these OSes.
9683       ;;
9684
9685     mingw* | cygwin* | pw32* | os2* | cegcc*)
9686       # This hack is so that the source file can tell whether it is being
9687       # built for inclusion in a dll (and should export symbols for example).
9688       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9689       # (--disable-auto-import) libraries
9690       lt_prog_compiler_pic='-DDLL_EXPORT'
9691       ;;
9692
9693     darwin* | rhapsody*)
9694       # PIC is the default on this platform
9695       # Common symbols not allowed in MH_DYLIB files
9696       lt_prog_compiler_pic='-fno-common'
9697       ;;
9698
9699     hpux*)
9700       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9701       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9702       # sets the default TLS model and affects inlining.
9703       case $host_cpu in
9704       hppa*64*)
9705         # +Z the default
9706         ;;
9707       *)
9708         lt_prog_compiler_pic='-fPIC'
9709         ;;
9710       esac
9711       ;;
9712
9713     interix[3-9]*)
9714       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9715       # Instead, we relocate shared libraries at runtime.
9716       ;;
9717
9718     msdosdjgpp*)
9719       # Just because we use GCC doesn't mean we suddenly get shared libraries
9720       # on systems that don't support them.
9721       lt_prog_compiler_can_build_shared=no
9722       enable_shared=no
9723       ;;
9724
9725     *nto* | *qnx*)
9726       # QNX uses GNU C++, but need to define -shared option too, otherwise
9727       # it will coredump.
9728       lt_prog_compiler_pic='-fPIC -shared'
9729       ;;
9730
9731     sysv4*MP*)
9732       if test -d /usr/nec; then
9733         lt_prog_compiler_pic=-Kconform_pic
9734       fi
9735       ;;
9736
9737     *)
9738       lt_prog_compiler_pic='-fPIC'
9739       ;;
9740     esac
9741   else
9742     # PORTME Check for flag to pass linker flags through the system compiler.
9743     case $host_os in
9744     aix*)
9745       lt_prog_compiler_wl='-Wl,'
9746       if test "$host_cpu" = ia64; then
9747         # AIX 5 now supports IA64 processor
9748         lt_prog_compiler_static='-Bstatic'
9749       else
9750         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9751       fi
9752       ;;
9753
9754     mingw* | cygwin* | pw32* | os2* | cegcc*)
9755       # This hack is so that the source file can tell whether it is being
9756       # built for inclusion in a dll (and should export symbols for example).
9757       lt_prog_compiler_pic='-DDLL_EXPORT'
9758       ;;
9759
9760     hpux9* | hpux10* | hpux11*)
9761       lt_prog_compiler_wl='-Wl,'
9762       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9763       # not for PA HP-UX.
9764       case $host_cpu in
9765       hppa*64*|ia64*)
9766         # +Z the default
9767         ;;
9768       *)
9769         lt_prog_compiler_pic='+Z'
9770         ;;
9771       esac
9772       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9773       lt_prog_compiler_static='${wl}-a ${wl}archive'
9774       ;;
9775
9776     irix5* | irix6* | nonstopux*)
9777       lt_prog_compiler_wl='-Wl,'
9778       # PIC (with -KPIC) is the default.
9779       lt_prog_compiler_static='-non_shared'
9780       ;;
9781
9782     linux* | k*bsd*-gnu)
9783       case $cc_basename in
9784       # old Intel for x86_64 which still supported -KPIC.
9785       ecc*)
9786         lt_prog_compiler_wl='-Wl,'
9787         lt_prog_compiler_pic='-KPIC'
9788         lt_prog_compiler_static='-static'
9789         ;;
9790       # icc used to be incompatible with GCC.
9791       # ICC 10 doesn't accept -KPIC any more.
9792       icc* | ifort*)
9793         lt_prog_compiler_wl='-Wl,'
9794         lt_prog_compiler_pic='-fPIC'
9795         lt_prog_compiler_static='-static'
9796         ;;
9797       # Lahey Fortran 8.1.
9798       lf95*)
9799         lt_prog_compiler_wl='-Wl,'
9800         lt_prog_compiler_pic='--shared'
9801         lt_prog_compiler_static='--static'
9802         ;;
9803       pgcc* | pgf77* | pgf90* | pgf95*)
9804         # Portland Group compilers (*not* the Pentium gcc compiler,
9805         # which looks to be a dead project)
9806         lt_prog_compiler_wl='-Wl,'
9807         lt_prog_compiler_pic='-fpic'
9808         lt_prog_compiler_static='-Bstatic'
9809         ;;
9810       ccc*)
9811         lt_prog_compiler_wl='-Wl,'
9812         # All Alpha code is PIC.
9813         lt_prog_compiler_static='-non_shared'
9814         ;;
9815       xl*)
9816         # IBM XL C 8.0/Fortran 10.1 on PPC
9817         lt_prog_compiler_wl='-Wl,'
9818         lt_prog_compiler_pic='-qpic'
9819         lt_prog_compiler_static='-qstaticlink'
9820         ;;
9821       *)
9822         case `$CC -V 2>&1 | sed 5q` in
9823         *Sun\ C*)
9824           # Sun C 5.9
9825           lt_prog_compiler_pic='-KPIC'
9826           lt_prog_compiler_static='-Bstatic'
9827           lt_prog_compiler_wl='-Wl,'
9828           ;;
9829         *Sun\ F*)
9830           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9831           lt_prog_compiler_pic='-KPIC'
9832           lt_prog_compiler_static='-Bstatic'
9833           lt_prog_compiler_wl=''
9834           ;;
9835         esac
9836         ;;
9837       esac
9838       ;;
9839
9840     newsos6)
9841       lt_prog_compiler_pic='-KPIC'
9842       lt_prog_compiler_static='-Bstatic'
9843       ;;
9844
9845     *nto* | *qnx*)
9846       # QNX uses GNU C++, but need to define -shared option too, otherwise
9847       # it will coredump.
9848       lt_prog_compiler_pic='-fPIC -shared'
9849       ;;
9850
9851     osf3* | osf4* | osf5*)
9852       lt_prog_compiler_wl='-Wl,'
9853       # All OSF/1 code is PIC.
9854       lt_prog_compiler_static='-non_shared'
9855       ;;
9856
9857     rdos*)
9858       lt_prog_compiler_static='-non_shared'
9859       ;;
9860
9861     solaris*)
9862       lt_prog_compiler_pic='-KPIC'
9863       lt_prog_compiler_static='-Bstatic'
9864       case $cc_basename in
9865       f77* | f90* | f95*)
9866         lt_prog_compiler_wl='-Qoption ld ';;
9867       *)
9868         lt_prog_compiler_wl='-Wl,';;
9869       esac
9870       ;;
9871
9872     sunos4*)
9873       lt_prog_compiler_wl='-Qoption ld '
9874       lt_prog_compiler_pic='-PIC'
9875       lt_prog_compiler_static='-Bstatic'
9876       ;;
9877
9878     sysv4 | sysv4.2uw2* | sysv4.3*)
9879       lt_prog_compiler_wl='-Wl,'
9880       lt_prog_compiler_pic='-KPIC'
9881       lt_prog_compiler_static='-Bstatic'
9882       ;;
9883
9884     sysv4*MP*)
9885       if test -d /usr/nec ;then
9886         lt_prog_compiler_pic='-Kconform_pic'
9887         lt_prog_compiler_static='-Bstatic'
9888       fi
9889       ;;
9890
9891     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9892       lt_prog_compiler_wl='-Wl,'
9893       lt_prog_compiler_pic='-KPIC'
9894       lt_prog_compiler_static='-Bstatic'
9895       ;;
9896
9897     unicos*)
9898       lt_prog_compiler_wl='-Wl,'
9899       lt_prog_compiler_can_build_shared=no
9900       ;;
9901
9902     uts4*)
9903       lt_prog_compiler_pic='-pic'
9904       lt_prog_compiler_static='-Bstatic'
9905       ;;
9906
9907     *)
9908       lt_prog_compiler_can_build_shared=no
9909       ;;
9910     esac
9911   fi
9912
9913 case $host_os in
9914   # For platforms which do not support PIC, -DPIC is meaningless:
9915   *djgpp*)
9916     lt_prog_compiler_pic=
9917     ;;
9918   *)
9919     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9920     ;;
9921 esac
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9923 $as_echo "$lt_prog_compiler_pic" >&6; }
9924
9925
9926
9927
9928
9929
9930 #
9931 # Check to make sure the PIC flag actually works.
9932 #
9933 if test -n "$lt_prog_compiler_pic"; then
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9935 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9936 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9937   $as_echo_n "(cached) " >&6
9938 else
9939   lt_cv_prog_compiler_pic_works=no
9940    ac_outfile=conftest.$ac_objext
9941    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9942    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9943    # Insert the option either (1) after the last *FLAGS variable, or
9944    # (2) before a word containing "conftest.", or (3) at the end.
9945    # Note that $ac_compile itself does not contain backslashes and begins
9946    # with a dollar sign (not a hyphen), so the echo should work correctly.
9947    # The option is referenced via a variable to avoid confusing sed.
9948    lt_compile=`echo "$ac_compile" | $SED \
9949    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9950    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9951    -e 's:$: $lt_compiler_flag:'`
9952    (eval echo "\"\$as_me:9952: $lt_compile\"" >&5)
9953    (eval "$lt_compile" 2>conftest.err)
9954    ac_status=$?
9955    cat conftest.err >&5
9956    echo "$as_me:9956: \$? = $ac_status" >&5
9957    if (exit $ac_status) && test -s "$ac_outfile"; then
9958      # The compiler can only warn and ignore the option if not recognized
9959      # So say no if there are warnings other than the usual output.
9960      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9961      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9962      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9963        lt_cv_prog_compiler_pic_works=yes
9964      fi
9965    fi
9966    $RM conftest*
9967
9968 fi
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9970 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9971
9972 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9973     case $lt_prog_compiler_pic in
9974      "" | " "*) ;;
9975      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9976      esac
9977 else
9978     lt_prog_compiler_pic=
9979      lt_prog_compiler_can_build_shared=no
9980 fi
9981
9982 fi
9983
9984
9985
9986
9987
9988
9989 #
9990 # Check to make sure the static flag actually works.
9991 #
9992 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9994 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9995 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9996   $as_echo_n "(cached) " >&6
9997 else
9998   lt_cv_prog_compiler_static_works=no
9999    save_LDFLAGS="$LDFLAGS"
10000    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10001    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10002    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10003      # The linker can only warn and ignore the option if not recognized
10004      # So say no if there are warnings
10005      if test -s conftest.err; then
10006        # Append any errors to the config.log.
10007        cat conftest.err 1>&5
10008        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10009        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10010        if diff conftest.exp conftest.er2 >/dev/null; then
10011          lt_cv_prog_compiler_static_works=yes
10012        fi
10013      else
10014        lt_cv_prog_compiler_static_works=yes
10015      fi
10016    fi
10017    $RM -r conftest*
10018    LDFLAGS="$save_LDFLAGS"
10019
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10022 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10023
10024 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10025     :
10026 else
10027     lt_prog_compiler_static=
10028 fi
10029
10030
10031
10032
10033
10034
10035
10036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10038 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10039   $as_echo_n "(cached) " >&6
10040 else
10041   lt_cv_prog_compiler_c_o=no
10042    $RM -r conftest 2>/dev/null
10043    mkdir conftest
10044    cd conftest
10045    mkdir out
10046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047
10048    lt_compiler_flag="-o out/conftest2.$ac_objext"
10049    # Insert the option either (1) after the last *FLAGS variable, or
10050    # (2) before a word containing "conftest.", or (3) at the end.
10051    # Note that $ac_compile itself does not contain backslashes and begins
10052    # with a dollar sign (not a hyphen), so the echo should work correctly.
10053    lt_compile=`echo "$ac_compile" | $SED \
10054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056    -e 's:$: $lt_compiler_flag:'`
10057    (eval echo "\"\$as_me:10057: $lt_compile\"" >&5)
10058    (eval "$lt_compile" 2>out/conftest.err)
10059    ac_status=$?
10060    cat out/conftest.err >&5
10061    echo "$as_me:10061: \$? = $ac_status" >&5
10062    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10063    then
10064      # The compiler can only warn and ignore the option if not recognized
10065      # So say no if there are warnings
10066      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10067      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10068      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10069        lt_cv_prog_compiler_c_o=yes
10070      fi
10071    fi
10072    chmod u+w . 2>&5
10073    $RM conftest*
10074    # SGI C++ compiler will create directory out/ii_files/ for
10075    # template instantiation
10076    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10077    $RM out/* && rmdir out
10078    cd ..
10079    $RM -r conftest
10080    $RM conftest*
10081
10082 fi
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10084 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10085
10086
10087
10088
10089
10090
10091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10092 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10093 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10094   $as_echo_n "(cached) " >&6
10095 else
10096   lt_cv_prog_compiler_c_o=no
10097    $RM -r conftest 2>/dev/null
10098    mkdir conftest
10099    cd conftest
10100    mkdir out
10101    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10102
10103    lt_compiler_flag="-o out/conftest2.$ac_objext"
10104    # Insert the option either (1) after the last *FLAGS variable, or
10105    # (2) before a word containing "conftest.", or (3) at the end.
10106    # Note that $ac_compile itself does not contain backslashes and begins
10107    # with a dollar sign (not a hyphen), so the echo should work correctly.
10108    lt_compile=`echo "$ac_compile" | $SED \
10109    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10110    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10111    -e 's:$: $lt_compiler_flag:'`
10112    (eval echo "\"\$as_me:10112: $lt_compile\"" >&5)
10113    (eval "$lt_compile" 2>out/conftest.err)
10114    ac_status=$?
10115    cat out/conftest.err >&5
10116    echo "$as_me:10116: \$? = $ac_status" >&5
10117    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10118    then
10119      # The compiler can only warn and ignore the option if not recognized
10120      # So say no if there are warnings
10121      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10122      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10123      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10124        lt_cv_prog_compiler_c_o=yes
10125      fi
10126    fi
10127    chmod u+w . 2>&5
10128    $RM conftest*
10129    # SGI C++ compiler will create directory out/ii_files/ for
10130    # template instantiation
10131    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10132    $RM out/* && rmdir out
10133    cd ..
10134    $RM -r conftest
10135    $RM conftest*
10136
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10139 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10140
10141
10142
10143
10144 hard_links="nottested"
10145 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10146   # do not overwrite the value of need_locks provided by the user
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10148 $as_echo_n "checking if we can lock with hard links... " >&6; }
10149   hard_links=yes
10150   $RM conftest*
10151   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10152   touch conftest.a
10153   ln conftest.a conftest.b 2>&5 || hard_links=no
10154   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10156 $as_echo "$hard_links" >&6; }
10157   if test "$hard_links" = no; then
10158     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10159 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10160     need_locks=warn
10161   fi
10162 else
10163   need_locks=no
10164 fi
10165
10166
10167
10168
10169
10170
10171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10172 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10173
10174   runpath_var=
10175   allow_undefined_flag=
10176   always_export_symbols=no
10177   archive_cmds=
10178   archive_expsym_cmds=
10179   compiler_needs_object=no
10180   enable_shared_with_static_runtimes=no
10181   export_dynamic_flag_spec=
10182   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10183   hardcode_automatic=no
10184   hardcode_direct=no
10185   hardcode_direct_absolute=no
10186   hardcode_libdir_flag_spec=
10187   hardcode_libdir_flag_spec_ld=
10188   hardcode_libdir_separator=
10189   hardcode_minus_L=no
10190   hardcode_shlibpath_var=unsupported
10191   inherit_rpath=no
10192   link_all_deplibs=unknown
10193   module_cmds=
10194   module_expsym_cmds=
10195   old_archive_from_new_cmds=
10196   old_archive_from_expsyms_cmds=
10197   thread_safe_flag_spec=
10198   whole_archive_flag_spec=
10199   # include_expsyms should be a list of space-separated symbols to be *always*
10200   # included in the symbol list
10201   include_expsyms=
10202   # exclude_expsyms can be an extended regexp of symbols to exclude
10203   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10204   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10205   # as well as any symbol that contains `d'.
10206   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10207   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10208   # platforms (ab)use it in PIC code, but their linkers get confused if
10209   # the symbol is explicitly referenced.  Since portable code cannot
10210   # rely on this symbol name, it's probably fine to never include it in
10211   # preloaded symbol tables.
10212   # Exclude shared library initialization/finalization symbols.
10213   extract_expsyms_cmds=
10214
10215   case $host_os in
10216   cygwin* | mingw* | pw32* | cegcc*)
10217     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10218     # When not using gcc, we currently assume that we are using
10219     # Microsoft Visual C++.
10220     if test "$GCC" != yes; then
10221       with_gnu_ld=no
10222     fi
10223     ;;
10224   interix*)
10225     # we just hope/assume this is gcc and not c89 (= MSVC++)
10226     with_gnu_ld=yes
10227     ;;
10228   openbsd*)
10229     with_gnu_ld=no
10230     ;;
10231   linux* | k*bsd*-gnu)
10232     link_all_deplibs=no
10233     ;;
10234   esac
10235
10236   ld_shlibs=yes
10237   if test "$with_gnu_ld" = yes; then
10238     # If archive_cmds runs LD, not CC, wlarc should be empty
10239     wlarc='${wl}'
10240
10241     # Set some defaults for GNU ld with shared library support. These
10242     # are reset later if shared libraries are not supported. Putting them
10243     # here allows them to be overridden if necessary.
10244     runpath_var=LD_RUN_PATH
10245     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10246     export_dynamic_flag_spec='${wl}--export-dynamic'
10247     # ancient GNU ld didn't support --whole-archive et. al.
10248     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10249       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10250     else
10251       whole_archive_flag_spec=
10252     fi
10253     supports_anon_versioning=no
10254     case `$LD -v 2>&1` in
10255       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10256       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10257       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10258       *\ 2.11.*) ;; # other 2.11 versions
10259       *) supports_anon_versioning=yes ;;
10260     esac
10261
10262     # See if GNU ld supports shared libraries.
10263     case $host_os in
10264     aix[3-9]*)
10265       # On AIX/PPC, the GNU linker is very broken
10266       if test "$host_cpu" != ia64; then
10267         ld_shlibs=no
10268         cat <<_LT_EOF 1>&2
10269
10270 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10271 *** to be unable to reliably create shared libraries on AIX.
10272 *** Therefore, libtool is disabling shared libraries support.  If you
10273 *** really care for shared libraries, you may want to modify your PATH
10274 *** so that a non-GNU linker is found, and then restart.
10275
10276 _LT_EOF
10277       fi
10278       ;;
10279
10280     amigaos*)
10281       case $host_cpu in
10282       powerpc)
10283             # see comment about AmigaOS4 .so support
10284             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285             archive_expsym_cmds=''
10286         ;;
10287       m68k)
10288             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)'
10289             hardcode_libdir_flag_spec='-L$libdir'
10290             hardcode_minus_L=yes
10291         ;;
10292       esac
10293       ;;
10294
10295     beos*)
10296       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10297         allow_undefined_flag=unsupported
10298         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10299         # support --undefined.  This deserves some investigation.  FIXME
10300         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10301       else
10302         ld_shlibs=no
10303       fi
10304       ;;
10305
10306     cygwin* | mingw* | pw32* | cegcc*)
10307       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10308       # as there is no search path for DLLs.
10309       hardcode_libdir_flag_spec='-L$libdir'
10310       allow_undefined_flag=unsupported
10311       always_export_symbols=no
10312       enable_shared_with_static_runtimes=yes
10313       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10314
10315       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10317         # If the export-symbols file already is a .def file (1st line
10318         # is EXPORTS), use it as is; otherwise, prepend...
10319         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10320           cp $export_symbols $output_objdir/$soname.def;
10321         else
10322           echo EXPORTS > $output_objdir/$soname.def;
10323           cat $export_symbols >> $output_objdir/$soname.def;
10324         fi~
10325         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10326       else
10327         ld_shlibs=no
10328       fi
10329       ;;
10330
10331     interix[3-9]*)
10332       hardcode_direct=no
10333       hardcode_shlibpath_var=no
10334       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10335       export_dynamic_flag_spec='${wl}-E'
10336       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10337       # Instead, shared libraries are loaded at an image base (0x10000000 by
10338       # default) and relocated if they conflict, which is a slow very memory
10339       # consuming and fragmenting process.  To avoid this, we pick a random,
10340       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10341       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10342       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10343       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'
10344       ;;
10345
10346     gnu* | linux* | tpf* | k*bsd*-gnu)
10347       tmp_diet=no
10348       if test "$host_os" = linux-dietlibc; then
10349         case $cc_basename in
10350           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10351         esac
10352       fi
10353       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10354          && test "$tmp_diet" = no
10355       then
10356         tmp_addflag=
10357         tmp_sharedflag='-shared'
10358         case $cc_basename,$host_cpu in
10359         pgcc*)                          # Portland Group C compiler
10360           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'
10361           tmp_addflag=' $pic_flag'
10362           ;;
10363         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10364           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'
10365           tmp_addflag=' $pic_flag -Mnomain' ;;
10366         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10367           tmp_addflag=' -i_dynamic' ;;
10368         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10369           tmp_addflag=' -i_dynamic -nofor_main' ;;
10370         ifc* | ifort*)                  # Intel Fortran compiler
10371           tmp_addflag=' -nofor_main' ;;
10372         lf95*)                          # Lahey Fortran 8.1
10373           whole_archive_flag_spec=
10374           tmp_sharedflag='--shared' ;;
10375         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10376           tmp_sharedflag='-qmkshrobj'
10377           tmp_addflag= ;;
10378         esac
10379         case `$CC -V 2>&1 | sed 5q` in
10380         *Sun\ C*)                       # Sun C 5.9
10381           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'
10382           compiler_needs_object=yes
10383           tmp_sharedflag='-G' ;;
10384         *Sun\ F*)                       # Sun Fortran 8.3
10385           tmp_sharedflag='-G' ;;
10386         esac
10387         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10388
10389         if test "x$supports_anon_versioning" = xyes; then
10390           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10391             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10392             echo "local: *; };" >> $output_objdir/$libname.ver~
10393             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10394         fi
10395
10396         case $cc_basename in
10397         xlf*)
10398           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10399           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10400           hardcode_libdir_flag_spec=
10401           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10402           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10403           if test "x$supports_anon_versioning" = xyes; then
10404             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10405               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10406               echo "local: *; };" >> $output_objdir/$libname.ver~
10407               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10408           fi
10409           ;;
10410         esac
10411       else
10412         ld_shlibs=no
10413       fi
10414       ;;
10415
10416     netbsd* | netbsdelf*-gnu)
10417       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10418         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10419         wlarc=
10420       else
10421         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10422         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10423       fi
10424       ;;
10425
10426     solaris*)
10427       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10428         ld_shlibs=no
10429         cat <<_LT_EOF 1>&2
10430
10431 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10432 *** create shared libraries on Solaris systems.  Therefore, libtool
10433 *** is disabling shared libraries support.  We urge you to upgrade GNU
10434 *** binutils to release 2.9.1 or newer.  Another option is to modify
10435 *** your PATH or compiler configuration so that the native linker is
10436 *** used, and then restart.
10437
10438 _LT_EOF
10439       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10440         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10441         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10442       else
10443         ld_shlibs=no
10444       fi
10445       ;;
10446
10447     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10448       case `$LD -v 2>&1` in
10449         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10450         ld_shlibs=no
10451         cat <<_LT_EOF 1>&2
10452
10453 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10454 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10455 *** is disabling shared libraries support.  We urge you to upgrade GNU
10456 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10457 *** your PATH or compiler configuration so that the native linker is
10458 *** used, and then restart.
10459
10460 _LT_EOF
10461         ;;
10462         *)
10463           # For security reasons, it is highly recommended that you always
10464           # use absolute paths for naming shared libraries, and exclude the
10465           # DT_RUNPATH tag from executables and libraries.  But doing so
10466           # requires that you compile everything twice, which is a pain.
10467           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10468             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10469             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10471           else
10472             ld_shlibs=no
10473           fi
10474         ;;
10475       esac
10476       ;;
10477
10478     sunos4*)
10479       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10480       wlarc=
10481       hardcode_direct=yes
10482       hardcode_shlibpath_var=no
10483       ;;
10484
10485     *)
10486       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10487         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10489       else
10490         ld_shlibs=no
10491       fi
10492       ;;
10493     esac
10494
10495     if test "$ld_shlibs" = no; then
10496       runpath_var=
10497       hardcode_libdir_flag_spec=
10498       export_dynamic_flag_spec=
10499       whole_archive_flag_spec=
10500     fi
10501   else
10502     # PORTME fill in a description of your system's linker (not GNU ld)
10503     case $host_os in
10504     aix3*)
10505       allow_undefined_flag=unsupported
10506       always_export_symbols=yes
10507       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'
10508       # Note: this linker hardcodes the directories in LIBPATH if there
10509       # are no directories specified by -L.
10510       hardcode_minus_L=yes
10511       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10512         # Neither direct hardcoding nor static linking is supported with a
10513         # broken collect2.
10514         hardcode_direct=unsupported
10515       fi
10516       ;;
10517
10518     aix[4-9]*)
10519       if test "$host_cpu" = ia64; then
10520         # On IA64, the linker does run time linking by default, so we don't
10521         # have to do anything special.
10522         aix_use_runtimelinking=no
10523         exp_sym_flag='-Bexport'
10524         no_entry_flag=""
10525       else
10526         # If we're using GNU nm, then we don't want the "-C" option.
10527         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10528         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10529           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'
10530         else
10531           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'
10532         fi
10533         aix_use_runtimelinking=no
10534
10535         # Test if we are trying to use run time linking or normal
10536         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10537         # need to do runtime linking.
10538         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10539           for ld_flag in $LDFLAGS; do
10540           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10541             aix_use_runtimelinking=yes
10542             break
10543           fi
10544           done
10545           ;;
10546         esac
10547
10548         exp_sym_flag='-bexport'
10549         no_entry_flag='-bnoentry'
10550       fi
10551
10552       # When large executables or shared objects are built, AIX ld can
10553       # have problems creating the table of contents.  If linking a library
10554       # or program results in "error TOC overflow" add -mminimal-toc to
10555       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10556       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10557
10558       archive_cmds=''
10559       hardcode_direct=yes
10560       hardcode_direct_absolute=yes
10561       hardcode_libdir_separator=':'
10562       link_all_deplibs=yes
10563       file_list_spec='${wl}-f,'
10564
10565       if test "$GCC" = yes; then
10566         case $host_os in aix4.[012]|aix4.[012].*)
10567         # We only want to do this on AIX 4.2 and lower, the check
10568         # below for broken collect2 doesn't work under 4.3+
10569           collect2name=`${CC} -print-prog-name=collect2`
10570           if test -f "$collect2name" &&
10571            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10572           then
10573           # We have reworked collect2
10574           :
10575           else
10576           # We have old collect2
10577           hardcode_direct=unsupported
10578           # It fails to find uninstalled libraries when the uninstalled
10579           # path is not listed in the libpath.  Setting hardcode_minus_L
10580           # to unsupported forces relinking
10581           hardcode_minus_L=yes
10582           hardcode_libdir_flag_spec='-L$libdir'
10583           hardcode_libdir_separator=
10584           fi
10585           ;;
10586         esac
10587         shared_flag='-shared'
10588         if test "$aix_use_runtimelinking" = yes; then
10589           shared_flag="$shared_flag "'${wl}-G'
10590         fi
10591         link_all_deplibs=no
10592       else
10593         # not using gcc
10594         if test "$host_cpu" = ia64; then
10595         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10596         # chokes on -Wl,-G. The following line is correct:
10597           shared_flag='-G'
10598         else
10599           if test "$aix_use_runtimelinking" = yes; then
10600             shared_flag='${wl}-G'
10601           else
10602             shared_flag='${wl}-bM:SRE'
10603           fi
10604         fi
10605       fi
10606
10607       export_dynamic_flag_spec='${wl}-bexpall'
10608       # It seems that -bexpall does not export symbols beginning with
10609       # underscore (_), so it is better to generate a list of symbols to export.
10610       always_export_symbols=yes
10611       if test "$aix_use_runtimelinking" = yes; then
10612         # Warning - without using the other runtime loading flags (-brtl),
10613         # -berok will link without error, but may produce a broken library.
10614         allow_undefined_flag='-berok'
10615         # Determine the default libpath from the value encoded in an
10616         # empty executable.
10617         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h.  */
10619
10620 int
10621 main ()
10622 {
10623
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 if ac_fn_c_try_link "$LINENO"; then :
10629
10630 lt_aix_libpath_sed='
10631     /Import File Strings/,/^$/ {
10632         /^0/ {
10633             s/^0  *\(.*\)$/\1/
10634             p
10635         }
10636     }'
10637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10638 # Check for a 64-bit object if we didn't find anything.
10639 if test -z "$aix_libpath"; then
10640   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10641 fi
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext \
10644     conftest$ac_exeext conftest.$ac_ext
10645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10646
10647         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10648         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"
10649       else
10650         if test "$host_cpu" = ia64; then
10651           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10652           allow_undefined_flag="-z nodefs"
10653           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"
10654         else
10655          # Determine the default libpath from the value encoded in an
10656          # empty executable.
10657          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h.  */
10659
10660 int
10661 main ()
10662 {
10663
10664   ;
10665   return 0;
10666 }
10667 _ACEOF
10668 if ac_fn_c_try_link "$LINENO"; then :
10669
10670 lt_aix_libpath_sed='
10671     /Import File Strings/,/^$/ {
10672         /^0/ {
10673             s/^0  *\(.*\)$/\1/
10674             p
10675         }
10676     }'
10677 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10678 # Check for a 64-bit object if we didn't find anything.
10679 if test -z "$aix_libpath"; then
10680   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10681 fi
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext \
10684     conftest$ac_exeext conftest.$ac_ext
10685 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10686
10687          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10688           # Warning - without using the other run time loading flags,
10689           # -berok will link without error, but may produce a broken library.
10690           no_undefined_flag=' ${wl}-bernotok'
10691           allow_undefined_flag=' ${wl}-berok'
10692           # Exported symbols can be pulled into shared objects from archives
10693           whole_archive_flag_spec='$convenience'
10694           archive_cmds_need_lc=yes
10695           # This is similar to how AIX traditionally builds its shared libraries.
10696           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'
10697         fi
10698       fi
10699       ;;
10700
10701     amigaos*)
10702       case $host_cpu in
10703       powerpc)
10704             # see comment about AmigaOS4 .so support
10705             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10706             archive_expsym_cmds=''
10707         ;;
10708       m68k)
10709             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)'
10710             hardcode_libdir_flag_spec='-L$libdir'
10711             hardcode_minus_L=yes
10712         ;;
10713       esac
10714       ;;
10715
10716     bsdi[45]*)
10717       export_dynamic_flag_spec=-rdynamic
10718       ;;
10719
10720     cygwin* | mingw* | pw32* | cegcc*)
10721       # When not using gcc, we currently assume that we are using
10722       # Microsoft Visual C++.
10723       # hardcode_libdir_flag_spec is actually meaningless, as there is
10724       # no search path for DLLs.
10725       hardcode_libdir_flag_spec=' '
10726       allow_undefined_flag=unsupported
10727       # Tell ltmain to make .lib files, not .a files.
10728       libext=lib
10729       # Tell ltmain to make .dll files, not .so files.
10730       shrext_cmds=".dll"
10731       # FIXME: Setting linknames here is a bad hack.
10732       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10733       # The linker will automatically build a .lib file if we build a DLL.
10734       old_archive_from_new_cmds='true'
10735       # FIXME: Should let the user specify the lib program.
10736       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10737       fix_srcfile_path='`cygpath -w "$srcfile"`'
10738       enable_shared_with_static_runtimes=yes
10739       ;;
10740
10741     darwin* | rhapsody*)
10742
10743
10744   archive_cmds_need_lc=no
10745   hardcode_direct=no
10746   hardcode_automatic=yes
10747   hardcode_shlibpath_var=unsupported
10748   whole_archive_flag_spec=''
10749   link_all_deplibs=yes
10750   allow_undefined_flag="$_lt_dar_allow_undefined"
10751   case $cc_basename in
10752      ifort*) _lt_dar_can_shared=yes ;;
10753      *) _lt_dar_can_shared=$GCC ;;
10754   esac
10755   if test "$_lt_dar_can_shared" = "yes"; then
10756     output_verbose_link_cmd=echo
10757     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10758     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10759     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}"
10760     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}"
10761
10762   else
10763   ld_shlibs=no
10764   fi
10765
10766       ;;
10767
10768     dgux*)
10769       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10770       hardcode_libdir_flag_spec='-L$libdir'
10771       hardcode_shlibpath_var=no
10772       ;;
10773
10774     freebsd1*)
10775       ld_shlibs=no
10776       ;;
10777
10778     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10779     # support.  Future versions do this automatically, but an explicit c++rt0.o
10780     # does not break anything, and helps significantly (at the cost of a little
10781     # extra space).
10782     freebsd2.2*)
10783       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10784       hardcode_libdir_flag_spec='-R$libdir'
10785       hardcode_direct=yes
10786       hardcode_shlibpath_var=no
10787       ;;
10788
10789     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10790     freebsd2*)
10791       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10792       hardcode_direct=yes
10793       hardcode_minus_L=yes
10794       hardcode_shlibpath_var=no
10795       ;;
10796
10797     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10798     freebsd* | dragonfly*)
10799       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10800       hardcode_libdir_flag_spec='-R$libdir'
10801       hardcode_direct=yes
10802       hardcode_shlibpath_var=no
10803       ;;
10804
10805     hpux9*)
10806       if test "$GCC" = yes; then
10807         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'
10808       else
10809         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'
10810       fi
10811       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10812       hardcode_libdir_separator=:
10813       hardcode_direct=yes
10814
10815       # hardcode_minus_L: Not really in the search PATH,
10816       # but as the default location of the library.
10817       hardcode_minus_L=yes
10818       export_dynamic_flag_spec='${wl}-E'
10819       ;;
10820
10821     hpux10*)
10822       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10823         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10824       else
10825         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10826       fi
10827       if test "$with_gnu_ld" = no; then
10828         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10829         hardcode_libdir_flag_spec_ld='+b $libdir'
10830         hardcode_libdir_separator=:
10831         hardcode_direct=yes
10832         hardcode_direct_absolute=yes
10833         export_dynamic_flag_spec='${wl}-E'
10834         # hardcode_minus_L: Not really in the search PATH,
10835         # but as the default location of the library.
10836         hardcode_minus_L=yes
10837       fi
10838       ;;
10839
10840     hpux11*)
10841       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10842         case $host_cpu in
10843         hppa*64*)
10844           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10845           ;;
10846         ia64*)
10847           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10848           ;;
10849         *)
10850           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10851           ;;
10852         esac
10853       else
10854         case $host_cpu in
10855         hppa*64*)
10856           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10857           ;;
10858         ia64*)
10859           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10860           ;;
10861         *)
10862           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10863           ;;
10864         esac
10865       fi
10866       if test "$with_gnu_ld" = no; then
10867         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10868         hardcode_libdir_separator=:
10869
10870         case $host_cpu in
10871         hppa*64*|ia64*)
10872           hardcode_direct=no
10873           hardcode_shlibpath_var=no
10874           ;;
10875         *)
10876           hardcode_direct=yes
10877           hardcode_direct_absolute=yes
10878           export_dynamic_flag_spec='${wl}-E'
10879
10880           # hardcode_minus_L: Not really in the search PATH,
10881           # but as the default location of the library.
10882           hardcode_minus_L=yes
10883           ;;
10884         esac
10885       fi
10886       ;;
10887
10888     irix5* | irix6* | nonstopux*)
10889       if test "$GCC" = yes; then
10890         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'
10891         # Try to use the -exported_symbol ld option, if it does not
10892         # work, assume that -exports_file does not work either and
10893         # implicitly export all symbols.
10894         save_LDFLAGS="$LDFLAGS"
10895         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10896         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h.  */
10898 int foo(void) {}
10899 _ACEOF
10900 if ac_fn_c_try_link "$LINENO"; then :
10901   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'
10902
10903 fi
10904 rm -f core conftest.err conftest.$ac_objext \
10905     conftest$ac_exeext conftest.$ac_ext
10906         LDFLAGS="$save_LDFLAGS"
10907       else
10908         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'
10909         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'
10910       fi
10911       archive_cmds_need_lc='no'
10912       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10913       hardcode_libdir_separator=:
10914       inherit_rpath=yes
10915       link_all_deplibs=yes
10916       ;;
10917
10918     netbsd* | netbsdelf*-gnu)
10919       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10920         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10921       else
10922         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10923       fi
10924       hardcode_libdir_flag_spec='-R$libdir'
10925       hardcode_direct=yes
10926       hardcode_shlibpath_var=no
10927       ;;
10928
10929     newsos6)
10930       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10931       hardcode_direct=yes
10932       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10933       hardcode_libdir_separator=:
10934       hardcode_shlibpath_var=no
10935       ;;
10936
10937     *nto* | *qnx*)
10938       ;;
10939
10940     openbsd*)
10941       if test -f /usr/libexec/ld.so; then
10942         hardcode_direct=yes
10943         hardcode_shlibpath_var=no
10944         hardcode_direct_absolute=yes
10945         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10946           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10947           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10948           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10949           export_dynamic_flag_spec='${wl}-E'
10950         else
10951           case $host_os in
10952            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10953              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10954              hardcode_libdir_flag_spec='-R$libdir'
10955              ;;
10956            *)
10957              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10958              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10959              ;;
10960           esac
10961         fi
10962       else
10963         ld_shlibs=no
10964       fi
10965       ;;
10966
10967     os2*)
10968       hardcode_libdir_flag_spec='-L$libdir'
10969       hardcode_minus_L=yes
10970       allow_undefined_flag=unsupported
10971       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'
10972       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10973       ;;
10974
10975     osf3*)
10976       if test "$GCC" = yes; then
10977         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10978         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'
10979       else
10980         allow_undefined_flag=' -expect_unresolved \*'
10981         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'
10982       fi
10983       archive_cmds_need_lc='no'
10984       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10985       hardcode_libdir_separator=:
10986       ;;
10987
10988     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10989       if test "$GCC" = yes; then
10990         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10991         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'
10992         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10993       else
10994         allow_undefined_flag=' -expect_unresolved \*'
10995         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'
10996         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~
10997         $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'
10998
10999         # Both c and cxx compiler support -rpath directly
11000         hardcode_libdir_flag_spec='-rpath $libdir'
11001       fi
11002       archive_cmds_need_lc='no'
11003       hardcode_libdir_separator=:
11004       ;;
11005
11006     solaris*)
11007       no_undefined_flag=' -z defs'
11008       if test "$GCC" = yes; then
11009         wlarc='${wl}'
11010         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11011         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11012           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11013       else
11014         case `$CC -V 2>&1` in
11015         *"Compilers 5.0"*)
11016           wlarc=''
11017           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11018           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11019           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11020           ;;
11021         *)
11022           wlarc='${wl}'
11023           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11024           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11025           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11026           ;;
11027         esac
11028       fi
11029       hardcode_libdir_flag_spec='-R$libdir'
11030       hardcode_shlibpath_var=no
11031       case $host_os in
11032       solaris2.[0-5] | solaris2.[0-5].*) ;;
11033       *)
11034         # The compiler driver will combine and reorder linker options,
11035         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11036         # but is careful enough not to reorder.
11037         # Supported since Solaris 2.6 (maybe 2.5.1?)
11038         if test "$GCC" = yes; then
11039           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11040         else
11041           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11042         fi
11043         ;;
11044       esac
11045       link_all_deplibs=yes
11046       ;;
11047
11048     sunos4*)
11049       if test "x$host_vendor" = xsequent; then
11050         # Use $CC to link under sequent, because it throws in some extra .o
11051         # files that make .init and .fini sections work.
11052         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11053       else
11054         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11055       fi
11056       hardcode_libdir_flag_spec='-L$libdir'
11057       hardcode_direct=yes
11058       hardcode_minus_L=yes
11059       hardcode_shlibpath_var=no
11060       ;;
11061
11062     sysv4)
11063       case $host_vendor in
11064         sni)
11065           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11066           hardcode_direct=yes # is this really true???
11067         ;;
11068         siemens)
11069           ## LD is ld it makes a PLAMLIB
11070           ## CC just makes a GrossModule.
11071           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11072           reload_cmds='$CC -r -o $output$reload_objs'
11073           hardcode_direct=no
11074         ;;
11075         motorola)
11076           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11077           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11078         ;;
11079       esac
11080       runpath_var='LD_RUN_PATH'
11081       hardcode_shlibpath_var=no
11082       ;;
11083
11084     sysv4.3*)
11085       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11086       hardcode_shlibpath_var=no
11087       export_dynamic_flag_spec='-Bexport'
11088       ;;
11089
11090     sysv4*MP*)
11091       if test -d /usr/nec; then
11092         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11093         hardcode_shlibpath_var=no
11094         runpath_var=LD_RUN_PATH
11095         hardcode_runpath_var=yes
11096         ld_shlibs=yes
11097       fi
11098       ;;
11099
11100     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11101       no_undefined_flag='${wl}-z,text'
11102       archive_cmds_need_lc=no
11103       hardcode_shlibpath_var=no
11104       runpath_var='LD_RUN_PATH'
11105
11106       if test "$GCC" = yes; then
11107         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11108         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11109       else
11110         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11111         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11112       fi
11113       ;;
11114
11115     sysv5* | sco3.2v5* | sco5v6*)
11116       # Note: We can NOT use -z defs as we might desire, because we do not
11117       # link with -lc, and that would cause any symbols used from libc to
11118       # always be unresolved, which means just about no library would
11119       # ever link correctly.  If we're not using GNU ld we use -z text
11120       # though, which does catch some bad symbols but isn't as heavy-handed
11121       # as -z defs.
11122       no_undefined_flag='${wl}-z,text'
11123       allow_undefined_flag='${wl}-z,nodefs'
11124       archive_cmds_need_lc=no
11125       hardcode_shlibpath_var=no
11126       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11127       hardcode_libdir_separator=':'
11128       link_all_deplibs=yes
11129       export_dynamic_flag_spec='${wl}-Bexport'
11130       runpath_var='LD_RUN_PATH'
11131
11132       if test "$GCC" = yes; then
11133         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11134         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135       else
11136         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11137         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11138       fi
11139       ;;
11140
11141     uts4*)
11142       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11143       hardcode_libdir_flag_spec='-L$libdir'
11144       hardcode_shlibpath_var=no
11145       ;;
11146
11147     *)
11148       ld_shlibs=no
11149       ;;
11150     esac
11151
11152     if test x$host_vendor = xsni; then
11153       case $host in
11154       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11155         export_dynamic_flag_spec='${wl}-Blargedynsym'
11156         ;;
11157       esac
11158     fi
11159   fi
11160
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11162 $as_echo "$ld_shlibs" >&6; }
11163 test "$ld_shlibs" = no && can_build_shared=no
11164
11165 with_gnu_ld=$with_gnu_ld
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181 #
11182 # Do we need to explicitly link libc?
11183 #
11184 case "x$archive_cmds_need_lc" in
11185 x|xyes)
11186   # Assume -lc should be added
11187   archive_cmds_need_lc=yes
11188
11189   if test "$enable_shared" = yes && test "$GCC" = yes; then
11190     case $archive_cmds in
11191     *'~'*)
11192       # FIXME: we may have to deal with multi-command sequences.
11193       ;;
11194     '$CC '*)
11195       # Test whether the compiler implicitly links with -lc since on some
11196       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11197       # to ld, don't add -lc before -lgcc.
11198       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11199 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11200       $RM conftest*
11201       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11202
11203       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11204   (eval $ac_compile) 2>&5
11205   ac_status=$?
11206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11207   test $ac_status = 0; } 2>conftest.err; then
11208         soname=conftest
11209         lib=conftest
11210         libobjs=conftest.$ac_objext
11211         deplibs=
11212         wl=$lt_prog_compiler_wl
11213         pic_flag=$lt_prog_compiler_pic
11214         compiler_flags=-v
11215         linker_flags=-v
11216         verstring=
11217         output_objdir=.
11218         libname=conftest
11219         lt_save_allow_undefined_flag=$allow_undefined_flag
11220         allow_undefined_flag=
11221         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11222   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11223   ac_status=$?
11224   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225   test $ac_status = 0; }
11226         then
11227           archive_cmds_need_lc=no
11228         else
11229           archive_cmds_need_lc=yes
11230         fi
11231         allow_undefined_flag=$lt_save_allow_undefined_flag
11232       else
11233         cat conftest.err 1>&5
11234       fi
11235       $RM conftest*
11236       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11237 $as_echo "$archive_cmds_need_lc" >&6; }
11238       ;;
11239     esac
11240   fi
11241   ;;
11242 esac
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11401 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11402
11403 if test "$GCC" = yes; then
11404   case $host_os in
11405     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11406     *) lt_awk_arg="/^libraries:/" ;;
11407   esac
11408   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11409   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11410     # if the path contains ";" then we assume it to be the separator
11411     # otherwise default to the standard path separator (i.e. ":") - it is
11412     # assumed that no part of a normal pathname contains ";" but that should
11413     # okay in the real world where ";" in dirpaths is itself problematic.
11414     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11415   else
11416     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11417   fi
11418   # Ok, now we have the path, separated by spaces, we can step through it
11419   # and add multilib dir if necessary.
11420   lt_tmp_lt_search_path_spec=
11421   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11422   for lt_sys_path in $lt_search_path_spec; do
11423     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11424       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11425     else
11426       test -d "$lt_sys_path" && \
11427         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11428     fi
11429   done
11430   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11431 BEGIN {RS=" "; FS="/|\n";} {
11432   lt_foo="";
11433   lt_count=0;
11434   for (lt_i = NF; lt_i > 0; lt_i--) {
11435     if ($lt_i != "" && $lt_i != ".") {
11436       if ($lt_i == "..") {
11437         lt_count++;
11438       } else {
11439         if (lt_count == 0) {
11440           lt_foo="/" $lt_i lt_foo;
11441         } else {
11442           lt_count--;
11443         }
11444       }
11445     }
11446   }
11447   if (lt_foo != "") { lt_freq[lt_foo]++; }
11448   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11449 }'`
11450   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11451 else
11452   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11453 fi
11454 library_names_spec=
11455 libname_spec='lib$name'
11456 soname_spec=
11457 shrext_cmds=".so"
11458 postinstall_cmds=
11459 postuninstall_cmds=
11460 finish_cmds=
11461 finish_eval=
11462 shlibpath_var=
11463 shlibpath_overrides_runpath=unknown
11464 version_type=none
11465 dynamic_linker="$host_os ld.so"
11466 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11467 need_lib_prefix=unknown
11468 hardcode_into_libs=no
11469
11470 # when you set need_version to no, make sure it does not cause -set_version
11471 # flags to be left without arguments
11472 need_version=unknown
11473
11474 case $host_os in
11475 aix3*)
11476   version_type=linux
11477   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11478   shlibpath_var=LIBPATH
11479
11480   # AIX 3 has no versioning support, so we append a major version to the name.
11481   soname_spec='${libname}${release}${shared_ext}$major'
11482   ;;
11483
11484 aix[4-9]*)
11485   version_type=linux
11486   need_lib_prefix=no
11487   need_version=no
11488   hardcode_into_libs=yes
11489   if test "$host_cpu" = ia64; then
11490     # AIX 5 supports IA64
11491     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11492     shlibpath_var=LD_LIBRARY_PATH
11493   else
11494     # With GCC up to 2.95.x, collect2 would create an import file
11495     # for dependence libraries.  The import file would start with
11496     # the line `#! .'.  This would cause the generated library to
11497     # depend on `.', always an invalid library.  This was fixed in
11498     # development snapshots of GCC prior to 3.0.
11499     case $host_os in
11500       aix4 | aix4.[01] | aix4.[01].*)
11501       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11502            echo ' yes '
11503            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11504         :
11505       else
11506         can_build_shared=no
11507       fi
11508       ;;
11509     esac
11510     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11511     # soname into executable. Probably we can add versioning support to
11512     # collect2, so additional links can be useful in future.
11513     if test "$aix_use_runtimelinking" = yes; then
11514       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11515       # instead of lib<name>.a to let people know that these are not
11516       # typical AIX shared libraries.
11517       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11518     else
11519       # We preserve .a as extension for shared libraries through AIX4.2
11520       # and later when we are not doing run time linking.
11521       library_names_spec='${libname}${release}.a $libname.a'
11522       soname_spec='${libname}${release}${shared_ext}$major'
11523     fi
11524     shlibpath_var=LIBPATH
11525   fi
11526   ;;
11527
11528 amigaos*)
11529   case $host_cpu in
11530   powerpc)
11531     # Since July 2007 AmigaOS4 officially supports .so libraries.
11532     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11533     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534     ;;
11535   m68k)
11536     library_names_spec='$libname.ixlibrary $libname.a'
11537     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11538     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'
11539     ;;
11540   esac
11541   ;;
11542
11543 beos*)
11544   library_names_spec='${libname}${shared_ext}'
11545   dynamic_linker="$host_os ld.so"
11546   shlibpath_var=LIBRARY_PATH
11547   ;;
11548
11549 bsdi[45]*)
11550   version_type=linux
11551   need_version=no
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11555   shlibpath_var=LD_LIBRARY_PATH
11556   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11557   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11558   # the default ld.so.conf also contains /usr/contrib/lib and
11559   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11560   # libtool to hard-code these into programs
11561   ;;
11562
11563 cygwin* | mingw* | pw32* | cegcc*)
11564   version_type=windows
11565   shrext_cmds=".dll"
11566   need_version=no
11567   need_lib_prefix=no
11568
11569   case $GCC,$host_os in
11570   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11571     library_names_spec='$libname.dll.a'
11572     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11573     postinstall_cmds='base_file=`basename \${file}`~
11574       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11575       dldir=$destdir/`dirname \$dlpath`~
11576       test -d \$dldir || mkdir -p \$dldir~
11577       $install_prog $dir/$dlname \$dldir/$dlname~
11578       chmod a+x \$dldir/$dlname~
11579       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11580         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11581       fi'
11582     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11583       dlpath=$dir/\$dldll~
11584        $RM \$dlpath'
11585     shlibpath_overrides_runpath=yes
11586
11587     case $host_os in
11588     cygwin*)
11589       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11590       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11591       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11592       ;;
11593     mingw* | cegcc*)
11594       # MinGW DLLs use traditional 'lib' prefix
11595       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11596       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11597       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11598         # It is most probably a Windows format PATH printed by
11599         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11600         # path with ; separators, and with drive letters. We can handle the
11601         # drive letters (cygwin fileutils understands them), so leave them,
11602         # especially as we might pass files found there to a mingw objdump,
11603         # which wouldn't understand a cygwinified path. Ahh.
11604         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11605       else
11606         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11607       fi
11608       ;;
11609     pw32*)
11610       # pw32 DLLs use 'pw' prefix rather than 'lib'
11611       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11612       ;;
11613     esac
11614     ;;
11615
11616   *)
11617     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11618     ;;
11619   esac
11620   dynamic_linker='Win32 ld.exe'
11621   # FIXME: first we should search . and the directory the executable is in
11622   shlibpath_var=PATH
11623   ;;
11624
11625 darwin* | rhapsody*)
11626   dynamic_linker="$host_os dyld"
11627   version_type=darwin
11628   need_lib_prefix=no
11629   need_version=no
11630   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11631   soname_spec='${libname}${release}${major}$shared_ext'
11632   shlibpath_overrides_runpath=yes
11633   shlibpath_var=DYLD_LIBRARY_PATH
11634   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11635
11636   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11637   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11638   ;;
11639
11640 dgux*)
11641   version_type=linux
11642   need_lib_prefix=no
11643   need_version=no
11644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11645   soname_spec='${libname}${release}${shared_ext}$major'
11646   shlibpath_var=LD_LIBRARY_PATH
11647   ;;
11648
11649 freebsd1*)
11650   dynamic_linker=no
11651   ;;
11652
11653 freebsd* | dragonfly*)
11654   # DragonFly does not have aout.  When/if they implement a new
11655   # versioning mechanism, adjust this.
11656   if test -x /usr/bin/objformat; then
11657     objformat=`/usr/bin/objformat`
11658   else
11659     case $host_os in
11660     freebsd[123]*) objformat=aout ;;
11661     *) objformat=elf ;;
11662     esac
11663   fi
11664   version_type=freebsd-$objformat
11665   case $version_type in
11666     freebsd-elf*)
11667       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11668       need_version=no
11669       need_lib_prefix=no
11670       ;;
11671     freebsd-*)
11672       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11673       need_version=yes
11674       ;;
11675   esac
11676   shlibpath_var=LD_LIBRARY_PATH
11677   case $host_os in
11678   freebsd2*)
11679     shlibpath_overrides_runpath=yes
11680     ;;
11681   freebsd3.[01]* | freebsdelf3.[01]*)
11682     shlibpath_overrides_runpath=yes
11683     hardcode_into_libs=yes
11684     ;;
11685   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11686   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11687     shlibpath_overrides_runpath=no
11688     hardcode_into_libs=yes
11689     ;;
11690   *) # from 4.6 on, and DragonFly
11691     shlibpath_overrides_runpath=yes
11692     hardcode_into_libs=yes
11693     ;;
11694   esac
11695   ;;
11696
11697 gnu*)
11698   version_type=linux
11699   need_lib_prefix=no
11700   need_version=no
11701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11702   soname_spec='${libname}${release}${shared_ext}$major'
11703   shlibpath_var=LD_LIBRARY_PATH
11704   hardcode_into_libs=yes
11705   ;;
11706
11707 hpux9* | hpux10* | hpux11*)
11708   # Give a soname corresponding to the major version so that dld.sl refuses to
11709   # link against other versions.
11710   version_type=sunos
11711   need_lib_prefix=no
11712   need_version=no
11713   case $host_cpu in
11714   ia64*)
11715     shrext_cmds='.so'
11716     hardcode_into_libs=yes
11717     dynamic_linker="$host_os dld.so"
11718     shlibpath_var=LD_LIBRARY_PATH
11719     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11720     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11721     soname_spec='${libname}${release}${shared_ext}$major'
11722     if test "X$HPUX_IA64_MODE" = X32; then
11723       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11724     else
11725       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11726     fi
11727     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11728     ;;
11729   hppa*64*)
11730     shrext_cmds='.sl'
11731     hardcode_into_libs=yes
11732     dynamic_linker="$host_os dld.sl"
11733     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11734     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11736     soname_spec='${libname}${release}${shared_ext}$major'
11737     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11738     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11739     ;;
11740   *)
11741     shrext_cmds='.sl'
11742     dynamic_linker="$host_os dld.sl"
11743     shlibpath_var=SHLIB_PATH
11744     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11745     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11746     soname_spec='${libname}${release}${shared_ext}$major'
11747     ;;
11748   esac
11749   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11750   postinstall_cmds='chmod 555 $lib'
11751   ;;
11752
11753 interix[3-9]*)
11754   version_type=linux
11755   need_lib_prefix=no
11756   need_version=no
11757   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11758   soname_spec='${libname}${release}${shared_ext}$major'
11759   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   shlibpath_overrides_runpath=no
11762   hardcode_into_libs=yes
11763   ;;
11764
11765 irix5* | irix6* | nonstopux*)
11766   case $host_os in
11767     nonstopux*) version_type=nonstopux ;;
11768     *)
11769         if test "$lt_cv_prog_gnu_ld" = yes; then
11770                 version_type=linux
11771         else
11772                 version_type=irix
11773         fi ;;
11774   esac
11775   need_lib_prefix=no
11776   need_version=no
11777   soname_spec='${libname}${release}${shared_ext}$major'
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11779   case $host_os in
11780   irix5* | nonstopux*)
11781     libsuff= shlibsuff=
11782     ;;
11783   *)
11784     case $LD in # libtool.m4 will add one of these switches to LD
11785     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11786       libsuff= shlibsuff= libmagic=32-bit;;
11787     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11788       libsuff=32 shlibsuff=N32 libmagic=N32;;
11789     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11790       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11791     *) libsuff= shlibsuff= libmagic=never-match;;
11792     esac
11793     ;;
11794   esac
11795   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11796   shlibpath_overrides_runpath=no
11797   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11798   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11799   hardcode_into_libs=yes
11800   ;;
11801
11802 # No shared lib support for Linux oldld, aout, or coff.
11803 linux*oldld* | linux*aout* | linux*coff*)
11804   dynamic_linker=no
11805   ;;
11806
11807 # This must be Linux ELF.
11808 linux* | k*bsd*-gnu)
11809   version_type=linux
11810   need_lib_prefix=no
11811   need_version=no
11812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813   soname_spec='${libname}${release}${shared_ext}$major'
11814   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11815   shlibpath_var=LD_LIBRARY_PATH
11816   shlibpath_overrides_runpath=no
11817   # Some binutils ld are patched to set DT_RUNPATH
11818   save_LDFLAGS=$LDFLAGS
11819   save_libdir=$libdir
11820   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11821        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11823 /* end confdefs.h.  */
11824
11825 int
11826 main ()
11827 {
11828
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 if ac_fn_c_try_link "$LINENO"; then :
11834   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11835   shlibpath_overrides_runpath=yes
11836 fi
11837 fi
11838 rm -f core conftest.err conftest.$ac_objext \
11839     conftest$ac_exeext conftest.$ac_ext
11840   LDFLAGS=$save_LDFLAGS
11841   libdir=$save_libdir
11842
11843   # This implies no fast_install, which is unacceptable.
11844   # Some rework will be needed to allow for fast_install
11845   # before this can be enabled.
11846   hardcode_into_libs=yes
11847
11848   # Append ld.so.conf contents to the search path
11849   if test -f /etc/ld.so.conf; then
11850     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' ' '`
11851     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11852   fi
11853
11854   # We used to test for /lib/ld.so.1 and disable shared libraries on
11855   # powerpc, because MkLinux only supported shared libraries with the
11856   # GNU dynamic linker.  Since this was broken with cross compilers,
11857   # most powerpc-linux boxes support dynamic linking these days and
11858   # people can always --disable-shared, the test was removed, and we
11859   # assume the GNU/Linux dynamic linker is in use.
11860   dynamic_linker='GNU/Linux ld.so'
11861   ;;
11862
11863 netbsdelf*-gnu)
11864   version_type=linux
11865   need_lib_prefix=no
11866   need_version=no
11867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11868   soname_spec='${libname}${release}${shared_ext}$major'
11869   shlibpath_var=LD_LIBRARY_PATH
11870   shlibpath_overrides_runpath=no
11871   hardcode_into_libs=yes
11872   dynamic_linker='NetBSD ld.elf_so'
11873   ;;
11874
11875 netbsd*)
11876   version_type=sunos
11877   need_lib_prefix=no
11878   need_version=no
11879   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11881     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11882     dynamic_linker='NetBSD (a.out) ld.so'
11883   else
11884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11885     soname_spec='${libname}${release}${shared_ext}$major'
11886     dynamic_linker='NetBSD ld.elf_so'
11887   fi
11888   shlibpath_var=LD_LIBRARY_PATH
11889   shlibpath_overrides_runpath=yes
11890   hardcode_into_libs=yes
11891   ;;
11892
11893 newsos6)
11894   version_type=linux
11895   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896   shlibpath_var=LD_LIBRARY_PATH
11897   shlibpath_overrides_runpath=yes
11898   ;;
11899
11900 *nto* | *qnx*)
11901   version_type=qnx
11902   need_lib_prefix=no
11903   need_version=no
11904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905   soname_spec='${libname}${release}${shared_ext}$major'
11906   shlibpath_var=LD_LIBRARY_PATH
11907   shlibpath_overrides_runpath=no
11908   hardcode_into_libs=yes
11909   dynamic_linker='ldqnx.so'
11910   ;;
11911
11912 openbsd*)
11913   version_type=sunos
11914   sys_lib_dlsearch_path_spec="/usr/lib"
11915   need_lib_prefix=no
11916   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11917   case $host_os in
11918     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11919     *)                          need_version=no  ;;
11920   esac
11921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11922   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11923   shlibpath_var=LD_LIBRARY_PATH
11924   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11925     case $host_os in
11926       openbsd2.[89] | openbsd2.[89].*)
11927         shlibpath_overrides_runpath=no
11928         ;;
11929       *)
11930         shlibpath_overrides_runpath=yes
11931         ;;
11932       esac
11933   else
11934     shlibpath_overrides_runpath=yes
11935   fi
11936   ;;
11937
11938 os2*)
11939   libname_spec='$name'
11940   shrext_cmds=".dll"
11941   need_lib_prefix=no
11942   library_names_spec='$libname${shared_ext} $libname.a'
11943   dynamic_linker='OS/2 ld.exe'
11944   shlibpath_var=LIBPATH
11945   ;;
11946
11947 osf3* | osf4* | osf5*)
11948   version_type=osf
11949   need_lib_prefix=no
11950   need_version=no
11951   soname_spec='${libname}${release}${shared_ext}$major'
11952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953   shlibpath_var=LD_LIBRARY_PATH
11954   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11955   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11956   ;;
11957
11958 rdos*)
11959   dynamic_linker=no
11960   ;;
11961
11962 solaris*)
11963   version_type=linux
11964   need_lib_prefix=no
11965   need_version=no
11966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11967   soname_spec='${libname}${release}${shared_ext}$major'
11968   shlibpath_var=LD_LIBRARY_PATH
11969   shlibpath_overrides_runpath=yes
11970   hardcode_into_libs=yes
11971   # ldd complains unless libraries are executable
11972   postinstall_cmds='chmod +x $lib'
11973   ;;
11974
11975 sunos4*)
11976   version_type=sunos
11977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11978   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11979   shlibpath_var=LD_LIBRARY_PATH
11980   shlibpath_overrides_runpath=yes
11981   if test "$with_gnu_ld" = yes; then
11982     need_lib_prefix=no
11983   fi
11984   need_version=yes
11985   ;;
11986
11987 sysv4 | sysv4.3*)
11988   version_type=linux
11989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11990   soname_spec='${libname}${release}${shared_ext}$major'
11991   shlibpath_var=LD_LIBRARY_PATH
11992   case $host_vendor in
11993     sni)
11994       shlibpath_overrides_runpath=no
11995       need_lib_prefix=no
11996       runpath_var=LD_RUN_PATH
11997       ;;
11998     siemens)
11999       need_lib_prefix=no
12000       ;;
12001     motorola)
12002       need_lib_prefix=no
12003       need_version=no
12004       shlibpath_overrides_runpath=no
12005       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12006       ;;
12007   esac
12008   ;;
12009
12010 sysv4*MP*)
12011   if test -d /usr/nec ;then
12012     version_type=linux
12013     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12014     soname_spec='$libname${shared_ext}.$major'
12015     shlibpath_var=LD_LIBRARY_PATH
12016   fi
12017   ;;
12018
12019 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12020   version_type=freebsd-elf
12021   need_lib_prefix=no
12022   need_version=no
12023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12024   soname_spec='${libname}${release}${shared_ext}$major'
12025   shlibpath_var=LD_LIBRARY_PATH
12026   shlibpath_overrides_runpath=yes
12027   hardcode_into_libs=yes
12028   if test "$with_gnu_ld" = yes; then
12029     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12030   else
12031     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12032     case $host_os in
12033       sco3.2v5*)
12034         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12035         ;;
12036     esac
12037   fi
12038   sys_lib_dlsearch_path_spec='/usr/lib'
12039   ;;
12040
12041 tpf*)
12042   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12043   version_type=linux
12044   need_lib_prefix=no
12045   need_version=no
12046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047   shlibpath_var=LD_LIBRARY_PATH
12048   shlibpath_overrides_runpath=no
12049   hardcode_into_libs=yes
12050   ;;
12051
12052 uts4*)
12053   version_type=linux
12054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12055   soname_spec='${libname}${release}${shared_ext}$major'
12056   shlibpath_var=LD_LIBRARY_PATH
12057   ;;
12058
12059 *)
12060   dynamic_linker=no
12061   ;;
12062 esac
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12064 $as_echo "$dynamic_linker" >&6; }
12065 test "$dynamic_linker" = no && can_build_shared=no
12066
12067 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12068 if test "$GCC" = yes; then
12069   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12070 fi
12071
12072 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12073   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12074 fi
12075 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12076   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12077 fi
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12166 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12167 hardcode_action=
12168 if test -n "$hardcode_libdir_flag_spec" ||
12169    test -n "$runpath_var" ||
12170    test "X$hardcode_automatic" = "Xyes" ; then
12171
12172   # We can hardcode non-existent directories.
12173   if test "$hardcode_direct" != no &&
12174      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12175      # have to relink, otherwise we might link with an installed library
12176      # when we should be linking with a yet-to-be-installed one
12177      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12178      test "$hardcode_minus_L" != no; then
12179     # Linking always hardcodes the temporary library directory.
12180     hardcode_action=relink
12181   else
12182     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12183     hardcode_action=immediate
12184   fi
12185 else
12186   # We cannot hardcode anything, or else we can only hardcode existing
12187   # directories.
12188   hardcode_action=unsupported
12189 fi
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12191 $as_echo "$hardcode_action" >&6; }
12192
12193 if test "$hardcode_action" = relink ||
12194    test "$inherit_rpath" = yes; then
12195   # Fast installation is not supported
12196   enable_fast_install=no
12197 elif test "$shlibpath_overrides_runpath" = yes ||
12198      test "$enable_shared" = no; then
12199   # Fast installation is not necessary
12200   enable_fast_install=needless
12201 fi
12202
12203
12204
12205
12206
12207
12208   if test "x$enable_dlopen" != xyes; then
12209   enable_dlopen=unknown
12210   enable_dlopen_self=unknown
12211   enable_dlopen_self_static=unknown
12212 else
12213   lt_cv_dlopen=no
12214   lt_cv_dlopen_libs=
12215
12216   case $host_os in
12217   beos*)
12218     lt_cv_dlopen="load_add_on"
12219     lt_cv_dlopen_libs=
12220     lt_cv_dlopen_self=yes
12221     ;;
12222
12223   mingw* | pw32* | cegcc*)
12224     lt_cv_dlopen="LoadLibrary"
12225     lt_cv_dlopen_libs=
12226     ;;
12227
12228   cygwin*)
12229     lt_cv_dlopen="dlopen"
12230     lt_cv_dlopen_libs=
12231     ;;
12232
12233   darwin*)
12234   # if libdl is installed we need to link against it
12235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12236 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12237 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240   ac_check_lib_save_LIBS=$LIBS
12241 LIBS="-ldl  $LIBS"
12242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12243 /* end confdefs.h.  */
12244
12245 /* Override any GCC internal prototype to avoid an error.
12246    Use char because int might match the return type of a GCC
12247    builtin and then its argument prototype would still apply.  */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char dlopen ();
12252 int
12253 main ()
12254 {
12255 return dlopen ();
12256   ;
12257   return 0;
12258 }
12259 _ACEOF
12260 if ac_fn_c_try_link "$LINENO"; then :
12261   ac_cv_lib_dl_dlopen=yes
12262 else
12263   ac_cv_lib_dl_dlopen=no
12264 fi
12265 rm -f core conftest.err conftest.$ac_objext \
12266     conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12268 fi
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12270 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12271 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12272   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12273 else
12274
12275     lt_cv_dlopen="dyld"
12276     lt_cv_dlopen_libs=
12277     lt_cv_dlopen_self=yes
12278
12279 fi
12280
12281     ;;
12282
12283   *)
12284     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12285 if test "x$ac_cv_func_shl_load" = x""yes; then :
12286   lt_cv_dlopen="shl_load"
12287 else
12288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12289 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12290 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12291   $as_echo_n "(cached) " >&6
12292 else
12293   ac_check_lib_save_LIBS=$LIBS
12294 LIBS="-ldld  $LIBS"
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297
12298 /* Override any GCC internal prototype to avoid an error.
12299    Use char because int might match the return type of a GCC
12300    builtin and then its argument prototype would still apply.  */
12301 #ifdef __cplusplus
12302 extern "C"
12303 #endif
12304 char shl_load ();
12305 int
12306 main ()
12307 {
12308 return shl_load ();
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 if ac_fn_c_try_link "$LINENO"; then :
12314   ac_cv_lib_dld_shl_load=yes
12315 else
12316   ac_cv_lib_dld_shl_load=no
12317 fi
12318 rm -f core conftest.err conftest.$ac_objext \
12319     conftest$ac_exeext conftest.$ac_ext
12320 LIBS=$ac_check_lib_save_LIBS
12321 fi
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12323 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12324 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12325   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12326 else
12327   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12328 if test "x$ac_cv_func_dlopen" = x""yes; then :
12329   lt_cv_dlopen="dlopen"
12330 else
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12332 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12333 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-ldl  $LIBS"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340
12341 /* Override any GCC internal prototype to avoid an error.
12342    Use char because int might match the return type of a GCC
12343    builtin and then its argument prototype would still apply.  */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char dlopen ();
12348 int
12349 main ()
12350 {
12351 return dlopen ();
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12357   ac_cv_lib_dl_dlopen=yes
12358 else
12359   ac_cv_lib_dl_dlopen=no
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext \
12362     conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12367 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12368   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12369 else
12370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12371 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12372 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12373   $as_echo_n "(cached) " >&6
12374 else
12375   ac_check_lib_save_LIBS=$LIBS
12376 LIBS="-lsvld  $LIBS"
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h.  */
12379
12380 /* Override any GCC internal prototype to avoid an error.
12381    Use char because int might match the return type of a GCC
12382    builtin and then its argument prototype would still apply.  */
12383 #ifdef __cplusplus
12384 extern "C"
12385 #endif
12386 char dlopen ();
12387 int
12388 main ()
12389 {
12390 return dlopen ();
12391   ;
12392   return 0;
12393 }
12394 _ACEOF
12395 if ac_fn_c_try_link "$LINENO"; then :
12396   ac_cv_lib_svld_dlopen=yes
12397 else
12398   ac_cv_lib_svld_dlopen=no
12399 fi
12400 rm -f core conftest.err conftest.$ac_objext \
12401     conftest$ac_exeext conftest.$ac_ext
12402 LIBS=$ac_check_lib_save_LIBS
12403 fi
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12405 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12406 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12407   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12408 else
12409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12410 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12411 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12412   $as_echo_n "(cached) " >&6
12413 else
12414   ac_check_lib_save_LIBS=$LIBS
12415 LIBS="-ldld  $LIBS"
12416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 /* end confdefs.h.  */
12418
12419 /* Override any GCC internal prototype to avoid an error.
12420    Use char because int might match the return type of a GCC
12421    builtin and then its argument prototype would still apply.  */
12422 #ifdef __cplusplus
12423 extern "C"
12424 #endif
12425 char dld_link ();
12426 int
12427 main ()
12428 {
12429 return dld_link ();
12430   ;
12431   return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_link "$LINENO"; then :
12435   ac_cv_lib_dld_dld_link=yes
12436 else
12437   ac_cv_lib_dld_dld_link=no
12438 fi
12439 rm -f core conftest.err conftest.$ac_objext \
12440     conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12442 fi
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12444 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12445 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12446   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12447 fi
12448
12449
12450 fi
12451
12452
12453 fi
12454
12455
12456 fi
12457
12458
12459 fi
12460
12461
12462 fi
12463
12464     ;;
12465   esac
12466
12467   if test "x$lt_cv_dlopen" != xno; then
12468     enable_dlopen=yes
12469   else
12470     enable_dlopen=no
12471   fi
12472
12473   case $lt_cv_dlopen in
12474   dlopen)
12475     save_CPPFLAGS="$CPPFLAGS"
12476     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12477
12478     save_LDFLAGS="$LDFLAGS"
12479     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12480
12481     save_LIBS="$LIBS"
12482     LIBS="$lt_cv_dlopen_libs $LIBS"
12483
12484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12485 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12486 if test "${lt_cv_dlopen_self+set}" = set; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489           if test "$cross_compiling" = yes; then :
12490   lt_cv_dlopen_self=cross
12491 else
12492   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12493   lt_status=$lt_dlunknown
12494   cat > conftest.$ac_ext <<_LT_EOF
12495 #line 12495 "configure"
12496 #include "confdefs.h"
12497
12498 #if HAVE_DLFCN_H
12499 #include <dlfcn.h>
12500 #endif
12501
12502 #include <stdio.h>
12503
12504 #ifdef RTLD_GLOBAL
12505 #  define LT_DLGLOBAL           RTLD_GLOBAL
12506 #else
12507 #  ifdef DL_GLOBAL
12508 #    define LT_DLGLOBAL         DL_GLOBAL
12509 #  else
12510 #    define LT_DLGLOBAL         0
12511 #  endif
12512 #endif
12513
12514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12515    find out it does not work in some platform. */
12516 #ifndef LT_DLLAZY_OR_NOW
12517 #  ifdef RTLD_LAZY
12518 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12519 #  else
12520 #    ifdef DL_LAZY
12521 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12522 #    else
12523 #      ifdef RTLD_NOW
12524 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12525 #      else
12526 #        ifdef DL_NOW
12527 #          define LT_DLLAZY_OR_NOW      DL_NOW
12528 #        else
12529 #          define LT_DLLAZY_OR_NOW      0
12530 #        endif
12531 #      endif
12532 #    endif
12533 #  endif
12534 #endif
12535
12536 void fnord() { int i=42;}
12537 int main ()
12538 {
12539   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12540   int status = $lt_dlunknown;
12541
12542   if (self)
12543     {
12544       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12545       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12546       /* dlclose (self); */
12547     }
12548   else
12549     puts (dlerror ());
12550
12551   return status;
12552 }
12553 _LT_EOF
12554   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12555   (eval $ac_link) 2>&5
12556   ac_status=$?
12557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12559     (./conftest; exit; ) >&5 2>/dev/null
12560     lt_status=$?
12561     case x$lt_status in
12562       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12563       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12564       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12565     esac
12566   else :
12567     # compilation failed
12568     lt_cv_dlopen_self=no
12569   fi
12570 fi
12571 rm -fr conftest*
12572
12573
12574 fi
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12576 $as_echo "$lt_cv_dlopen_self" >&6; }
12577
12578     if test "x$lt_cv_dlopen_self" = xyes; then
12579       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12580       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12581 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12582 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12583   $as_echo_n "(cached) " >&6
12584 else
12585           if test "$cross_compiling" = yes; then :
12586   lt_cv_dlopen_self_static=cross
12587 else
12588   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12589   lt_status=$lt_dlunknown
12590   cat > conftest.$ac_ext <<_LT_EOF
12591 #line 12591 "configure"
12592 #include "confdefs.h"
12593
12594 #if HAVE_DLFCN_H
12595 #include <dlfcn.h>
12596 #endif
12597
12598 #include <stdio.h>
12599
12600 #ifdef RTLD_GLOBAL
12601 #  define LT_DLGLOBAL           RTLD_GLOBAL
12602 #else
12603 #  ifdef DL_GLOBAL
12604 #    define LT_DLGLOBAL         DL_GLOBAL
12605 #  else
12606 #    define LT_DLGLOBAL         0
12607 #  endif
12608 #endif
12609
12610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12611    find out it does not work in some platform. */
12612 #ifndef LT_DLLAZY_OR_NOW
12613 #  ifdef RTLD_LAZY
12614 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12615 #  else
12616 #    ifdef DL_LAZY
12617 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12618 #    else
12619 #      ifdef RTLD_NOW
12620 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12621 #      else
12622 #        ifdef DL_NOW
12623 #          define LT_DLLAZY_OR_NOW      DL_NOW
12624 #        else
12625 #          define LT_DLLAZY_OR_NOW      0
12626 #        endif
12627 #      endif
12628 #    endif
12629 #  endif
12630 #endif
12631
12632 void fnord() { int i=42;}
12633 int main ()
12634 {
12635   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12636   int status = $lt_dlunknown;
12637
12638   if (self)
12639     {
12640       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12641       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12642       /* dlclose (self); */
12643     }
12644   else
12645     puts (dlerror ());
12646
12647   return status;
12648 }
12649 _LT_EOF
12650   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12651   (eval $ac_link) 2>&5
12652   ac_status=$?
12653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12655     (./conftest; exit; ) >&5 2>/dev/null
12656     lt_status=$?
12657     case x$lt_status in
12658       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12659       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12660       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12661     esac
12662   else :
12663     # compilation failed
12664     lt_cv_dlopen_self_static=no
12665   fi
12666 fi
12667 rm -fr conftest*
12668
12669
12670 fi
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12672 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12673     fi
12674
12675     CPPFLAGS="$save_CPPFLAGS"
12676     LDFLAGS="$save_LDFLAGS"
12677     LIBS="$save_LIBS"
12678     ;;
12679   esac
12680
12681   case $lt_cv_dlopen_self in
12682   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12683   *) enable_dlopen_self=unknown ;;
12684   esac
12685
12686   case $lt_cv_dlopen_self_static in
12687   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12688   *) enable_dlopen_self_static=unknown ;;
12689   esac
12690 fi
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708 striplib=
12709 old_striplib=
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12711 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12712 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12713   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12714   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12716 $as_echo "yes" >&6; }
12717 else
12718 # FIXME - insert some real tests, host_os isn't really good enough
12719   case $host_os in
12720   darwin*)
12721     if test -n "$STRIP" ; then
12722       striplib="$STRIP -x"
12723       old_striplib="$STRIP -S"
12724       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12725 $as_echo "yes" >&6; }
12726     else
12727       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729     fi
12730     ;;
12731   *)
12732     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 $as_echo "no" >&6; }
12734     ;;
12735   esac
12736 fi
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749   # Report which library types will actually be built
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12751 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12753 $as_echo "$can_build_shared" >&6; }
12754
12755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12756 $as_echo_n "checking whether to build shared libraries... " >&6; }
12757   test "$can_build_shared" = "no" && enable_shared=no
12758
12759   # On AIX, shared libraries and static libraries use the same namespace, and
12760   # are all built from PIC.
12761   case $host_os in
12762   aix3*)
12763     test "$enable_shared" = yes && enable_static=no
12764     if test -n "$RANLIB"; then
12765       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12766       postinstall_cmds='$RANLIB $lib'
12767     fi
12768     ;;
12769
12770   aix[4-9]*)
12771     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12772       test "$enable_shared" = yes && enable_static=no
12773     fi
12774     ;;
12775   esac
12776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12777 $as_echo "$enable_shared" >&6; }
12778
12779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12780 $as_echo_n "checking whether to build static libraries... " >&6; }
12781   # Make sure either enable_shared or enable_static is yes.
12782   test "$enable_shared" = yes || enable_static=yes
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12784 $as_echo "$enable_static" >&6; }
12785
12786
12787
12788
12789 fi
12790 ac_ext=c
12791 ac_cpp='$CPP $CPPFLAGS'
12792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
12796 CC="$lt_save_CC"
12797
12798
12799 ac_ext=cpp
12800 ac_cpp='$CXXCPP $CPPFLAGS'
12801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12804
12805 archive_cmds_need_lc_CXX=no
12806 allow_undefined_flag_CXX=
12807 always_export_symbols_CXX=no
12808 archive_expsym_cmds_CXX=
12809 compiler_needs_object_CXX=no
12810 export_dynamic_flag_spec_CXX=
12811 hardcode_direct_CXX=no
12812 hardcode_direct_absolute_CXX=no
12813 hardcode_libdir_flag_spec_CXX=
12814 hardcode_libdir_flag_spec_ld_CXX=
12815 hardcode_libdir_separator_CXX=
12816 hardcode_minus_L_CXX=no
12817 hardcode_shlibpath_var_CXX=unsupported
12818 hardcode_automatic_CXX=no
12819 inherit_rpath_CXX=no
12820 module_cmds_CXX=
12821 module_expsym_cmds_CXX=
12822 link_all_deplibs_CXX=unknown
12823 old_archive_cmds_CXX=$old_archive_cmds
12824 no_undefined_flag_CXX=
12825 whole_archive_flag_spec_CXX=
12826 enable_shared_with_static_runtimes_CXX=no
12827
12828 # Source file extension for C++ test sources.
12829 ac_ext=cpp
12830
12831 # Object file extension for compiled C++ test sources.
12832 objext=o
12833 objext_CXX=$objext
12834
12835 # No sense in running all these tests if we already determined that
12836 # the CXX compiler isn't working.  Some variables (like enable_shared)
12837 # are currently assumed to apply to all compilers on this platform,
12838 # and will be corrupted by setting them based on a non-working compiler.
12839 if test "$_lt_caught_CXX_error" != yes; then
12840   # Code to be used in simple compile tests
12841   lt_simple_compile_test_code="int some_variable = 0;"
12842
12843   # Code to be used in simple link tests
12844   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12845
12846   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12847
12848
12849
12850
12851
12852
12853 # If no C compiler was specified, use CC.
12854 LTCC=${LTCC-"$CC"}
12855
12856 # If no C compiler flags were specified, use CFLAGS.
12857 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12858
12859 # Allow CC to be a program name with arguments.
12860 compiler=$CC
12861
12862
12863   # save warnings/boilerplate of simple test code
12864   ac_outfile=conftest.$ac_objext
12865 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12866 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12867 _lt_compiler_boilerplate=`cat conftest.err`
12868 $RM conftest*
12869
12870   ac_outfile=conftest.$ac_objext
12871 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12872 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12873 _lt_linker_boilerplate=`cat conftest.err`
12874 $RM -r conftest*
12875
12876
12877   # Allow CC to be a program name with arguments.
12878   lt_save_CC=$CC
12879   lt_save_LD=$LD
12880   lt_save_GCC=$GCC
12881   GCC=$GXX
12882   lt_save_with_gnu_ld=$with_gnu_ld
12883   lt_save_path_LD=$lt_cv_path_LD
12884   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12885     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12886   else
12887     $as_unset lt_cv_prog_gnu_ld
12888   fi
12889   if test -n "${lt_cv_path_LDCXX+set}"; then
12890     lt_cv_path_LD=$lt_cv_path_LDCXX
12891   else
12892     $as_unset lt_cv_path_LD
12893   fi
12894   test -z "${LDCXX+set}" || LD=$LDCXX
12895   CC=${CXX-"c++"}
12896   compiler=$CC
12897   compiler_CXX=$CC
12898   for cc_temp in $compiler""; do
12899   case $cc_temp in
12900     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12901     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12902     \-*) ;;
12903     *) break;;
12904   esac
12905 done
12906 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12907
12908
12909   if test -n "$compiler"; then
12910     # We don't want -fno-exception when compiling C++ code, so set the
12911     # no_builtin_flag separately
12912     if test "$GXX" = yes; then
12913       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12914     else
12915       lt_prog_compiler_no_builtin_flag_CXX=
12916     fi
12917
12918     if test "$GXX" = yes; then
12919       # Set up default GNU C++ configuration
12920
12921
12922
12923 # Check whether --with-gnu-ld was given.
12924 if test "${with_gnu_ld+set}" = set; then :
12925   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12926 else
12927   with_gnu_ld=no
12928 fi
12929
12930 ac_prog=ld
12931 if test "$GCC" = yes; then
12932   # Check if gcc -print-prog-name=ld gives a path.
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12934 $as_echo_n "checking for ld used by $CC... " >&6; }
12935   case $host in
12936   *-*-mingw*)
12937     # gcc leaves a trailing carriage return which upsets mingw
12938     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12939   *)
12940     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12941   esac
12942   case $ac_prog in
12943     # Accept absolute paths.
12944     [\\/]* | ?:[\\/]*)
12945       re_direlt='/[^/][^/]*/\.\./'
12946       # Canonicalize the pathname of ld
12947       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12948       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12949         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12950       done
12951       test -z "$LD" && LD="$ac_prog"
12952       ;;
12953   "")
12954     # If it fails, then pretend we aren't using GCC.
12955     ac_prog=ld
12956     ;;
12957   *)
12958     # If it is relative, then search for the first ld in PATH.
12959     with_gnu_ld=unknown
12960     ;;
12961   esac
12962 elif test "$with_gnu_ld" = yes; then
12963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12964 $as_echo_n "checking for GNU ld... " >&6; }
12965 else
12966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12967 $as_echo_n "checking for non-GNU ld... " >&6; }
12968 fi
12969 if test "${lt_cv_path_LD+set}" = set; then :
12970   $as_echo_n "(cached) " >&6
12971 else
12972   if test -z "$LD"; then
12973   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12974   for ac_dir in $PATH; do
12975     IFS="$lt_save_ifs"
12976     test -z "$ac_dir" && ac_dir=.
12977     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12978       lt_cv_path_LD="$ac_dir/$ac_prog"
12979       # Check to see if the program is GNU ld.  I'd rather use --version,
12980       # but apparently some variants of GNU ld only accept -v.
12981       # Break only if it was the GNU/non-GNU ld that we prefer.
12982       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12983       *GNU* | *'with BFD'*)
12984         test "$with_gnu_ld" != no && break
12985         ;;
12986       *)
12987         test "$with_gnu_ld" != yes && break
12988         ;;
12989       esac
12990     fi
12991   done
12992   IFS="$lt_save_ifs"
12993 else
12994   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12995 fi
12996 fi
12997
12998 LD="$lt_cv_path_LD"
12999 if test -n "$LD"; then
13000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13001 $as_echo "$LD" >&6; }
13002 else
13003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13004 $as_echo "no" >&6; }
13005 fi
13006 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13008 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13009 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13013 case `$LD -v 2>&1 </dev/null` in
13014 *GNU* | *'with BFD'*)
13015   lt_cv_prog_gnu_ld=yes
13016   ;;
13017 *)
13018   lt_cv_prog_gnu_ld=no
13019   ;;
13020 esac
13021 fi
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13023 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13024 with_gnu_ld=$lt_cv_prog_gnu_ld
13025
13026
13027
13028
13029
13030
13031
13032       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13033       # archiving commands below assume that GNU ld is being used.
13034       if test "$with_gnu_ld" = yes; then
13035         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13036         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'
13037
13038         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13039         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13040
13041         # If archive_cmds runs LD, not CC, wlarc should be empty
13042         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13043         #     investigate it a little bit more. (MM)
13044         wlarc='${wl}'
13045
13046         # ancient GNU ld didn't support --whole-archive et. al.
13047         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13048           $GREP 'no-whole-archive' > /dev/null; then
13049           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13050         else
13051           whole_archive_flag_spec_CXX=
13052         fi
13053       else
13054         with_gnu_ld=no
13055         wlarc=
13056
13057         # A generic and very simple default shared library creation
13058         # command for GNU C++ for the case where it uses the native
13059         # linker, instead of GNU ld.  If possible, this setting should
13060         # overridden to take advantage of the native linker features on
13061         # the platform it is being used on.
13062         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13063       fi
13064
13065       # Commands to make compiler produce verbose output that lists
13066       # what "hidden" libraries, object files and flags are used when
13067       # linking a shared library.
13068       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13069
13070     else
13071       GXX=no
13072       with_gnu_ld=no
13073       wlarc=
13074     fi
13075
13076     # PORTME: fill in a description of your system's C++ link characteristics
13077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13078 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13079     ld_shlibs_CXX=yes
13080     case $host_os in
13081       aix3*)
13082         # FIXME: insert proper C++ library support
13083         ld_shlibs_CXX=no
13084         ;;
13085       aix[4-9]*)
13086         if test "$host_cpu" = ia64; then
13087           # On IA64, the linker does run time linking by default, so we don't
13088           # have to do anything special.
13089           aix_use_runtimelinking=no
13090           exp_sym_flag='-Bexport'
13091           no_entry_flag=""
13092         else
13093           aix_use_runtimelinking=no
13094
13095           # Test if we are trying to use run time linking or normal
13096           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13097           # need to do runtime linking.
13098           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13099             for ld_flag in $LDFLAGS; do
13100               case $ld_flag in
13101               *-brtl*)
13102                 aix_use_runtimelinking=yes
13103                 break
13104                 ;;
13105               esac
13106             done
13107             ;;
13108           esac
13109
13110           exp_sym_flag='-bexport'
13111           no_entry_flag='-bnoentry'
13112         fi
13113
13114         # When large executables or shared objects are built, AIX ld can
13115         # have problems creating the table of contents.  If linking a library
13116         # or program results in "error TOC overflow" add -mminimal-toc to
13117         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13118         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13119
13120         archive_cmds_CXX=''
13121         hardcode_direct_CXX=yes
13122         hardcode_direct_absolute_CXX=yes
13123         hardcode_libdir_separator_CXX=':'
13124         link_all_deplibs_CXX=yes
13125         file_list_spec_CXX='${wl}-f,'
13126
13127         if test "$GXX" = yes; then
13128           case $host_os in aix4.[012]|aix4.[012].*)
13129           # We only want to do this on AIX 4.2 and lower, the check
13130           # below for broken collect2 doesn't work under 4.3+
13131           collect2name=`${CC} -print-prog-name=collect2`
13132           if test -f "$collect2name" &&
13133              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13134           then
13135             # We have reworked collect2
13136             :
13137           else
13138             # We have old collect2
13139             hardcode_direct_CXX=unsupported
13140             # It fails to find uninstalled libraries when the uninstalled
13141             # path is not listed in the libpath.  Setting hardcode_minus_L
13142             # to unsupported forces relinking
13143             hardcode_minus_L_CXX=yes
13144             hardcode_libdir_flag_spec_CXX='-L$libdir'
13145             hardcode_libdir_separator_CXX=
13146           fi
13147           esac
13148           shared_flag='-shared'
13149           if test "$aix_use_runtimelinking" = yes; then
13150             shared_flag="$shared_flag "'${wl}-G'
13151           fi
13152         else
13153           # not using gcc
13154           if test "$host_cpu" = ia64; then
13155           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13156           # chokes on -Wl,-G. The following line is correct:
13157           shared_flag='-G'
13158           else
13159             if test "$aix_use_runtimelinking" = yes; then
13160               shared_flag='${wl}-G'
13161             else
13162               shared_flag='${wl}-bM:SRE'
13163             fi
13164           fi
13165         fi
13166
13167         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13168         # It seems that -bexpall does not export symbols beginning with
13169         # underscore (_), so it is better to generate a list of symbols to
13170         # export.
13171         always_export_symbols_CXX=yes
13172         if test "$aix_use_runtimelinking" = yes; then
13173           # Warning - without using the other runtime loading flags (-brtl),
13174           # -berok will link without error, but may produce a broken library.
13175           allow_undefined_flag_CXX='-berok'
13176           # Determine the default libpath from the value encoded in an empty
13177           # executable.
13178           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h.  */
13180
13181 int
13182 main ()
13183 {
13184
13185   ;
13186   return 0;
13187 }
13188 _ACEOF
13189 if ac_fn_cxx_try_link "$LINENO"; then :
13190
13191 lt_aix_libpath_sed='
13192     /Import File Strings/,/^$/ {
13193         /^0/ {
13194             s/^0  *\(.*\)$/\1/
13195             p
13196         }
13197     }'
13198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13199 # Check for a 64-bit object if we didn't find anything.
13200 if test -z "$aix_libpath"; then
13201   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13202 fi
13203 fi
13204 rm -f core conftest.err conftest.$ac_objext \
13205     conftest$ac_exeext conftest.$ac_ext
13206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13207
13208           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13209
13210           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"
13211         else
13212           if test "$host_cpu" = ia64; then
13213             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13214             allow_undefined_flag_CXX="-z nodefs"
13215             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"
13216           else
13217             # Determine the default libpath from the value encoded in an
13218             # empty executable.
13219             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h.  */
13221
13222 int
13223 main ()
13224 {
13225
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_cxx_try_link "$LINENO"; then :
13231
13232 lt_aix_libpath_sed='
13233     /Import File Strings/,/^$/ {
13234         /^0/ {
13235             s/^0  *\(.*\)$/\1/
13236             p
13237         }
13238     }'
13239 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13240 # Check for a 64-bit object if we didn't find anything.
13241 if test -z "$aix_libpath"; then
13242   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13243 fi
13244 fi
13245 rm -f core conftest.err conftest.$ac_objext \
13246     conftest$ac_exeext conftest.$ac_ext
13247 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13248
13249             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13250             # Warning - without using the other run time loading flags,
13251             # -berok will link without error, but may produce a broken library.
13252             no_undefined_flag_CXX=' ${wl}-bernotok'
13253             allow_undefined_flag_CXX=' ${wl}-berok'
13254             # Exported symbols can be pulled into shared objects from archives
13255             whole_archive_flag_spec_CXX='$convenience'
13256             archive_cmds_need_lc_CXX=yes
13257             # This is similar to how AIX traditionally builds its shared
13258             # libraries.
13259             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'
13260           fi
13261         fi
13262         ;;
13263
13264       beos*)
13265         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13266           allow_undefined_flag_CXX=unsupported
13267           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13268           # support --undefined.  This deserves some investigation.  FIXME
13269           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13270         else
13271           ld_shlibs_CXX=no
13272         fi
13273         ;;
13274
13275       chorus*)
13276         case $cc_basename in
13277           *)
13278           # FIXME: insert proper C++ library support
13279           ld_shlibs_CXX=no
13280           ;;
13281         esac
13282         ;;
13283
13284       cygwin* | mingw* | pw32* | cegcc*)
13285         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13286         # as there is no search path for DLLs.
13287         hardcode_libdir_flag_spec_CXX='-L$libdir'
13288         allow_undefined_flag_CXX=unsupported
13289         always_export_symbols_CXX=no
13290         enable_shared_with_static_runtimes_CXX=yes
13291
13292         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13293           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'
13294           # If the export-symbols file already is a .def file (1st line
13295           # is EXPORTS), use it as is; otherwise, prepend...
13296           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13297             cp $export_symbols $output_objdir/$soname.def;
13298           else
13299             echo EXPORTS > $output_objdir/$soname.def;
13300             cat $export_symbols >> $output_objdir/$soname.def;
13301           fi~
13302           $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'
13303         else
13304           ld_shlibs_CXX=no
13305         fi
13306         ;;
13307       darwin* | rhapsody*)
13308
13309
13310   archive_cmds_need_lc_CXX=no
13311   hardcode_direct_CXX=no
13312   hardcode_automatic_CXX=yes
13313   hardcode_shlibpath_var_CXX=unsupported
13314   whole_archive_flag_spec_CXX=''
13315   link_all_deplibs_CXX=yes
13316   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13317   case $cc_basename in
13318      ifort*) _lt_dar_can_shared=yes ;;
13319      *) _lt_dar_can_shared=$GCC ;;
13320   esac
13321   if test "$_lt_dar_can_shared" = "yes"; then
13322     output_verbose_link_cmd=echo
13323     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}"
13324     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13325     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}"
13326     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}"
13327        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13328       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}"
13329       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}"
13330     fi
13331
13332   else
13333   ld_shlibs_CXX=no
13334   fi
13335
13336         ;;
13337
13338       dgux*)
13339         case $cc_basename in
13340           ec++*)
13341             # FIXME: insert proper C++ library support
13342             ld_shlibs_CXX=no
13343             ;;
13344           ghcx*)
13345             # Green Hills C++ Compiler
13346             # FIXME: insert proper C++ library support
13347             ld_shlibs_CXX=no
13348             ;;
13349           *)
13350             # FIXME: insert proper C++ library support
13351             ld_shlibs_CXX=no
13352             ;;
13353         esac
13354         ;;
13355
13356       freebsd[12]*)
13357         # C++ shared libraries reported to be fairly broken before
13358         # switch to ELF
13359         ld_shlibs_CXX=no
13360         ;;
13361
13362       freebsd-elf*)
13363         archive_cmds_need_lc_CXX=no
13364         ;;
13365
13366       freebsd* | dragonfly*)
13367         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13368         # conventions
13369         ld_shlibs_CXX=yes
13370         ;;
13371
13372       gnu*)
13373         ;;
13374
13375       hpux9*)
13376         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13377         hardcode_libdir_separator_CXX=:
13378         export_dynamic_flag_spec_CXX='${wl}-E'
13379         hardcode_direct_CXX=yes
13380         hardcode_minus_L_CXX=yes # Not in the search PATH,
13381                                              # but as the default
13382                                              # location of the library.
13383
13384         case $cc_basename in
13385           CC*)
13386             # FIXME: insert proper C++ library support
13387             ld_shlibs_CXX=no
13388             ;;
13389           aCC*)
13390             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'
13391             # Commands to make compiler produce verbose output that lists
13392             # what "hidden" libraries, object files and flags are used when
13393             # linking a shared library.
13394             #
13395             # There doesn't appear to be a way to prevent this compiler from
13396             # explicitly linking system object files so we need to strip them
13397             # from the output so that they don't get included in the library
13398             # dependencies.
13399             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'
13400             ;;
13401           *)
13402             if test "$GXX" = yes; then
13403               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'
13404             else
13405               # FIXME: insert proper C++ library support
13406               ld_shlibs_CXX=no
13407             fi
13408             ;;
13409         esac
13410         ;;
13411
13412       hpux10*|hpux11*)
13413         if test $with_gnu_ld = no; then
13414           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13415           hardcode_libdir_separator_CXX=:
13416
13417           case $host_cpu in
13418             hppa*64*|ia64*)
13419               ;;
13420             *)
13421               export_dynamic_flag_spec_CXX='${wl}-E'
13422               ;;
13423           esac
13424         fi
13425         case $host_cpu in
13426           hppa*64*|ia64*)
13427             hardcode_direct_CXX=no
13428             hardcode_shlibpath_var_CXX=no
13429             ;;
13430           *)
13431             hardcode_direct_CXX=yes
13432             hardcode_direct_absolute_CXX=yes
13433             hardcode_minus_L_CXX=yes # Not in the search PATH,
13434                                                  # but as the default
13435                                                  # location of the library.
13436             ;;
13437         esac
13438
13439         case $cc_basename in
13440           CC*)
13441             # FIXME: insert proper C++ library support
13442             ld_shlibs_CXX=no
13443             ;;
13444           aCC*)
13445             case $host_cpu in
13446               hppa*64*)
13447                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13448                 ;;
13449               ia64*)
13450                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13451                 ;;
13452               *)
13453                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13454                 ;;
13455             esac
13456             # Commands to make compiler produce verbose output that lists
13457             # what "hidden" libraries, object files and flags are used when
13458             # linking a shared library.
13459             #
13460             # There doesn't appear to be a way to prevent this compiler from
13461             # explicitly linking system object files so we need to strip them
13462             # from the output so that they don't get included in the library
13463             # dependencies.
13464             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'
13465             ;;
13466           *)
13467             if test "$GXX" = yes; then
13468               if test $with_gnu_ld = no; then
13469                 case $host_cpu in
13470                   hppa*64*)
13471                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472                     ;;
13473                   ia64*)
13474                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13475                     ;;
13476                   *)
13477                     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'
13478                     ;;
13479                 esac
13480               fi
13481             else
13482               # FIXME: insert proper C++ library support
13483               ld_shlibs_CXX=no
13484             fi
13485             ;;
13486         esac
13487         ;;
13488
13489       interix[3-9]*)
13490         hardcode_direct_CXX=no
13491         hardcode_shlibpath_var_CXX=no
13492         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13493         export_dynamic_flag_spec_CXX='${wl}-E'
13494         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13495         # Instead, shared libraries are loaded at an image base (0x10000000 by
13496         # default) and relocated if they conflict, which is a slow very memory
13497         # consuming and fragmenting process.  To avoid this, we pick a random,
13498         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13499         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13500         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'
13501         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'
13502         ;;
13503       irix5* | irix6*)
13504         case $cc_basename in
13505           CC*)
13506             # SGI C++
13507             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'
13508
13509             # Archives containing C++ object files must be created using
13510             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13511             # necessary to make sure instantiated templates are included
13512             # in the archive.
13513             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13514             ;;
13515           *)
13516             if test "$GXX" = yes; then
13517               if test "$with_gnu_ld" = no; then
13518                 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'
13519               else
13520                 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'
13521               fi
13522             fi
13523             link_all_deplibs_CXX=yes
13524             ;;
13525         esac
13526         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13527         hardcode_libdir_separator_CXX=:
13528         inherit_rpath_CXX=yes
13529         ;;
13530
13531       linux* | k*bsd*-gnu)
13532         case $cc_basename in
13533           KCC*)
13534             # Kuck and Associates, Inc. (KAI) C++ Compiler
13535
13536             # KCC will only create a shared library if the output file
13537             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13538             # to its proper name (with version) after linking.
13539             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'
13540             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'
13541             # Commands to make compiler produce verbose output that lists
13542             # what "hidden" libraries, object files and flags are used when
13543             # linking a shared library.
13544             #
13545             # There doesn't appear to be a way to prevent this compiler from
13546             # explicitly linking system object files so we need to strip them
13547             # from the output so that they don't get included in the library
13548             # dependencies.
13549             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'
13550
13551             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13552             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13553
13554             # Archives containing C++ object files must be created using
13555             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13556             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13557             ;;
13558           icpc* | ecpc* )
13559             # Intel C++
13560             with_gnu_ld=yes
13561             # version 8.0 and above of icpc choke on multiply defined symbols
13562             # if we add $predep_objects and $postdep_objects, however 7.1 and
13563             # earlier do not add the objects themselves.
13564             case `$CC -V 2>&1` in
13565               *"Version 7."*)
13566                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13567                 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'
13568                 ;;
13569               *)  # Version 8.0 or newer
13570                 tmp_idyn=
13571                 case $host_cpu in
13572                   ia64*) tmp_idyn=' -i_dynamic';;
13573                 esac
13574                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575                 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'
13576                 ;;
13577             esac
13578             archive_cmds_need_lc_CXX=no
13579             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13580             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13581             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13582             ;;
13583           pgCC* | pgcpp*)
13584             # Portland Group C++ compiler
13585             case `$CC -V` in
13586             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13587               prelink_cmds_CXX='tpldir=Template.dir~
13588                 rm -rf $tpldir~
13589                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13590                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13591               old_archive_cmds_CXX='tpldir=Template.dir~
13592                 rm -rf $tpldir~
13593                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13594                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13595                 $RANLIB $oldlib'
13596               archive_cmds_CXX='tpldir=Template.dir~
13597                 rm -rf $tpldir~
13598                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13599                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13600               archive_expsym_cmds_CXX='tpldir=Template.dir~
13601                 rm -rf $tpldir~
13602                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13603                 $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'
13604               ;;
13605             *) # Version 6 will use weak symbols
13606               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13607               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'
13608               ;;
13609             esac
13610
13611             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13612             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13613             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'
13614             ;;
13615           cxx*)
13616             # Compaq C++
13617             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618             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'
13619
13620             runpath_var=LD_RUN_PATH
13621             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13622             hardcode_libdir_separator_CXX=:
13623
13624             # Commands to make compiler produce verbose output that lists
13625             # what "hidden" libraries, object files and flags are used when
13626             # linking a shared library.
13627             #
13628             # There doesn't appear to be a way to prevent this compiler from
13629             # explicitly linking system object files so we need to strip them
13630             # from the output so that they don't get included in the library
13631             # dependencies.
13632             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'
13633             ;;
13634           xl*)
13635             # IBM XL 8.0 on PPC, with GNU ld
13636             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13637             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13638             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13639             if test "x$supports_anon_versioning" = xyes; then
13640               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13641                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13642                 echo "local: *; };" >> $output_objdir/$libname.ver~
13643                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13644             fi
13645             ;;
13646           *)
13647             case `$CC -V 2>&1 | sed 5q` in
13648             *Sun\ C*)
13649               # Sun C++ 5.9
13650               no_undefined_flag_CXX=' -zdefs'
13651               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13652               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'
13653               hardcode_libdir_flag_spec_CXX='-R$libdir'
13654               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'
13655               compiler_needs_object_CXX=yes
13656
13657               # Not sure whether something based on
13658               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13659               # would be better.
13660               output_verbose_link_cmd='echo'
13661
13662               # Archives containing C++ object files must be created using
13663               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13664               # necessary to make sure instantiated templates are included
13665               # in the archive.
13666               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13667               ;;
13668             esac
13669             ;;
13670         esac
13671         ;;
13672
13673       lynxos*)
13674         # FIXME: insert proper C++ library support
13675         ld_shlibs_CXX=no
13676         ;;
13677
13678       m88k*)
13679         # FIXME: insert proper C++ library support
13680         ld_shlibs_CXX=no
13681         ;;
13682
13683       mvs*)
13684         case $cc_basename in
13685           cxx*)
13686             # FIXME: insert proper C++ library support
13687             ld_shlibs_CXX=no
13688             ;;
13689           *)
13690             # FIXME: insert proper C++ library support
13691             ld_shlibs_CXX=no
13692             ;;
13693         esac
13694         ;;
13695
13696       netbsd*)
13697         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13698           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13699           wlarc=
13700           hardcode_libdir_flag_spec_CXX='-R$libdir'
13701           hardcode_direct_CXX=yes
13702           hardcode_shlibpath_var_CXX=no
13703         fi
13704         # Workaround some broken pre-1.5 toolchains
13705         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13706         ;;
13707
13708       *nto* | *qnx*)
13709         ld_shlibs_CXX=yes
13710         ;;
13711
13712       openbsd2*)
13713         # C++ shared libraries are fairly broken
13714         ld_shlibs_CXX=no
13715         ;;
13716
13717       openbsd*)
13718         if test -f /usr/libexec/ld.so; then
13719           hardcode_direct_CXX=yes
13720           hardcode_shlibpath_var_CXX=no
13721           hardcode_direct_absolute_CXX=yes
13722           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13723           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13724           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13725             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13726             export_dynamic_flag_spec_CXX='${wl}-E'
13727             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13728           fi
13729           output_verbose_link_cmd=echo
13730         else
13731           ld_shlibs_CXX=no
13732         fi
13733         ;;
13734
13735       osf3* | osf4* | osf5*)
13736         case $cc_basename in
13737           KCC*)
13738             # Kuck and Associates, Inc. (KAI) C++ Compiler
13739
13740             # KCC will only create a shared library if the output file
13741             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13742             # to its proper name (with version) after linking.
13743             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'
13744
13745             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13746             hardcode_libdir_separator_CXX=:
13747
13748             # Archives containing C++ object files must be created using
13749             # the KAI C++ compiler.
13750             case $host in
13751               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13752               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13753             esac
13754             ;;
13755           RCC*)
13756             # Rational C++ 2.4.1
13757             # FIXME: insert proper C++ library support
13758             ld_shlibs_CXX=no
13759             ;;
13760           cxx*)
13761             case $host in
13762               osf3*)
13763                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13764                 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'
13765                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13766                 ;;
13767               *)
13768                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13769                 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'
13770                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13771                   echo "-hidden">> $lib.exp~
13772                   $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~
13773                   $RM $lib.exp'
13774                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13775                 ;;
13776             esac
13777
13778             hardcode_libdir_separator_CXX=:
13779
13780             # Commands to make compiler produce verbose output that lists
13781             # what "hidden" libraries, object files and flags are used when
13782             # linking a shared library.
13783             #
13784             # There doesn't appear to be a way to prevent this compiler from
13785             # explicitly linking system object files so we need to strip them
13786             # from the output so that they don't get included in the library
13787             # dependencies.
13788             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'
13789             ;;
13790           *)
13791             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13792               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13793               case $host in
13794                 osf3*)
13795                   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'
13796                   ;;
13797                 *)
13798                   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'
13799                   ;;
13800               esac
13801
13802               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13803               hardcode_libdir_separator_CXX=:
13804
13805               # Commands to make compiler produce verbose output that lists
13806               # what "hidden" libraries, object files and flags are used when
13807               # linking a shared library.
13808               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13809
13810             else
13811               # FIXME: insert proper C++ library support
13812               ld_shlibs_CXX=no
13813             fi
13814             ;;
13815         esac
13816         ;;
13817
13818       psos*)
13819         # FIXME: insert proper C++ library support
13820         ld_shlibs_CXX=no
13821         ;;
13822
13823       sunos4*)
13824         case $cc_basename in
13825           CC*)
13826             # Sun C++ 4.x
13827             # FIXME: insert proper C++ library support
13828             ld_shlibs_CXX=no
13829             ;;
13830           lcc*)
13831             # Lucid
13832             # FIXME: insert proper C++ library support
13833             ld_shlibs_CXX=no
13834             ;;
13835           *)
13836             # FIXME: insert proper C++ library support
13837             ld_shlibs_CXX=no
13838             ;;
13839         esac
13840         ;;
13841
13842       solaris*)
13843         case $cc_basename in
13844           CC*)
13845             # Sun C++ 4.2, 5.x and Centerline C++
13846             archive_cmds_need_lc_CXX=yes
13847             no_undefined_flag_CXX=' -zdefs'
13848             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13850               $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'
13851
13852             hardcode_libdir_flag_spec_CXX='-R$libdir'
13853             hardcode_shlibpath_var_CXX=no
13854             case $host_os in
13855               solaris2.[0-5] | solaris2.[0-5].*) ;;
13856               *)
13857                 # The compiler driver will combine and reorder linker options,
13858                 # but understands `-z linker_flag'.
13859                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13860                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13861                 ;;
13862             esac
13863             link_all_deplibs_CXX=yes
13864
13865             output_verbose_link_cmd='echo'
13866
13867             # Archives containing C++ object files must be created using
13868             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13869             # necessary to make sure instantiated templates are included
13870             # in the archive.
13871             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13872             ;;
13873           gcx*)
13874             # Green Hills C++ Compiler
13875             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13876
13877             # The C++ compiler must be used to create the archive.
13878             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13879             ;;
13880           *)
13881             # GNU C++ compiler with Solaris linker
13882             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13883               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13884               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13885                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13886                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13887                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13888
13889                 # Commands to make compiler produce verbose output that lists
13890                 # what "hidden" libraries, object files and flags are used when
13891                 # linking a shared library.
13892                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13893               else
13894                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13895                 # platform.
13896                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13897                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13898                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13899
13900                 # Commands to make compiler produce verbose output that lists
13901                 # what "hidden" libraries, object files and flags are used when
13902                 # linking a shared library.
13903                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13904               fi
13905
13906               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13907               case $host_os in
13908                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13909                 *)
13910                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13911                   ;;
13912               esac
13913             fi
13914             ;;
13915         esac
13916         ;;
13917
13918     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13919       no_undefined_flag_CXX='${wl}-z,text'
13920       archive_cmds_need_lc_CXX=no
13921       hardcode_shlibpath_var_CXX=no
13922       runpath_var='LD_RUN_PATH'
13923
13924       case $cc_basename in
13925         CC*)
13926           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13927           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13928           ;;
13929         *)
13930           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13931           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13932           ;;
13933       esac
13934       ;;
13935
13936       sysv5* | sco3.2v5* | sco5v6*)
13937         # Note: We can NOT use -z defs as we might desire, because we do not
13938         # link with -lc, and that would cause any symbols used from libc to
13939         # always be unresolved, which means just about no library would
13940         # ever link correctly.  If we're not using GNU ld we use -z text
13941         # though, which does catch some bad symbols but isn't as heavy-handed
13942         # as -z defs.
13943         no_undefined_flag_CXX='${wl}-z,text'
13944         allow_undefined_flag_CXX='${wl}-z,nodefs'
13945         archive_cmds_need_lc_CXX=no
13946         hardcode_shlibpath_var_CXX=no
13947         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13948         hardcode_libdir_separator_CXX=':'
13949         link_all_deplibs_CXX=yes
13950         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13951         runpath_var='LD_RUN_PATH'
13952
13953         case $cc_basename in
13954           CC*)
13955             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13956             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13957             ;;
13958           *)
13959             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13960             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13961             ;;
13962         esac
13963       ;;
13964
13965       tandem*)
13966         case $cc_basename in
13967           NCC*)
13968             # NonStop-UX NCC 3.20
13969             # FIXME: insert proper C++ library support
13970             ld_shlibs_CXX=no
13971             ;;
13972           *)
13973             # FIXME: insert proper C++ library support
13974             ld_shlibs_CXX=no
13975             ;;
13976         esac
13977         ;;
13978
13979       vxworks*)
13980         # FIXME: insert proper C++ library support
13981         ld_shlibs_CXX=no
13982         ;;
13983
13984       *)
13985         # FIXME: insert proper C++ library support
13986         ld_shlibs_CXX=no
13987         ;;
13988     esac
13989
13990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13991 $as_echo "$ld_shlibs_CXX" >&6; }
13992     test "$ld_shlibs_CXX" = no && can_build_shared=no
13993
13994     GCC_CXX="$GXX"
13995     LD_CXX="$LD"
13996
13997     ## CAVEAT EMPTOR:
13998     ## There is no encapsulation within the following macros, do not change
13999     ## the running order or otherwise move them around unless you know exactly
14000     ## what you are doing...
14001     # Dependencies to place before and after the object being linked:
14002 predep_objects_CXX=
14003 postdep_objects_CXX=
14004 predeps_CXX=
14005 postdeps_CXX=
14006 compiler_lib_search_path_CXX=
14007
14008 cat > conftest.$ac_ext <<_LT_EOF
14009 class Foo
14010 {
14011 public:
14012   Foo (void) { a = 0; }
14013 private:
14014   int a;
14015 };
14016 _LT_EOF
14017
14018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14019   (eval $ac_compile) 2>&5
14020   ac_status=$?
14021   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022   test $ac_status = 0; }; then
14023   # Parse the compiler output and extract the necessary
14024   # objects, libraries and library flags.
14025
14026   # Sentinel used to keep track of whether or not we are before
14027   # the conftest object file.
14028   pre_test_object_deps_done=no
14029
14030   for p in `eval "$output_verbose_link_cmd"`; do
14031     case $p in
14032
14033     -L* | -R* | -l*)
14034        # Some compilers place space between "-{L,R}" and the path.
14035        # Remove the space.
14036        if test $p = "-L" ||
14037           test $p = "-R"; then
14038          prev=$p
14039          continue
14040        else
14041          prev=
14042        fi
14043
14044        if test "$pre_test_object_deps_done" = no; then
14045          case $p in
14046          -L* | -R*)
14047            # Internal compiler library paths should come after those
14048            # provided the user.  The postdeps already come after the
14049            # user supplied libs so there is no need to process them.
14050            if test -z "$compiler_lib_search_path_CXX"; then
14051              compiler_lib_search_path_CXX="${prev}${p}"
14052            else
14053              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14054            fi
14055            ;;
14056          # The "-l" case would never come before the object being
14057          # linked, so don't bother handling this case.
14058          esac
14059        else
14060          if test -z "$postdeps_CXX"; then
14061            postdeps_CXX="${prev}${p}"
14062          else
14063            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14064          fi
14065        fi
14066        ;;
14067
14068     *.$objext)
14069        # This assumes that the test object file only shows up
14070        # once in the compiler output.
14071        if test "$p" = "conftest.$objext"; then
14072          pre_test_object_deps_done=yes
14073          continue
14074        fi
14075
14076        if test "$pre_test_object_deps_done" = no; then
14077          if test -z "$predep_objects_CXX"; then
14078            predep_objects_CXX="$p"
14079          else
14080            predep_objects_CXX="$predep_objects_CXX $p"
14081          fi
14082        else
14083          if test -z "$postdep_objects_CXX"; then
14084            postdep_objects_CXX="$p"
14085          else
14086            postdep_objects_CXX="$postdep_objects_CXX $p"
14087          fi
14088        fi
14089        ;;
14090
14091     *) ;; # Ignore the rest.
14092
14093     esac
14094   done
14095
14096   # Clean up.
14097   rm -f a.out a.exe
14098 else
14099   echo "libtool.m4: error: problem compiling CXX test program"
14100 fi
14101
14102 $RM -f confest.$objext
14103
14104 # PORTME: override above test on systems where it is broken
14105 case $host_os in
14106 interix[3-9]*)
14107   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14108   # hack all around it, let's just trust "g++" to DTRT.
14109   predep_objects_CXX=
14110   postdep_objects_CXX=
14111   postdeps_CXX=
14112   ;;
14113
14114 linux*)
14115   case `$CC -V 2>&1 | sed 5q` in
14116   *Sun\ C*)
14117     # Sun C++ 5.9
14118
14119     # The more standards-conforming stlport4 library is
14120     # incompatible with the Cstd library. Avoid specifying
14121     # it if it's in CXXFLAGS. Ignore libCrun as
14122     # -library=stlport4 depends on it.
14123     case " $CXX $CXXFLAGS " in
14124     *" -library=stlport4 "*)
14125       solaris_use_stlport4=yes
14126       ;;
14127     esac
14128
14129     if test "$solaris_use_stlport4" != yes; then
14130       postdeps_CXX='-library=Cstd -library=Crun'
14131     fi
14132     ;;
14133   esac
14134   ;;
14135
14136 solaris*)
14137   case $cc_basename in
14138   CC*)
14139     # The more standards-conforming stlport4 library is
14140     # incompatible with the Cstd library. Avoid specifying
14141     # it if it's in CXXFLAGS. Ignore libCrun as
14142     # -library=stlport4 depends on it.
14143     case " $CXX $CXXFLAGS " in
14144     *" -library=stlport4 "*)
14145       solaris_use_stlport4=yes
14146       ;;
14147     esac
14148
14149     # Adding this requires a known-good setup of shared libraries for
14150     # Sun compiler versions before 5.6, else PIC objects from an old
14151     # archive will be linked into the output, leading to subtle bugs.
14152     if test "$solaris_use_stlport4" != yes; then
14153       postdeps_CXX='-library=Cstd -library=Crun'
14154     fi
14155     ;;
14156   esac
14157   ;;
14158 esac
14159
14160
14161 case " $postdeps_CXX " in
14162 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14163 esac
14164  compiler_lib_search_dirs_CXX=
14165 if test -n "${compiler_lib_search_path_CXX}"; then
14166  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14167 fi
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199     lt_prog_compiler_wl_CXX=
14200 lt_prog_compiler_pic_CXX=
14201 lt_prog_compiler_static_CXX=
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14204 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14205
14206   # C++ specific cases for pic, static, wl, etc.
14207   if test "$GXX" = yes; then
14208     lt_prog_compiler_wl_CXX='-Wl,'
14209     lt_prog_compiler_static_CXX='-static'
14210
14211     case $host_os in
14212     aix*)
14213       # All AIX code is PIC.
14214       if test "$host_cpu" = ia64; then
14215         # AIX 5 now supports IA64 processor
14216         lt_prog_compiler_static_CXX='-Bstatic'
14217       fi
14218       ;;
14219
14220     amigaos*)
14221       case $host_cpu in
14222       powerpc)
14223             # see comment about AmigaOS4 .so support
14224             lt_prog_compiler_pic_CXX='-fPIC'
14225         ;;
14226       m68k)
14227             # FIXME: we need at least 68020 code to build shared libraries, but
14228             # adding the `-m68020' flag to GCC prevents building anything better,
14229             # like `-m68040'.
14230             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14231         ;;
14232       esac
14233       ;;
14234
14235     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14236       # PIC is the default for these OSes.
14237       ;;
14238     mingw* | cygwin* | os2* | pw32* | cegcc*)
14239       # This hack is so that the source file can tell whether it is being
14240       # built for inclusion in a dll (and should export symbols for example).
14241       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14242       # (--disable-auto-import) libraries
14243       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14244       ;;
14245     darwin* | rhapsody*)
14246       # PIC is the default on this platform
14247       # Common symbols not allowed in MH_DYLIB files
14248       lt_prog_compiler_pic_CXX='-fno-common'
14249       ;;
14250     *djgpp*)
14251       # DJGPP does not support shared libraries at all
14252       lt_prog_compiler_pic_CXX=
14253       ;;
14254     interix[3-9]*)
14255       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14256       # Instead, we relocate shared libraries at runtime.
14257       ;;
14258     sysv4*MP*)
14259       if test -d /usr/nec; then
14260         lt_prog_compiler_pic_CXX=-Kconform_pic
14261       fi
14262       ;;
14263     hpux*)
14264       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14265       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14266       # sets the default TLS model and affects inlining.
14267       case $host_cpu in
14268       hppa*64*)
14269         ;;
14270       *)
14271         lt_prog_compiler_pic_CXX='-fPIC'
14272         ;;
14273       esac
14274       ;;
14275     *qnx* | *nto*)
14276       # QNX uses GNU C++, but need to define -shared option too, otherwise
14277       # it will coredump.
14278       lt_prog_compiler_pic_CXX='-fPIC -shared'
14279       ;;
14280     *)
14281       lt_prog_compiler_pic_CXX='-fPIC'
14282       ;;
14283     esac
14284   else
14285     case $host_os in
14286       aix[4-9]*)
14287         # All AIX code is PIC.
14288         if test "$host_cpu" = ia64; then
14289           # AIX 5 now supports IA64 processor
14290           lt_prog_compiler_static_CXX='-Bstatic'
14291         else
14292           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14293         fi
14294         ;;
14295       chorus*)
14296         case $cc_basename in
14297         cxch68*)
14298           # Green Hills C++ Compiler
14299           # _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"
14300           ;;
14301         esac
14302         ;;
14303       dgux*)
14304         case $cc_basename in
14305           ec++*)
14306             lt_prog_compiler_pic_CXX='-KPIC'
14307             ;;
14308           ghcx*)
14309             # Green Hills C++ Compiler
14310             lt_prog_compiler_pic_CXX='-pic'
14311             ;;
14312           *)
14313             ;;
14314         esac
14315         ;;
14316       freebsd* | dragonfly*)
14317         # FreeBSD uses GNU C++
14318         ;;
14319       hpux9* | hpux10* | hpux11*)
14320         case $cc_basename in
14321           CC*)
14322             lt_prog_compiler_wl_CXX='-Wl,'
14323             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14324             if test "$host_cpu" != ia64; then
14325               lt_prog_compiler_pic_CXX='+Z'
14326             fi
14327             ;;
14328           aCC*)
14329             lt_prog_compiler_wl_CXX='-Wl,'
14330             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14331             case $host_cpu in
14332             hppa*64*|ia64*)
14333               # +Z the default
14334               ;;
14335             *)
14336               lt_prog_compiler_pic_CXX='+Z'
14337               ;;
14338             esac
14339             ;;
14340           *)
14341             ;;
14342         esac
14343         ;;
14344       interix*)
14345         # This is c89, which is MS Visual C++ (no shared libs)
14346         # Anyone wants to do a port?
14347         ;;
14348       irix5* | irix6* | nonstopux*)
14349         case $cc_basename in
14350           CC*)
14351             lt_prog_compiler_wl_CXX='-Wl,'
14352             lt_prog_compiler_static_CXX='-non_shared'
14353             # CC pic flag -KPIC is the default.
14354             ;;
14355           *)
14356             ;;
14357         esac
14358         ;;
14359       linux* | k*bsd*-gnu)
14360         case $cc_basename in
14361           KCC*)
14362             # KAI C++ Compiler
14363             lt_prog_compiler_wl_CXX='--backend -Wl,'
14364             lt_prog_compiler_pic_CXX='-fPIC'
14365             ;;
14366           ecpc* )
14367             # old Intel C++ for x86_64 which still supported -KPIC.
14368             lt_prog_compiler_wl_CXX='-Wl,'
14369             lt_prog_compiler_pic_CXX='-KPIC'
14370             lt_prog_compiler_static_CXX='-static'
14371             ;;
14372           icpc* )
14373             # Intel C++, used to be incompatible with GCC.
14374             # ICC 10 doesn't accept -KPIC any more.
14375             lt_prog_compiler_wl_CXX='-Wl,'
14376             lt_prog_compiler_pic_CXX='-fPIC'
14377             lt_prog_compiler_static_CXX='-static'
14378             ;;
14379           pgCC* | pgcpp*)
14380             # Portland Group C++ compiler
14381             lt_prog_compiler_wl_CXX='-Wl,'
14382             lt_prog_compiler_pic_CXX='-fpic'
14383             lt_prog_compiler_static_CXX='-Bstatic'
14384             ;;
14385           cxx*)
14386             # Compaq C++
14387             # Make sure the PIC flag is empty.  It appears that all Alpha
14388             # Linux and Compaq Tru64 Unix objects are PIC.
14389             lt_prog_compiler_pic_CXX=
14390             lt_prog_compiler_static_CXX='-non_shared'
14391             ;;
14392           xlc* | xlC*)
14393             # IBM XL 8.0 on PPC
14394             lt_prog_compiler_wl_CXX='-Wl,'
14395             lt_prog_compiler_pic_CXX='-qpic'
14396             lt_prog_compiler_static_CXX='-qstaticlink'
14397             ;;
14398           *)
14399             case `$CC -V 2>&1 | sed 5q` in
14400             *Sun\ C*)
14401               # Sun C++ 5.9
14402               lt_prog_compiler_pic_CXX='-KPIC'
14403               lt_prog_compiler_static_CXX='-Bstatic'
14404               lt_prog_compiler_wl_CXX='-Qoption ld '
14405               ;;
14406             esac
14407             ;;
14408         esac
14409         ;;
14410       lynxos*)
14411         ;;
14412       m88k*)
14413         ;;
14414       mvs*)
14415         case $cc_basename in
14416           cxx*)
14417             lt_prog_compiler_pic_CXX='-W c,exportall'
14418             ;;
14419           *)
14420             ;;
14421         esac
14422         ;;
14423       netbsd* | netbsdelf*-gnu)
14424         ;;
14425       *qnx* | *nto*)
14426         # QNX uses GNU C++, but need to define -shared option too, otherwise
14427         # it will coredump.
14428         lt_prog_compiler_pic_CXX='-fPIC -shared'
14429         ;;
14430       osf3* | osf4* | osf5*)
14431         case $cc_basename in
14432           KCC*)
14433             lt_prog_compiler_wl_CXX='--backend -Wl,'
14434             ;;
14435           RCC*)
14436             # Rational C++ 2.4.1
14437             lt_prog_compiler_pic_CXX='-pic'
14438             ;;
14439           cxx*)
14440             # Digital/Compaq C++
14441             lt_prog_compiler_wl_CXX='-Wl,'
14442             # Make sure the PIC flag is empty.  It appears that all Alpha
14443             # Linux and Compaq Tru64 Unix objects are PIC.
14444             lt_prog_compiler_pic_CXX=
14445             lt_prog_compiler_static_CXX='-non_shared'
14446             ;;
14447           *)
14448             ;;
14449         esac
14450         ;;
14451       psos*)
14452         ;;
14453       solaris*)
14454         case $cc_basename in
14455           CC*)
14456             # Sun C++ 4.2, 5.x and Centerline C++
14457             lt_prog_compiler_pic_CXX='-KPIC'
14458             lt_prog_compiler_static_CXX='-Bstatic'
14459             lt_prog_compiler_wl_CXX='-Qoption ld '
14460             ;;
14461           gcx*)
14462             # Green Hills C++ Compiler
14463             lt_prog_compiler_pic_CXX='-PIC'
14464             ;;
14465           *)
14466             ;;
14467         esac
14468         ;;
14469       sunos4*)
14470         case $cc_basename in
14471           CC*)
14472             # Sun C++ 4.x
14473             lt_prog_compiler_pic_CXX='-pic'
14474             lt_prog_compiler_static_CXX='-Bstatic'
14475             ;;
14476           lcc*)
14477             # Lucid
14478             lt_prog_compiler_pic_CXX='-pic'
14479             ;;
14480           *)
14481             ;;
14482         esac
14483         ;;
14484       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14485         case $cc_basename in
14486           CC*)
14487             lt_prog_compiler_wl_CXX='-Wl,'
14488             lt_prog_compiler_pic_CXX='-KPIC'
14489             lt_prog_compiler_static_CXX='-Bstatic'
14490             ;;
14491         esac
14492         ;;
14493       tandem*)
14494         case $cc_basename in
14495           NCC*)
14496             # NonStop-UX NCC 3.20
14497             lt_prog_compiler_pic_CXX='-KPIC'
14498             ;;
14499           *)
14500             ;;
14501         esac
14502         ;;
14503       vxworks*)
14504         ;;
14505       *)
14506         lt_prog_compiler_can_build_shared_CXX=no
14507         ;;
14508     esac
14509   fi
14510
14511 case $host_os in
14512   # For platforms which do not support PIC, -DPIC is meaningless:
14513   *djgpp*)
14514     lt_prog_compiler_pic_CXX=
14515     ;;
14516   *)
14517     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14518     ;;
14519 esac
14520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14521 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14522
14523
14524
14525 #
14526 # Check to make sure the PIC flag actually works.
14527 #
14528 if test -n "$lt_prog_compiler_pic_CXX"; then
14529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14530 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14531 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534   lt_cv_prog_compiler_pic_works_CXX=no
14535    ac_outfile=conftest.$ac_objext
14536    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14538    # Insert the option either (1) after the last *FLAGS variable, or
14539    # (2) before a word containing "conftest.", or (3) at the end.
14540    # Note that $ac_compile itself does not contain backslashes and begins
14541    # with a dollar sign (not a hyphen), so the echo should work correctly.
14542    # The option is referenced via a variable to avoid confusing sed.
14543    lt_compile=`echo "$ac_compile" | $SED \
14544    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14546    -e 's:$: $lt_compiler_flag:'`
14547    (eval echo "\"\$as_me:14547: $lt_compile\"" >&5)
14548    (eval "$lt_compile" 2>conftest.err)
14549    ac_status=$?
14550    cat conftest.err >&5
14551    echo "$as_me:14551: \$? = $ac_status" >&5
14552    if (exit $ac_status) && test -s "$ac_outfile"; then
14553      # The compiler can only warn and ignore the option if not recognized
14554      # So say no if there are warnings other than the usual output.
14555      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14556      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14557      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14558        lt_cv_prog_compiler_pic_works_CXX=yes
14559      fi
14560    fi
14561    $RM conftest*
14562
14563 fi
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14565 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14566
14567 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14568     case $lt_prog_compiler_pic_CXX in
14569      "" | " "*) ;;
14570      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14571      esac
14572 else
14573     lt_prog_compiler_pic_CXX=
14574      lt_prog_compiler_can_build_shared_CXX=no
14575 fi
14576
14577 fi
14578
14579
14580
14581 #
14582 # Check to make sure the static flag actually works.
14583 #
14584 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14586 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14587 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14588   $as_echo_n "(cached) " >&6
14589 else
14590   lt_cv_prog_compiler_static_works_CXX=no
14591    save_LDFLAGS="$LDFLAGS"
14592    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14593    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14594    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14595      # The linker can only warn and ignore the option if not recognized
14596      # So say no if there are warnings
14597      if test -s conftest.err; then
14598        # Append any errors to the config.log.
14599        cat conftest.err 1>&5
14600        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14601        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14602        if diff conftest.exp conftest.er2 >/dev/null; then
14603          lt_cv_prog_compiler_static_works_CXX=yes
14604        fi
14605      else
14606        lt_cv_prog_compiler_static_works_CXX=yes
14607      fi
14608    fi
14609    $RM -r conftest*
14610    LDFLAGS="$save_LDFLAGS"
14611
14612 fi
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14614 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14615
14616 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14617     :
14618 else
14619     lt_prog_compiler_static_CXX=
14620 fi
14621
14622
14623
14624
14625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14627 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14628   $as_echo_n "(cached) " >&6
14629 else
14630   lt_cv_prog_compiler_c_o_CXX=no
14631    $RM -r conftest 2>/dev/null
14632    mkdir conftest
14633    cd conftest
14634    mkdir out
14635    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14636
14637    lt_compiler_flag="-o out/conftest2.$ac_objext"
14638    # Insert the option either (1) after the last *FLAGS variable, or
14639    # (2) before a word containing "conftest.", or (3) at the end.
14640    # Note that $ac_compile itself does not contain backslashes and begins
14641    # with a dollar sign (not a hyphen), so the echo should work correctly.
14642    lt_compile=`echo "$ac_compile" | $SED \
14643    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14644    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14645    -e 's:$: $lt_compiler_flag:'`
14646    (eval echo "\"\$as_me:14646: $lt_compile\"" >&5)
14647    (eval "$lt_compile" 2>out/conftest.err)
14648    ac_status=$?
14649    cat out/conftest.err >&5
14650    echo "$as_me:14650: \$? = $ac_status" >&5
14651    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14652    then
14653      # The compiler can only warn and ignore the option if not recognized
14654      # So say no if there are warnings
14655      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14656      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14657      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14658        lt_cv_prog_compiler_c_o_CXX=yes
14659      fi
14660    fi
14661    chmod u+w . 2>&5
14662    $RM conftest*
14663    # SGI C++ compiler will create directory out/ii_files/ for
14664    # template instantiation
14665    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14666    $RM out/* && rmdir out
14667    cd ..
14668    $RM -r conftest
14669    $RM conftest*
14670
14671 fi
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14673 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14674
14675
14676
14677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14679 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14680   $as_echo_n "(cached) " >&6
14681 else
14682   lt_cv_prog_compiler_c_o_CXX=no
14683    $RM -r conftest 2>/dev/null
14684    mkdir conftest
14685    cd conftest
14686    mkdir out
14687    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14688
14689    lt_compiler_flag="-o out/conftest2.$ac_objext"
14690    # Insert the option either (1) after the last *FLAGS variable, or
14691    # (2) before a word containing "conftest.", or (3) at the end.
14692    # Note that $ac_compile itself does not contain backslashes and begins
14693    # with a dollar sign (not a hyphen), so the echo should work correctly.
14694    lt_compile=`echo "$ac_compile" | $SED \
14695    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14696    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14697    -e 's:$: $lt_compiler_flag:'`
14698    (eval echo "\"\$as_me:14698: $lt_compile\"" >&5)
14699    (eval "$lt_compile" 2>out/conftest.err)
14700    ac_status=$?
14701    cat out/conftest.err >&5
14702    echo "$as_me:14702: \$? = $ac_status" >&5
14703    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14704    then
14705      # The compiler can only warn and ignore the option if not recognized
14706      # So say no if there are warnings
14707      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14708      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14709      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14710        lt_cv_prog_compiler_c_o_CXX=yes
14711      fi
14712    fi
14713    chmod u+w . 2>&5
14714    $RM conftest*
14715    # SGI C++ compiler will create directory out/ii_files/ for
14716    # template instantiation
14717    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14718    $RM out/* && rmdir out
14719    cd ..
14720    $RM -r conftest
14721    $RM conftest*
14722
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14725 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14726
14727
14728
14729
14730 hard_links="nottested"
14731 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14732   # do not overwrite the value of need_locks provided by the user
14733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14734 $as_echo_n "checking if we can lock with hard links... " >&6; }
14735   hard_links=yes
14736   $RM conftest*
14737   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14738   touch conftest.a
14739   ln conftest.a conftest.b 2>&5 || hard_links=no
14740   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14742 $as_echo "$hard_links" >&6; }
14743   if test "$hard_links" = no; then
14744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14745 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14746     need_locks=warn
14747   fi
14748 else
14749   need_locks=no
14750 fi
14751
14752
14753
14754     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14755 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14756
14757   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14758   case $host_os in
14759   aix[4-9]*)
14760     # If we're using GNU nm, then we don't want the "-C" option.
14761     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14762     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14763       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'
14764     else
14765       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'
14766     fi
14767     ;;
14768   pw32*)
14769     export_symbols_cmds_CXX="$ltdll_cmds"
14770   ;;
14771   cygwin* | mingw* | cegcc*)
14772     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'
14773   ;;
14774   linux* | k*bsd*-gnu)
14775     link_all_deplibs_CXX=no
14776   ;;
14777   *)
14778     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14779   ;;
14780   esac
14781   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14782
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14784 $as_echo "$ld_shlibs_CXX" >&6; }
14785 test "$ld_shlibs_CXX" = no && can_build_shared=no
14786
14787 with_gnu_ld_CXX=$with_gnu_ld
14788
14789
14790
14791
14792
14793
14794 #
14795 # Do we need to explicitly link libc?
14796 #
14797 case "x$archive_cmds_need_lc_CXX" in
14798 x|xyes)
14799   # Assume -lc should be added
14800   archive_cmds_need_lc_CXX=yes
14801
14802   if test "$enable_shared" = yes && test "$GCC" = yes; then
14803     case $archive_cmds_CXX in
14804     *'~'*)
14805       # FIXME: we may have to deal with multi-command sequences.
14806       ;;
14807     '$CC '*)
14808       # Test whether the compiler implicitly links with -lc since on some
14809       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14810       # to ld, don't add -lc before -lgcc.
14811       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14813       $RM conftest*
14814       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14815
14816       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14817   (eval $ac_compile) 2>&5
14818   ac_status=$?
14819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14820   test $ac_status = 0; } 2>conftest.err; then
14821         soname=conftest
14822         lib=conftest
14823         libobjs=conftest.$ac_objext
14824         deplibs=
14825         wl=$lt_prog_compiler_wl_CXX
14826         pic_flag=$lt_prog_compiler_pic_CXX
14827         compiler_flags=-v
14828         linker_flags=-v
14829         verstring=
14830         output_objdir=.
14831         libname=conftest
14832         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14833         allow_undefined_flag_CXX=
14834         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14835   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14836   ac_status=$?
14837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14838   test $ac_status = 0; }
14839         then
14840           archive_cmds_need_lc_CXX=no
14841         else
14842           archive_cmds_need_lc_CXX=yes
14843         fi
14844         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14845       else
14846         cat conftest.err 1>&5
14847       fi
14848       $RM conftest*
14849       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14850 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14851       ;;
14852     esac
14853   fi
14854   ;;
14855 esac
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
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
14917
14918
14919
14920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14921 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14922
14923 library_names_spec=
14924 libname_spec='lib$name'
14925 soname_spec=
14926 shrext_cmds=".so"
14927 postinstall_cmds=
14928 postuninstall_cmds=
14929 finish_cmds=
14930 finish_eval=
14931 shlibpath_var=
14932 shlibpath_overrides_runpath=unknown
14933 version_type=none
14934 dynamic_linker="$host_os ld.so"
14935 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14936 need_lib_prefix=unknown
14937 hardcode_into_libs=no
14938
14939 # when you set need_version to no, make sure it does not cause -set_version
14940 # flags to be left without arguments
14941 need_version=unknown
14942
14943 case $host_os in
14944 aix3*)
14945   version_type=linux
14946   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14947   shlibpath_var=LIBPATH
14948
14949   # AIX 3 has no versioning support, so we append a major version to the name.
14950   soname_spec='${libname}${release}${shared_ext}$major'
14951   ;;
14952
14953 aix[4-9]*)
14954   version_type=linux
14955   need_lib_prefix=no
14956   need_version=no
14957   hardcode_into_libs=yes
14958   if test "$host_cpu" = ia64; then
14959     # AIX 5 supports IA64
14960     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14961     shlibpath_var=LD_LIBRARY_PATH
14962   else
14963     # With GCC up to 2.95.x, collect2 would create an import file
14964     # for dependence libraries.  The import file would start with
14965     # the line `#! .'.  This would cause the generated library to
14966     # depend on `.', always an invalid library.  This was fixed in
14967     # development snapshots of GCC prior to 3.0.
14968     case $host_os in
14969       aix4 | aix4.[01] | aix4.[01].*)
14970       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14971            echo ' yes '
14972            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14973         :
14974       else
14975         can_build_shared=no
14976       fi
14977       ;;
14978     esac
14979     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14980     # soname into executable. Probably we can add versioning support to
14981     # collect2, so additional links can be useful in future.
14982     if test "$aix_use_runtimelinking" = yes; then
14983       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14984       # instead of lib<name>.a to let people know that these are not
14985       # typical AIX shared libraries.
14986       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987     else
14988       # We preserve .a as extension for shared libraries through AIX4.2
14989       # and later when we are not doing run time linking.
14990       library_names_spec='${libname}${release}.a $libname.a'
14991       soname_spec='${libname}${release}${shared_ext}$major'
14992     fi
14993     shlibpath_var=LIBPATH
14994   fi
14995   ;;
14996
14997 amigaos*)
14998   case $host_cpu in
14999   powerpc)
15000     # Since July 2007 AmigaOS4 officially supports .so libraries.
15001     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15002     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003     ;;
15004   m68k)
15005     library_names_spec='$libname.ixlibrary $libname.a'
15006     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15007     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'
15008     ;;
15009   esac
15010   ;;
15011
15012 beos*)
15013   library_names_spec='${libname}${shared_ext}'
15014   dynamic_linker="$host_os ld.so"
15015   shlibpath_var=LIBRARY_PATH
15016   ;;
15017
15018 bsdi[45]*)
15019   version_type=linux
15020   need_version=no
15021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15022   soname_spec='${libname}${release}${shared_ext}$major'
15023   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15024   shlibpath_var=LD_LIBRARY_PATH
15025   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15026   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15027   # the default ld.so.conf also contains /usr/contrib/lib and
15028   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15029   # libtool to hard-code these into programs
15030   ;;
15031
15032 cygwin* | mingw* | pw32* | cegcc*)
15033   version_type=windows
15034   shrext_cmds=".dll"
15035   need_version=no
15036   need_lib_prefix=no
15037
15038   case $GCC,$host_os in
15039   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15040     library_names_spec='$libname.dll.a'
15041     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15042     postinstall_cmds='base_file=`basename \${file}`~
15043       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15044       dldir=$destdir/`dirname \$dlpath`~
15045       test -d \$dldir || mkdir -p \$dldir~
15046       $install_prog $dir/$dlname \$dldir/$dlname~
15047       chmod a+x \$dldir/$dlname~
15048       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15049         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15050       fi'
15051     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15052       dlpath=$dir/\$dldll~
15053        $RM \$dlpath'
15054     shlibpath_overrides_runpath=yes
15055
15056     case $host_os in
15057     cygwin*)
15058       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15059       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15060       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15061       ;;
15062     mingw* | cegcc*)
15063       # MinGW DLLs use traditional 'lib' prefix
15064       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15065       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15066       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15067         # It is most probably a Windows format PATH printed by
15068         # mingw gcc, but we are running on Cygwin. Gcc prints its search
15069         # path with ; separators, and with drive letters. We can handle the
15070         # drive letters (cygwin fileutils understands them), so leave them,
15071         # especially as we might pass files found there to a mingw objdump,
15072         # which wouldn't understand a cygwinified path. Ahh.
15073         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15074       else
15075         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15076       fi
15077       ;;
15078     pw32*)
15079       # pw32 DLLs use 'pw' prefix rather than 'lib'
15080       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15081       ;;
15082     esac
15083     ;;
15084
15085   *)
15086     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15087     ;;
15088   esac
15089   dynamic_linker='Win32 ld.exe'
15090   # FIXME: first we should search . and the directory the executable is in
15091   shlibpath_var=PATH
15092   ;;
15093
15094 darwin* | rhapsody*)
15095   dynamic_linker="$host_os dyld"
15096   version_type=darwin
15097   need_lib_prefix=no
15098   need_version=no
15099   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15100   soname_spec='${libname}${release}${major}$shared_ext'
15101   shlibpath_overrides_runpath=yes
15102   shlibpath_var=DYLD_LIBRARY_PATH
15103   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15104
15105   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15106   ;;
15107
15108 dgux*)
15109   version_type=linux
15110   need_lib_prefix=no
15111   need_version=no
15112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15113   soname_spec='${libname}${release}${shared_ext}$major'
15114   shlibpath_var=LD_LIBRARY_PATH
15115   ;;
15116
15117 freebsd1*)
15118   dynamic_linker=no
15119   ;;
15120
15121 freebsd* | dragonfly*)
15122   # DragonFly does not have aout.  When/if they implement a new
15123   # versioning mechanism, adjust this.
15124   if test -x /usr/bin/objformat; then
15125     objformat=`/usr/bin/objformat`
15126   else
15127     case $host_os in
15128     freebsd[123]*) objformat=aout ;;
15129     *) objformat=elf ;;
15130     esac
15131   fi
15132   version_type=freebsd-$objformat
15133   case $version_type in
15134     freebsd-elf*)
15135       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15136       need_version=no
15137       need_lib_prefix=no
15138       ;;
15139     freebsd-*)
15140       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15141       need_version=yes
15142       ;;
15143   esac
15144   shlibpath_var=LD_LIBRARY_PATH
15145   case $host_os in
15146   freebsd2*)
15147     shlibpath_overrides_runpath=yes
15148     ;;
15149   freebsd3.[01]* | freebsdelf3.[01]*)
15150     shlibpath_overrides_runpath=yes
15151     hardcode_into_libs=yes
15152     ;;
15153   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15154   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15155     shlibpath_overrides_runpath=no
15156     hardcode_into_libs=yes
15157     ;;
15158   *) # from 4.6 on, and DragonFly
15159     shlibpath_overrides_runpath=yes
15160     hardcode_into_libs=yes
15161     ;;
15162   esac
15163   ;;
15164
15165 gnu*)
15166   version_type=linux
15167   need_lib_prefix=no
15168   need_version=no
15169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15170   soname_spec='${libname}${release}${shared_ext}$major'
15171   shlibpath_var=LD_LIBRARY_PATH
15172   hardcode_into_libs=yes
15173   ;;
15174
15175 hpux9* | hpux10* | hpux11*)
15176   # Give a soname corresponding to the major version so that dld.sl refuses to
15177   # link against other versions.
15178   version_type=sunos
15179   need_lib_prefix=no
15180   need_version=no
15181   case $host_cpu in
15182   ia64*)
15183     shrext_cmds='.so'
15184     hardcode_into_libs=yes
15185     dynamic_linker="$host_os dld.so"
15186     shlibpath_var=LD_LIBRARY_PATH
15187     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15189     soname_spec='${libname}${release}${shared_ext}$major'
15190     if test "X$HPUX_IA64_MODE" = X32; then
15191       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15192     else
15193       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15194     fi
15195     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15196     ;;
15197   hppa*64*)
15198     shrext_cmds='.sl'
15199     hardcode_into_libs=yes
15200     dynamic_linker="$host_os dld.sl"
15201     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15202     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15203     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204     soname_spec='${libname}${release}${shared_ext}$major'
15205     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15206     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15207     ;;
15208   *)
15209     shrext_cmds='.sl'
15210     dynamic_linker="$host_os dld.sl"
15211     shlibpath_var=SHLIB_PATH
15212     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15213     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15214     soname_spec='${libname}${release}${shared_ext}$major'
15215     ;;
15216   esac
15217   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15218   postinstall_cmds='chmod 555 $lib'
15219   ;;
15220
15221 interix[3-9]*)
15222   version_type=linux
15223   need_lib_prefix=no
15224   need_version=no
15225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15226   soname_spec='${libname}${release}${shared_ext}$major'
15227   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15228   shlibpath_var=LD_LIBRARY_PATH
15229   shlibpath_overrides_runpath=no
15230   hardcode_into_libs=yes
15231   ;;
15232
15233 irix5* | irix6* | nonstopux*)
15234   case $host_os in
15235     nonstopux*) version_type=nonstopux ;;
15236     *)
15237         if test "$lt_cv_prog_gnu_ld" = yes; then
15238                 version_type=linux
15239         else
15240                 version_type=irix
15241         fi ;;
15242   esac
15243   need_lib_prefix=no
15244   need_version=no
15245   soname_spec='${libname}${release}${shared_ext}$major'
15246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15247   case $host_os in
15248   irix5* | nonstopux*)
15249     libsuff= shlibsuff=
15250     ;;
15251   *)
15252     case $LD in # libtool.m4 will add one of these switches to LD
15253     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15254       libsuff= shlibsuff= libmagic=32-bit;;
15255     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15256       libsuff=32 shlibsuff=N32 libmagic=N32;;
15257     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15258       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15259     *) libsuff= shlibsuff= libmagic=never-match;;
15260     esac
15261     ;;
15262   esac
15263   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15264   shlibpath_overrides_runpath=no
15265   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15266   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15267   hardcode_into_libs=yes
15268   ;;
15269
15270 # No shared lib support for Linux oldld, aout, or coff.
15271 linux*oldld* | linux*aout* | linux*coff*)
15272   dynamic_linker=no
15273   ;;
15274
15275 # This must be Linux ELF.
15276 linux* | k*bsd*-gnu)
15277   version_type=linux
15278   need_lib_prefix=no
15279   need_version=no
15280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15281   soname_spec='${libname}${release}${shared_ext}$major'
15282   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15283   shlibpath_var=LD_LIBRARY_PATH
15284   shlibpath_overrides_runpath=no
15285   # Some binutils ld are patched to set DT_RUNPATH
15286   save_LDFLAGS=$LDFLAGS
15287   save_libdir=$libdir
15288   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15289        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h.  */
15292
15293 int
15294 main ()
15295 {
15296
15297   ;
15298   return 0;
15299 }
15300 _ACEOF
15301 if ac_fn_cxx_try_link "$LINENO"; then :
15302   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15303   shlibpath_overrides_runpath=yes
15304 fi
15305 fi
15306 rm -f core conftest.err conftest.$ac_objext \
15307     conftest$ac_exeext conftest.$ac_ext
15308   LDFLAGS=$save_LDFLAGS
15309   libdir=$save_libdir
15310
15311   # This implies no fast_install, which is unacceptable.
15312   # Some rework will be needed to allow for fast_install
15313   # before this can be enabled.
15314   hardcode_into_libs=yes
15315
15316   # Append ld.so.conf contents to the search path
15317   if test -f /etc/ld.so.conf; then
15318     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' ' '`
15319     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15320   fi
15321
15322   # We used to test for /lib/ld.so.1 and disable shared libraries on
15323   # powerpc, because MkLinux only supported shared libraries with the
15324   # GNU dynamic linker.  Since this was broken with cross compilers,
15325   # most powerpc-linux boxes support dynamic linking these days and
15326   # people can always --disable-shared, the test was removed, and we
15327   # assume the GNU/Linux dynamic linker is in use.
15328   dynamic_linker='GNU/Linux ld.so'
15329   ;;
15330
15331 netbsdelf*-gnu)
15332   version_type=linux
15333   need_lib_prefix=no
15334   need_version=no
15335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15336   soname_spec='${libname}${release}${shared_ext}$major'
15337   shlibpath_var=LD_LIBRARY_PATH
15338   shlibpath_overrides_runpath=no
15339   hardcode_into_libs=yes
15340   dynamic_linker='NetBSD ld.elf_so'
15341   ;;
15342
15343 netbsd*)
15344   version_type=sunos
15345   need_lib_prefix=no
15346   need_version=no
15347   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15348     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15349     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15350     dynamic_linker='NetBSD (a.out) ld.so'
15351   else
15352     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15353     soname_spec='${libname}${release}${shared_ext}$major'
15354     dynamic_linker='NetBSD ld.elf_so'
15355   fi
15356   shlibpath_var=LD_LIBRARY_PATH
15357   shlibpath_overrides_runpath=yes
15358   hardcode_into_libs=yes
15359   ;;
15360
15361 newsos6)
15362   version_type=linux
15363   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15364   shlibpath_var=LD_LIBRARY_PATH
15365   shlibpath_overrides_runpath=yes
15366   ;;
15367
15368 *nto* | *qnx*)
15369   version_type=qnx
15370   need_lib_prefix=no
15371   need_version=no
15372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373   soname_spec='${libname}${release}${shared_ext}$major'
15374   shlibpath_var=LD_LIBRARY_PATH
15375   shlibpath_overrides_runpath=no
15376   hardcode_into_libs=yes
15377   dynamic_linker='ldqnx.so'
15378   ;;
15379
15380 openbsd*)
15381   version_type=sunos
15382   sys_lib_dlsearch_path_spec="/usr/lib"
15383   need_lib_prefix=no
15384   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15385   case $host_os in
15386     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15387     *)                          need_version=no  ;;
15388   esac
15389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15390   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15391   shlibpath_var=LD_LIBRARY_PATH
15392   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15393     case $host_os in
15394       openbsd2.[89] | openbsd2.[89].*)
15395         shlibpath_overrides_runpath=no
15396         ;;
15397       *)
15398         shlibpath_overrides_runpath=yes
15399         ;;
15400       esac
15401   else
15402     shlibpath_overrides_runpath=yes
15403   fi
15404   ;;
15405
15406 os2*)
15407   libname_spec='$name'
15408   shrext_cmds=".dll"
15409   need_lib_prefix=no
15410   library_names_spec='$libname${shared_ext} $libname.a'
15411   dynamic_linker='OS/2 ld.exe'
15412   shlibpath_var=LIBPATH
15413   ;;
15414
15415 osf3* | osf4* | osf5*)
15416   version_type=osf
15417   need_lib_prefix=no
15418   need_version=no
15419   soname_spec='${libname}${release}${shared_ext}$major'
15420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15421   shlibpath_var=LD_LIBRARY_PATH
15422   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15423   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15424   ;;
15425
15426 rdos*)
15427   dynamic_linker=no
15428   ;;
15429
15430 solaris*)
15431   version_type=linux
15432   need_lib_prefix=no
15433   need_version=no
15434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435   soname_spec='${libname}${release}${shared_ext}$major'
15436   shlibpath_var=LD_LIBRARY_PATH
15437   shlibpath_overrides_runpath=yes
15438   hardcode_into_libs=yes
15439   # ldd complains unless libraries are executable
15440   postinstall_cmds='chmod +x $lib'
15441   ;;
15442
15443 sunos4*)
15444   version_type=sunos
15445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15446   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15447   shlibpath_var=LD_LIBRARY_PATH
15448   shlibpath_overrides_runpath=yes
15449   if test "$with_gnu_ld" = yes; then
15450     need_lib_prefix=no
15451   fi
15452   need_version=yes
15453   ;;
15454
15455 sysv4 | sysv4.3*)
15456   version_type=linux
15457   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458   soname_spec='${libname}${release}${shared_ext}$major'
15459   shlibpath_var=LD_LIBRARY_PATH
15460   case $host_vendor in
15461     sni)
15462       shlibpath_overrides_runpath=no
15463       need_lib_prefix=no
15464       runpath_var=LD_RUN_PATH
15465       ;;
15466     siemens)
15467       need_lib_prefix=no
15468       ;;
15469     motorola)
15470       need_lib_prefix=no
15471       need_version=no
15472       shlibpath_overrides_runpath=no
15473       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15474       ;;
15475   esac
15476   ;;
15477
15478 sysv4*MP*)
15479   if test -d /usr/nec ;then
15480     version_type=linux
15481     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15482     soname_spec='$libname${shared_ext}.$major'
15483     shlibpath_var=LD_LIBRARY_PATH
15484   fi
15485   ;;
15486
15487 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15488   version_type=freebsd-elf
15489   need_lib_prefix=no
15490   need_version=no
15491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15492   soname_spec='${libname}${release}${shared_ext}$major'
15493   shlibpath_var=LD_LIBRARY_PATH
15494   shlibpath_overrides_runpath=yes
15495   hardcode_into_libs=yes
15496   if test "$with_gnu_ld" = yes; then
15497     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15498   else
15499     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15500     case $host_os in
15501       sco3.2v5*)
15502         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15503         ;;
15504     esac
15505   fi
15506   sys_lib_dlsearch_path_spec='/usr/lib'
15507   ;;
15508
15509 tpf*)
15510   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15511   version_type=linux
15512   need_lib_prefix=no
15513   need_version=no
15514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515   shlibpath_var=LD_LIBRARY_PATH
15516   shlibpath_overrides_runpath=no
15517   hardcode_into_libs=yes
15518   ;;
15519
15520 uts4*)
15521   version_type=linux
15522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523   soname_spec='${libname}${release}${shared_ext}$major'
15524   shlibpath_var=LD_LIBRARY_PATH
15525   ;;
15526
15527 *)
15528   dynamic_linker=no
15529   ;;
15530 esac
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15532 $as_echo "$dynamic_linker" >&6; }
15533 test "$dynamic_linker" = no && can_build_shared=no
15534
15535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15536 if test "$GCC" = yes; then
15537   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15538 fi
15539
15540 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15541   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15542 fi
15543 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15544   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15545 fi
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15583 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15584 hardcode_action_CXX=
15585 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15586    test -n "$runpath_var_CXX" ||
15587    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15588
15589   # We can hardcode non-existent directories.
15590   if test "$hardcode_direct_CXX" != no &&
15591      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15592      # have to relink, otherwise we might link with an installed library
15593      # when we should be linking with a yet-to-be-installed one
15594      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15595      test "$hardcode_minus_L_CXX" != no; then
15596     # Linking always hardcodes the temporary library directory.
15597     hardcode_action_CXX=relink
15598   else
15599     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15600     hardcode_action_CXX=immediate
15601   fi
15602 else
15603   # We cannot hardcode anything, or else we can only hardcode existing
15604   # directories.
15605   hardcode_action_CXX=unsupported
15606 fi
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15608 $as_echo "$hardcode_action_CXX" >&6; }
15609
15610 if test "$hardcode_action_CXX" = relink ||
15611    test "$inherit_rpath_CXX" = yes; then
15612   # Fast installation is not supported
15613   enable_fast_install=no
15614 elif test "$shlibpath_overrides_runpath" = yes ||
15615      test "$enable_shared" = no; then
15616   # Fast installation is not necessary
15617   enable_fast_install=needless
15618 fi
15619
15620
15621
15622
15623
15624
15625
15626   fi # test -n "$compiler"
15627
15628   CC=$lt_save_CC
15629   LDCXX=$LD
15630   LD=$lt_save_LD
15631   GCC=$lt_save_GCC
15632   with_gnu_ld=$lt_save_with_gnu_ld
15633   lt_cv_path_LDCXX=$lt_cv_path_LD
15634   lt_cv_path_LD=$lt_save_path_LD
15635   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15636   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15637 fi # test "$_lt_caught_CXX_error" != yes
15638
15639 ac_ext=c
15640 ac_cpp='$CPP $CPPFLAGS'
15641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657         ac_config_commands="$ac_config_commands libtool"
15658
15659
15660
15661
15662 # Only expand once:
15663
15664
15665
15666
15667
15668 # -Wunreachable-code can't be used with library
15669 CFLAGS="$CFLAGS -pedantic-errors -Wall -Wmissing-prototypes -Wcast-align -std=c99"
15670
15671 # set -fgnu89-inline for GCC4 compilers
15672 if test -z "$ac_cv_prog_CC"; then
15673   configure_gcc="$CC"
15674 else
15675   configure_gcc="$ac_cv_prog_CC"
15676 fi
15677 if $configure_gcc --version | sed -e 's,\..*,.,' -e q | grep -q 4.$ ; then
15678   CFLAGS="$CFLAGS -fgnu89-inline"
15679 fi
15680
15681
15682
15683
15684
15685 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15686         if test -n "$ac_tool_prefix"; then
15687   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15688 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15690 $as_echo_n "checking for $ac_word... " >&6; }
15691 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15692   $as_echo_n "(cached) " >&6
15693 else
15694   case $PKG_CONFIG in
15695   [\\/]* | ?:[\\/]*)
15696   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15697   ;;
15698   *)
15699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15700 for as_dir in $PATH
15701 do
15702   IFS=$as_save_IFS
15703   test -z "$as_dir" && as_dir=.
15704     for ac_exec_ext in '' $ac_executable_extensions; do
15705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15706     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15708     break 2
15709   fi
15710 done
15711   done
15712 IFS=$as_save_IFS
15713
15714   ;;
15715 esac
15716 fi
15717 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15718 if test -n "$PKG_CONFIG"; then
15719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15720 $as_echo "$PKG_CONFIG" >&6; }
15721 else
15722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15723 $as_echo "no" >&6; }
15724 fi
15725
15726
15727 fi
15728 if test -z "$ac_cv_path_PKG_CONFIG"; then
15729   ac_pt_PKG_CONFIG=$PKG_CONFIG
15730   # Extract the first word of "pkg-config", so it can be a program name with args.
15731 set dummy pkg-config; ac_word=$2
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15733 $as_echo_n "checking for $ac_word... " >&6; }
15734 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15735   $as_echo_n "(cached) " >&6
15736 else
15737   case $ac_pt_PKG_CONFIG in
15738   [\\/]* | ?:[\\/]*)
15739   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15740   ;;
15741   *)
15742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15743 for as_dir in $PATH
15744 do
15745   IFS=$as_save_IFS
15746   test -z "$as_dir" && as_dir=.
15747     for ac_exec_ext in '' $ac_executable_extensions; do
15748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15749     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15751     break 2
15752   fi
15753 done
15754   done
15755 IFS=$as_save_IFS
15756
15757   ;;
15758 esac
15759 fi
15760 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15761 if test -n "$ac_pt_PKG_CONFIG"; then
15762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15763 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15764 else
15765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15766 $as_echo "no" >&6; }
15767 fi
15768
15769   if test "x$ac_pt_PKG_CONFIG" = x; then
15770     PKG_CONFIG=""
15771   else
15772     case $cross_compiling:$ac_tool_warned in
15773 yes:)
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15776 ac_tool_warned=yes ;;
15777 esac
15778     PKG_CONFIG=$ac_pt_PKG_CONFIG
15779   fi
15780 else
15781   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15782 fi
15783
15784 fi
15785 if test -n "$PKG_CONFIG"; then
15786         _pkg_min_version=0.9.0
15787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15788 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15789         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15790                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15791 $as_echo "yes" >&6; }
15792         else
15793                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15794 $as_echo "no" >&6; }
15795                 PKG_CONFIG=""
15796         fi
15797
15798 fi
15799
15800 pkg_failed=no
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PACKAGE" >&5
15802 $as_echo_n "checking for PACKAGE... " >&6; }
15803
15804 if test -n "$PKG_CONFIG"; then
15805     if test -n "$PACKAGE_CFLAGS"; then
15806         pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
15807     else
15808         if test -n "$PKG_CONFIG" && \
15809     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\""; } >&5
15810   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
15811   ac_status=$?
15812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15813   test $ac_status = 0; }; then
15814   pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
15815 else
15816   pkg_failed=yes
15817 fi
15818     fi
15819 else
15820         pkg_failed=untried
15821 fi
15822 if test -n "$PKG_CONFIG"; then
15823     if test -n "$PACKAGE_LIBS"; then
15824         pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
15825     else
15826         if test -n "$PKG_CONFIG" && \
15827     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 gtk+-2.0 libsharing conic\""; } >&5
15828   ($PKG_CONFIG --exists --print-errors "glib-2.0 gtk+-2.0 libsharing conic") 2>&5
15829   ac_status=$?
15830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831   test $ac_status = 0; }; then
15832   pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "glib-2.0 gtk+-2.0 libsharing conic" 2>/dev/null`
15833 else
15834   pkg_failed=yes
15835 fi
15836     fi
15837 else
15838         pkg_failed=untried
15839 fi
15840
15841
15842
15843 if test $pkg_failed = yes; then
15844
15845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15846         _pkg_short_errors_supported=yes
15847 else
15848         _pkg_short_errors_supported=no
15849 fi
15850         if test $_pkg_short_errors_supported = yes; then
15851                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
15852         else
15853                 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 gtk+-2.0 libsharing conic"`
15854         fi
15855         # Put the nasty error message in config.log where it belongs
15856         echo "$PACKAGE_PKG_ERRORS" >&5
15857
15858         as_fn_error "Package requirements (glib-2.0 gtk+-2.0 libsharing conic) were not met:
15859
15860 $PACKAGE_PKG_ERRORS
15861
15862 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15863 installed software in a non-standard prefix.
15864
15865 Alternatively, you may set the environment variables PACKAGE_CFLAGS
15866 and PACKAGE_LIBS to avoid the need to call pkg-config.
15867 See the pkg-config man page for more details.
15868 " "$LINENO" 5
15869 elif test $pkg_failed = untried; then
15870         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15872 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15873 is in your PATH or set the PKG_CONFIG environment variable to the full
15874 path to pkg-config.
15875
15876 Alternatively, you may set the environment variables PACKAGE_CFLAGS
15877 and PACKAGE_LIBS to avoid the need to call pkg-config.
15878 See the pkg-config man page for more details.
15879
15880 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15881 See \`config.log' for more details." "$LINENO" 5; }
15882 else
15883         PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
15884         PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
15885         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15886 $as_echo "yes" >&6; }
15887         :
15888 fi
15889
15890
15891
15892
15893 pkg_failed=no
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHARING" >&5
15895 $as_echo_n "checking for SHARING... " >&6; }
15896
15897 if test -n "$PKG_CONFIG"; then
15898     if test -n "$SHARING_CFLAGS"; then
15899         pkg_cv_SHARING_CFLAGS="$SHARING_CFLAGS"
15900     else
15901         if test -n "$PKG_CONFIG" && \
15902     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsharing\""; } >&5
15903   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
15904   ac_status=$?
15905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15906   test $ac_status = 0; }; then
15907   pkg_cv_SHARING_CFLAGS=`$PKG_CONFIG --cflags "libsharing" 2>/dev/null`
15908 else
15909   pkg_failed=yes
15910 fi
15911     fi
15912 else
15913         pkg_failed=untried
15914 fi
15915 if test -n "$PKG_CONFIG"; then
15916     if test -n "$SHARING_LIBS"; then
15917         pkg_cv_SHARING_LIBS="$SHARING_LIBS"
15918     else
15919         if test -n "$PKG_CONFIG" && \
15920     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsharing\""; } >&5
15921   ($PKG_CONFIG --exists --print-errors "libsharing") 2>&5
15922   ac_status=$?
15923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15924   test $ac_status = 0; }; then
15925   pkg_cv_SHARING_LIBS=`$PKG_CONFIG --libs "libsharing" 2>/dev/null`
15926 else
15927   pkg_failed=yes
15928 fi
15929     fi
15930 else
15931         pkg_failed=untried
15932 fi
15933
15934
15935
15936 if test $pkg_failed = yes; then
15937
15938 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15939         _pkg_short_errors_supported=yes
15940 else
15941         _pkg_short_errors_supported=no
15942 fi
15943         if test $_pkg_short_errors_supported = yes; then
15944                 SHARING_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libsharing"`
15945         else
15946                 SHARING_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libsharing"`
15947         fi
15948         # Put the nasty error message in config.log where it belongs
15949         echo "$SHARING_PKG_ERRORS" >&5
15950
15951         as_fn_error "Package requirements (libsharing) were not met:
15952
15953 $SHARING_PKG_ERRORS
15954
15955 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15956 installed software in a non-standard prefix.
15957
15958 Alternatively, you may set the environment variables SHARING_CFLAGS
15959 and SHARING_LIBS to avoid the need to call pkg-config.
15960 See the pkg-config man page for more details.
15961 " "$LINENO" 5
15962 elif test $pkg_failed = untried; then
15963         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15965 as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
15966 is in your PATH or set the PKG_CONFIG environment variable to the full
15967 path to pkg-config.
15968
15969 Alternatively, you may set the environment variables SHARING_CFLAGS
15970 and SHARING_LIBS to avoid the need to call pkg-config.
15971 See the pkg-config man page for more details.
15972
15973 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15974 See \`config.log' for more details." "$LINENO" 5; }
15975 else
15976         SHARING_CFLAGS=$pkg_cv_SHARING_CFLAGS
15977         SHARING_LIBS=$pkg_cv_SHARING_LIBS
15978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15979 $as_echo "yes" >&6; }
15980         :
15981 fi
15982
15983
15984
15985 currentdir=`pwd`
15986
15987 pluginsdir=`$PKG_CONFIG libsharing --variable=pluginsdir`
15988
15989
15990
15991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15992         if test -n "$ac_tool_prefix"; then
15993   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15996 $as_echo_n "checking for $ac_word... " >&6; }
15997 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15998   $as_echo_n "(cached) " >&6
15999 else
16000   case $PKG_CONFIG in
16001   [\\/]* | ?:[\\/]*)
16002   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16003   ;;
16004   *)
16005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16006 for as_dir in $PATH
16007 do
16008   IFS=$as_save_IFS
16009   test -z "$as_dir" && as_dir=.
16010     for ac_exec_ext in '' $ac_executable_extensions; do
16011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16012     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16014     break 2
16015   fi
16016 done
16017   done
16018 IFS=$as_save_IFS
16019
16020   ;;
16021 esac
16022 fi
16023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16024 if test -n "$PKG_CONFIG"; then
16025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16026 $as_echo "$PKG_CONFIG" >&6; }
16027 else
16028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16029 $as_echo "no" >&6; }
16030 fi
16031
16032
16033 fi
16034 if test -z "$ac_cv_path_PKG_CONFIG"; then
16035   ac_pt_PKG_CONFIG=$PKG_CONFIG
16036   # Extract the first word of "pkg-config", so it can be a program name with args.
16037 set dummy pkg-config; ac_word=$2
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16039 $as_echo_n "checking for $ac_word... " >&6; }
16040 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
16041   $as_echo_n "(cached) " >&6
16042 else
16043   case $ac_pt_PKG_CONFIG in
16044   [\\/]* | ?:[\\/]*)
16045   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16046   ;;
16047   *)
16048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16049 for as_dir in $PATH
16050 do
16051   IFS=$as_save_IFS
16052   test -z "$as_dir" && as_dir=.
16053     for ac_exec_ext in '' $ac_executable_extensions; do
16054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16055     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16057     break 2
16058   fi
16059 done
16060   done
16061 IFS=$as_save_IFS
16062
16063   ;;
16064 esac
16065 fi
16066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16067 if test -n "$ac_pt_PKG_CONFIG"; then
16068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16069 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16070 else
16071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16073 fi
16074
16075   if test "x$ac_pt_PKG_CONFIG" = x; then
16076     PKG_CONFIG=""
16077   else
16078     case $cross_compiling:$ac_tool_warned in
16079 yes:)
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16082 ac_tool_warned=yes ;;
16083 esac
16084     PKG_CONFIG=$ac_pt_PKG_CONFIG
16085   fi
16086 else
16087   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16088 fi
16089
16090 fi
16091 if test -n "$PKG_CONFIG"; then
16092         _pkg_min_version=0.9.0
16093         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16094 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16095         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16096                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16097 $as_echo "yes" >&6; }
16098         else
16099                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16100 $as_echo "no" >&6; }
16101                 PKG_CONFIG=""
16102         fi
16103
16104 fi
16105 servicesdir=`$PKG_CONFIG libsharing --variable=servicesdir`
16106
16107
16108
16109
16110 # Check whether --enable-debug was given.
16111 if test "${enable_debug+set}" = set; then :
16112   enableval=$enable_debug; enable_debug=yes
16113 else
16114   enable_debug=no
16115 fi
16116
16117
16118 if test x$enable_debug = xyes; then
16119   DEBUG_CFLAGS="-DOSSOLOG_COMPILE"
16120
16121 fi
16122
16123
16124
16125 DATADIRNAME="share"
16126 if test "x${prefix}" = "xNONE"; then
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
16130 _ACEOF
16131
16132 else
16133
16134 cat >>confdefs.h <<_ACEOF
16135 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
16136 _ACEOF
16137
16138 fi
16139
16140
16141
16142
16143 ac_config_files="$ac_config_files Makefile data/Makefile data/cli.service.xml src/Makefile"
16144
16145 cat >confcache <<\_ACEOF
16146 # This file is a shell script that caches the results of configure
16147 # tests run on this system so they can be shared between configure
16148 # scripts and configure runs, see configure's option --config-cache.
16149 # It is not useful on other systems.  If it contains results you don't
16150 # want to keep, you may remove or edit it.
16151 #
16152 # config.status only pays attention to the cache file if you give it
16153 # the --recheck option to rerun configure.
16154 #
16155 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16156 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16157 # following values.
16158
16159 _ACEOF
16160
16161 # The following way of writing the cache mishandles newlines in values,
16162 # but we know of no workaround that is simple, portable, and efficient.
16163 # So, we kill variables containing newlines.
16164 # Ultrix sh set writes to stderr and can't be redirected directly,
16165 # and sets the high bit in the cache file unless we assign to the vars.
16166 (
16167   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16168     eval ac_val=\$$ac_var
16169     case $ac_val in #(
16170     *${as_nl}*)
16171       case $ac_var in #(
16172       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16173 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16174       esac
16175       case $ac_var in #(
16176       _ | IFS | as_nl) ;; #(
16177       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16178       *) { eval $ac_var=; unset $ac_var;} ;;
16179       esac ;;
16180     esac
16181   done
16182
16183   (set) 2>&1 |
16184     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16185     *${as_nl}ac_space=\ *)
16186       # `set' does not quote correctly, so add quotes: double-quote
16187       # substitution turns \\\\ into \\, and sed turns \\ into \.
16188       sed -n \
16189         "s/'/'\\\\''/g;
16190           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16191       ;; #(
16192     *)
16193       # `set' quotes correctly as required by POSIX, so do not add quotes.
16194       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16195       ;;
16196     esac |
16197     sort
16198 ) |
16199   sed '
16200      /^ac_cv_env_/b end
16201      t clear
16202      :clear
16203      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16204      t end
16205      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16206      :end' >>confcache
16207 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16208   if test -w "$cache_file"; then
16209     test "x$cache_file" != "x/dev/null" &&
16210       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16211 $as_echo "$as_me: updating cache $cache_file" >&6;}
16212     cat confcache >$cache_file
16213   else
16214     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16215 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16216   fi
16217 fi
16218 rm -f confcache
16219
16220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16221 # Let make expand exec_prefix.
16222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16223
16224 DEFS=-DHAVE_CONFIG_H
16225
16226 ac_libobjs=
16227 ac_ltlibobjs=
16228 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16229   # 1. Remove the extension, and $U if already installed.
16230   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16231   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16232   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16233   #    will be set to the directory where LIBOBJS objects are built.
16234   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16235   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16236 done
16237 LIBOBJS=$ac_libobjs
16238
16239 LTLIBOBJS=$ac_ltlibobjs
16240
16241
16242  if test -n "$EXEEXT"; then
16243   am__EXEEXT_TRUE=
16244   am__EXEEXT_FALSE='#'
16245 else
16246   am__EXEEXT_TRUE='#'
16247   am__EXEEXT_FALSE=
16248 fi
16249
16250 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16251   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16253 fi
16254 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16255   as_fn_error "conditional \"AMDEP\" was never defined.
16256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16257 fi
16258 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16259   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16261 fi
16262 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16263   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16265 fi
16266 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16267   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16269 fi
16270 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16271   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16273 fi
16274 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16275   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16277 fi
16278
16279 : ${CONFIG_STATUS=./config.status}
16280 ac_write_fail=0
16281 ac_clean_files_save=$ac_clean_files
16282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16284 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16285 as_write_fail=0
16286 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16287 #! $SHELL
16288 # Generated by $as_me.
16289 # Run this file to recreate the current configuration.
16290 # Compiler output produced by configure, useful for debugging
16291 # configure, is in config.log if it exists.
16292
16293 debug=false
16294 ac_cs_recheck=false
16295 ac_cs_silent=false
16296
16297 SHELL=\${CONFIG_SHELL-$SHELL}
16298 export SHELL
16299 _ASEOF
16300 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16301 ## -------------------- ##
16302 ## M4sh Initialization. ##
16303 ## -------------------- ##
16304
16305 # Be more Bourne compatible
16306 DUALCASE=1; export DUALCASE # for MKS sh
16307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16308   emulate sh
16309   NULLCMD=:
16310   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16311   # is contrary to our usage.  Disable this feature.
16312   alias -g '${1+"$@"}'='"$@"'
16313   setopt NO_GLOB_SUBST
16314 else
16315   case `(set -o) 2>/dev/null` in #(
16316   *posix*) :
16317     set -o posix ;; #(
16318   *) :
16319      ;;
16320 esac
16321 fi
16322
16323
16324 as_nl='
16325 '
16326 export as_nl
16327 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16328 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16331 # Prefer a ksh shell builtin over an external printf program on Solaris,
16332 # but without wasting forks for bash or zsh.
16333 if test -z "$BASH_VERSION$ZSH_VERSION" \
16334     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16335   as_echo='print -r --'
16336   as_echo_n='print -rn --'
16337 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16338   as_echo='printf %s\n'
16339   as_echo_n='printf %s'
16340 else
16341   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16342     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16343     as_echo_n='/usr/ucb/echo -n'
16344   else
16345     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16346     as_echo_n_body='eval
16347       arg=$1;
16348       case $arg in #(
16349       *"$as_nl"*)
16350         expr "X$arg" : "X\\(.*\\)$as_nl";
16351         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16352       esac;
16353       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16354     '
16355     export as_echo_n_body
16356     as_echo_n='sh -c $as_echo_n_body as_echo'
16357   fi
16358   export as_echo_body
16359   as_echo='sh -c $as_echo_body as_echo'
16360 fi
16361
16362 # The user is always right.
16363 if test "${PATH_SEPARATOR+set}" != set; then
16364   PATH_SEPARATOR=:
16365   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16366     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16367       PATH_SEPARATOR=';'
16368   }
16369 fi
16370
16371
16372 # IFS
16373 # We need space, tab and new line, in precisely that order.  Quoting is
16374 # there to prevent editors from complaining about space-tab.
16375 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16376 # splitting by setting IFS to empty value.)
16377 IFS=" ""        $as_nl"
16378
16379 # Find who we are.  Look in the path if we contain no directory separator.
16380 case $0 in #((
16381   *[\\/]* ) as_myself=$0 ;;
16382   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16383 for as_dir in $PATH
16384 do
16385   IFS=$as_save_IFS
16386   test -z "$as_dir" && as_dir=.
16387     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16388   done
16389 IFS=$as_save_IFS
16390
16391      ;;
16392 esac
16393 # We did not find ourselves, most probably we were run as `sh COMMAND'
16394 # in which case we are not to be found in the path.
16395 if test "x$as_myself" = x; then
16396   as_myself=$0
16397 fi
16398 if test ! -f "$as_myself"; then
16399   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16400   exit 1
16401 fi
16402
16403 # Unset variables that we do not need and which cause bugs (e.g. in
16404 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16405 # suppresses any "Segmentation fault" message there.  '((' could
16406 # trigger a bug in pdksh 5.2.14.
16407 for as_var in BASH_ENV ENV MAIL MAILPATH
16408 do eval test x\${$as_var+set} = xset \
16409   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16410 done
16411 PS1='$ '
16412 PS2='> '
16413 PS4='+ '
16414
16415 # NLS nuisances.
16416 LC_ALL=C
16417 export LC_ALL
16418 LANGUAGE=C
16419 export LANGUAGE
16420
16421 # CDPATH.
16422 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16423
16424
16425 # as_fn_error ERROR [LINENO LOG_FD]
16426 # ---------------------------------
16427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16429 # script with status $?, using 1 if that was 0.
16430 as_fn_error ()
16431 {
16432   as_status=$?; test $as_status -eq 0 && as_status=1
16433   if test "$3"; then
16434     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16435     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16436   fi
16437   $as_echo "$as_me: error: $1" >&2
16438   as_fn_exit $as_status
16439 } # as_fn_error
16440
16441
16442 # as_fn_set_status STATUS
16443 # -----------------------
16444 # Set $? to STATUS, without forking.
16445 as_fn_set_status ()
16446 {
16447   return $1
16448 } # as_fn_set_status
16449
16450 # as_fn_exit STATUS
16451 # -----------------
16452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16453 as_fn_exit ()
16454 {
16455   set +e
16456   as_fn_set_status $1
16457   exit $1
16458 } # as_fn_exit
16459
16460 # as_fn_unset VAR
16461 # ---------------
16462 # Portably unset VAR.
16463 as_fn_unset ()
16464 {
16465   { eval $1=; unset $1;}
16466 }
16467 as_unset=as_fn_unset
16468 # as_fn_append VAR VALUE
16469 # ----------------------
16470 # Append the text in VALUE to the end of the definition contained in VAR. Take
16471 # advantage of any shell optimizations that allow amortized linear growth over
16472 # repeated appends, instead of the typical quadratic growth present in naive
16473 # implementations.
16474 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16475   eval 'as_fn_append ()
16476   {
16477     eval $1+=\$2
16478   }'
16479 else
16480   as_fn_append ()
16481   {
16482     eval $1=\$$1\$2
16483   }
16484 fi # as_fn_append
16485
16486 # as_fn_arith ARG...
16487 # ------------------
16488 # Perform arithmetic evaluation on the ARGs, and store the result in the
16489 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16490 # must be portable across $(()) and expr.
16491 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16492   eval 'as_fn_arith ()
16493   {
16494     as_val=$(( $* ))
16495   }'
16496 else
16497   as_fn_arith ()
16498   {
16499     as_val=`expr "$@" || test $? -eq 1`
16500   }
16501 fi # as_fn_arith
16502
16503
16504 if expr a : '\(a\)' >/dev/null 2>&1 &&
16505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16506   as_expr=expr
16507 else
16508   as_expr=false
16509 fi
16510
16511 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16512   as_basename=basename
16513 else
16514   as_basename=false
16515 fi
16516
16517 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16518   as_dirname=dirname
16519 else
16520   as_dirname=false
16521 fi
16522
16523 as_me=`$as_basename -- "$0" ||
16524 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16525          X"$0" : 'X\(//\)$' \| \
16526          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16527 $as_echo X/"$0" |
16528     sed '/^.*\/\([^/][^/]*\)\/*$/{
16529             s//\1/
16530             q
16531           }
16532           /^X\/\(\/\/\)$/{
16533             s//\1/
16534             q
16535           }
16536           /^X\/\(\/\).*/{
16537             s//\1/
16538             q
16539           }
16540           s/.*/./; q'`
16541
16542 # Avoid depending upon Character Ranges.
16543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16546 as_cr_digits='0123456789'
16547 as_cr_alnum=$as_cr_Letters$as_cr_digits
16548
16549 ECHO_C= ECHO_N= ECHO_T=
16550 case `echo -n x` in #(((((
16551 -n*)
16552   case `echo 'xy\c'` in
16553   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16554   xy)  ECHO_C='\c';;
16555   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16556        ECHO_T=' ';;
16557   esac;;
16558 *)
16559   ECHO_N='-n';;
16560 esac
16561
16562 rm -f conf$$ conf$$.exe conf$$.file
16563 if test -d conf$$.dir; then
16564   rm -f conf$$.dir/conf$$.file
16565 else
16566   rm -f conf$$.dir
16567   mkdir conf$$.dir 2>/dev/null
16568 fi
16569 if (echo >conf$$.file) 2>/dev/null; then
16570   if ln -s conf$$.file conf$$ 2>/dev/null; then
16571     as_ln_s='ln -s'
16572     # ... but there are two gotchas:
16573     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16574     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16575     # In both cases, we have to default to `cp -p'.
16576     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16577       as_ln_s='cp -p'
16578   elif ln conf$$.file conf$$ 2>/dev/null; then
16579     as_ln_s=ln
16580   else
16581     as_ln_s='cp -p'
16582   fi
16583 else
16584   as_ln_s='cp -p'
16585 fi
16586 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16587 rmdir conf$$.dir 2>/dev/null
16588
16589
16590 # as_fn_mkdir_p
16591 # -------------
16592 # Create "$as_dir" as a directory, including parents if necessary.
16593 as_fn_mkdir_p ()
16594 {
16595
16596   case $as_dir in #(
16597   -*) as_dir=./$as_dir;;
16598   esac
16599   test -d "$as_dir" || eval $as_mkdir_p || {
16600     as_dirs=
16601     while :; do
16602       case $as_dir in #(
16603       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16604       *) as_qdir=$as_dir;;
16605       esac
16606       as_dirs="'$as_qdir' $as_dirs"
16607       as_dir=`$as_dirname -- "$as_dir" ||
16608 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16609          X"$as_dir" : 'X\(//\)[^/]' \| \
16610          X"$as_dir" : 'X\(//\)$' \| \
16611          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16612 $as_echo X"$as_dir" |
16613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16614             s//\1/
16615             q
16616           }
16617           /^X\(\/\/\)[^/].*/{
16618             s//\1/
16619             q
16620           }
16621           /^X\(\/\/\)$/{
16622             s//\1/
16623             q
16624           }
16625           /^X\(\/\).*/{
16626             s//\1/
16627             q
16628           }
16629           s/.*/./; q'`
16630       test -d "$as_dir" && break
16631     done
16632     test -z "$as_dirs" || eval "mkdir $as_dirs"
16633   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16634
16635
16636 } # as_fn_mkdir_p
16637 if mkdir -p . 2>/dev/null; then
16638   as_mkdir_p='mkdir -p "$as_dir"'
16639 else
16640   test -d ./-p && rmdir ./-p
16641   as_mkdir_p=false
16642 fi
16643
16644 if test -x / >/dev/null 2>&1; then
16645   as_test_x='test -x'
16646 else
16647   if ls -dL / >/dev/null 2>&1; then
16648     as_ls_L_option=L
16649   else
16650     as_ls_L_option=
16651   fi
16652   as_test_x='
16653     eval sh -c '\''
16654       if test -d "$1"; then
16655         test -d "$1/.";
16656       else
16657         case $1 in #(
16658         -*)set "./$1";;
16659         esac;
16660         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16661         ???[sx]*):;;*)false;;esac;fi
16662     '\'' sh
16663   '
16664 fi
16665 as_executable_p=$as_test_x
16666
16667 # Sed expression to map a string onto a valid CPP name.
16668 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16669
16670 # Sed expression to map a string onto a valid variable name.
16671 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16672
16673
16674 exec 6>&1
16675 ## ----------------------------------- ##
16676 ## Main body of $CONFIG_STATUS script. ##
16677 ## ----------------------------------- ##
16678 _ASEOF
16679 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16680
16681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16682 # Save the log message, to keep $0 and so on meaningful, and to
16683 # report actual input values of CONFIG_FILES etc. instead of their
16684 # values after options handling.
16685 ac_log="
16686 This file was extended by sharing-plugin-cli $as_me 0.1, which was
16687 generated by GNU Autoconf 2.64.  Invocation command line was
16688
16689   CONFIG_FILES    = $CONFIG_FILES
16690   CONFIG_HEADERS  = $CONFIG_HEADERS
16691   CONFIG_LINKS    = $CONFIG_LINKS
16692   CONFIG_COMMANDS = $CONFIG_COMMANDS
16693   $ $0 $@
16694
16695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16696 "
16697
16698 _ACEOF
16699
16700 case $ac_config_files in *"
16701 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16702 esac
16703
16704 case $ac_config_headers in *"
16705 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16706 esac
16707
16708
16709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16710 # Files that config.status was made for.
16711 config_files="$ac_config_files"
16712 config_headers="$ac_config_headers"
16713 config_commands="$ac_config_commands"
16714
16715 _ACEOF
16716
16717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16718 ac_cs_usage="\
16719 \`$as_me' instantiates files and other configuration actions
16720 from templates according to the current configuration.  Unless the files
16721 and actions are specified as TAGs, all are instantiated by default.
16722
16723 Usage: $0 [OPTION]... [TAG]...
16724
16725   -h, --help       print this help, then exit
16726   -V, --version    print version number and configuration settings, then exit
16727   -q, --quiet, --silent
16728                    do not print progress messages
16729   -d, --debug      don't remove temporary files
16730       --recheck    update $as_me by reconfiguring in the same conditions
16731       --file=FILE[:TEMPLATE]
16732                    instantiate the configuration file FILE
16733       --header=FILE[:TEMPLATE]
16734                    instantiate the configuration header FILE
16735
16736 Configuration files:
16737 $config_files
16738
16739 Configuration headers:
16740 $config_headers
16741
16742 Configuration commands:
16743 $config_commands
16744
16745 Report bugs to the package provider."
16746
16747 _ACEOF
16748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16749 ac_cs_version="\\
16750 sharing-plugin-cli config.status 0.1
16751 configured by $0, generated by GNU Autoconf 2.64,
16752   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16753
16754 Copyright (C) 2009 Free Software Foundation, Inc.
16755 This config.status script is free software; the Free Software Foundation
16756 gives unlimited permission to copy, distribute and modify it."
16757
16758 ac_pwd='$ac_pwd'
16759 srcdir='$srcdir'
16760 INSTALL='$INSTALL'
16761 MKDIR_P='$MKDIR_P'
16762 AWK='$AWK'
16763 test -n "\$AWK" || AWK=awk
16764 _ACEOF
16765
16766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16767 # The default lists apply if the user does not specify any file.
16768 ac_need_defaults=:
16769 while test $# != 0
16770 do
16771   case $1 in
16772   --*=*)
16773     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16774     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16775     ac_shift=:
16776     ;;
16777   *)
16778     ac_option=$1
16779     ac_optarg=$2
16780     ac_shift=shift
16781     ;;
16782   esac
16783
16784   case $ac_option in
16785   # Handling of the options.
16786   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16787     ac_cs_recheck=: ;;
16788   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16789     $as_echo "$ac_cs_version"; exit ;;
16790   --debug | --debu | --deb | --de | --d | -d )
16791     debug=: ;;
16792   --file | --fil | --fi | --f )
16793     $ac_shift
16794     case $ac_optarg in
16795     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16796     esac
16797     as_fn_append CONFIG_FILES " '$ac_optarg'"
16798     ac_need_defaults=false;;
16799   --header | --heade | --head | --hea )
16800     $ac_shift
16801     case $ac_optarg in
16802     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16803     esac
16804     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16805     ac_need_defaults=false;;
16806   --he | --h)
16807     # Conflict between --help and --header
16808     as_fn_error "ambiguous option: \`$1'
16809 Try \`$0 --help' for more information.";;
16810   --help | --hel | -h )
16811     $as_echo "$ac_cs_usage"; exit ;;
16812   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16813   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16814     ac_cs_silent=: ;;
16815
16816   # This is an error.
16817   -*) as_fn_error "unrecognized option: \`$1'
16818 Try \`$0 --help' for more information." ;;
16819
16820   *) as_fn_append ac_config_targets " $1"
16821      ac_need_defaults=false ;;
16822
16823   esac
16824   shift
16825 done
16826
16827 ac_configure_extra_args=
16828
16829 if $ac_cs_silent; then
16830   exec 6>/dev/null
16831   ac_configure_extra_args="$ac_configure_extra_args --silent"
16832 fi
16833
16834 _ACEOF
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 if \$ac_cs_recheck; then
16837   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16838   shift
16839   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16840   CONFIG_SHELL='$SHELL'
16841   export CONFIG_SHELL
16842   exec "\$@"
16843 fi
16844
16845 _ACEOF
16846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16847 exec 5>>config.log
16848 {
16849   echo
16850   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16851 ## Running $as_me. ##
16852 _ASBOX
16853   $as_echo "$ac_log"
16854 } >&5
16855
16856 _ACEOF
16857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16858 #
16859 # INIT-COMMANDS
16860 #
16861 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16862
16863
16864 # The HP-UX ksh and POSIX shell print the target directory to stdout
16865 # if CDPATH is set.
16866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16867
16868 sed_quote_subst='$sed_quote_subst'
16869 double_quote_subst='$double_quote_subst'
16870 delay_variable_subst='$delay_variable_subst'
16871 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16872 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16873 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16874 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16875 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16876 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16877 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16878 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16879 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16880 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16881 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16882 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16883 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16884 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16885 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16886 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16887 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16888 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16889 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16890 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16891 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16892 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16893 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16894 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16895 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16896 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16897 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16898 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16899 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16900 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16901 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16902 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16903 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16904 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16905 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16906 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16907 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16908 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16909 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16910 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16911 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16912 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16913 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16914 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16915 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"`'
16916 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"`'
16917 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16918 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16919 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16920 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16921 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16922 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16923 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16924 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16925 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16926 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16927 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16928 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16929 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16930 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16931 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16932 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16933 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16934 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16935 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16936 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16937 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16938 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16939 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16940 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16941 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16942 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16943 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16944 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16945 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16946 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16947 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16948 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16949 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16950 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16951 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16952 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16953 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16954 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16955 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16956 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16957 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16958 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16959 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16960 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16961 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16962 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16963 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16964 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16965 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16966 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16967 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16968 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16969 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16970 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16971 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16972 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16973 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16974 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16975 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16976 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16977 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16978 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16979 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16980 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16981 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16982 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16983 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16984 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16985 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16986 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16987 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16988 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16989 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16990 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16991 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16992 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16993 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16994 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16995 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16996 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16997 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16998 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16999 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17000 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17001 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17002 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17003 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17004 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17005 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17006 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17007 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17008 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17009 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17010 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17011 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17012 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17013 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17014 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17015 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17016 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17017 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17018 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17019 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17020 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17021 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17022 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17023 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17024 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17025 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17026 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17027 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17028 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17029 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17030 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17031 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17032 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17033 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17034 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17035 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17036 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17037 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17038 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17039 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17040 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17041 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
17042
17043 LTCC='$LTCC'
17044 LTCFLAGS='$LTCFLAGS'
17045 compiler='$compiler_DEFAULT'
17046
17047 # Quote evaled strings.
17048 for var in SED \
17049 GREP \
17050 EGREP \
17051 FGREP \
17052 LD \
17053 NM \
17054 LN_S \
17055 lt_SP2NL \
17056 lt_NL2SP \
17057 reload_flag \
17058 OBJDUMP \
17059 deplibs_check_method \
17060 file_magic_cmd \
17061 AR \
17062 AR_FLAGS \
17063 STRIP \
17064 RANLIB \
17065 CC \
17066 CFLAGS \
17067 compiler \
17068 lt_cv_sys_global_symbol_pipe \
17069 lt_cv_sys_global_symbol_to_cdecl \
17070 lt_cv_sys_global_symbol_to_c_name_address \
17071 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17072 SHELL \
17073 ECHO \
17074 lt_prog_compiler_no_builtin_flag \
17075 lt_prog_compiler_wl \
17076 lt_prog_compiler_pic \
17077 lt_prog_compiler_static \
17078 lt_cv_prog_compiler_c_o \
17079 need_locks \
17080 DSYMUTIL \
17081 NMEDIT \
17082 LIPO \
17083 OTOOL \
17084 OTOOL64 \
17085 shrext_cmds \
17086 export_dynamic_flag_spec \
17087 whole_archive_flag_spec \
17088 compiler_needs_object \
17089 with_gnu_ld \
17090 allow_undefined_flag \
17091 no_undefined_flag \
17092 hardcode_libdir_flag_spec \
17093 hardcode_libdir_flag_spec_ld \
17094 hardcode_libdir_separator \
17095 fix_srcfile_path \
17096 exclude_expsyms \
17097 include_expsyms \
17098 file_list_spec \
17099 variables_saved_for_relink \
17100 libname_spec \
17101 library_names_spec \
17102 soname_spec \
17103 finish_eval \
17104 old_striplib \
17105 striplib \
17106 compiler_lib_search_dirs \
17107 predep_objects \
17108 postdep_objects \
17109 predeps \
17110 postdeps \
17111 compiler_lib_search_path \
17112 LD_CXX \
17113 compiler_CXX \
17114 lt_prog_compiler_no_builtin_flag_CXX \
17115 lt_prog_compiler_wl_CXX \
17116 lt_prog_compiler_pic_CXX \
17117 lt_prog_compiler_static_CXX \
17118 lt_cv_prog_compiler_c_o_CXX \
17119 export_dynamic_flag_spec_CXX \
17120 whole_archive_flag_spec_CXX \
17121 compiler_needs_object_CXX \
17122 with_gnu_ld_CXX \
17123 allow_undefined_flag_CXX \
17124 no_undefined_flag_CXX \
17125 hardcode_libdir_flag_spec_CXX \
17126 hardcode_libdir_flag_spec_ld_CXX \
17127 hardcode_libdir_separator_CXX \
17128 fix_srcfile_path_CXX \
17129 exclude_expsyms_CXX \
17130 include_expsyms_CXX \
17131 file_list_spec_CXX \
17132 compiler_lib_search_dirs_CXX \
17133 predep_objects_CXX \
17134 postdep_objects_CXX \
17135 predeps_CXX \
17136 postdeps_CXX \
17137 compiler_lib_search_path_CXX; do
17138     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17139     *[\\\\\\\`\\"\\\$]*)
17140       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17141       ;;
17142     *)
17143       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17144       ;;
17145     esac
17146 done
17147
17148 # Double-quote double-evaled strings.
17149 for var in reload_cmds \
17150 old_postinstall_cmds \
17151 old_postuninstall_cmds \
17152 old_archive_cmds \
17153 extract_expsyms_cmds \
17154 old_archive_from_new_cmds \
17155 old_archive_from_expsyms_cmds \
17156 archive_cmds \
17157 archive_expsym_cmds \
17158 module_cmds \
17159 module_expsym_cmds \
17160 export_symbols_cmds \
17161 prelink_cmds \
17162 postinstall_cmds \
17163 postuninstall_cmds \
17164 finish_cmds \
17165 sys_lib_search_path_spec \
17166 sys_lib_dlsearch_path_spec \
17167 old_archive_cmds_CXX \
17168 old_archive_from_new_cmds_CXX \
17169 old_archive_from_expsyms_cmds_CXX \
17170 archive_cmds_CXX \
17171 archive_expsym_cmds_CXX \
17172 module_cmds_CXX \
17173 module_expsym_cmds_CXX \
17174 export_symbols_cmds_CXX \
17175 prelink_cmds_CXX; do
17176     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17177     *[\\\\\\\`\\"\\\$]*)
17178       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17179       ;;
17180     *)
17181       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17182       ;;
17183     esac
17184 done
17185
17186 # Fix-up fallback echo if it was mangled by the above quoting rules.
17187 case \$lt_ECHO in
17188 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17189   ;;
17190 esac
17191
17192 ac_aux_dir='$ac_aux_dir'
17193 xsi_shell='$xsi_shell'
17194 lt_shell_append='$lt_shell_append'
17195
17196 # See if we are running on zsh, and set the options which allow our
17197 # commands through without removal of \ escapes INIT.
17198 if test -n "\${ZSH_VERSION+set}" ; then
17199    setopt NO_GLOB_SUBST
17200 fi
17201
17202
17203     PACKAGE='$PACKAGE'
17204     VERSION='$VERSION'
17205     TIMESTAMP='$TIMESTAMP'
17206     RM='$RM'
17207     ofile='$ofile'
17208
17209
17210
17211
17212
17213
17214 _ACEOF
17215
17216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17217
17218 # Handling of arguments.
17219 for ac_config_target in $ac_config_targets
17220 do
17221   case $ac_config_target in
17222     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17223     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17224     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17225     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17226     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
17227     "data/cli.service.xml") CONFIG_FILES="$CONFIG_FILES data/cli.service.xml" ;;
17228     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17229
17230   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17231   esac
17232 done
17233
17234
17235 # If the user did not use the arguments to specify the items to instantiate,
17236 # then the envvar interface is used.  Set only those that are not.
17237 # We use the long form for the default assignment because of an extremely
17238 # bizarre bug on SunOS 4.1.3.
17239 if $ac_need_defaults; then
17240   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17241   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17242   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17243 fi
17244
17245 # Have a temporary directory for convenience.  Make it in the build tree
17246 # simply because there is no reason against having it here, and in addition,
17247 # creating and moving files from /tmp can sometimes cause problems.
17248 # Hook for its removal unless debugging.
17249 # Note that there is a small window in which the directory will not be cleaned:
17250 # after its creation but before its name has been assigned to `$tmp'.
17251 $debug ||
17252 {
17253   tmp=
17254   trap 'exit_status=$?
17255   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17256 ' 0
17257   trap 'as_fn_exit 1' 1 2 13 15
17258 }
17259 # Create a (secure) tmp directory for tmp files.
17260
17261 {
17262   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17263   test -n "$tmp" && test -d "$tmp"
17264 }  ||
17265 {
17266   tmp=./conf$$-$RANDOM
17267   (umask 077 && mkdir "$tmp")
17268 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17269
17270 # Set up the scripts for CONFIG_FILES section.
17271 # No need to generate them if there are no CONFIG_FILES.
17272 # This happens for instance with `./config.status config.h'.
17273 if test -n "$CONFIG_FILES"; then
17274
17275
17276 ac_cr=`echo X | tr X '\015'`
17277 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17278 # But we know of no other shell where ac_cr would be empty at this
17279 # point, so we can use a bashism as a fallback.
17280 if test "x$ac_cr" = x; then
17281   eval ac_cr=\$\'\\r\'
17282 fi
17283 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17284 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17285   ac_cs_awk_cr='\r'
17286 else
17287   ac_cs_awk_cr=$ac_cr
17288 fi
17289
17290 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17291 _ACEOF
17292
17293
17294 {
17295   echo "cat >conf$$subs.awk <<_ACEOF" &&
17296   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17297   echo "_ACEOF"
17298 } >conf$$subs.sh ||
17299   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17300 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17301 ac_delim='%!_!# '
17302 for ac_last_try in false false false false false :; do
17303   . ./conf$$subs.sh ||
17304     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17305
17306   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17307   if test $ac_delim_n = $ac_delim_num; then
17308     break
17309   elif $ac_last_try; then
17310     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17311   else
17312     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17313   fi
17314 done
17315 rm -f conf$$subs.sh
17316
17317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17318 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17319 _ACEOF
17320 sed -n '
17321 h
17322 s/^/S["/; s/!.*/"]=/
17323 p
17324 g
17325 s/^[^!]*!//
17326 :repl
17327 t repl
17328 s/'"$ac_delim"'$//
17329 t delim
17330 :nl
17331 h
17332 s/\(.\{148\}\).*/\1/
17333 t more1
17334 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17335 p
17336 n
17337 b repl
17338 :more1
17339 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17340 p
17341 g
17342 s/.\{148\}//
17343 t nl
17344 :delim
17345 h
17346 s/\(.\{148\}\).*/\1/
17347 t more2
17348 s/["\\]/\\&/g; s/^/"/; s/$/"/
17349 p
17350 b
17351 :more2
17352 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17353 p
17354 g
17355 s/.\{148\}//
17356 t delim
17357 ' <conf$$subs.awk | sed '
17358 /^[^""]/{
17359   N
17360   s/\n//
17361 }
17362 ' >>$CONFIG_STATUS || ac_write_fail=1
17363 rm -f conf$$subs.awk
17364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17365 _ACAWK
17366 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17367   for (key in S) S_is_set[key] = 1
17368   FS = "\a"
17369
17370 }
17371 {
17372   line = $ 0
17373   nfields = split(line, field, "@")
17374   substed = 0
17375   len = length(field[1])
17376   for (i = 2; i < nfields; i++) {
17377     key = field[i]
17378     keylen = length(key)
17379     if (S_is_set[key]) {
17380       value = S[key]
17381       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17382       len += length(value) + length(field[++i])
17383       substed = 1
17384     } else
17385       len += 1 + keylen
17386   }
17387
17388   print line
17389 }
17390
17391 _ACAWK
17392 _ACEOF
17393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17394 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17395   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17396 else
17397   cat
17398 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17399   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17400 _ACEOF
17401
17402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17404 # trailing colons and then remove the whole line if VPATH becomes empty
17405 # (actually we leave an empty line to preserve line numbers).
17406 if test "x$srcdir" = x.; then
17407   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17408 s/:*\$(srcdir):*/:/
17409 s/:*\${srcdir}:*/:/
17410 s/:*@srcdir@:*/:/
17411 s/^\([^=]*=[     ]*\):*/\1/
17412 s/:*$//
17413 s/^[^=]*=[       ]*$//
17414 }'
17415 fi
17416
17417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17418 fi # test -n "$CONFIG_FILES"
17419
17420 # Set up the scripts for CONFIG_HEADERS section.
17421 # No need to generate them if there are no CONFIG_HEADERS.
17422 # This happens for instance with `./config.status Makefile'.
17423 if test -n "$CONFIG_HEADERS"; then
17424 cat >"$tmp/defines.awk" <<\_ACAWK ||
17425 BEGIN {
17426 _ACEOF
17427
17428 # Transform confdefs.h into an awk script `defines.awk', embedded as
17429 # here-document in config.status, that substitutes the proper values into
17430 # config.h.in to produce config.h.
17431
17432 # Create a delimiter string that does not exist in confdefs.h, to ease
17433 # handling of long lines.
17434 ac_delim='%!_!# '
17435 for ac_last_try in false false :; do
17436   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17437   if test -z "$ac_t"; then
17438     break
17439   elif $ac_last_try; then
17440     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17441   else
17442     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17443   fi
17444 done
17445
17446 # For the awk script, D is an array of macro values keyed by name,
17447 # likewise P contains macro parameters if any.  Preserve backslash
17448 # newline sequences.
17449
17450 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17451 sed -n '
17452 s/.\{148\}/&'"$ac_delim"'/g
17453 t rset
17454 :rset
17455 s/^[     ]*#[    ]*define[       ][      ]*/ /
17456 t def
17457 d
17458 :def
17459 s/\\$//
17460 t bsnl
17461 s/["\\]/\\&/g
17462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17463 D["\1"]=" \3"/p
17464 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17465 d
17466 :bsnl
17467 s/["\\]/\\&/g
17468 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17469 D["\1"]=" \3\\\\\\n"\\/p
17470 t cont
17471 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17472 t cont
17473 d
17474 :cont
17475 n
17476 s/.\{148\}/&'"$ac_delim"'/g
17477 t clear
17478 :clear
17479 s/\\$//
17480 t bsnlc
17481 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17482 d
17483 :bsnlc
17484 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17485 b cont
17486 ' <confdefs.h | sed '
17487 s/'"$ac_delim"'/"\\\
17488 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17489
17490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17491   for (key in D) D_is_set[key] = 1
17492   FS = "\a"
17493 }
17494 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17495   line = \$ 0
17496   split(line, arg, " ")
17497   if (arg[1] == "#") {
17498     defundef = arg[2]
17499     mac1 = arg[3]
17500   } else {
17501     defundef = substr(arg[1], 2)
17502     mac1 = arg[2]
17503   }
17504   split(mac1, mac2, "(") #)
17505   macro = mac2[1]
17506   prefix = substr(line, 1, index(line, defundef) - 1)
17507   if (D_is_set[macro]) {
17508     # Preserve the white space surrounding the "#".
17509     print prefix "define", macro P[macro] D[macro]
17510     next
17511   } else {
17512     # Replace #undef with comments.  This is necessary, for example,
17513     # in the case of _POSIX_SOURCE, which is predefined and required
17514     # on some systems where configure will not decide to define it.
17515     if (defundef == "undef") {
17516       print "/*", prefix defundef, macro, "*/"
17517       next
17518     }
17519   }
17520 }
17521 { print }
17522 _ACAWK
17523 _ACEOF
17524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17525   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17526 fi # test -n "$CONFIG_HEADERS"
17527
17528
17529 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17530 shift
17531 for ac_tag
17532 do
17533   case $ac_tag in
17534   :[FHLC]) ac_mode=$ac_tag; continue;;
17535   esac
17536   case $ac_mode$ac_tag in
17537   :[FHL]*:*);;
17538   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17539   :[FH]-) ac_tag=-:-;;
17540   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17541   esac
17542   ac_save_IFS=$IFS
17543   IFS=:
17544   set x $ac_tag
17545   IFS=$ac_save_IFS
17546   shift
17547   ac_file=$1
17548   shift
17549
17550   case $ac_mode in
17551   :L) ac_source=$1;;
17552   :[FH])
17553     ac_file_inputs=
17554     for ac_f
17555     do
17556       case $ac_f in
17557       -) ac_f="$tmp/stdin";;
17558       *) # Look for the file first in the build tree, then in the source tree
17559          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17560          # because $ac_f cannot contain `:'.
17561          test -f "$ac_f" ||
17562            case $ac_f in
17563            [\\/$]*) false;;
17564            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17565            esac ||
17566            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17567       esac
17568       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17569       as_fn_append ac_file_inputs " '$ac_f'"
17570     done
17571
17572     # Let's still pretend it is `configure' which instantiates (i.e., don't
17573     # use $as_me), people would be surprised to read:
17574     #    /* config.h.  Generated by config.status.  */
17575     configure_input='Generated from '`
17576           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17577         `' by configure.'
17578     if test x"$ac_file" != x-; then
17579       configure_input="$ac_file.  $configure_input"
17580       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17581 $as_echo "$as_me: creating $ac_file" >&6;}
17582     fi
17583     # Neutralize special characters interpreted by sed in replacement strings.
17584     case $configure_input in #(
17585     *\&* | *\|* | *\\* )
17586        ac_sed_conf_input=`$as_echo "$configure_input" |
17587        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17588     *) ac_sed_conf_input=$configure_input;;
17589     esac
17590
17591     case $ac_tag in
17592     *:-:* | *:-) cat >"$tmp/stdin" \
17593       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17594     esac
17595     ;;
17596   esac
17597
17598   ac_dir=`$as_dirname -- "$ac_file" ||
17599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17600          X"$ac_file" : 'X\(//\)[^/]' \| \
17601          X"$ac_file" : 'X\(//\)$' \| \
17602          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17603 $as_echo X"$ac_file" |
17604     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17605             s//\1/
17606             q
17607           }
17608           /^X\(\/\/\)[^/].*/{
17609             s//\1/
17610             q
17611           }
17612           /^X\(\/\/\)$/{
17613             s//\1/
17614             q
17615           }
17616           /^X\(\/\).*/{
17617             s//\1/
17618             q
17619           }
17620           s/.*/./; q'`
17621   as_dir="$ac_dir"; as_fn_mkdir_p
17622   ac_builddir=.
17623
17624 case "$ac_dir" in
17625 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17626 *)
17627   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17628   # A ".." for each directory in $ac_dir_suffix.
17629   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17630   case $ac_top_builddir_sub in
17631   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17632   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17633   esac ;;
17634 esac
17635 ac_abs_top_builddir=$ac_pwd
17636 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17637 # for backward compatibility:
17638 ac_top_builddir=$ac_top_build_prefix
17639
17640 case $srcdir in
17641   .)  # We are building in place.
17642     ac_srcdir=.
17643     ac_top_srcdir=$ac_top_builddir_sub
17644     ac_abs_top_srcdir=$ac_pwd ;;
17645   [\\/]* | ?:[\\/]* )  # Absolute name.
17646     ac_srcdir=$srcdir$ac_dir_suffix;
17647     ac_top_srcdir=$srcdir
17648     ac_abs_top_srcdir=$srcdir ;;
17649   *) # Relative name.
17650     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17651     ac_top_srcdir=$ac_top_build_prefix$srcdir
17652     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17653 esac
17654 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17655
17656
17657   case $ac_mode in
17658   :F)
17659   #
17660   # CONFIG_FILE
17661   #
17662
17663   case $INSTALL in
17664   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17665   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17666   esac
17667   ac_MKDIR_P=$MKDIR_P
17668   case $MKDIR_P in
17669   [\\/$]* | ?:[\\/]* ) ;;
17670   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17671   esac
17672 _ACEOF
17673
17674 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17675 # If the template does not know about datarootdir, expand it.
17676 # FIXME: This hack should be removed a few years after 2.60.
17677 ac_datarootdir_hack=; ac_datarootdir_seen=
17678 ac_sed_dataroot='
17679 /datarootdir/ {
17680   p
17681   q
17682 }
17683 /@datadir@/p
17684 /@docdir@/p
17685 /@infodir@/p
17686 /@localedir@/p
17687 /@mandir@/p'
17688 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17689 *datarootdir*) ac_datarootdir_seen=yes;;
17690 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17691   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17692 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17693 _ACEOF
17694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17695   ac_datarootdir_hack='
17696   s&@datadir@&$datadir&g
17697   s&@docdir@&$docdir&g
17698   s&@infodir@&$infodir&g
17699   s&@localedir@&$localedir&g
17700   s&@mandir@&$mandir&g
17701   s&\\\${datarootdir}&$datarootdir&g' ;;
17702 esac
17703 _ACEOF
17704
17705 # Neutralize VPATH when `$srcdir' = `.'.
17706 # Shell code in configure.ac might set extrasub.
17707 # FIXME: do we really want to maintain this feature?
17708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17709 ac_sed_extra="$ac_vpsub
17710 $extrasub
17711 _ACEOF
17712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17713 :t
17714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17715 s|@configure_input@|$ac_sed_conf_input|;t t
17716 s&@top_builddir@&$ac_top_builddir_sub&;t t
17717 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17718 s&@srcdir@&$ac_srcdir&;t t
17719 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17720 s&@top_srcdir@&$ac_top_srcdir&;t t
17721 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17722 s&@builddir@&$ac_builddir&;t t
17723 s&@abs_builddir@&$ac_abs_builddir&;t t
17724 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17725 s&@INSTALL@&$ac_INSTALL&;t t
17726 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17727 $ac_datarootdir_hack
17728 "
17729 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17730   || as_fn_error "could not create $ac_file" "$LINENO" 5
17731
17732 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17733   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17734   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17735   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17736 which seems to be undefined.  Please make sure it is defined." >&5
17737 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17738 which seems to be undefined.  Please make sure it is defined." >&2;}
17739
17740   rm -f "$tmp/stdin"
17741   case $ac_file in
17742   -) cat "$tmp/out" && rm -f "$tmp/out";;
17743   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17744   esac \
17745   || as_fn_error "could not create $ac_file" "$LINENO" 5
17746  ;;
17747   :H)
17748   #
17749   # CONFIG_HEADER
17750   #
17751   if test x"$ac_file" != x-; then
17752     {
17753       $as_echo "/* $configure_input  */" \
17754       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17755     } >"$tmp/config.h" \
17756       || as_fn_error "could not create $ac_file" "$LINENO" 5
17757     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17758       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17759 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17760     else
17761       rm -f "$ac_file"
17762       mv "$tmp/config.h" "$ac_file" \
17763         || as_fn_error "could not create $ac_file" "$LINENO" 5
17764     fi
17765   else
17766     $as_echo "/* $configure_input  */" \
17767       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17768       || as_fn_error "could not create -" "$LINENO" 5
17769   fi
17770 # Compute "$ac_file"'s index in $config_headers.
17771 _am_arg="$ac_file"
17772 _am_stamp_count=1
17773 for _am_header in $config_headers :; do
17774   case $_am_header in
17775     $_am_arg | $_am_arg:* )
17776       break ;;
17777     * )
17778       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17779   esac
17780 done
17781 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17782 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17783          X"$_am_arg" : 'X\(//\)[^/]' \| \
17784          X"$_am_arg" : 'X\(//\)$' \| \
17785          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17786 $as_echo X"$_am_arg" |
17787     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17788             s//\1/
17789             q
17790           }
17791           /^X\(\/\/\)[^/].*/{
17792             s//\1/
17793             q
17794           }
17795           /^X\(\/\/\)$/{
17796             s//\1/
17797             q
17798           }
17799           /^X\(\/\).*/{
17800             s//\1/
17801             q
17802           }
17803           s/.*/./; q'`/stamp-h$_am_stamp_count
17804  ;;
17805
17806   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17807 $as_echo "$as_me: executing $ac_file commands" >&6;}
17808  ;;
17809   esac
17810
17811
17812   case $ac_file$ac_mode in
17813     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17814   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17815   # are listed without --file.  Let's play safe and only enable the eval
17816   # if we detect the quoting.
17817   case $CONFIG_FILES in
17818   *\'*) eval set x "$CONFIG_FILES" ;;
17819   *)   set x $CONFIG_FILES ;;
17820   esac
17821   shift
17822   for mf
17823   do
17824     # Strip MF so we end up with the name of the file.
17825     mf=`echo "$mf" | sed -e 's/:.*$//'`
17826     # Check whether this is an Automake generated Makefile or not.
17827     # We used to match only the files named `Makefile.in', but
17828     # some people rename them; so instead we look at the file content.
17829     # Grep'ing the first line is not enough: some people post-process
17830     # each Makefile.in and add a new line on top of each file to say so.
17831     # Grep'ing the whole file is not good either: AIX grep has a line
17832     # limit of 2048, but all sed's we know have understand at least 4000.
17833     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17834       dirpart=`$as_dirname -- "$mf" ||
17835 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17836          X"$mf" : 'X\(//\)[^/]' \| \
17837          X"$mf" : 'X\(//\)$' \| \
17838          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17839 $as_echo X"$mf" |
17840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17841             s//\1/
17842             q
17843           }
17844           /^X\(\/\/\)[^/].*/{
17845             s//\1/
17846             q
17847           }
17848           /^X\(\/\/\)$/{
17849             s//\1/
17850             q
17851           }
17852           /^X\(\/\).*/{
17853             s//\1/
17854             q
17855           }
17856           s/.*/./; q'`
17857     else
17858       continue
17859     fi
17860     # Extract the definition of DEPDIR, am__include, and am__quote
17861     # from the Makefile without running `make'.
17862     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17863     test -z "$DEPDIR" && continue
17864     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17865     test -z "am__include" && continue
17866     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17867     # When using ansi2knr, U may be empty or an underscore; expand it
17868     U=`sed -n 's/^U = //p' < "$mf"`
17869     # Find all dependency output files, they are included files with
17870     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17871     # simplest approach to changing $(DEPDIR) to its actual value in the
17872     # expansion.
17873     for file in `sed -n "
17874       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17875          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17876       # Make sure the directory exists.
17877       test -f "$dirpart/$file" && continue
17878       fdir=`$as_dirname -- "$file" ||
17879 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17880          X"$file" : 'X\(//\)[^/]' \| \
17881          X"$file" : 'X\(//\)$' \| \
17882          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17883 $as_echo X"$file" |
17884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17885             s//\1/
17886             q
17887           }
17888           /^X\(\/\/\)[^/].*/{
17889             s//\1/
17890             q
17891           }
17892           /^X\(\/\/\)$/{
17893             s//\1/
17894             q
17895           }
17896           /^X\(\/\).*/{
17897             s//\1/
17898             q
17899           }
17900           s/.*/./; q'`
17901       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17902       # echo "creating $dirpart/$file"
17903       echo '# dummy' > "$dirpart/$file"
17904     done
17905   done
17906 }
17907  ;;
17908     "libtool":C)
17909
17910     # See if we are running on zsh, and set the options which allow our
17911     # commands through without removal of \ escapes.
17912     if test -n "${ZSH_VERSION+set}" ; then
17913       setopt NO_GLOB_SUBST
17914     fi
17915
17916     cfgfile="${ofile}T"
17917     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17918     $RM "$cfgfile"
17919
17920     cat <<_LT_EOF >> "$cfgfile"
17921 #! $SHELL
17922
17923 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17924 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17925 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17927 #
17928 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17929 #                 2006, 2007, 2008 Free Software Foundation, Inc.
17930 #   Written by Gordon Matzigkeit, 1996
17931 #
17932 #   This file is part of GNU Libtool.
17933 #
17934 # GNU Libtool is free software; you can redistribute it and/or
17935 # modify it under the terms of the GNU General Public License as
17936 # published by the Free Software Foundation; either version 2 of
17937 # the License, or (at your option) any later version.
17938 #
17939 # As a special exception to the GNU General Public License,
17940 # if you distribute this file as part of a program or library that
17941 # is built using GNU Libtool, you may include this file under the
17942 # same distribution terms that you use for the rest of that program.
17943 #
17944 # GNU Libtool is distributed in the hope that it will be useful,
17945 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17947 # GNU General Public License for more details.
17948 #
17949 # You should have received a copy of the GNU General Public License
17950 # along with GNU Libtool; see the file COPYING.  If not, a copy
17951 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17952 # obtained by writing to the Free Software Foundation, Inc.,
17953 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17954
17955
17956 # The names of the tagged configurations supported by this script.
17957 available_tags="CXX "
17958
17959 # ### BEGIN LIBTOOL CONFIG
17960
17961 # Whether or not to build shared libraries.
17962 build_libtool_libs=$enable_shared
17963
17964 # Whether or not to build static libraries.
17965 build_old_libs=$enable_static
17966
17967 # Which release of libtool.m4 was used?
17968 macro_version=$macro_version
17969 macro_revision=$macro_revision
17970
17971 # What type of objects to build.
17972 pic_mode=$pic_mode
17973
17974 # Whether or not to optimize for fast installation.
17975 fast_install=$enable_fast_install
17976
17977 # The host system.
17978 host_alias=$host_alias
17979 host=$host
17980 host_os=$host_os
17981
17982 # The build system.
17983 build_alias=$build_alias
17984 build=$build
17985 build_os=$build_os
17986
17987 # A sed program that does not truncate output.
17988 SED=$lt_SED
17989
17990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17991 Xsed="\$SED -e 1s/^X//"
17992
17993 # A grep program that handles long lines.
17994 GREP=$lt_GREP
17995
17996 # An ERE matcher.
17997 EGREP=$lt_EGREP
17998
17999 # A literal string matcher.
18000 FGREP=$lt_FGREP
18001
18002 # A BSD- or MS-compatible name lister.
18003 NM=$lt_NM
18004
18005 # Whether we need soft or hard links.
18006 LN_S=$lt_LN_S
18007
18008 # What is the maximum length of a command?
18009 max_cmd_len=$max_cmd_len
18010
18011 # Object file suffix (normally "o").
18012 objext=$ac_objext
18013
18014 # Executable file suffix (normally "").
18015 exeext=$exeext
18016
18017 # whether the shell understands "unset".
18018 lt_unset=$lt_unset
18019
18020 # turn spaces into newlines.
18021 SP2NL=$lt_lt_SP2NL
18022
18023 # turn newlines into spaces.
18024 NL2SP=$lt_lt_NL2SP
18025
18026 # How to create reloadable object files.
18027 reload_flag=$lt_reload_flag
18028 reload_cmds=$lt_reload_cmds
18029
18030 # An object symbol dumper.
18031 OBJDUMP=$lt_OBJDUMP
18032
18033 # Method to check whether dependent libraries are shared objects.
18034 deplibs_check_method=$lt_deplibs_check_method
18035
18036 # Command to use when deplibs_check_method == "file_magic".
18037 file_magic_cmd=$lt_file_magic_cmd
18038
18039 # The archiver.
18040 AR=$lt_AR
18041 AR_FLAGS=$lt_AR_FLAGS
18042
18043 # A symbol stripping program.
18044 STRIP=$lt_STRIP
18045
18046 # Commands used to install an old-style archive.
18047 RANLIB=$lt_RANLIB
18048 old_postinstall_cmds=$lt_old_postinstall_cmds
18049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18050
18051 # A C compiler.
18052 LTCC=$lt_CC
18053
18054 # LTCC compiler flags.
18055 LTCFLAGS=$lt_CFLAGS
18056
18057 # Take the output of nm and produce a listing of raw symbols and C names.
18058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18059
18060 # Transform the output of nm in a proper C declaration.
18061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18062
18063 # Transform the output of nm in a C name address pair.
18064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18065
18066 # Transform the output of nm in a C name address pair when lib prefix is needed.
18067 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18068
18069 # The name of the directory that contains temporary libtool files.
18070 objdir=$objdir
18071
18072 # Shell to use when invoking shell scripts.
18073 SHELL=$lt_SHELL
18074
18075 # An echo program that does not interpret backslashes.
18076 ECHO=$lt_ECHO
18077
18078 # Used to examine libraries when file_magic_cmd begins with "file".
18079 MAGIC_CMD=$MAGIC_CMD
18080
18081 # Must we lock files when doing compilation?
18082 need_locks=$lt_need_locks
18083
18084 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18085 DSYMUTIL=$lt_DSYMUTIL
18086
18087 # Tool to change global to local symbols on Mac OS X.
18088 NMEDIT=$lt_NMEDIT
18089
18090 # Tool to manipulate fat objects and archives on Mac OS X.
18091 LIPO=$lt_LIPO
18092
18093 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18094 OTOOL=$lt_OTOOL
18095
18096 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18097 OTOOL64=$lt_OTOOL64
18098
18099 # Old archive suffix (normally "a").
18100 libext=$libext
18101
18102 # Shared library suffix (normally ".so").
18103 shrext_cmds=$lt_shrext_cmds
18104
18105 # The commands to extract the exported symbol list from a shared archive.
18106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18107
18108 # Variables whose values should be saved in libtool wrapper scripts and
18109 # restored at link time.
18110 variables_saved_for_relink=$lt_variables_saved_for_relink
18111
18112 # Do we need the "lib" prefix for modules?
18113 need_lib_prefix=$need_lib_prefix
18114
18115 # Do we need a version for libraries?
18116 need_version=$need_version
18117
18118 # Library versioning type.
18119 version_type=$version_type
18120
18121 # Shared library runtime path variable.
18122 runpath_var=$runpath_var
18123
18124 # Shared library path variable.
18125 shlibpath_var=$shlibpath_var
18126
18127 # Is shlibpath searched before the hard-coded library search path?
18128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18129
18130 # Format of library name prefix.
18131 libname_spec=$lt_libname_spec
18132
18133 # List of archive names.  First name is the real one, the rest are links.
18134 # The last name is the one that the linker finds with -lNAME
18135 library_names_spec=$lt_library_names_spec
18136
18137 # The coded name of the library, if different from the real name.
18138 soname_spec=$lt_soname_spec
18139
18140 # Command to use after installation of a shared archive.
18141 postinstall_cmds=$lt_postinstall_cmds
18142
18143 # Command to use after uninstallation of a shared archive.
18144 postuninstall_cmds=$lt_postuninstall_cmds
18145
18146 # Commands used to finish a libtool library installation in a directory.
18147 finish_cmds=$lt_finish_cmds
18148
18149 # As "finish_cmds", except a single script fragment to be evaled but
18150 # not shown.
18151 finish_eval=$lt_finish_eval
18152
18153 # Whether we should hardcode library paths into libraries.
18154 hardcode_into_libs=$hardcode_into_libs
18155
18156 # Compile-time system search path for libraries.
18157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18158
18159 # Run-time system search path for libraries.
18160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18161
18162 # Whether dlopen is supported.
18163 dlopen_support=$enable_dlopen
18164
18165 # Whether dlopen of programs is supported.
18166 dlopen_self=$enable_dlopen_self
18167
18168 # Whether dlopen of statically linked programs is supported.
18169 dlopen_self_static=$enable_dlopen_self_static
18170
18171 # Commands to strip libraries.
18172 old_striplib=$lt_old_striplib
18173 striplib=$lt_striplib
18174
18175
18176 # The linker used to build libraries.
18177 LD=$lt_LD
18178
18179 # Commands used to build an old-style archive.
18180 old_archive_cmds=$lt_old_archive_cmds
18181
18182 # A language specific compiler.
18183 CC=$lt_compiler
18184
18185 # Is the compiler the GNU compiler?
18186 with_gcc=$GCC
18187
18188 # Compiler flag to turn off builtin functions.
18189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18190
18191 # How to pass a linker flag through the compiler.
18192 wl=$lt_lt_prog_compiler_wl
18193
18194 # Additional compiler flags for building library objects.
18195 pic_flag=$lt_lt_prog_compiler_pic
18196
18197 # Compiler flag to prevent dynamic linking.
18198 link_static_flag=$lt_lt_prog_compiler_static
18199
18200 # Does compiler simultaneously support -c and -o options?
18201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18202
18203 # Whether or not to add -lc for building shared libraries.
18204 build_libtool_need_lc=$archive_cmds_need_lc
18205
18206 # Whether or not to disallow shared libs when runtime libs are static.
18207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18208
18209 # Compiler flag to allow reflexive dlopens.
18210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18211
18212 # Compiler flag to generate shared objects directly from archives.
18213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18214
18215 # Whether the compiler copes with passing no objects directly.
18216 compiler_needs_object=$lt_compiler_needs_object
18217
18218 # Create an old-style archive from a shared archive.
18219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18220
18221 # Create a temporary old-style archive to link instead of a shared archive.
18222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18223
18224 # Commands used to build a shared archive.
18225 archive_cmds=$lt_archive_cmds
18226 archive_expsym_cmds=$lt_archive_expsym_cmds
18227
18228 # Commands used to build a loadable module if different from building
18229 # a shared archive.
18230 module_cmds=$lt_module_cmds
18231 module_expsym_cmds=$lt_module_expsym_cmds
18232
18233 # Whether we are building with GNU ld or not.
18234 with_gnu_ld=$lt_with_gnu_ld
18235
18236 # Flag that allows shared libraries with undefined symbols to be built.
18237 allow_undefined_flag=$lt_allow_undefined_flag
18238
18239 # Flag that enforces no undefined symbols.
18240 no_undefined_flag=$lt_no_undefined_flag
18241
18242 # Flag to hardcode \$libdir into a binary during linking.
18243 # This must work even if \$libdir does not exist
18244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18245
18246 # If ld is used when linking, flag to hardcode \$libdir into a binary
18247 # during linking.  This must work even if \$libdir does not exist.
18248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18249
18250 # Whether we need a single "-rpath" flag with a separated argument.
18251 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18252
18253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18254 # DIR into the resulting binary.
18255 hardcode_direct=$hardcode_direct
18256
18257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18258 # DIR into the resulting binary and the resulting library dependency is
18259 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18260 # library is relocated.
18261 hardcode_direct_absolute=$hardcode_direct_absolute
18262
18263 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18264 # into the resulting binary.
18265 hardcode_minus_L=$hardcode_minus_L
18266
18267 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18268 # into the resulting binary.
18269 hardcode_shlibpath_var=$hardcode_shlibpath_var
18270
18271 # Set to "yes" if building a shared library automatically hardcodes DIR
18272 # into the library and all subsequent libraries and executables linked
18273 # against it.
18274 hardcode_automatic=$hardcode_automatic
18275
18276 # Set to yes if linker adds runtime paths of dependent libraries
18277 # to runtime path list.
18278 inherit_rpath=$inherit_rpath
18279
18280 # Whether libtool must link a program against all its dependency libraries.
18281 link_all_deplibs=$link_all_deplibs
18282
18283 # Fix the shell variable \$srcfile for the compiler.
18284 fix_srcfile_path=$lt_fix_srcfile_path
18285
18286 # Set to "yes" if exported symbols are required.
18287 always_export_symbols=$always_export_symbols
18288
18289 # The commands to list exported symbols.
18290 export_symbols_cmds=$lt_export_symbols_cmds
18291
18292 # Symbols that should not be listed in the preloaded symbols.
18293 exclude_expsyms=$lt_exclude_expsyms
18294
18295 # Symbols that must always be exported.
18296 include_expsyms=$lt_include_expsyms
18297
18298 # Commands necessary for linking programs (against libraries) with templates.
18299 prelink_cmds=$lt_prelink_cmds
18300
18301 # Specify filename containing input files.
18302 file_list_spec=$lt_file_list_spec
18303
18304 # How to hardcode a shared library path into an executable.
18305 hardcode_action=$hardcode_action
18306
18307 # The directories searched by this compiler when creating a shared library.
18308 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18309
18310 # Dependencies to place before and after the objects being linked to
18311 # create a shared library.
18312 predep_objects=$lt_predep_objects
18313 postdep_objects=$lt_postdep_objects
18314 predeps=$lt_predeps
18315 postdeps=$lt_postdeps
18316
18317 # The library search path used internally by the compiler when linking
18318 # a shared library.
18319 compiler_lib_search_path=$lt_compiler_lib_search_path
18320
18321 # ### END LIBTOOL CONFIG
18322
18323 _LT_EOF
18324
18325   case $host_os in
18326   aix3*)
18327     cat <<\_LT_EOF >> "$cfgfile"
18328 # AIX sometimes has problems with the GCC collect2 program.  For some
18329 # reason, if we set the COLLECT_NAMES environment variable, the problems
18330 # vanish in a puff of smoke.
18331 if test "X${COLLECT_NAMES+set}" != Xset; then
18332   COLLECT_NAMES=
18333   export COLLECT_NAMES
18334 fi
18335 _LT_EOF
18336     ;;
18337   esac
18338
18339
18340 ltmain="$ac_aux_dir/ltmain.sh"
18341
18342
18343   # We use sed instead of cat because bash on DJGPP gets confused if
18344   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18345   # text mode, it properly converts lines to CR/LF.  This bash problem
18346   # is reportedly fixed, but why not run on old versions too?
18347   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18348     || (rm -f "$cfgfile"; exit 1)
18349
18350   case $xsi_shell in
18351   yes)
18352     cat << \_LT_EOF >> "$cfgfile"
18353
18354 # func_dirname file append nondir_replacement
18355 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18356 # otherwise set result to NONDIR_REPLACEMENT.
18357 func_dirname ()
18358 {
18359   case ${1} in
18360     */*) func_dirname_result="${1%/*}${2}" ;;
18361     *  ) func_dirname_result="${3}" ;;
18362   esac
18363 }
18364
18365 # func_basename file
18366 func_basename ()
18367 {
18368   func_basename_result="${1##*/}"
18369 }
18370
18371 # func_dirname_and_basename file append nondir_replacement
18372 # perform func_basename and func_dirname in a single function
18373 # call:
18374 #   dirname:  Compute the dirname of FILE.  If nonempty,
18375 #             add APPEND to the result, otherwise set result
18376 #             to NONDIR_REPLACEMENT.
18377 #             value returned in "$func_dirname_result"
18378 #   basename: Compute filename of FILE.
18379 #             value retuned in "$func_basename_result"
18380 # Implementation must be kept synchronized with func_dirname
18381 # and func_basename. For efficiency, we do not delegate to
18382 # those functions but instead duplicate the functionality here.
18383 func_dirname_and_basename ()
18384 {
18385   case ${1} in
18386     */*) func_dirname_result="${1%/*}${2}" ;;
18387     *  ) func_dirname_result="${3}" ;;
18388   esac
18389   func_basename_result="${1##*/}"
18390 }
18391
18392 # func_stripname prefix suffix name
18393 # strip PREFIX and SUFFIX off of NAME.
18394 # PREFIX and SUFFIX must not contain globbing or regex special
18395 # characters, hashes, percent signs, but SUFFIX may contain a leading
18396 # dot (in which case that matches only a dot).
18397 func_stripname ()
18398 {
18399   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18400   # positional parameters, so assign one to ordinary parameter first.
18401   func_stripname_result=${3}
18402   func_stripname_result=${func_stripname_result#"${1}"}
18403   func_stripname_result=${func_stripname_result%"${2}"}
18404 }
18405
18406 # func_opt_split
18407 func_opt_split ()
18408 {
18409   func_opt_split_opt=${1%%=*}
18410   func_opt_split_arg=${1#*=}
18411 }
18412
18413 # func_lo2o object
18414 func_lo2o ()
18415 {
18416   case ${1} in
18417     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18418     *)    func_lo2o_result=${1} ;;
18419   esac
18420 }
18421
18422 # func_xform libobj-or-source
18423 func_xform ()
18424 {
18425   func_xform_result=${1%.*}.lo
18426 }
18427
18428 # func_arith arithmetic-term...
18429 func_arith ()
18430 {
18431   func_arith_result=$(( $* ))
18432 }
18433
18434 # func_len string
18435 # STRING may not start with a hyphen.
18436 func_len ()
18437 {
18438   func_len_result=${#1}
18439 }
18440
18441 _LT_EOF
18442     ;;
18443   *) # Bourne compatible functions.
18444     cat << \_LT_EOF >> "$cfgfile"
18445
18446 # func_dirname file append nondir_replacement
18447 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18448 # otherwise set result to NONDIR_REPLACEMENT.
18449 func_dirname ()
18450 {
18451   # Extract subdirectory from the argument.
18452   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18453   if test "X$func_dirname_result" = "X${1}"; then
18454     func_dirname_result="${3}"
18455   else
18456     func_dirname_result="$func_dirname_result${2}"
18457   fi
18458 }
18459
18460 # func_basename file
18461 func_basename ()
18462 {
18463   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18464 }
18465
18466
18467 # func_stripname prefix suffix name
18468 # strip PREFIX and SUFFIX off of NAME.
18469 # PREFIX and SUFFIX must not contain globbing or regex special
18470 # characters, hashes, percent signs, but SUFFIX may contain a leading
18471 # dot (in which case that matches only a dot).
18472 # func_strip_suffix prefix name
18473 func_stripname ()
18474 {
18475   case ${2} in
18476     .*) func_stripname_result=`$ECHO "X${3}" \
18477            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
18478     *)  func_stripname_result=`$ECHO "X${3}" \
18479            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
18480   esac
18481 }
18482
18483 # sed scripts:
18484 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18485 my_sed_long_arg='1s/^-[^=]*=//'
18486
18487 # func_opt_split
18488 func_opt_split ()
18489 {
18490   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
18491   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
18492 }
18493
18494 # func_lo2o object
18495 func_lo2o ()
18496 {
18497   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
18498 }
18499
18500 # func_xform libobj-or-source
18501 func_xform ()
18502 {
18503   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
18504 }
18505
18506 # func_arith arithmetic-term...
18507 func_arith ()
18508 {
18509   func_arith_result=`expr "$@"`
18510 }
18511
18512 # func_len string
18513 # STRING may not start with a hyphen.
18514 func_len ()
18515 {
18516   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18517 }
18518
18519 _LT_EOF
18520 esac
18521
18522 case $lt_shell_append in
18523   yes)
18524     cat << \_LT_EOF >> "$cfgfile"
18525
18526 # func_append var value
18527 # Append VALUE to the end of shell variable VAR.
18528 func_append ()
18529 {
18530   eval "$1+=\$2"
18531 }
18532 _LT_EOF
18533     ;;
18534   *)
18535     cat << \_LT_EOF >> "$cfgfile"
18536
18537 # func_append var value
18538 # Append VALUE to the end of shell variable VAR.
18539 func_append ()
18540 {
18541   eval "$1=\$$1\$2"
18542 }
18543
18544 _LT_EOF
18545     ;;
18546   esac
18547
18548
18549   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18550     || (rm -f "$cfgfile"; exit 1)
18551
18552   mv -f "$cfgfile" "$ofile" ||
18553     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18554   chmod +x "$ofile"
18555
18556
18557     cat <<_LT_EOF >> "$ofile"
18558
18559 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18560
18561 # The linker used to build libraries.
18562 LD=$lt_LD_CXX
18563
18564 # Commands used to build an old-style archive.
18565 old_archive_cmds=$lt_old_archive_cmds_CXX
18566
18567 # A language specific compiler.
18568 CC=$lt_compiler_CXX
18569
18570 # Is the compiler the GNU compiler?
18571 with_gcc=$GCC_CXX
18572
18573 # Compiler flag to turn off builtin functions.
18574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18575
18576 # How to pass a linker flag through the compiler.
18577 wl=$lt_lt_prog_compiler_wl_CXX
18578
18579 # Additional compiler flags for building library objects.
18580 pic_flag=$lt_lt_prog_compiler_pic_CXX
18581
18582 # Compiler flag to prevent dynamic linking.
18583 link_static_flag=$lt_lt_prog_compiler_static_CXX
18584
18585 # Does compiler simultaneously support -c and -o options?
18586 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18587
18588 # Whether or not to add -lc for building shared libraries.
18589 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18590
18591 # Whether or not to disallow shared libs when runtime libs are static.
18592 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18593
18594 # Compiler flag to allow reflexive dlopens.
18595 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18596
18597 # Compiler flag to generate shared objects directly from archives.
18598 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18599
18600 # Whether the compiler copes with passing no objects directly.
18601 compiler_needs_object=$lt_compiler_needs_object_CXX
18602
18603 # Create an old-style archive from a shared archive.
18604 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18605
18606 # Create a temporary old-style archive to link instead of a shared archive.
18607 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18608
18609 # Commands used to build a shared archive.
18610 archive_cmds=$lt_archive_cmds_CXX
18611 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18612
18613 # Commands used to build a loadable module if different from building
18614 # a shared archive.
18615 module_cmds=$lt_module_cmds_CXX
18616 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18617
18618 # Whether we are building with GNU ld or not.
18619 with_gnu_ld=$lt_with_gnu_ld_CXX
18620
18621 # Flag that allows shared libraries with undefined symbols to be built.
18622 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18623
18624 # Flag that enforces no undefined symbols.
18625 no_undefined_flag=$lt_no_undefined_flag_CXX
18626
18627 # Flag to hardcode \$libdir into a binary during linking.
18628 # This must work even if \$libdir does not exist
18629 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18630
18631 # If ld is used when linking, flag to hardcode \$libdir into a binary
18632 # during linking.  This must work even if \$libdir does not exist.
18633 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18634
18635 # Whether we need a single "-rpath" flag with a separated argument.
18636 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18637
18638 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18639 # DIR into the resulting binary.
18640 hardcode_direct=$hardcode_direct_CXX
18641
18642 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18643 # DIR into the resulting binary and the resulting library dependency is
18644 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18645 # library is relocated.
18646 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18647
18648 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18649 # into the resulting binary.
18650 hardcode_minus_L=$hardcode_minus_L_CXX
18651
18652 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18653 # into the resulting binary.
18654 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18655
18656 # Set to "yes" if building a shared library automatically hardcodes DIR
18657 # into the library and all subsequent libraries and executables linked
18658 # against it.
18659 hardcode_automatic=$hardcode_automatic_CXX
18660
18661 # Set to yes if linker adds runtime paths of dependent libraries
18662 # to runtime path list.
18663 inherit_rpath=$inherit_rpath_CXX
18664
18665 # Whether libtool must link a program against all its dependency libraries.
18666 link_all_deplibs=$link_all_deplibs_CXX
18667
18668 # Fix the shell variable \$srcfile for the compiler.
18669 fix_srcfile_path=$lt_fix_srcfile_path_CXX
18670
18671 # Set to "yes" if exported symbols are required.
18672 always_export_symbols=$always_export_symbols_CXX
18673
18674 # The commands to list exported symbols.
18675 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18676
18677 # Symbols that should not be listed in the preloaded symbols.
18678 exclude_expsyms=$lt_exclude_expsyms_CXX
18679
18680 # Symbols that must always be exported.
18681 include_expsyms=$lt_include_expsyms_CXX
18682
18683 # Commands necessary for linking programs (against libraries) with templates.
18684 prelink_cmds=$lt_prelink_cmds_CXX
18685
18686 # Specify filename containing input files.
18687 file_list_spec=$lt_file_list_spec_CXX
18688
18689 # How to hardcode a shared library path into an executable.
18690 hardcode_action=$hardcode_action_CXX
18691
18692 # The directories searched by this compiler when creating a shared library.
18693 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18694
18695 # Dependencies to place before and after the objects being linked to
18696 # create a shared library.
18697 predep_objects=$lt_predep_objects_CXX
18698 postdep_objects=$lt_postdep_objects_CXX
18699 predeps=$lt_predeps_CXX
18700 postdeps=$lt_postdeps_CXX
18701
18702 # The library search path used internally by the compiler when linking
18703 # a shared library.
18704 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18705
18706 # ### END LIBTOOL TAG CONFIG: CXX
18707 _LT_EOF
18708
18709  ;;
18710
18711   esac
18712 done # for ac_tag
18713
18714
18715 as_fn_exit 0
18716 _ACEOF
18717 ac_clean_files=$ac_clean_files_save
18718
18719 test $ac_write_fail = 0 ||
18720   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18721
18722
18723 # configure is writing to config.log, and then calls config.status.
18724 # config.status does its own redirection, appending to config.log.
18725 # Unfortunately, on DOS this fails, as config.log is still kept open
18726 # by configure, so config.status won't be able to write to it; its
18727 # output is simply discarded.  So we exec the FD to /dev/null,
18728 # effectively closing config.log, so it can be properly (re)opened and
18729 # appended to by config.status.  When coming back to configure, we
18730 # need to make the FD available again.
18731 if test "$no_create" != yes; then
18732   ac_cs_success=:
18733   ac_config_status_args=
18734   test "$silent" = yes &&
18735     ac_config_status_args="$ac_config_status_args --quiet"
18736   exec 5>/dev/null
18737   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18738   exec 5>>config.log
18739   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18740   # would make configure fail if this is the last instruction.
18741   $ac_cs_success || as_fn_exit $?
18742 fi
18743 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18744   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18745 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18746 fi
18747
18748
18749
18750
18751 echo ""
18752 echo "                  $PACKAGE $VERSION"
18753 echo "                 ==================="
18754 echo ""
18755 echo "           Debug messages:   ${enable_debug}"
18756 echo "       Plug-ins directory:   ${pluginsdir}"
18757 echo "       Services directory:   ${servicesdir}"
18758 echo ""