Tizen 2.0 Release
[external/lcms.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for lcms2 2.3.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184   if (eval "$as_required") 2>/dev/null; then :
185   as_have_required=yes
186 else
187   as_have_required=no
188 fi
189   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196   IFS=$as_save_IFS
197   test -z "$as_dir" && as_dir=.
198   as_found=:
199   case $as_dir in #(
200          /*)
201            for as_base in sh bash ksh sh5; do
202              # Try only shells that exist, to save several forks.
203              as_shell=$as_dir/$as_base
204              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206   CONFIG_SHELL=$as_shell as_have_required=yes
207                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   break 2
209 fi
210 fi
211            done;;
212        esac
213   as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222       if test "x$CONFIG_SHELL" != x; then :
223   # We cannot yet assume a decent shell, so we have to provide a
224         # neutralization value for shells without unset; and this also
225         # works around shells that cannot unset nonexistent variables.
226         # Preserve -v and -x to the replacement shell.
227         BASH_ENV=/dev/null
228         ENV=/dev/null
229         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230         export CONFIG_SHELL
231         case $- in # ((((
232           *v*x* | *x*v* ) as_opts=-vx ;;
233           *v* ) as_opts=-v ;;
234           *x* ) as_opts=-x ;;
235           * ) as_opts= ;;
236         esac
237         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240     if test x$as_have_required = xno; then :
241   $as_echo "$0: This script requires a shell more modern than all"
242   $as_echo "$0: the shells that I found on your system."
243   if test x${ZSH_VERSION+set} = xset ; then
244     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246   else
247     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251   fi
252   exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298   case $as_dir in #(
299   -*) as_dir=./$as_dir;;
300   esac
301   test -d "$as_dir" || eval $as_mkdir_p || {
302     as_dirs=
303     while :; do
304       case $as_dir in #(
305       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306       *) as_qdir=$as_dir;;
307       esac
308       as_dirs="'$as_qdir' $as_dirs"
309       as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311          X"$as_dir" : 'X\(//\)[^/]' \| \
312          X"$as_dir" : 'X\(//\)$' \| \
313          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\/\)[^/].*/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)$/{
324             s//\1/
325             q
326           }
327           /^X\(\/\).*/{
328             s//\1/
329             q
330           }
331           s/.*/./; q'`
332       test -d "$as_dir" && break
333     done
334     test -z "$as_dirs" || eval "mkdir $as_dirs"
335   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346   eval 'as_fn_append ()
347   {
348     eval $1+=\$2
349   }'
350 else
351   as_fn_append ()
352   {
353     eval $1=\$$1\$2
354   }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363   eval 'as_fn_arith ()
364   {
365     as_val=$(( $* ))
366   }'
367 else
368   as_fn_arith ()
369   {
370     as_val=`expr "$@" || test $? -eq 1`
371   }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382   as_status=$1; test $as_status -eq 0 && as_status=1
383   if test "$4"; then
384     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386   fi
387   $as_echo "$as_me: error: $2" >&2
388   as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392    test "X`expr 00001 : '.*\(...\)'`" = X001; then
393   as_expr=expr
394 else
395   as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399   as_basename=basename
400 else
401   as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405   as_dirname=dirname
406 else
407   as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412          X"$0" : 'X\(//\)$' \| \
413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415     sed '/^.*\/\([^/][^/]*\)\/*$/{
416             s//\1/
417             q
418           }
419           /^X\/\(\/\/\)$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\).*/{
424             s//\1/
425             q
426           }
427           s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437   as_lineno_1=$LINENO as_lineno_1a=$LINENO
438   as_lineno_2=$LINENO as_lineno_2a=$LINENO
439   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471   case `echo 'xy\c'` in
472   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473   xy)  ECHO_C='\c';;
474   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475        ECHO_T=' ';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483   rm -f conf$$.dir/conf$$.file
484 else
485   rm -f conf$$.dir
486   mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489   if ln -s conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s='ln -s'
491     # ... but there are two gotchas:
492     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494     # In both cases, we have to default to `cp -p'.
495     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496       as_ln_s='cp -p'
497   elif ln conf$$.file conf$$ 2>/dev/null; then
498     as_ln_s=ln
499   else
500     as_ln_s='cp -p'
501   fi
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p='mkdir -p "$as_dir"'
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516   as_test_x='test -x'
517 else
518   if ls -dL / >/dev/null 2>&1; then
519     as_ls_L_option=L
520   else
521     as_ls_L_option=
522   fi
523   as_test_x='
524     eval sh -c '\''
525       if test -d "$1"; then
526         test -d "$1/.";
527       else
528         case $1 in #(
529         -*)set "./$1";;
530         esac;
531         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532         ???[sx]*):;;*)false;;esac;fi
533     '\'' sh
534   '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='lcms2'
569 PACKAGE_TARNAME='lcms2'
570 PACKAGE_VERSION='2.3'
571 PACKAGE_STRING='lcms2 2.3'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 # Factoring default headers for most tests.
576 ac_includes_default="\
577 #include <stdio.h>
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
580 #endif
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
583 #endif
584 #ifdef STDC_HEADERS
585 # include <stdlib.h>
586 # include <stddef.h>
587 #else
588 # ifdef HAVE_STDLIB_H
589 #  include <stdlib.h>
590 # endif
591 #endif
592 #ifdef HAVE_STRING_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594 #  include <memory.h>
595 # endif
596 # include <string.h>
597 #endif
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
600 #endif
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
603 #endif
604 #ifdef HAVE_STDINT_H
605 # include <stdint.h>
606 #endif
607 #ifdef HAVE_UNISTD_H
608 # include <unistd.h>
609 #endif"
610
611 ac_subst_vars='am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
614 LIBOBJS
615 TIFFICC_DEPLIBS
616 JPEGICC_DEPLIBS
617 LCMS_LIB_DEPLIBS
618 LIB_TIFF
619 HasTIFF_FALSE
620 HasTIFF_TRUE
621 LIB_ZLIB
622 HasZLIB_FALSE
623 HasZLIB_TRUE
624 LIB_JPEG
625 HasJPEG_FALSE
626 HasJPEG_TRUE
627 LIB_MATH
628 inline
629 MAINT
630 MAINTAINER_MODE_FALSE
631 MAINTAINER_MODE_TRUE
632 LIBTOOL_DEPS
633 CXXCPP
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
639 MANIFEST_TOOL
640 RANLIB
641 ac_ct_AR
642 AR
643 LN_S
644 NM
645 ac_ct_DUMPBIN
646 DUMPBIN
647 LD
648 FGREP
649 EGREP
650 GREP
651 SED
652 LIBTOOL
653 OBJDUMP
654 DLLTOOL
655 AS
656 am__fastdepCXX_FALSE
657 am__fastdepCXX_TRUE
658 CXXDEPMODE
659 ac_ct_CXX
660 CXXFLAGS
661 CXX
662 CPP
663 am__fastdepCC_FALSE
664 am__fastdepCC_TRUE
665 CCDEPMODE
666 AMDEPBACKSLASH
667 AMDEP_FALSE
668 AMDEP_TRUE
669 am__quote
670 am__include
671 DEPDIR
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
678 CC
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
684 AWK
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 host_os
703 host_vendor
704 host_cpu
705 host
706 build_os
707 build_vendor
708 build_cpu
709 build
710 LIBRARY_AGE
711 LIBRARY_REVISION
712 LIBRARY_CURRENT
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 with_jpeg
755 with_tiff
756 with_zlib
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 with_sysroot
764 enable_libtool_lock
765 enable_maintainer_mode
766 '
767       ac_precious_vars='build_alias
768 host_alias
769 target_alias
770 CC
771 CFLAGS
772 LDFLAGS
773 LIBS
774 CPPFLAGS
775 CPP
776 CXX
777 CXXFLAGS
778 CCC
779 CXXCPP'
780
781
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
803
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
829
830 ac_prev=
831 ac_dashdash=
832 for ac_option
833 do
834   # If the previous option needs an argument, assign it.
835   if test -n "$ac_prev"; then
836     eval $ac_prev=\$ac_option
837     ac_prev=
838     continue
839   fi
840
841   case $ac_option in
842   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843   *=)   ac_optarg= ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889       as_fn_error $? "invalid feature name: $ac_useropt"
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915       as_fn_error $? "invalid feature name: $ac_useropt"
916     ac_useropt_orig=$ac_useropt
917     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918     case $ac_user_opts in
919       *"
920 "enable_$ac_useropt"
921 "*) ;;
922       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923          ac_unrecognized_sep=', ';;
924     esac
925     eval enable_$ac_useropt=\$ac_optarg ;;
926
927   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929   | --exec | --exe | --ex)
930     ac_prev=exec_prefix ;;
931   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933   | --exec=* | --exe=* | --ex=*)
934     exec_prefix=$ac_optarg ;;
935
936   -gas | --gas | --ga | --g)
937     # Obsolete; use --with-gas.
938     with_gas=yes ;;
939
940   -help | --help | --hel | --he | -h)
941     ac_init_help=long ;;
942   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943     ac_init_help=recursive ;;
944   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945     ac_init_help=short ;;
946
947   -host | --host | --hos | --ho)
948     ac_prev=host_alias ;;
949   -host=* | --host=* | --hos=* | --ho=*)
950     host_alias=$ac_optarg ;;
951
952   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953     ac_prev=htmldir ;;
954   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955   | --ht=*)
956     htmldir=$ac_optarg ;;
957
958   -includedir | --includedir | --includedi | --included | --include \
959   | --includ | --inclu | --incl | --inc)
960     ac_prev=includedir ;;
961   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962   | --includ=* | --inclu=* | --incl=* | --inc=*)
963     includedir=$ac_optarg ;;
964
965   -infodir | --infodir | --infodi | --infod | --info | --inf)
966     ac_prev=infodir ;;
967   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968     infodir=$ac_optarg ;;
969
970   -libdir | --libdir | --libdi | --libd)
971     ac_prev=libdir ;;
972   -libdir=* | --libdir=* | --libdi=* | --libd=*)
973     libdir=$ac_optarg ;;
974
975   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976   | --libexe | --libex | --libe)
977     ac_prev=libexecdir ;;
978   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979   | --libexe=* | --libex=* | --libe=*)
980     libexecdir=$ac_optarg ;;
981
982   -localedir | --localedir | --localedi | --localed | --locale)
983     ac_prev=localedir ;;
984   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985     localedir=$ac_optarg ;;
986
987   -localstatedir | --localstatedir | --localstatedi | --localstated \
988   | --localstate | --localstat | --localsta | --localst | --locals)
989     ac_prev=localstatedir ;;
990   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992     localstatedir=$ac_optarg ;;
993
994   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995     ac_prev=mandir ;;
996   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997     mandir=$ac_optarg ;;
998
999   -nfp | --nfp | --nf)
1000     # Obsolete; use --without-fp.
1001     with_fp=no ;;
1002
1003   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004   | --no-cr | --no-c | -n)
1005     no_create=yes ;;
1006
1007   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009     no_recursion=yes ;;
1010
1011   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013   | --oldin | --oldi | --old | --ol | --o)
1014     ac_prev=oldincludedir ;;
1015   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018     oldincludedir=$ac_optarg ;;
1019
1020   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021     ac_prev=prefix ;;
1022   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023     prefix=$ac_optarg ;;
1024
1025   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026   | --program-pre | --program-pr | --program-p)
1027     ac_prev=program_prefix ;;
1028   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030     program_prefix=$ac_optarg ;;
1031
1032   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033   | --program-suf | --program-su | --program-s)
1034     ac_prev=program_suffix ;;
1035   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037     program_suffix=$ac_optarg ;;
1038
1039   -program-transform-name | --program-transform-name \
1040   | --program-transform-nam | --program-transform-na \
1041   | --program-transform-n | --program-transform- \
1042   | --program-transform | --program-transfor \
1043   | --program-transfo | --program-transf \
1044   | --program-trans | --program-tran \
1045   | --progr-tra | --program-tr | --program-t)
1046     ac_prev=program_transform_name ;;
1047   -program-transform-name=* | --program-transform-name=* \
1048   | --program-transform-nam=* | --program-transform-na=* \
1049   | --program-transform-n=* | --program-transform-=* \
1050   | --program-transform=* | --program-transfor=* \
1051   | --program-transfo=* | --program-transf=* \
1052   | --program-trans=* | --program-tran=* \
1053   | --progr-tra=* | --program-tr=* | --program-t=*)
1054     program_transform_name=$ac_optarg ;;
1055
1056   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057     ac_prev=pdfdir ;;
1058   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059     pdfdir=$ac_optarg ;;
1060
1061   -psdir | --psdir | --psdi | --psd | --ps)
1062     ac_prev=psdir ;;
1063   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064     psdir=$ac_optarg ;;
1065
1066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067   | -silent | --silent | --silen | --sile | --sil)
1068     silent=yes ;;
1069
1070   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071     ac_prev=sbindir ;;
1072   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073   | --sbi=* | --sb=*)
1074     sbindir=$ac_optarg ;;
1075
1076   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078   | --sharedst | --shareds | --shared | --share | --shar \
1079   | --sha | --sh)
1080     ac_prev=sharedstatedir ;;
1081   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084   | --sha=* | --sh=*)
1085     sharedstatedir=$ac_optarg ;;
1086
1087   -site | --site | --sit)
1088     ac_prev=site ;;
1089   -site=* | --site=* | --sit=*)
1090     site=$ac_optarg ;;
1091
1092   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093     ac_prev=srcdir ;;
1094   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095     srcdir=$ac_optarg ;;
1096
1097   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098   | --syscon | --sysco | --sysc | --sys | --sy)
1099     ac_prev=sysconfdir ;;
1100   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102     sysconfdir=$ac_optarg ;;
1103
1104   -target | --target | --targe | --targ | --tar | --ta | --t)
1105     ac_prev=target_alias ;;
1106   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107     target_alias=$ac_optarg ;;
1108
1109   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110     verbose=yes ;;
1111
1112   -version | --version | --versio | --versi | --vers | -V)
1113     ac_init_version=: ;;
1114
1115   -with-* | --with-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       as_fn_error $? "invalid package name: $ac_useropt"
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=\$ac_optarg ;;
1130
1131   -without-* | --without-*)
1132     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133     # Reject names that are not valid shell variable names.
1134     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135       as_fn_error $? "invalid package name: $ac_useropt"
1136     ac_useropt_orig=$ac_useropt
1137     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138     case $ac_user_opts in
1139       *"
1140 "with_$ac_useropt"
1141 "*) ;;
1142       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143          ac_unrecognized_sep=', ';;
1144     esac
1145     eval with_$ac_useropt=no ;;
1146
1147   --x)
1148     # Obsolete; use --with-x.
1149     with_x=yes ;;
1150
1151   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152   | --x-incl | --x-inc | --x-in | --x-i)
1153     ac_prev=x_includes ;;
1154   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156     x_includes=$ac_optarg ;;
1157
1158   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160     ac_prev=x_libraries ;;
1161   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163     x_libraries=$ac_optarg ;;
1164
1165   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information"
1167     ;;
1168
1169   *=*)
1170     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171     # Reject names that are not valid shell variable names.
1172     case $ac_envvar in #(
1173       '' | [0-9]* | *[!_$as_cr_alnum]* )
1174       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1175     esac
1176     eval $ac_envvar=\$ac_optarg
1177     export $ac_envvar ;;
1178
1179   *)
1180     # FIXME: should be removed in autoconf 3.0.
1181     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1185     ;;
1186
1187   esac
1188 done
1189
1190 if test -n "$ac_prev"; then
1191   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192   as_fn_error $? "missing argument to $ac_option"
1193 fi
1194
1195 if test -n "$ac_unrecognized_opts"; then
1196   case $enable_option_checking in
1197     no) ;;
1198     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200   esac
1201 fi
1202
1203 # Check all directory arguments for consistency.
1204 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205                 datadir sysconfdir sharedstatedir localstatedir includedir \
1206                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207                 libdir localedir mandir
1208 do
1209   eval ac_val=\$$ac_var
1210   # Remove trailing slashes.
1211   case $ac_val in
1212     */ )
1213       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214       eval $ac_var=\$ac_val;;
1215   esac
1216   # Be sure to have absolute directory names.
1217   case $ac_val in
1218     [\\/$]* | ?:[\\/]* )  continue;;
1219     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220   esac
1221   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1223
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1230
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233   if test "x$build_alias" = x; then
1234     cross_compiling=maybe
1235     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1236     If a cross compiler is detected then cross compile mode will be used" >&2
1237   elif test "x$build_alias" != "x$host_alias"; then
1238     cross_compiling=yes
1239   fi
1240 fi
1241
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244
1245 test "$silent" = yes && exec 6>/dev/null
1246
1247
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251   as_fn_error $? "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253   as_fn_error $? "pwd does not report name of working directory"
1254
1255
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258   ac_srcdir_defaulted=yes
1259   # Try the directory containing this script, then the parent directory.
1260   ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262          X"$as_myself" : 'X\(//\)[^/]' \| \
1263          X"$as_myself" : 'X\(//\)$' \| \
1264          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)[^/].*/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\/\)$/{
1275             s//\1/
1276             q
1277           }
1278           /^X\(\/\).*/{
1279             s//\1/
1280             q
1281           }
1282           s/.*/./; q'`
1283   srcdir=$ac_confdir
1284   if test ! -r "$srcdir/$ac_unique_file"; then
1285     srcdir=..
1286   fi
1287 else
1288   ac_srcdir_defaulted=no
1289 fi
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1293 fi
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures lcms2 2.3 to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking ...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR            user executables [EPREFIX/bin]
1357   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR        program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR            object code libraries [EPREFIX/lib]
1363   --includedir=DIR        C header files [PREFIX/include]
1364   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR           info documentation [DATAROOTDIR/info]
1368   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR            man documentation [DATAROOTDIR/man]
1370   --docdir=DIR            documentation root [DATAROOTDIR/doc/lcms2]
1371   --htmldir=DIR           html documentation [DOCDIR]
1372   --dvidir=DIR            dvi documentation [DOCDIR]
1373   --pdfdir=DIR            pdf documentation [DOCDIR]
1374   --psdir=DIR             ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 Program names:
1380   --program-prefix=PREFIX            prepend PREFIX to installed program names
1381   --program-suffix=SUFFIX            append SUFFIX to installed program names
1382   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1383
1384 System types:
1385   --build=BUILD     configure for building on BUILD [guessed]
1386   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1388 fi
1389
1390 if test -n "$ac_init_help"; then
1391   case $ac_init_help in
1392      short | recursive ) echo "Configuration of lcms2 2.3:";;
1393    esac
1394   cat <<\_ACEOF
1395
1396 Optional Features:
1397   --disable-option-checking  ignore unrecognized --enable/--with options
1398   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1399   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1400   --disable-dependency-tracking  speeds up one-time build
1401   --enable-dependency-tracking   do not reject slow dependency extractors
1402   --enable-shared[=PKGS]  build shared libraries [default=yes]
1403   --enable-static[=PKGS]  build static libraries [default=yes]
1404   --enable-fast-install[=PKGS]
1405                           optimize for fast installation [default=yes]
1406   --disable-libtool-lock  avoid locking (might break parallel builds)
1407   --enable-maintainer-mode  enable make rules and dependencies not useful
1408                           (and sometimes confusing) to the casual installer
1409
1410 Optional Packages:
1411   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1412   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1413   --without-jpeg          disable JPEG support
1414   --without-tiff          disable TIFF support
1415   --without-zlib          disable ZLIB support
1416   --with-pic              try to use only PIC/non-PIC objects [default=use
1417                           both]
1418   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1419   --with-sysroot=DIR Search for dependent libraries within DIR
1420                         (or the compiler's sysroot if not specified).
1421
1422 Some influential environment variables:
1423   CC          C compiler command
1424   CFLAGS      C compiler flags
1425   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1426               nonstandard directory <lib dir>
1427   LIBS        libraries to pass to the linker, e.g. -l<library>
1428   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1429               you have headers in a nonstandard directory <include dir>
1430   CPP         C preprocessor
1431   CXX         C++ compiler command
1432   CXXFLAGS    C++ compiler flags
1433   CXXCPP      C++ preprocessor
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to the package provider.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444   # If there are subdirs, report their specific --help.
1445   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446     test -d "$ac_dir" ||
1447       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448       continue
1449     ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455   # A ".." for each directory in $ac_dir_suffix.
1456   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457   case $ac_top_builddir_sub in
1458   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460   esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468   .)  # We are building in place.
1469     ac_srcdir=.
1470     ac_top_srcdir=$ac_top_builddir_sub
1471     ac_abs_top_srcdir=$ac_pwd ;;
1472   [\\/]* | ?:[\\/]* )  # Absolute name.
1473     ac_srcdir=$srcdir$ac_dir_suffix;
1474     ac_top_srcdir=$srcdir
1475     ac_abs_top_srcdir=$srcdir ;;
1476   *) # Relative name.
1477     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478     ac_top_srcdir=$ac_top_build_prefix$srcdir
1479     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483     cd "$ac_dir" || { ac_status=$?; continue; }
1484     # Check for guested configure.
1485     if test -f "$ac_srcdir/configure.gnu"; then
1486       echo &&
1487       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488     elif test -f "$ac_srcdir/configure"; then
1489       echo &&
1490       $SHELL "$ac_srcdir/configure" --help=recursive
1491     else
1492       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493     fi || ac_status=$?
1494     cd "$ac_pwd" || { ac_status=$?; break; }
1495   done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500   cat <<\_ACEOF
1501 lcms2 configure 2.3
1502 generated by GNU Autoconf 2.68
1503
1504 Copyright (C) 2010 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508   exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521   rm -f conftest.$ac_objext
1522   if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525   *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529   (eval "$ac_compile") 2>conftest.err
1530   ac_status=$?
1531   if test -s conftest.err; then
1532     grep -v '^ *+' conftest.err >conftest.er1
1533     cat conftest.er1 >&5
1534     mv -f conftest.er1 conftest.err
1535   fi
1536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537   test $ac_status = 0; } && {
1538          test -z "$ac_c_werror_flag" ||
1539          test ! -s conftest.err
1540        } && test -s conftest.$ac_objext; then :
1541   ac_retval=0
1542 else
1543   $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546         ac_retval=1
1547 fi
1548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549   as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_try_cpp LINENO
1554 # ----------------------
1555 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_c_try_cpp ()
1557 {
1558   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559   if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 case "(($ac_try" in
1561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562   *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 $as_echo "$ac_try_echo"; } >&5
1566   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567   ac_status=$?
1568   if test -s conftest.err; then
1569     grep -v '^ *+' conftest.err >conftest.er1
1570     cat conftest.er1 >&5
1571     mv -f conftest.er1 conftest.err
1572   fi
1573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574   test $ac_status = 0; } > conftest.i && {
1575          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1576          test ! -s conftest.err
1577        }; then :
1578   ac_retval=0
1579 else
1580   $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583     ac_retval=1
1584 fi
1585   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586   as_fn_set_status $ac_retval
1587
1588 } # ac_fn_c_try_cpp
1589
1590 # ac_fn_cxx_try_compile LINENO
1591 # ----------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_cxx_try_compile ()
1594 {
1595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596   rm -f conftest.$ac_objext
1597   if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600   *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604   (eval "$ac_compile") 2>conftest.err
1605   ac_status=$?
1606   if test -s conftest.err; then
1607     grep -v '^ *+' conftest.err >conftest.er1
1608     cat conftest.er1 >&5
1609     mv -f conftest.er1 conftest.err
1610   fi
1611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612   test $ac_status = 0; } && {
1613          test -z "$ac_cxx_werror_flag" ||
1614          test ! -s conftest.err
1615        } && test -s conftest.$ac_objext; then :
1616   ac_retval=0
1617 else
1618   $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621         ac_retval=1
1622 fi
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_cxx_try_compile
1627
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   rm -f conftest.$ac_objext conftest$ac_exeext
1635   if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638   *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642   (eval "$ac_link") 2>conftest.err
1643   ac_status=$?
1644   if test -s conftest.err; then
1645     grep -v '^ *+' conftest.err >conftest.er1
1646     cat conftest.er1 >&5
1647     mv -f conftest.er1 conftest.err
1648   fi
1649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650   test $ac_status = 0; } && {
1651          test -z "$ac_c_werror_flag" ||
1652          test ! -s conftest.err
1653        } && test -s conftest$ac_exeext && {
1654          test "$cross_compiling" = yes ||
1655          $as_test_x conftest$ac_exeext
1656        }; then :
1657   ac_retval=0
1658 else
1659   $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662         ac_retval=1
1663 fi
1664   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666   # interfere with the next link command; also delete a directory that is
1667   # left behind by Apple's compiler.  We do this before executing the actions.
1668   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670   as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_link
1673
1674 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1675 # -------------------------------------------------------
1676 # Tests whether HEADER exists and can be compiled using the include files in
1677 # INCLUDES, setting the cache variable VAR accordingly.
1678 ac_fn_c_check_header_compile ()
1679 {
1680   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1682 $as_echo_n "checking for $2... " >&6; }
1683 if eval \${$3+:} false; then :
1684   $as_echo_n "(cached) " >&6
1685 else
1686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h.  */
1688 $4
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692   eval "$3=yes"
1693 else
1694   eval "$3=no"
1695 fi
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 fi
1698 eval ac_res=\$$3
1699                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700 $as_echo "$ac_res" >&6; }
1701   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703 } # ac_fn_c_check_header_compile
1704
1705 # ac_fn_c_try_run LINENO
1706 # ----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708 # that executables *can* be run.
1709 ac_fn_c_try_run ()
1710 {
1711   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712   if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_link") 2>&5
1720   ac_status=$?
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723   { { case "(($ac_try" in
1724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725   *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729   (eval "$ac_try") 2>&5
1730   ac_status=$?
1731   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732   test $ac_status = 0; }; }; then :
1733   ac_retval=0
1734 else
1735   $as_echo "$as_me: program exited with status $ac_status" >&5
1736        $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739        ac_retval=$ac_status
1740 fi
1741   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743   as_fn_set_status $ac_retval
1744
1745 } # ac_fn_c_try_run
1746
1747 # ac_fn_c_check_func LINENO FUNC VAR
1748 # ----------------------------------
1749 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1750 ac_fn_c_check_func ()
1751 {
1752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if eval \${$3+:} false; then :
1756   $as_echo_n "(cached) " >&6
1757 else
1758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1762 #define $2 innocuous_$2
1763
1764 /* System header to define __stub macros and hopefully few prototypes,
1765     which can conflict with char $2 (); below.
1766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1767     <limits.h> exists even on freestanding compilers.  */
1768
1769 #ifdef __STDC__
1770 # include <limits.h>
1771 #else
1772 # include <assert.h>
1773 #endif
1774
1775 #undef $2
1776
1777 /* Override any GCC internal prototype to avoid an error.
1778    Use char because int might match the return type of a GCC
1779    builtin and then its argument prototype would still apply.  */
1780 #ifdef __cplusplus
1781 extern "C"
1782 #endif
1783 char $2 ();
1784 /* The GNU C library defines this for functions which it implements
1785     to always fail with ENOSYS.  Some functions are actually named
1786     something starting with __ and the normal name is an alias.  */
1787 #if defined __stub_$2 || defined __stub___$2
1788 choke me
1789 #endif
1790
1791 int
1792 main ()
1793 {
1794 return $2 ();
1795   ;
1796   return 0;
1797 }
1798 _ACEOF
1799 if ac_fn_c_try_link "$LINENO"; then :
1800   eval "$3=yes"
1801 else
1802   eval "$3=no"
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext \
1805     conftest$ac_exeext conftest.$ac_ext
1806 fi
1807 eval ac_res=\$$3
1808                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811
1812 } # ac_fn_c_check_func
1813
1814 # ac_fn_cxx_try_cpp LINENO
1815 # ------------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_cxx_try_cpp ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   if { { ac_try="$ac_cpp conftest.$ac_ext"
1821 case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1828   ac_status=$?
1829   if test -s conftest.err; then
1830     grep -v '^ *+' conftest.err >conftest.er1
1831     cat conftest.er1 >&5
1832     mv -f conftest.er1 conftest.err
1833   fi
1834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835   test $ac_status = 0; } > conftest.i && {
1836          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1837          test ! -s conftest.err
1838        }; then :
1839   ac_retval=0
1840 else
1841   $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1843
1844     ac_retval=1
1845 fi
1846   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847   as_fn_set_status $ac_retval
1848
1849 } # ac_fn_cxx_try_cpp
1850
1851 # ac_fn_cxx_try_link LINENO
1852 # -------------------------
1853 # Try to link conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_link ()
1855 {
1856   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857   rm -f conftest.$ac_objext conftest$ac_exeext
1858   if { { ac_try="$ac_link"
1859 case "(($ac_try" in
1860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1861   *) ac_try_echo=$ac_try;;
1862 esac
1863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865   (eval "$ac_link") 2>conftest.err
1866   ac_status=$?
1867   if test -s conftest.err; then
1868     grep -v '^ *+' conftest.err >conftest.er1
1869     cat conftest.er1 >&5
1870     mv -f conftest.er1 conftest.err
1871   fi
1872   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873   test $ac_status = 0; } && {
1874          test -z "$ac_cxx_werror_flag" ||
1875          test ! -s conftest.err
1876        } && test -s conftest$ac_exeext && {
1877          test "$cross_compiling" = yes ||
1878          $as_test_x conftest$ac_exeext
1879        }; then :
1880   ac_retval=0
1881 else
1882   $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885         ac_retval=1
1886 fi
1887   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1888   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1889   # interfere with the next link command; also delete a directory that is
1890   # left behind by Apple's compiler.  We do this before executing the actions.
1891   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893   as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_link
1896
1897 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1900 # the include files in INCLUDES and setting the cache variable VAR
1901 # accordingly.
1902 ac_fn_c_check_header_mongrel ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   if eval \${$3+:} false; then :
1906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907 $as_echo_n "checking for $2... " >&6; }
1908 if eval \${$3+:} false; then :
1909   $as_echo_n "(cached) " >&6
1910 fi
1911 eval ac_res=\$$3
1912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 else
1915   # Is the header compilable?
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1917 $as_echo_n "checking $2 usability... " >&6; }
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 #include <$2>
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924   ac_header_compiler=yes
1925 else
1926   ac_header_compiler=no
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1930 $as_echo "$ac_header_compiler" >&6; }
1931
1932 # Is the header present?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1934 $as_echo_n "checking $2 presence... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 #include <$2>
1938 _ACEOF
1939 if ac_fn_c_try_cpp "$LINENO"; then :
1940   ac_header_preproc=yes
1941 else
1942   ac_header_preproc=no
1943 fi
1944 rm -f conftest.err conftest.i conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1946 $as_echo "$ac_header_preproc" >&6; }
1947
1948 # So?  What about this header?
1949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1950   yes:no: )
1951     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1952 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1953     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955     ;;
1956   no:yes:* )
1957     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1958 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1959     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1960 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1962 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1963     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1964 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967     ;;
1968 esac
1969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval \${$3+:} false; then :
1972   $as_echo_n "(cached) " >&6
1973 else
1974   eval "$3=\$ac_header_compiler"
1975 fi
1976 eval ac_res=\$$3
1977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1979 fi
1980   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982 } # ac_fn_c_check_header_mongrel
1983 cat >config.log <<_ACEOF
1984 This file contains any messages produced by compilers while
1985 running configure, to aid debugging if configure makes a mistake.
1986
1987 It was created by lcms2 $as_me 2.3, which was
1988 generated by GNU Autoconf 2.68.  Invocation command line was
1989
1990   $ $0 $@
1991
1992 _ACEOF
1993 exec 5>>config.log
1994 {
1995 cat <<_ASUNAME
1996 ## --------- ##
1997 ## Platform. ##
1998 ## --------- ##
1999
2000 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2001 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2002 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2003 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2004 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2005
2006 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2007 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2008
2009 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2010 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2011 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2012 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2013 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2014 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2015 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2016
2017 _ASUNAME
2018
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024     $as_echo "PATH: $as_dir"
2025   done
2026 IFS=$as_save_IFS
2027
2028 } >&5
2029
2030 cat >&5 <<_ACEOF
2031
2032
2033 ## ----------- ##
2034 ## Core tests. ##
2035 ## ----------- ##
2036
2037 _ACEOF
2038
2039
2040 # Keep a trace of the command line.
2041 # Strip out --no-create and --no-recursion so they do not pile up.
2042 # Strip out --silent because we don't want to record it for future runs.
2043 # Also quote any args containing shell meta-characters.
2044 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_configure_args=
2046 ac_configure_args0=
2047 ac_configure_args1=
2048 ac_must_keep_next=false
2049 for ac_pass in 1 2
2050 do
2051   for ac_arg
2052   do
2053     case $ac_arg in
2054     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2055     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2056     | -silent | --silent | --silen | --sile | --sil)
2057       continue ;;
2058     *\'*)
2059       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060     esac
2061     case $ac_pass in
2062     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2063     2)
2064       as_fn_append ac_configure_args1 " '$ac_arg'"
2065       if test $ac_must_keep_next = true; then
2066         ac_must_keep_next=false # Got value, back to normal.
2067       else
2068         case $ac_arg in
2069           *=* | --config-cache | -C | -disable-* | --disable-* \
2070           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2071           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2072           | -with-* | --with-* | -without-* | --without-* | --x)
2073             case "$ac_configure_args0 " in
2074               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075             esac
2076             ;;
2077           -* ) ac_must_keep_next=true ;;
2078         esac
2079       fi
2080       as_fn_append ac_configure_args " '$ac_arg'"
2081       ;;
2082     esac
2083   done
2084 done
2085 { ac_configure_args0=; unset ac_configure_args0;}
2086 { ac_configure_args1=; unset ac_configure_args1;}
2087
2088 # When interrupted or exit'd, cleanup temporary files, and complete
2089 # config.log.  We remove comments because anyway the quotes in there
2090 # would cause problems or look ugly.
2091 # WARNING: Use '\'' to represent an apostrophe within the trap.
2092 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2093 trap 'exit_status=$?
2094   # Save into config.log some information that might help in debugging.
2095   {
2096     echo
2097
2098     $as_echo "## ---------------- ##
2099 ## Cache variables. ##
2100 ## ---------------- ##"
2101     echo
2102     # The following way of writing the cache mishandles newlines in values,
2103 (
2104   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2105     eval ac_val=\$$ac_var
2106     case $ac_val in #(
2107     *${as_nl}*)
2108       case $ac_var in #(
2109       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2110 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111       esac
2112       case $ac_var in #(
2113       _ | IFS | as_nl) ;; #(
2114       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2115       *) { eval $ac_var=; unset $ac_var;} ;;
2116       esac ;;
2117     esac
2118   done
2119   (set) 2>&1 |
2120     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2121     *${as_nl}ac_space=\ *)
2122       sed -n \
2123         "s/'\''/'\''\\\\'\'''\''/g;
2124           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125       ;; #(
2126     *)
2127       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128       ;;
2129     esac |
2130     sort
2131 )
2132     echo
2133
2134     $as_echo "## ----------------- ##
2135 ## Output variables. ##
2136 ## ----------------- ##"
2137     echo
2138     for ac_var in $ac_subst_vars
2139     do
2140       eval ac_val=\$$ac_var
2141       case $ac_val in
2142       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143       esac
2144       $as_echo "$ac_var='\''$ac_val'\''"
2145     done | sort
2146     echo
2147
2148     if test -n "$ac_subst_files"; then
2149       $as_echo "## ------------------- ##
2150 ## File substitutions. ##
2151 ## ------------------- ##"
2152       echo
2153       for ac_var in $ac_subst_files
2154       do
2155         eval ac_val=\$$ac_var
2156         case $ac_val in
2157         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2158         esac
2159         $as_echo "$ac_var='\''$ac_val'\''"
2160       done | sort
2161       echo
2162     fi
2163
2164     if test -s confdefs.h; then
2165       $as_echo "## ----------- ##
2166 ## confdefs.h. ##
2167 ## ----------- ##"
2168       echo
2169       cat confdefs.h
2170       echo
2171     fi
2172     test "$ac_signal" != 0 &&
2173       $as_echo "$as_me: caught signal $ac_signal"
2174     $as_echo "$as_me: exit $exit_status"
2175   } >&5
2176   rm -f core *.core core.conftest.* &&
2177     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178     exit $exit_status
2179 ' 0
2180 for ac_signal in 1 2 13 15; do
2181   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 done
2183 ac_signal=0
2184
2185 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2186 rm -f -r conftest* confdefs.h
2187
2188 $as_echo "/* confdefs.h */" > confdefs.h
2189
2190 # Predefined preprocessor variables.
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 _ACEOF
2203
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 _ACEOF
2207
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 _ACEOF
2211
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_URL "$PACKAGE_URL"
2214 _ACEOF
2215
2216
2217 # Let the site file select an alternate cache file if it wants to.
2218 # Prefer an explicitly selected file to automatically selected ones.
2219 ac_site_file1=NONE
2220 ac_site_file2=NONE
2221 if test -n "$CONFIG_SITE"; then
2222   # We do not want a PATH search for config.site.
2223   case $CONFIG_SITE in #((
2224     -*)  ac_site_file1=./$CONFIG_SITE;;
2225     */*) ac_site_file1=$CONFIG_SITE;;
2226     *)   ac_site_file1=./$CONFIG_SITE;;
2227   esac
2228 elif test "x$prefix" != xNONE; then
2229   ac_site_file1=$prefix/share/config.site
2230   ac_site_file2=$prefix/etc/config.site
2231 else
2232   ac_site_file1=$ac_default_prefix/share/config.site
2233   ac_site_file2=$ac_default_prefix/etc/config.site
2234 fi
2235 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2236 do
2237   test "x$ac_site_file" = xNONE && continue
2238   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2239     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2240 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2241     sed 's/^/| /' "$ac_site_file" >&5
2242     . "$ac_site_file" \
2243       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245 as_fn_error $? "failed to load site script $ac_site_file
2246 See \`config.log' for more details" "$LINENO" 5 ; }
2247   fi
2248 done
2249
2250 if test -r "$cache_file"; then
2251   # Some versions of bash will fail to source /dev/null (special files
2252   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2253   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2254     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2255 $as_echo "$as_me: loading cache $cache_file" >&6;}
2256     case $cache_file in
2257       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2258       *)                      . "./$cache_file";;
2259     esac
2260   fi
2261 else
2262   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2263 $as_echo "$as_me: creating cache $cache_file" >&6;}
2264   >$cache_file
2265 fi
2266
2267 # Check that the precious variables saved in the cache have kept the same
2268 # value.
2269 ac_cache_corrupted=false
2270 for ac_var in $ac_precious_vars; do
2271   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2272   eval ac_new_set=\$ac_env_${ac_var}_set
2273   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2274   eval ac_new_val=\$ac_env_${ac_var}_value
2275   case $ac_old_set,$ac_new_set in
2276     set,)
2277       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2278 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2279       ac_cache_corrupted=: ;;
2280     ,set)
2281       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2282 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2283       ac_cache_corrupted=: ;;
2284     ,);;
2285     *)
2286       if test "x$ac_old_val" != "x$ac_new_val"; then
2287         # differences in whitespace do not lead to failure.
2288         ac_old_val_w=`echo x $ac_old_val`
2289         ac_new_val_w=`echo x $ac_new_val`
2290         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2291           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2292 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2293           ac_cache_corrupted=:
2294         else
2295           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2296 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2297           eval $ac_var=\$ac_old_val
2298         fi
2299         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2300 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2301         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2302 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2303       fi;;
2304   esac
2305   # Pass precious variables to config.status.
2306   if test "$ac_new_set" = set; then
2307     case $ac_new_val in
2308     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2309     *) ac_arg=$ac_var=$ac_new_val ;;
2310     esac
2311     case " $ac_configure_args " in
2312       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2313       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2314     esac
2315   fi
2316 done
2317 if $ac_cache_corrupted; then
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2320   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2321 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2322   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2323 fi
2324 ## -------------------- ##
2325 ## Main body of script. ##
2326 ## -------------------- ##
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335
2336 #
2337 # Libtool library revision control info
2338 # See the libtool documentation under the heading "Libtool's versioning
2339 # system" in order to understand the meaning of these fields
2340 #
2341 # Here are a set of rules to help you update your library version
2342 # information:
2343 #
2344 #  1. Start with version information of `0:0:0' for each libtool library.
2345 #  2. Update the version information only immediately before a public
2346 #     release of your software. More frequent updates are unnecessary, and
2347 #     only guarantee that the current interface number gets larger faster.
2348 #  3. If the library source code has changed at all since the last update,
2349 #     then increment revision (`c:r:a' becomes `c:r+1:a').
2350 #  4. If any interfaces have been added, removed, or changed since the last
2351 #     update, increment current, and set revision to 0.
2352 #  5. If any interfaces have been added since the last public release, then
2353 #     increment age.
2354 #  6. If any interfaces have been removed since the last public release,
2355 #     then set age to 0.
2356 #
2357 LIBRARY_CURRENT=2
2358 LIBRARY_REVISION=3
2359 LIBRARY_AGE=0
2360
2361
2362 # Obtain system type by running config.guess
2363 ac_aux_dir=
2364 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2365   if test -f "$ac_dir/install-sh"; then
2366     ac_aux_dir=$ac_dir
2367     ac_install_sh="$ac_aux_dir/install-sh -c"
2368     break
2369   elif test -f "$ac_dir/install.sh"; then
2370     ac_aux_dir=$ac_dir
2371     ac_install_sh="$ac_aux_dir/install.sh -c"
2372     break
2373   elif test -f "$ac_dir/shtool"; then
2374     ac_aux_dir=$ac_dir
2375     ac_install_sh="$ac_aux_dir/shtool install -c"
2376     break
2377   fi
2378 done
2379 if test -z "$ac_aux_dir"; then
2380   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2381 fi
2382
2383 # These three variables are undocumented and unsupported,
2384 # and are intended to be withdrawn in a future Autoconf release.
2385 # They can cause serious problems if a builder's source tree is in a directory
2386 # whose full name contains unusual characters.
2387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2389 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2390
2391
2392 # Make sure we can run config.sub.
2393 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2394   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2395
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2397 $as_echo_n "checking build system type... " >&6; }
2398 if ${ac_cv_build+:} false; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   ac_build_alias=$build_alias
2402 test "x$ac_build_alias" = x &&
2403   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2404 test "x$ac_build_alias" = x &&
2405   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2406 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2407   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2408
2409 fi
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2411 $as_echo "$ac_cv_build" >&6; }
2412 case $ac_cv_build in
2413 *-*-*) ;;
2414 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2415 esac
2416 build=$ac_cv_build
2417 ac_save_IFS=$IFS; IFS='-'
2418 set x $ac_cv_build
2419 shift
2420 build_cpu=$1
2421 build_vendor=$2
2422 shift; shift
2423 # Remember, the first character of IFS is used to create $*,
2424 # except with old shells:
2425 build_os=$*
2426 IFS=$ac_save_IFS
2427 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2428
2429
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2431 $as_echo_n "checking host system type... " >&6; }
2432 if ${ac_cv_host+:} false; then :
2433   $as_echo_n "(cached) " >&6
2434 else
2435   if test "x$host_alias" = x; then
2436   ac_cv_host=$ac_cv_build
2437 else
2438   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2439     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2440 fi
2441
2442 fi
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2444 $as_echo "$ac_cv_host" >&6; }
2445 case $ac_cv_host in
2446 *-*-*) ;;
2447 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2448 esac
2449 host=$ac_cv_host
2450 ac_save_IFS=$IFS; IFS='-'
2451 set x $ac_cv_host
2452 shift
2453 host_cpu=$1
2454 host_vendor=$2
2455 shift; shift
2456 # Remember, the first character of IFS is used to create $*,
2457 # except with old shells:
2458 host_os=$*
2459 IFS=$ac_save_IFS
2460 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2461
2462
2463
2464 am__api_version='1.11'
2465
2466 # Find a good install program.  We prefer a C program (faster),
2467 # so one script is as good as another.  But avoid the broken or
2468 # incompatible versions:
2469 # SysV /etc/install, /usr/sbin/install
2470 # SunOS /usr/etc/install
2471 # IRIX /sbin/install
2472 # AIX /bin/install
2473 # AmigaOS /C/install, which installs bootblocks on floppy discs
2474 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2475 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2476 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2477 # OS/2's system install, which has a completely different semantic
2478 # ./install, which can be erroneously created by make from ./install.sh.
2479 # Reject install programs that cannot install multiple files.
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2481 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2482 if test -z "$INSTALL"; then
2483 if ${ac_cv_path_install+:} false; then :
2484   $as_echo_n "(cached) " >&6
2485 else
2486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491     # Account for people who put trailing slashes in PATH elements.
2492 case $as_dir/ in #((
2493   ./ | .// | /[cC]/* | \
2494   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2495   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2496   /usr/ucb/* ) ;;
2497   *)
2498     # OSF1 and SCO ODT 3.0 have their own names for install.
2499     # Don't use installbsd from OSF since it installs stuff as root
2500     # by default.
2501     for ac_prog in ginstall scoinst install; do
2502       for ac_exec_ext in '' $ac_executable_extensions; do
2503         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2504           if test $ac_prog = install &&
2505             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506             # AIX install.  It has an incompatible calling convention.
2507             :
2508           elif test $ac_prog = install &&
2509             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510             # program-specific install script used by HP pwplus--don't use.
2511             :
2512           else
2513             rm -rf conftest.one conftest.two conftest.dir
2514             echo one > conftest.one
2515             echo two > conftest.two
2516             mkdir conftest.dir
2517             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2518               test -s conftest.one && test -s conftest.two &&
2519               test -s conftest.dir/conftest.one &&
2520               test -s conftest.dir/conftest.two
2521             then
2522               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2523               break 3
2524             fi
2525           fi
2526         fi
2527       done
2528     done
2529     ;;
2530 esac
2531
2532   done
2533 IFS=$as_save_IFS
2534
2535 rm -rf conftest.one conftest.two conftest.dir
2536
2537 fi
2538   if test "${ac_cv_path_install+set}" = set; then
2539     INSTALL=$ac_cv_path_install
2540   else
2541     # As a last resort, use the slow shell script.  Don't cache a
2542     # value for INSTALL within a source directory, because that will
2543     # break other packages using the cache if that directory is
2544     # removed, or if the value is a relative name.
2545     INSTALL=$ac_install_sh
2546   fi
2547 fi
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2549 $as_echo "$INSTALL" >&6; }
2550
2551 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2552 # It thinks the first close brace ends the variable substitution.
2553 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2554
2555 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2556
2557 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2558
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2560 $as_echo_n "checking whether build environment is sane... " >&6; }
2561 # Just in case
2562 sleep 1
2563 echo timestamp > conftest.file
2564 # Reject unsafe characters in $srcdir or the absolute working directory
2565 # name.  Accept space and tab only in the latter.
2566 am_lf='
2567 '
2568 case `pwd` in
2569   *[\\\"\#\$\&\'\`$am_lf]*)
2570     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2571 esac
2572 case $srcdir in
2573   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2574     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2575 esac
2576
2577 # Do `set' in a subshell so we don't clobber the current shell's
2578 # arguments.  Must try -L first in case configure is actually a
2579 # symlink; some systems play weird games with the mod time of symlinks
2580 # (eg FreeBSD returns the mod time of the symlink's containing
2581 # directory).
2582 if (
2583    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2584    if test "$*" = "X"; then
2585       # -L didn't work.
2586       set X `ls -t "$srcdir/configure" conftest.file`
2587    fi
2588    rm -f conftest.file
2589    if test "$*" != "X $srcdir/configure conftest.file" \
2590       && test "$*" != "X conftest.file $srcdir/configure"; then
2591
2592       # If neither matched, then we have a broken ls.  This can happen
2593       # if, for instance, CONFIG_SHELL is bash and it inherits a
2594       # broken ls alias from the environment.  This has actually
2595       # happened.  Such a system could not be considered "sane".
2596       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2597 alias in your environment" "$LINENO" 5
2598    fi
2599
2600    test "$2" = conftest.file
2601    )
2602 then
2603    # Ok.
2604    :
2605 else
2606    as_fn_error $? "newly created file is older than distributed files!
2607 Check your system clock" "$LINENO" 5
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610 $as_echo "yes" >&6; }
2611 test "$program_prefix" != NONE &&
2612   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2613 # Use a double $ so make ignores it.
2614 test "$program_suffix" != NONE &&
2615   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2616 # Double any \ or $.
2617 # By default was `s,x,x', remove it if useless.
2618 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2619 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2620
2621 # expand $ac_aux_dir to an absolute path
2622 am_aux_dir=`cd $ac_aux_dir && pwd`
2623
2624 if test x"${MISSING+set}" != xset; then
2625   case $am_aux_dir in
2626   *\ * | *\     *)
2627     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2628   *)
2629     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2630   esac
2631 fi
2632 # Use eval to expand $SHELL
2633 if eval "$MISSING --run true"; then
2634   am_missing_run="$MISSING --run "
2635 else
2636   am_missing_run=
2637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2638 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2639 fi
2640
2641 if test x"${install_sh}" != xset; then
2642   case $am_aux_dir in
2643   *\ * | *\     *)
2644     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2645   *)
2646     install_sh="\${SHELL} $am_aux_dir/install-sh"
2647   esac
2648 fi
2649
2650 # Installed binaries are usually stripped using `strip' when the user
2651 # run `make install-strip'.  However `strip' might not be the right
2652 # tool to use in cross-compilation environments, therefore Automake
2653 # will honor the `STRIP' environment variable to overrule this program.
2654 if test "$cross_compiling" != no; then
2655   if test -n "$ac_tool_prefix"; then
2656   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2657 set dummy ${ac_tool_prefix}strip; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if ${ac_cv_prog_STRIP+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test -n "$STRIP"; then
2664   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2665 else
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 for as_dir in $PATH
2668 do
2669   IFS=$as_save_IFS
2670   test -z "$as_dir" && as_dir=.
2671     for ac_exec_ext in '' $ac_executable_extensions; do
2672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2675     break 2
2676   fi
2677 done
2678   done
2679 IFS=$as_save_IFS
2680
2681 fi
2682 fi
2683 STRIP=$ac_cv_prog_STRIP
2684 if test -n "$STRIP"; then
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2686 $as_echo "$STRIP" >&6; }
2687 else
2688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2690 fi
2691
2692
2693 fi
2694 if test -z "$ac_cv_prog_STRIP"; then
2695   ac_ct_STRIP=$STRIP
2696   # Extract the first word of "strip", so it can be a program name with args.
2697 set dummy strip; ac_word=$2
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699 $as_echo_n "checking for $ac_word... " >&6; }
2700 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   if test -n "$ac_ct_STRIP"; then
2704   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709   IFS=$as_save_IFS
2710   test -z "$as_dir" && as_dir=.
2711     for ac_exec_ext in '' $ac_executable_extensions; do
2712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713     ac_cv_prog_ac_ct_STRIP="strip"
2714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2715     break 2
2716   fi
2717 done
2718   done
2719 IFS=$as_save_IFS
2720
2721 fi
2722 fi
2723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2724 if test -n "$ac_ct_STRIP"; then
2725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2726 $as_echo "$ac_ct_STRIP" >&6; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729 $as_echo "no" >&6; }
2730 fi
2731
2732   if test "x$ac_ct_STRIP" = x; then
2733     STRIP=":"
2734   else
2735     case $cross_compiling:$ac_tool_warned in
2736 yes:)
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739 ac_tool_warned=yes ;;
2740 esac
2741     STRIP=$ac_ct_STRIP
2742   fi
2743 else
2744   STRIP="$ac_cv_prog_STRIP"
2745 fi
2746
2747 fi
2748 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2751 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2752 if test -z "$MKDIR_P"; then
2753   if ${ac_cv_path_mkdir+:} false; then :
2754   $as_echo_n "(cached) " >&6
2755 else
2756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761     for ac_prog in mkdir gmkdir; do
2762          for ac_exec_ext in '' $ac_executable_extensions; do
2763            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2764            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2765              'mkdir (GNU coreutils) '* | \
2766              'mkdir (coreutils) '* | \
2767              'mkdir (fileutils) '4.1*)
2768                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2769                break 3;;
2770            esac
2771          done
2772        done
2773   done
2774 IFS=$as_save_IFS
2775
2776 fi
2777
2778   test -d ./--version && rmdir ./--version
2779   if test "${ac_cv_path_mkdir+set}" = set; then
2780     MKDIR_P="$ac_cv_path_mkdir -p"
2781   else
2782     # As a last resort, use the slow shell script.  Don't cache a
2783     # value for MKDIR_P within a source directory, because that will
2784     # break other packages using the cache if that directory is
2785     # removed, or if the value is a relative name.
2786     MKDIR_P="$ac_install_sh -d"
2787   fi
2788 fi
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2790 $as_echo "$MKDIR_P" >&6; }
2791
2792 mkdir_p="$MKDIR_P"
2793 case $mkdir_p in
2794   [\\/$]* | ?:[\\/]*) ;;
2795   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2796 esac
2797
2798 for ac_prog in gawk mawk nawk awk
2799 do
2800   # Extract the first word of "$ac_prog", so it can be a program name with args.
2801 set dummy $ac_prog; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if ${ac_cv_prog_AWK+:} false; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   if test -n "$AWK"; then
2808   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2809 else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 for as_dir in $PATH
2812 do
2813   IFS=$as_save_IFS
2814   test -z "$as_dir" && as_dir=.
2815     for ac_exec_ext in '' $ac_executable_extensions; do
2816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2817     ac_cv_prog_AWK="$ac_prog"
2818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819     break 2
2820   fi
2821 done
2822   done
2823 IFS=$as_save_IFS
2824
2825 fi
2826 fi
2827 AWK=$ac_cv_prog_AWK
2828 if test -n "$AWK"; then
2829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2830 $as_echo "$AWK" >&6; }
2831 else
2832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 $as_echo "no" >&6; }
2834 fi
2835
2836
2837   test -n "$AWK" && break
2838 done
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2841 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2842 set x ${MAKE-make}
2843 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2844 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2845   $as_echo_n "(cached) " >&6
2846 else
2847   cat >conftest.make <<\_ACEOF
2848 SHELL = /bin/sh
2849 all:
2850         @echo '@@@%%%=$(MAKE)=@@@%%%'
2851 _ACEOF
2852 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2853 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2854   *@@@%%%=?*=@@@%%%*)
2855     eval ac_cv_prog_make_${ac_make}_set=yes;;
2856   *)
2857     eval ac_cv_prog_make_${ac_make}_set=no;;
2858 esac
2859 rm -f conftest.make
2860 fi
2861 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2863 $as_echo "yes" >&6; }
2864   SET_MAKE=
2865 else
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868   SET_MAKE="MAKE=${MAKE-make}"
2869 fi
2870
2871 rm -rf .tst 2>/dev/null
2872 mkdir .tst 2>/dev/null
2873 if test -d .tst; then
2874   am__leading_dot=.
2875 else
2876   am__leading_dot=_
2877 fi
2878 rmdir .tst 2>/dev/null
2879
2880 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2881   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2882   # is not polluted with repeated "-I."
2883   am__isrc=' -I$(srcdir)'
2884   # test to see if srcdir already configured
2885   if test -f $srcdir/config.status; then
2886     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2887   fi
2888 fi
2889
2890 # test whether we have cygpath
2891 if test -z "$CYGPATH_W"; then
2892   if (cygpath --version) >/dev/null 2>/dev/null; then
2893     CYGPATH_W='cygpath -w'
2894   else
2895     CYGPATH_W=echo
2896   fi
2897 fi
2898
2899
2900 # Define the identity of the package.
2901  PACKAGE='lcms2'
2902  VERSION='2.3'
2903
2904
2905 # Some tools Automake needs.
2906
2907 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2908
2909
2910 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2911
2912
2913 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2914
2915
2916 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2917
2918
2919 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2920
2921 # We need awk for the "check" target.  The system "awk" is bad on
2922 # some platforms.
2923 # Always define AMTAR for backward compatibility.
2924
2925 AMTAR=${AMTAR-"${am_missing_run}tar"}
2926
2927 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2928
2929
2930
2931
2932
2933
2934 # Disable JPEG.
2935
2936 # Check whether --with-jpeg was given.
2937 if test "${with_jpeg+set}" = set; then :
2938   withval=$with_jpeg; with_jpeg=$withval
2939 else
2940   with_jpeg='yes'
2941 fi
2942
2943
2944 # Disable TIFF.
2945
2946 # Check whether --with-tiff was given.
2947 if test "${with_tiff+set}" = set; then :
2948   withval=$with_tiff; with_tiff=$withval
2949 else
2950   with_tiff='yes'
2951 fi
2952
2953
2954 # Disable ZLIB
2955
2956 # Check whether --with-zlib was given.
2957 if test "${with_zlib+set}" = set; then :
2958   withval=$with_zlib; with_zlib=$withval
2959 else
2960   with_zlib='yes'
2961 fi
2962
2963
2964 # Check for programs
2965 DEPDIR="${am__leading_dot}deps"
2966
2967 ac_config_commands="$ac_config_commands depfiles"
2968
2969
2970 am_make=${MAKE-make}
2971 cat > confinc << 'END'
2972 am__doit:
2973         @echo this is the am__doit target
2974 .PHONY: am__doit
2975 END
2976 # If we don't find an include directive, just comment out the code.
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2978 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2979 am__include="#"
2980 am__quote=
2981 _am_result=none
2982 # First try GNU make style include.
2983 echo "include confinc" > confmf
2984 # Ignore all kinds of additional output from `make'.
2985 case `$am_make -s -f confmf 2> /dev/null` in #(
2986 *the\ am__doit\ target*)
2987   am__include=include
2988   am__quote=
2989   _am_result=GNU
2990   ;;
2991 esac
2992 # Now try BSD make style include.
2993 if test "$am__include" = "#"; then
2994    echo '.include "confinc"' > confmf
2995    case `$am_make -s -f confmf 2> /dev/null` in #(
2996    *the\ am__doit\ target*)
2997      am__include=.include
2998      am__quote="\""
2999      _am_result=BSD
3000      ;;
3001    esac
3002 fi
3003
3004
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3006 $as_echo "$_am_result" >&6; }
3007 rm -f confinc confmf
3008
3009 # Check whether --enable-dependency-tracking was given.
3010 if test "${enable_dependency_tracking+set}" = set; then :
3011   enableval=$enable_dependency_tracking;
3012 fi
3013
3014 if test "x$enable_dependency_tracking" != xno; then
3015   am_depcomp="$ac_aux_dir/depcomp"
3016   AMDEPBACKSLASH='\'
3017 fi
3018  if test "x$enable_dependency_tracking" != xno; then
3019   AMDEP_TRUE=
3020   AMDEP_FALSE='#'
3021 else
3022   AMDEP_TRUE='#'
3023   AMDEP_FALSE=
3024 fi
3025
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 if test -n "$ac_tool_prefix"; then
3033   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   if test -n "$CC"; then
3041   ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048     for ac_exec_ext in '' $ac_executable_extensions; do
3049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055   done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070 fi
3071 if test -z "$ac_cv_prog_CC"; then
3072   ac_ct_CC=$CC
3073   # Extract the first word of "gcc", so it can be a program name with args.
3074 set dummy gcc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078   $as_echo_n "(cached) " >&6
3079 else
3080   if test -n "$ac_ct_CC"; then
3081   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086   IFS=$as_save_IFS
3087   test -z "$as_dir" && as_dir=.
3088     for ac_exec_ext in '' $ac_executable_extensions; do
3089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090     ac_cv_prog_ac_ct_CC="gcc"
3091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092     break 2
3093   fi
3094 done
3095   done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3104 else
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109   if test "x$ac_ct_CC" = x; then
3110     CC=""
3111   else
3112     case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3117 esac
3118     CC=$ac_ct_CC
3119   fi
3120 else
3121   CC="$ac_cv_prog_CC"
3122 fi
3123
3124 if test -z "$CC"; then
3125           if test -n "$ac_tool_prefix"; then
3126     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}cc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131   $as_echo_n "(cached) " >&6
3132 else
3133   if test -n "$CC"; then
3134   ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139   IFS=$as_save_IFS
3140   test -z "$as_dir" && as_dir=.
3141     for ac_exec_ext in '' $ac_executable_extensions; do
3142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143     ac_cv_prog_CC="${ac_tool_prefix}cc"
3144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145     break 2
3146   fi
3147 done
3148   done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163   fi
3164 fi
3165 if test -z "$CC"; then
3166   # Extract the first word of "cc", so it can be a program name with args.
3167 set dummy cc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_CC+:} false; then :
3171   $as_echo_n "(cached) " >&6
3172 else
3173   if test -n "$CC"; then
3174   ac_cv_prog_CC="$CC" # Let the user override the test.
3175 else
3176   ac_prog_rejected=no
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182     for ac_exec_ext in '' $ac_executable_extensions; do
3183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185        ac_prog_rejected=yes
3186        continue
3187      fi
3188     ac_cv_prog_CC="cc"
3189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193   done
3194 IFS=$as_save_IFS
3195
3196 if test $ac_prog_rejected = yes; then
3197   # We found a bogon in the path, so make sure we never use it.
3198   set dummy $ac_cv_prog_CC
3199   shift
3200   if test $# != 0; then
3201     # We chose a different compiler from the bogus one.
3202     # However, it has the same basename, so the bogon will be chosen
3203     # first if we set CC to just the basename; use the full file name.
3204     shift
3205     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3206   fi
3207 fi
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 if test -z "$CC"; then
3222   if test -n "$ac_tool_prefix"; then
3223   for ac_prog in cl.exe
3224   do
3225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_CC+:} false; then :
3230   $as_echo_n "(cached) " >&6
3231 else
3232   if test -n "$CC"; then
3233   ac_cv_prog_CC="$CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238   IFS=$as_save_IFS
3239   test -z "$as_dir" && as_dir=.
3240     for ac_exec_ext in '' $ac_executable_extensions; do
3241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244     break 2
3245   fi
3246 done
3247   done
3248 IFS=$as_save_IFS
3249
3250 fi
3251 fi
3252 CC=$ac_cv_prog_CC
3253 if test -n "$CC"; then
3254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3256 else
3257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261
3262     test -n "$CC" && break
3263   done
3264 fi
3265 if test -z "$CC"; then
3266   ac_ct_CC=$CC
3267   for ac_prog in cl.exe
3268 do
3269   # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3274   $as_echo_n "(cached) " >&6
3275 else
3276   if test -n "$ac_ct_CC"; then
3277   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282   IFS=$as_save_IFS
3283   test -z "$as_dir" && as_dir=.
3284     for ac_exec_ext in '' $ac_executable_extensions; do
3285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286     ac_cv_prog_ac_ct_CC="$ac_prog"
3287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288     break 2
3289   fi
3290 done
3291   done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299 $as_echo "$ac_ct_CC" >&6; }
3300 else
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306   test -n "$ac_ct_CC" && break
3307 done
3308
3309   if test "x$ac_ct_CC" = x; then
3310     CC=""
3311   else
3312     case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318     CC=$ac_ct_CC
3319   fi
3320 fi
3321
3322 fi
3323
3324
3325 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details" "$LINENO" 5 ; }
3329
3330 # Provide some information about the compiler.
3331 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3332 set X $ac_compile
3333 ac_compiler=$2
3334 for ac_option in --version -v -V -qversion; do
3335   { { ac_try="$ac_compiler $ac_option >&5"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3343   ac_status=$?
3344   if test -s conftest.err; then
3345     sed '10a\
3346 ... rest of stderr output deleted ...
3347          10q' conftest.err >conftest.er1
3348     cat conftest.er1 >&5
3349   fi
3350   rm -f conftest.er1 conftest.err
3351   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352   test $ac_status = 0; }
3353 done
3354
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h.  */
3357
3358 int
3359 main ()
3360 {
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"
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 whether the C compiler works" >&5
3372 $as_echo_n "checking whether the C compiler works... " >&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 if test -z "$ac_file"; then :
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
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_error 77 "C compiler cannot create executables
3443 See \`config.log' for more details" "$LINENO" 5 ; }
3444 else
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446 $as_echo "yes" >&6; }
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449 $as_echo_n "checking for C compiler default output file name... " >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; }
3452 ac_exeext=$ac_cv_exeext
3453
3454 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3455 ac_clean_files=$ac_clean_files_save
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3457 $as_echo_n "checking for suffix of executables... " >&6; }
3458 if { { ac_try="$ac_link"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465   (eval "$ac_link") 2>&5
3466   ac_status=$?
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }; then :
3469   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3470 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3471 # work properly (i.e., refer to `conftest.exe'), while it won't with
3472 # `rm'.
3473 for ac_file in conftest.exe conftest conftest.*; do
3474   test -f "$ac_file" || continue
3475   case $ac_file in
3476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478           break;;
3479     * ) break;;
3480   esac
3481 done
3482 else
3483   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3486 See \`config.log' for more details" "$LINENO" 5 ; }
3487 fi
3488 rm -f conftest conftest$ac_cv_exeext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3491
3492 rm -f conftest.$ac_ext
3493 EXEEXT=$ac_cv_exeext
3494 ac_exeext=$EXEEXT
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h.  */
3497 #include <stdio.h>
3498 int
3499 main ()
3500 {
3501 FILE *f = fopen ("conftest.out", "w");
3502  return ferror (f) || fclose (f) != 0;
3503
3504   ;
3505   return 0;
3506 }
3507 _ACEOF
3508 ac_clean_files="$ac_clean_files conftest.out"
3509 # Check that the compiler produces executables we can run.  If not, either
3510 # the compiler is broken, or we cross compile.
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512 $as_echo_n "checking whether we are cross compiling... " >&6; }
3513 if test "$cross_compiling" != yes; then
3514   { { ac_try="$ac_link"
3515 case "(($ac_try" in
3516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517   *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521   (eval "$ac_link") 2>&5
3522   ac_status=$?
3523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524   test $ac_status = 0; }
3525   if { ac_try='./conftest$ac_cv_exeext'
3526   { { case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532   (eval "$ac_try") 2>&5
3533   ac_status=$?
3534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535   test $ac_status = 0; }; }; then
3536     cross_compiling=no
3537   else
3538     if test "$cross_compiling" = maybe; then
3539         cross_compiling=yes
3540     else
3541         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot run C compiled programs.
3544 If you meant to cross compile, use \`--host'.
3545 See \`config.log' for more details" "$LINENO" 5 ; }
3546     fi
3547   fi
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550 $as_echo "$cross_compiling" >&6; }
3551
3552 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3553 ac_clean_files=$ac_clean_files_save
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if ${ac_cv_objext+:} false; then :
3557   $as_echo_n "(cached) " >&6
3558 else
3559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h.  */
3561
3562 int
3563 main ()
3564 {
3565
3566   ;
3567   return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.o conftest.obj
3571 if { { ac_try="$ac_compile"
3572 case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_compile") 2>&5
3579   ac_status=$?
3580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581   test $ac_status = 0; }; then :
3582   for ac_file in conftest.o conftest.obj conftest.*; do
3583   test -f "$ac_file" || continue;
3584   case $ac_file in
3585     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3586     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3587        break;;
3588   esac
3589 done
3590 else
3591   $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of object files: cannot compile
3597 See \`config.log' for more details" "$LINENO" 5 ; }
3598 fi
3599 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3602 $as_echo "$ac_cv_objext" >&6; }
3603 OBJEXT=$ac_cv_objext
3604 ac_objext=$OBJEXT
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3606 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3607 if ${ac_cv_c_compiler_gnu+:} false; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h.  */
3612
3613 int
3614 main ()
3615 {
3616 #ifndef __GNUC__
3617        choke me
3618 #endif
3619
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625   ac_compiler_gnu=yes
3626 else
3627   ac_compiler_gnu=no
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3631
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3634 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3635 if test $ac_compiler_gnu = yes; then
3636   GCC=yes
3637 else
3638   GCC=
3639 fi
3640 ac_test_CFLAGS=${CFLAGS+set}
3641 ac_save_CFLAGS=$CFLAGS
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3643 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3644 if ${ac_cv_prog_cc_g+:} false; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   ac_save_c_werror_flag=$ac_c_werror_flag
3648    ac_c_werror_flag=yes
3649    ac_cv_prog_cc_g=no
3650    CFLAGS="-g"
3651    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663   ac_cv_prog_cc_g=yes
3664 else
3665   CFLAGS=""
3666       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668
3669 int
3670 main ()
3671 {
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678
3679 else
3680   ac_c_werror_flag=$ac_save_c_werror_flag
3681          CFLAGS="-g"
3682          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h.  */
3684
3685 int
3686 main ()
3687 {
3688
3689   ;
3690   return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694   ac_cv_prog_cc_g=yes
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701    ac_c_werror_flag=$ac_save_c_werror_flag
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3704 $as_echo "$ac_cv_prog_cc_g" >&6; }
3705 if test "$ac_test_CFLAGS" = set; then
3706   CFLAGS=$ac_save_CFLAGS
3707 elif test $ac_cv_prog_cc_g = yes; then
3708   if test "$GCC" = yes; then
3709     CFLAGS="-g -O2"
3710   else
3711     CFLAGS="-g"
3712   fi
3713 else
3714   if test "$GCC" = yes; then
3715     CFLAGS="-O2"
3716   else
3717     CFLAGS=
3718   fi
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3721 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3722 if ${ac_cv_prog_cc_c89+:} false; then :
3723   $as_echo_n "(cached) " >&6
3724 else
3725   ac_cv_prog_cc_c89=no
3726 ac_save_CC=$CC
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h.  */
3729 #include <stdarg.h>
3730 #include <stdio.h>
3731 #include <sys/types.h>
3732 #include <sys/stat.h>
3733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3734 struct buf { int x; };
3735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3736 static char *e (p, i)
3737      char **p;
3738      int i;
3739 {
3740   return p[i];
3741 }
3742 static char *f (char * (*g) (char **, int), char **p, ...)
3743 {
3744   char *s;
3745   va_list v;
3746   va_start (v,p);
3747   s = g (p, va_arg (v,int));
3748   va_end (v);
3749   return s;
3750 }
3751
3752 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3753    function prototypes and stuff, but not '\xHH' hex character constants.
3754    These don't provoke an error unfortunately, instead are silently treated
3755    as 'x'.  The following induces an error, until -std is added to get
3756    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3757    array size at least.  It's necessary to write '\x00'==0 to get something
3758    that's true only with -std.  */
3759 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3760
3761 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3762    inside strings and character constants.  */
3763 #define FOO(x) 'x'
3764 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3765
3766 int test (int i, double x);
3767 struct s1 {int (*f) (int a);};
3768 struct s2 {int (*f) (double a);};
3769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3770 int argc;
3771 char **argv;
3772 int
3773 main ()
3774 {
3775 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3776   ;
3777   return 0;
3778 }
3779 _ACEOF
3780 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3781         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3782 do
3783   CC="$ac_save_CC $ac_arg"
3784   if ac_fn_c_try_compile "$LINENO"; then :
3785   ac_cv_prog_cc_c89=$ac_arg
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext
3788   test "x$ac_cv_prog_cc_c89" != "xno" && break
3789 done
3790 rm -f conftest.$ac_ext
3791 CC=$ac_save_CC
3792
3793 fi
3794 # AC_CACHE_VAL
3795 case "x$ac_cv_prog_cc_c89" in
3796   x)
3797     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3798 $as_echo "none needed" >&6; } ;;
3799   xno)
3800     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801 $as_echo "unsupported" >&6; } ;;
3802   *)
3803     CC="$CC $ac_cv_prog_cc_c89"
3804     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3805 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3806 esac
3807 if test "x$ac_cv_prog_cc_c89" != xno; then :
3808
3809 fi
3810
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816
3817 depcc="$CC"   am_compiler_list=
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3820 $as_echo_n "checking dependency style of $depcc... " >&6; }
3821 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3822   $as_echo_n "(cached) " >&6
3823 else
3824   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825   # We make a subdir and do the tests there.  Otherwise we can end up
3826   # making bogus files that we don't know about and never remove.  For
3827   # instance it was reported that on HP-UX the gcc test will end up
3828   # making a dummy file named `D' -- because `-MD' means `put the output
3829   # in D'.
3830   mkdir conftest.dir
3831   # Copy depcomp to subdir because otherwise we won't find it if we're
3832   # using a relative directory.
3833   cp "$am_depcomp" conftest.dir
3834   cd conftest.dir
3835   # We will build objects and dependencies in a subdirectory because
3836   # it helps to detect inapplicable dependency modes.  For instance
3837   # both Tru64's cc and ICC support -MD to output dependencies as a
3838   # side effect of compilation, but ICC will put the dependencies in
3839   # the current directory while Tru64 will put them in the object
3840   # directory.
3841   mkdir sub
3842
3843   am_cv_CC_dependencies_compiler_type=none
3844   if test "$am_compiler_list" = ""; then
3845      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3846   fi
3847   am__universal=false
3848   case " $depcc " in #(
3849      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3850      esac
3851
3852   for depmode in $am_compiler_list; do
3853     # Setup a source with many dependencies, because some compilers
3854     # like to wrap large dependency lists on column 80 (with \), and
3855     # we should not choose a depcomp mode which is confused by this.
3856     #
3857     # We need to recreate these files for each test, as the compiler may
3858     # overwrite some of them when testing with obscure command lines.
3859     # This happens at least with the AIX C compiler.
3860     : > sub/conftest.c
3861     for i in 1 2 3 4 5 6; do
3862       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3863       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3864       # Solaris 8's {/usr,}/bin/sh.
3865       touch sub/conftst$i.h
3866     done
3867     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3868
3869     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3870     # mode.  It turns out that the SunPro C++ compiler does not properly
3871     # handle `-M -o', and we need to detect this.  Also, some Intel
3872     # versions had trouble with output in subdirs
3873     am__obj=sub/conftest.${OBJEXT-o}
3874     am__minus_obj="-o $am__obj"
3875     case $depmode in
3876     gcc)
3877       # This depmode causes a compiler race in universal mode.
3878       test "$am__universal" = false || continue
3879       ;;
3880     nosideeffect)
3881       # after this tag, mechanisms are not by side-effect, so they'll
3882       # only be used when explicitly requested
3883       if test "x$enable_dependency_tracking" = xyes; then
3884         continue
3885       else
3886         break
3887       fi
3888       ;;
3889     msvisualcpp | msvcmsys)
3890       # This compiler won't grok `-c -o', but also, the minuso test has
3891       # not run yet.  These depmodes are late enough in the game, and
3892       # so weak that their functioning should not be impacted.
3893       am__obj=conftest.${OBJEXT-o}
3894       am__minus_obj=
3895       ;;
3896     none) break ;;
3897     esac
3898     if depmode=$depmode \
3899        source=sub/conftest.c object=$am__obj \
3900        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3901        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3902          >/dev/null 2>conftest.err &&
3903        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3904        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3905        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3906        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3907       # icc doesn't choke on unknown options, it will just issue warnings
3908       # or remarks (even with -Werror).  So we grep stderr for any message
3909       # that says an option was ignored or not supported.
3910       # When given -MP, icc 7.0 and 7.1 complain thusly:
3911       #   icc: Command line warning: ignoring option '-M'; no argument required
3912       # The diagnosis changed in icc 8.0:
3913       #   icc: Command line remark: option '-MP' not supported
3914       if (grep 'ignoring option' conftest.err ||
3915           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3916         am_cv_CC_dependencies_compiler_type=$depmode
3917         break
3918       fi
3919     fi
3920   done
3921
3922   cd ..
3923   rm -rf conftest.dir
3924 else
3925   am_cv_CC_dependencies_compiler_type=none
3926 fi
3927
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3930 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3931 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3932
3933  if
3934   test "x$enable_dependency_tracking" != xno \
3935   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3936   am__fastdepCC_TRUE=
3937   am__fastdepCC_FALSE='#'
3938 else
3939   am__fastdepCC_TRUE='#'
3940   am__fastdepCC_FALSE=
3941 fi
3942
3943
3944    case $ac_cv_prog_cc_stdc in #(
3945   no) :
3946     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3947   *) :
3948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3949 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3950 if ${ac_cv_prog_cc_c99+:} false; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   ac_cv_prog_cc_c99=no
3954 ac_save_CC=$CC
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957 #include <stdarg.h>
3958 #include <stdbool.h>
3959 #include <stdlib.h>
3960 #include <wchar.h>
3961 #include <stdio.h>
3962
3963 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3964 #define debug(...) fprintf (stderr, __VA_ARGS__)
3965 #define showlist(...) puts (#__VA_ARGS__)
3966 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3967 static void
3968 test_varargs_macros (void)
3969 {
3970   int x = 1234;
3971   int y = 5678;
3972   debug ("Flag");
3973   debug ("X = %d\n", x);
3974   showlist (The first, second, and third items.);
3975   report (x>y, "x is %d but y is %d", x, y);
3976 }
3977
3978 // Check long long types.
3979 #define BIG64 18446744073709551615ull
3980 #define BIG32 4294967295ul
3981 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3982 #if !BIG_OK
3983   your preprocessor is broken;
3984 #endif
3985 #if BIG_OK
3986 #else
3987   your preprocessor is broken;
3988 #endif
3989 static long long int bignum = -9223372036854775807LL;
3990 static unsigned long long int ubignum = BIG64;
3991
3992 struct incomplete_array
3993 {
3994   int datasize;
3995   double data[];
3996 };
3997
3998 struct named_init {
3999   int number;
4000   const wchar_t *name;
4001   double average;
4002 };
4003
4004 typedef const char *ccp;
4005
4006 static inline int
4007 test_restrict (ccp restrict text)
4008 {
4009   // See if C++-style comments work.
4010   // Iterate through items via the restricted pointer.
4011   // Also check for declarations in for loops.
4012   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4013     continue;
4014   return 0;
4015 }
4016
4017 // Check varargs and va_copy.
4018 static void
4019 test_varargs (const char *format, ...)
4020 {
4021   va_list args;
4022   va_start (args, format);
4023   va_list args_copy;
4024   va_copy (args_copy, args);
4025
4026   const char *str;
4027   int number;
4028   float fnumber;
4029
4030   while (*format)
4031     {
4032       switch (*format++)
4033         {
4034         case 's': // string
4035           str = va_arg (args_copy, const char *);
4036           break;
4037         case 'd': // int
4038           number = va_arg (args_copy, int);
4039           break;
4040         case 'f': // float
4041           fnumber = va_arg (args_copy, double);
4042           break;
4043         default:
4044           break;
4045         }
4046     }
4047   va_end (args_copy);
4048   va_end (args);
4049 }
4050
4051 int
4052 main ()
4053 {
4054
4055   // Check bool.
4056   _Bool success = false;
4057
4058   // Check restrict.
4059   if (test_restrict ("String literal") == 0)
4060     success = true;
4061   char *restrict newvar = "Another string";
4062
4063   // Check varargs.
4064   test_varargs ("s, d' f .", "string", 65, 34.234);
4065   test_varargs_macros ();
4066
4067   // Check flexible array members.
4068   struct incomplete_array *ia =
4069     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4070   ia->datasize = 10;
4071   for (int i = 0; i < ia->datasize; ++i)
4072     ia->data[i] = i * 1.234;
4073
4074   // Check named initializers.
4075   struct named_init ni = {
4076     .number = 34,
4077     .name = L"Test wide string",
4078     .average = 543.34343,
4079   };
4080
4081   ni.number = 58;
4082
4083   int dynamic_array[ni.number];
4084   dynamic_array[ni.number - 1] = 543;
4085
4086   // work around unused variable warnings
4087   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4088           || dynamic_array[ni.number - 1] != 543);
4089
4090   ;
4091   return 0;
4092 }
4093 _ACEOF
4094 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4095 do
4096   CC="$ac_save_CC $ac_arg"
4097   if ac_fn_c_try_compile "$LINENO"; then :
4098   ac_cv_prog_cc_c99=$ac_arg
4099 fi
4100 rm -f core conftest.err conftest.$ac_objext
4101   test "x$ac_cv_prog_cc_c99" != "xno" && break
4102 done
4103 rm -f conftest.$ac_ext
4104 CC=$ac_save_CC
4105
4106 fi
4107 # AC_CACHE_VAL
4108 case "x$ac_cv_prog_cc_c99" in
4109   x)
4110     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4111 $as_echo "none needed" >&6; } ;;
4112   xno)
4113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4114 $as_echo "unsupported" >&6; } ;;
4115   *)
4116     CC="$CC $ac_cv_prog_cc_c99"
4117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4118 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4119 esac
4120 if test "x$ac_cv_prog_cc_c99" != xno; then :
4121   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4122 else
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4124 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4125 if ${ac_cv_prog_cc_c89+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   ac_cv_prog_cc_c89=no
4129 ac_save_CC=$CC
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h.  */
4132 #include <stdarg.h>
4133 #include <stdio.h>
4134 #include <sys/types.h>
4135 #include <sys/stat.h>
4136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4137 struct buf { int x; };
4138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4139 static char *e (p, i)
4140      char **p;
4141      int i;
4142 {
4143   return p[i];
4144 }
4145 static char *f (char * (*g) (char **, int), char **p, ...)
4146 {
4147   char *s;
4148   va_list v;
4149   va_start (v,p);
4150   s = g (p, va_arg (v,int));
4151   va_end (v);
4152   return s;
4153 }
4154
4155 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4156    function prototypes and stuff, but not '\xHH' hex character constants.
4157    These don't provoke an error unfortunately, instead are silently treated
4158    as 'x'.  The following induces an error, until -std is added to get
4159    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4160    array size at least.  It's necessary to write '\x00'==0 to get something
4161    that's true only with -std.  */
4162 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4163
4164 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4165    inside strings and character constants.  */
4166 #define FOO(x) 'x'
4167 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4168
4169 int test (int i, double x);
4170 struct s1 {int (*f) (int a);};
4171 struct s2 {int (*f) (double a);};
4172 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4173 int argc;
4174 char **argv;
4175 int
4176 main ()
4177 {
4178 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4179   ;
4180   return 0;
4181 }
4182 _ACEOF
4183 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4184         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4185 do
4186   CC="$ac_save_CC $ac_arg"
4187   if ac_fn_c_try_compile "$LINENO"; then :
4188   ac_cv_prog_cc_c89=$ac_arg
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext
4191   test "x$ac_cv_prog_cc_c89" != "xno" && break
4192 done
4193 rm -f conftest.$ac_ext
4194 CC=$ac_save_CC
4195
4196 fi
4197 # AC_CACHE_VAL
4198 case "x$ac_cv_prog_cc_c89" in
4199   x)
4200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4201 $as_echo "none needed" >&6; } ;;
4202   xno)
4203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4204 $as_echo "unsupported" >&6; } ;;
4205   *)
4206     CC="$CC $ac_cv_prog_cc_c89"
4207     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4208 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4209 esac
4210 if test "x$ac_cv_prog_cc_c89" != xno; then :
4211   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4212 else
4213   ac_cv_prog_cc_stdc=no
4214 fi
4215
4216 fi
4217  ;;
4218 esac
4219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4220 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4221   if ${ac_cv_prog_cc_stdc+:} false; then :
4222   $as_echo_n "(cached) " >&6
4223 fi
4224
4225   case $ac_cv_prog_cc_stdc in #(
4226   no) :
4227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228 $as_echo "unsupported" >&6; } ;; #(
4229   '') :
4230     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 $as_echo "none needed" >&6; } ;; #(
4232   *) :
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4234 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4235 esac
4236
4237 ac_ext=c
4238 ac_cpp='$CPP $CPPFLAGS'
4239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4243 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4244 # On Suns, sometimes $CPP names a directory.
4245 if test -n "$CPP" && test -d "$CPP"; then
4246   CPP=
4247 fi
4248 if test -z "$CPP"; then
4249   if ${ac_cv_prog_CPP+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252       # Double quotes because CPP needs to be expanded
4253     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4254     do
4255       ac_preproc_ok=false
4256 for ac_c_preproc_warn_flag in '' yes
4257 do
4258   # Use a header file that comes with gcc, so configuring glibc
4259   # with a fresh cross-compiler works.
4260   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4261   # <limits.h> exists even on freestanding compilers.
4262   # On the NeXT, cc -E runs the code through the compiler's parser,
4263   # not just through cpp. "Syntax error" is here to catch this case.
4264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h.  */
4266 #ifdef __STDC__
4267 # include <limits.h>
4268 #else
4269 # include <assert.h>
4270 #endif
4271                      Syntax error
4272 _ACEOF
4273 if ac_fn_c_try_cpp "$LINENO"; then :
4274
4275 else
4276   # Broken: fails on valid input.
4277 continue
4278 fi
4279 rm -f conftest.err conftest.i conftest.$ac_ext
4280
4281   # OK, works on sane cases.  Now check whether nonexistent headers
4282   # can be detected and how.
4283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h.  */
4285 #include <ac_nonexistent.h>
4286 _ACEOF
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4288   # Broken: success on invalid input.
4289 continue
4290 else
4291   # Passes both tests.
4292 ac_preproc_ok=:
4293 break
4294 fi
4295 rm -f conftest.err conftest.i conftest.$ac_ext
4296
4297 done
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.i conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then :
4301   break
4302 fi
4303
4304     done
4305     ac_cv_prog_CPP=$CPP
4306
4307 fi
4308   CPP=$ac_cv_prog_CPP
4309 else
4310   ac_cv_prog_CPP=$CPP
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4313 $as_echo "$CPP" >&6; }
4314 ac_preproc_ok=false
4315 for ac_c_preproc_warn_flag in '' yes
4316 do
4317   # Use a header file that comes with gcc, so configuring glibc
4318   # with a fresh cross-compiler works.
4319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320   # <limits.h> exists even on freestanding compilers.
4321   # On the NeXT, cc -E runs the code through the compiler's parser,
4322   # not just through cpp. "Syntax error" is here to catch this case.
4323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h.  */
4325 #ifdef __STDC__
4326 # include <limits.h>
4327 #else
4328 # include <assert.h>
4329 #endif
4330                      Syntax error
4331 _ACEOF
4332 if ac_fn_c_try_cpp "$LINENO"; then :
4333
4334 else
4335   # Broken: fails on valid input.
4336 continue
4337 fi
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4339
4340   # OK, works on sane cases.  Now check whether nonexistent headers
4341   # can be detected and how.
4342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h.  */
4344 #include <ac_nonexistent.h>
4345 _ACEOF
4346 if ac_fn_c_try_cpp "$LINENO"; then :
4347   # Broken: success on invalid input.
4348 continue
4349 else
4350   # Passes both tests.
4351 ac_preproc_ok=:
4352 break
4353 fi
4354 rm -f conftest.err conftest.i conftest.$ac_ext
4355
4356 done
4357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4358 rm -f conftest.i conftest.err conftest.$ac_ext
4359 if $ac_preproc_ok; then :
4360
4361 else
4362   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4365 See \`config.log' for more details" "$LINENO" 5 ; }
4366 fi
4367
4368 ac_ext=c
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374 ac_ext=cpp
4375 ac_cpp='$CXXCPP $CPPFLAGS'
4376 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4379 if test -z "$CXX"; then
4380   if test -n "$CCC"; then
4381     CXX=$CCC
4382   else
4383     if test -n "$ac_tool_prefix"; then
4384   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4385   do
4386     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_CXX+:} false; then :
4391   $as_echo_n "(cached) " >&6
4392 else
4393   if test -n "$CXX"; then
4394   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401     for ac_exec_ext in '' $ac_executable_extensions; do
4402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4403     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405     break 2
4406   fi
4407 done
4408   done
4409 IFS=$as_save_IFS
4410
4411 fi
4412 fi
4413 CXX=$ac_cv_prog_CXX
4414 if test -n "$CXX"; then
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4416 $as_echo "$CXX" >&6; }
4417 else
4418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4420 fi
4421
4422
4423     test -n "$CXX" && break
4424   done
4425 fi
4426 if test -z "$CXX"; then
4427   ac_ct_CXX=$CXX
4428   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4429 do
4430   # Extract the first word of "$ac_prog", so it can be a program name with args.
4431 set dummy $ac_prog; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   if test -n "$ac_ct_CXX"; then
4438   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445     for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_prog_ac_ct_CXX="$ac_prog"
4448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452   done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4458 if test -n "$ac_ct_CXX"; then
4459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4460 $as_echo "$ac_ct_CXX" >&6; }
4461 else
4462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 fi
4465
4466
4467   test -n "$ac_ct_CXX" && break
4468 done
4469
4470   if test "x$ac_ct_CXX" = x; then
4471     CXX="g++"
4472   else
4473     case $cross_compiling:$ac_tool_warned in
4474 yes:)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4478 esac
4479     CXX=$ac_ct_CXX
4480   fi
4481 fi
4482
4483   fi
4484 fi
4485 # Provide some information about the compiler.
4486 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4487 set X $ac_compile
4488 ac_compiler=$2
4489 for ac_option in --version -v -V -qversion; do
4490   { { ac_try="$ac_compiler $ac_option >&5"
4491 case "(($ac_try" in
4492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493   *) ac_try_echo=$ac_try;;
4494 esac
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 $as_echo "$ac_try_echo"; } >&5
4497   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4498   ac_status=$?
4499   if test -s conftest.err; then
4500     sed '10a\
4501 ... rest of stderr output deleted ...
4502          10q' conftest.err >conftest.er1
4503     cat conftest.er1 >&5
4504   fi
4505   rm -f conftest.er1 conftest.err
4506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507   test $ac_status = 0; }
4508 done
4509
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4511 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4512 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h.  */
4517
4518 int
4519 main ()
4520 {
4521 #ifndef __GNUC__
4522        choke me
4523 #endif
4524
4525   ;
4526   return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_cxx_try_compile "$LINENO"; then :
4530   ac_compiler_gnu=yes
4531 else
4532   ac_compiler_gnu=no
4533 fi
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4536
4537 fi
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4539 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4540 if test $ac_compiler_gnu = yes; then
4541   GXX=yes
4542 else
4543   GXX=
4544 fi
4545 ac_test_CXXFLAGS=${CXXFLAGS+set}
4546 ac_save_CXXFLAGS=$CXXFLAGS
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4548 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4549 if ${ac_cv_prog_cxx_g+:} false; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4553    ac_cxx_werror_flag=yes
4554    ac_cv_prog_cxx_g=no
4555    CXXFLAGS="-g"
4556    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 if ac_fn_cxx_try_compile "$LINENO"; then :
4568   ac_cv_prog_cxx_g=yes
4569 else
4570   CXXFLAGS=""
4571       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h.  */
4573
4574 int
4575 main ()
4576 {
4577
4578   ;
4579   return 0;
4580 }
4581 _ACEOF
4582 if ac_fn_cxx_try_compile "$LINENO"; then :
4583
4584 else
4585   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4586          CXXFLAGS="-g"
4587          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h.  */
4589
4590 int
4591 main ()
4592 {
4593
4594   ;
4595   return 0;
4596 }
4597 _ACEOF
4598 if ac_fn_cxx_try_compile "$LINENO"; then :
4599   ac_cv_prog_cxx_g=yes
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 fi
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4607 fi
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4609 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4610 if test "$ac_test_CXXFLAGS" = set; then
4611   CXXFLAGS=$ac_save_CXXFLAGS
4612 elif test $ac_cv_prog_cxx_g = yes; then
4613   if test "$GXX" = yes; then
4614     CXXFLAGS="-g -O2"
4615   else
4616     CXXFLAGS="-g"
4617   fi
4618 else
4619   if test "$GXX" = yes; then
4620     CXXFLAGS="-O2"
4621   else
4622     CXXFLAGS=
4623   fi
4624 fi
4625 ac_ext=c
4626 ac_cpp='$CPP $CPPFLAGS'
4627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4630
4631 depcc="$CXX"  am_compiler_list=
4632
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4634 $as_echo_n "checking dependency style of $depcc... " >&6; }
4635 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4636   $as_echo_n "(cached) " >&6
4637 else
4638   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4639   # We make a subdir and do the tests there.  Otherwise we can end up
4640   # making bogus files that we don't know about and never remove.  For
4641   # instance it was reported that on HP-UX the gcc test will end up
4642   # making a dummy file named `D' -- because `-MD' means `put the output
4643   # in D'.
4644   mkdir conftest.dir
4645   # Copy depcomp to subdir because otherwise we won't find it if we're
4646   # using a relative directory.
4647   cp "$am_depcomp" conftest.dir
4648   cd conftest.dir
4649   # We will build objects and dependencies in a subdirectory because
4650   # it helps to detect inapplicable dependency modes.  For instance
4651   # both Tru64's cc and ICC support -MD to output dependencies as a
4652   # side effect of compilation, but ICC will put the dependencies in
4653   # the current directory while Tru64 will put them in the object
4654   # directory.
4655   mkdir sub
4656
4657   am_cv_CXX_dependencies_compiler_type=none
4658   if test "$am_compiler_list" = ""; then
4659      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4660   fi
4661   am__universal=false
4662   case " $depcc " in #(
4663      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4664      esac
4665
4666   for depmode in $am_compiler_list; do
4667     # Setup a source with many dependencies, because some compilers
4668     # like to wrap large dependency lists on column 80 (with \), and
4669     # we should not choose a depcomp mode which is confused by this.
4670     #
4671     # We need to recreate these files for each test, as the compiler may
4672     # overwrite some of them when testing with obscure command lines.
4673     # This happens at least with the AIX C compiler.
4674     : > sub/conftest.c
4675     for i in 1 2 3 4 5 6; do
4676       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4677       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4678       # Solaris 8's {/usr,}/bin/sh.
4679       touch sub/conftst$i.h
4680     done
4681     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4682
4683     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4684     # mode.  It turns out that the SunPro C++ compiler does not properly
4685     # handle `-M -o', and we need to detect this.  Also, some Intel
4686     # versions had trouble with output in subdirs
4687     am__obj=sub/conftest.${OBJEXT-o}
4688     am__minus_obj="-o $am__obj"
4689     case $depmode in
4690     gcc)
4691       # This depmode causes a compiler race in universal mode.
4692       test "$am__universal" = false || continue
4693       ;;
4694     nosideeffect)
4695       # after this tag, mechanisms are not by side-effect, so they'll
4696       # only be used when explicitly requested
4697       if test "x$enable_dependency_tracking" = xyes; then
4698         continue
4699       else
4700         break
4701       fi
4702       ;;
4703     msvisualcpp | msvcmsys)
4704       # This compiler won't grok `-c -o', but also, the minuso test has
4705       # not run yet.  These depmodes are late enough in the game, and
4706       # so weak that their functioning should not be impacted.
4707       am__obj=conftest.${OBJEXT-o}
4708       am__minus_obj=
4709       ;;
4710     none) break ;;
4711     esac
4712     if depmode=$depmode \
4713        source=sub/conftest.c object=$am__obj \
4714        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4715        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4716          >/dev/null 2>conftest.err &&
4717        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4718        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4719        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4720        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4721       # icc doesn't choke on unknown options, it will just issue warnings
4722       # or remarks (even with -Werror).  So we grep stderr for any message
4723       # that says an option was ignored or not supported.
4724       # When given -MP, icc 7.0 and 7.1 complain thusly:
4725       #   icc: Command line warning: ignoring option '-M'; no argument required
4726       # The diagnosis changed in icc 8.0:
4727       #   icc: Command line remark: option '-MP' not supported
4728       if (grep 'ignoring option' conftest.err ||
4729           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4730         am_cv_CXX_dependencies_compiler_type=$depmode
4731         break
4732       fi
4733     fi
4734   done
4735
4736   cd ..
4737   rm -rf conftest.dir
4738 else
4739   am_cv_CXX_dependencies_compiler_type=none
4740 fi
4741
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4744 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4745 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4746
4747  if
4748   test "x$enable_dependency_tracking" != xno \
4749   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4750   am__fastdepCXX_TRUE=
4751   am__fastdepCXX_FALSE='#'
4752 else
4753   am__fastdepCXX_TRUE='#'
4754   am__fastdepCXX_FALSE=
4755 fi
4756
4757
4758
4759 #AM_PROG_LD
4760 #AC_SUBST(LD)
4761 #AC_PROG_INSTALL
4762 #AC_PROG_MAKE_SET
4763 #AC_PROG_LN_S
4764
4765 #
4766 # Tests for Windows
4767 #
4768
4769
4770
4771 # Configure libtool
4772 # Check whether --enable-shared was given.
4773 if test "${enable_shared+set}" = set; then :
4774   enableval=$enable_shared; p=${PACKAGE-default}
4775     case $enableval in
4776     yes) enable_shared=yes ;;
4777     no) enable_shared=no ;;
4778     *)
4779       enable_shared=no
4780       # Look at the argument we got.  We use all the common list separators.
4781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4782       for pkg in $enableval; do
4783         IFS="$lt_save_ifs"
4784         if test "X$pkg" = "X$p"; then
4785           enable_shared=yes
4786         fi
4787       done
4788       IFS="$lt_save_ifs"
4789       ;;
4790     esac
4791 else
4792   enable_shared=yes
4793 fi
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803 # Check whether --enable-static was given.
4804 if test "${enable_static+set}" = set; then :
4805   enableval=$enable_static; p=${PACKAGE-default}
4806     case $enableval in
4807     yes) enable_static=yes ;;
4808     no) enable_static=no ;;
4809     *)
4810      enable_static=no
4811       # Look at the argument we got.  We use all the common list separators.
4812       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4813       for pkg in $enableval; do
4814         IFS="$lt_save_ifs"
4815         if test "X$pkg" = "X$p"; then
4816           enable_static=yes
4817         fi
4818       done
4819       IFS="$lt_save_ifs"
4820       ;;
4821     esac
4822 else
4823   enable_static=yes
4824 fi
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834 enable_win32_dll=yes
4835
4836 case $host in
4837 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4838   if test -n "$ac_tool_prefix"; then
4839   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4840 set dummy ${ac_tool_prefix}as; ac_word=$2
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4842 $as_echo_n "checking for $ac_word... " >&6; }
4843 if ${ac_cv_prog_AS+:} false; then :
4844   $as_echo_n "(cached) " >&6
4845 else
4846   if test -n "$AS"; then
4847   ac_cv_prog_AS="$AS" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_prog_AS="${ac_tool_prefix}as"
4857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861   done
4862 IFS=$as_save_IFS
4863
4864 fi
4865 fi
4866 AS=$ac_cv_prog_AS
4867 if test -n "$AS"; then
4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4869 $as_echo "$AS" >&6; }
4870 else
4871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 fi
4874
4875
4876 fi
4877 if test -z "$ac_cv_prog_AS"; then
4878   ac_ct_AS=$AS
4879   # Extract the first word of "as", so it can be a program name with args.
4880 set dummy as; ac_word=$2
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4882 $as_echo_n "checking for $ac_word... " >&6; }
4883 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   if test -n "$ac_ct_AS"; then
4887   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4888 else
4889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4890 for as_dir in $PATH
4891 do
4892   IFS=$as_save_IFS
4893   test -z "$as_dir" && as_dir=.
4894     for ac_exec_ext in '' $ac_executable_extensions; do
4895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4896     ac_cv_prog_ac_ct_AS="as"
4897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4898     break 2
4899   fi
4900 done
4901   done
4902 IFS=$as_save_IFS
4903
4904 fi
4905 fi
4906 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4907 if test -n "$ac_ct_AS"; then
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4909 $as_echo "$ac_ct_AS" >&6; }
4910 else
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915   if test "x$ac_ct_AS" = x; then
4916     AS="false"
4917   else
4918     case $cross_compiling:$ac_tool_warned in
4919 yes:)
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4923 esac
4924     AS=$ac_ct_AS
4925   fi
4926 else
4927   AS="$ac_cv_prog_AS"
4928 fi
4929
4930   if test -n "$ac_tool_prefix"; then
4931   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_prog_DLLTOOL+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   if test -n "$DLLTOOL"; then
4939   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944   IFS=$as_save_IFS
4945   test -z "$as_dir" && as_dir=.
4946     for ac_exec_ext in '' $ac_executable_extensions; do
4947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4948     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950     break 2
4951   fi
4952 done
4953   done
4954 IFS=$as_save_IFS
4955
4956 fi
4957 fi
4958 DLLTOOL=$ac_cv_prog_DLLTOOL
4959 if test -n "$DLLTOOL"; then
4960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4961 $as_echo "$DLLTOOL" >&6; }
4962 else
4963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4964 $as_echo "no" >&6; }
4965 fi
4966
4967
4968 fi
4969 if test -z "$ac_cv_prog_DLLTOOL"; then
4970   ac_ct_DLLTOOL=$DLLTOOL
4971   # Extract the first word of "dlltool", so it can be a program name with args.
4972 set dummy dlltool; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978   if test -n "$ac_ct_DLLTOOL"; then
4979   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4983 do
4984   IFS=$as_save_IFS
4985   test -z "$as_dir" && as_dir=.
4986     for ac_exec_ext in '' $ac_executable_extensions; do
4987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990     break 2
4991   fi
4992 done
4993   done
4994 IFS=$as_save_IFS
4995
4996 fi
4997 fi
4998 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4999 if test -n "$ac_ct_DLLTOOL"; then
5000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5001 $as_echo "$ac_ct_DLLTOOL" >&6; }
5002 else
5003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5005 fi
5006
5007   if test "x$ac_ct_DLLTOOL" = x; then
5008     DLLTOOL="false"
5009   else
5010     case $cross_compiling:$ac_tool_warned in
5011 yes:)
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5015 esac
5016     DLLTOOL=$ac_ct_DLLTOOL
5017   fi
5018 else
5019   DLLTOOL="$ac_cv_prog_DLLTOOL"
5020 fi
5021
5022   if test -n "$ac_tool_prefix"; then
5023   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5024 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_prog_OBJDUMP+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   if test -n "$OBJDUMP"; then
5031   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038     for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045   done
5046 IFS=$as_save_IFS
5047
5048 fi
5049 fi
5050 OBJDUMP=$ac_cv_prog_OBJDUMP
5051 if test -n "$OBJDUMP"; then
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5053 $as_echo "$OBJDUMP" >&6; }
5054 else
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 fi
5058
5059
5060 fi
5061 if test -z "$ac_cv_prog_OBJDUMP"; then
5062   ac_ct_OBJDUMP=$OBJDUMP
5063   # Extract the first word of "objdump", so it can be a program name with args.
5064 set dummy objdump; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5068   $as_echo_n "(cached) " >&6
5069 else
5070   if test -n "$ac_ct_OBJDUMP"; then
5071   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076   IFS=$as_save_IFS
5077   test -z "$as_dir" && as_dir=.
5078     for ac_exec_ext in '' $ac_executable_extensions; do
5079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082     break 2
5083   fi
5084 done
5085   done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5091 if test -n "$ac_ct_OBJDUMP"; then
5092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5093 $as_echo "$ac_ct_OBJDUMP" >&6; }
5094 else
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099   if test "x$ac_ct_OBJDUMP" = x; then
5100     OBJDUMP="false"
5101   else
5102     case $cross_compiling:$ac_tool_warned in
5103 yes:)
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5106 ac_tool_warned=yes ;;
5107 esac
5108     OBJDUMP=$ac_ct_OBJDUMP
5109   fi
5110 else
5111   OBJDUMP="$ac_cv_prog_OBJDUMP"
5112 fi
5113
5114   ;;
5115 esac
5116
5117 test -z "$AS" && AS=as
5118
5119
5120
5121
5122
5123 test -z "$DLLTOOL" && DLLTOOL=dlltool
5124
5125
5126
5127
5128
5129 test -z "$OBJDUMP" && OBJDUMP=objdump
5130
5131
5132
5133
5134
5135
5136
5137
5138 case `pwd` in
5139   *\ * | *\     *)
5140     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5141 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5142 esac
5143
5144
5145
5146 macro_version='2.4'
5147 macro_revision='1.3294'
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161 ltmain="$ac_aux_dir/ltmain.sh"
5162
5163 # Backslashify metacharacters that are still active within
5164 # double-quoted strings.
5165 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5166
5167 # Same as above, but do not quote variable references.
5168 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5169
5170 # Sed substitution to delay expansion of an escaped shell variable in a
5171 # double_quote_subst'ed string.
5172 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5173
5174 # Sed substitution to delay expansion of an escaped single quote.
5175 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5176
5177 # Sed substitution to avoid accidental globbing in evaled expressions
5178 no_glob_subst='s/\*/\\\*/g'
5179
5180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5181 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5182 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5185 $as_echo_n "checking how to print strings... " >&6; }
5186 # Test print first, because it will be a builtin if present.
5187 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5188    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5189   ECHO='print -r --'
5190 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5191   ECHO='printf %s\n'
5192 else
5193   # Use this function as a fallback that always works.
5194   func_fallback_echo ()
5195   {
5196     eval 'cat <<_LTECHO_EOF
5197 $1
5198 _LTECHO_EOF'
5199   }
5200   ECHO='func_fallback_echo'
5201 fi
5202
5203 # func_echo_all arg...
5204 # Invoke $ECHO with all args, space-separated.
5205 func_echo_all ()
5206 {
5207     $ECHO ""
5208 }
5209
5210 case "$ECHO" in
5211   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5212 $as_echo "printf" >&6; } ;;
5213   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5214 $as_echo "print -r" >&6; } ;;
5215   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5216 $as_echo "cat" >&6; } ;;
5217 esac
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5233 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5234 if ${ac_cv_path_SED+:} false; then :
5235   $as_echo_n "(cached) " >&6
5236 else
5237             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5238      for ac_i in 1 2 3 4 5 6 7; do
5239        ac_script="$ac_script$as_nl$ac_script"
5240      done
5241      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5242      { ac_script=; unset ac_script;}
5243      if test -z "$SED"; then
5244   ac_path_SED_found=false
5245   # Loop through the user's path and test for each of PROGNAME-LIST
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251     for ac_prog in sed gsed; do
5252     for ac_exec_ext in '' $ac_executable_extensions; do
5253       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5254       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5255 # Check for GNU ac_path_SED and select it if it is found.
5256   # Check for GNU $ac_path_SED
5257 case `"$ac_path_SED" --version 2>&1` in
5258 *GNU*)
5259   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5260 *)
5261   ac_count=0
5262   $as_echo_n 0123456789 >"conftest.in"
5263   while :
5264   do
5265     cat "conftest.in" "conftest.in" >"conftest.tmp"
5266     mv "conftest.tmp" "conftest.in"
5267     cp "conftest.in" "conftest.nl"
5268     $as_echo '' >> "conftest.nl"
5269     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5270     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5271     as_fn_arith $ac_count + 1 && ac_count=$as_val
5272     if test $ac_count -gt ${ac_path_SED_max-0}; then
5273       # Best one so far, save it but keep looking for a better one
5274       ac_cv_path_SED="$ac_path_SED"
5275       ac_path_SED_max=$ac_count
5276     fi
5277     # 10*(2^10) chars as input seems more than enough
5278     test $ac_count -gt 10 && break
5279   done
5280   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5281 esac
5282
5283       $ac_path_SED_found && break 3
5284     done
5285   done
5286   done
5287 IFS=$as_save_IFS
5288   if test -z "$ac_cv_path_SED"; then
5289     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5290   fi
5291 else
5292   ac_cv_path_SED=$SED
5293 fi
5294
5295 fi
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5297 $as_echo "$ac_cv_path_SED" >&6; }
5298  SED="$ac_cv_path_SED"
5299   rm -f conftest.sed
5300
5301 test -z "$SED" && SED=sed
5302 Xsed="$SED -e 1s/^X//"
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5315 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5316 if ${ac_cv_path_GREP+:} false; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -z "$GREP"; then
5320   ac_path_GREP_found=false
5321   # Loop through the user's path and test for each of PROGNAME-LIST
5322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5324 do
5325   IFS=$as_save_IFS
5326   test -z "$as_dir" && as_dir=.
5327     for ac_prog in grep ggrep; do
5328     for ac_exec_ext in '' $ac_executable_extensions; do
5329       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5330       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5331 # Check for GNU ac_path_GREP and select it if it is found.
5332   # Check for GNU $ac_path_GREP
5333 case `"$ac_path_GREP" --version 2>&1` in
5334 *GNU*)
5335   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5336 *)
5337   ac_count=0
5338   $as_echo_n 0123456789 >"conftest.in"
5339   while :
5340   do
5341     cat "conftest.in" "conftest.in" >"conftest.tmp"
5342     mv "conftest.tmp" "conftest.in"
5343     cp "conftest.in" "conftest.nl"
5344     $as_echo 'GREP' >> "conftest.nl"
5345     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5346     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5347     as_fn_arith $ac_count + 1 && ac_count=$as_val
5348     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5349       # Best one so far, save it but keep looking for a better one
5350       ac_cv_path_GREP="$ac_path_GREP"
5351       ac_path_GREP_max=$ac_count
5352     fi
5353     # 10*(2^10) chars as input seems more than enough
5354     test $ac_count -gt 10 && break
5355   done
5356   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5357 esac
5358
5359       $ac_path_GREP_found && break 3
5360     done
5361   done
5362   done
5363 IFS=$as_save_IFS
5364   if test -z "$ac_cv_path_GREP"; then
5365     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5366   fi
5367 else
5368   ac_cv_path_GREP=$GREP
5369 fi
5370
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5373 $as_echo "$ac_cv_path_GREP" >&6; }
5374  GREP="$ac_cv_path_GREP"
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5378 $as_echo_n "checking for egrep... " >&6; }
5379 if ${ac_cv_path_EGREP+:} false; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5383    then ac_cv_path_EGREP="$GREP -E"
5384    else
5385      if test -z "$EGREP"; then
5386   ac_path_EGREP_found=false
5387   # Loop through the user's path and test for each of PROGNAME-LIST
5388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_prog in egrep; do
5394     for ac_exec_ext in '' $ac_executable_extensions; do
5395       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5396       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5397 # Check for GNU ac_path_EGREP and select it if it is found.
5398   # Check for GNU $ac_path_EGREP
5399 case `"$ac_path_EGREP" --version 2>&1` in
5400 *GNU*)
5401   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5402 *)
5403   ac_count=0
5404   $as_echo_n 0123456789 >"conftest.in"
5405   while :
5406   do
5407     cat "conftest.in" "conftest.in" >"conftest.tmp"
5408     mv "conftest.tmp" "conftest.in"
5409     cp "conftest.in" "conftest.nl"
5410     $as_echo 'EGREP' >> "conftest.nl"
5411     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5412     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5413     as_fn_arith $ac_count + 1 && ac_count=$as_val
5414     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5415       # Best one so far, save it but keep looking for a better one
5416       ac_cv_path_EGREP="$ac_path_EGREP"
5417       ac_path_EGREP_max=$ac_count
5418     fi
5419     # 10*(2^10) chars as input seems more than enough
5420     test $ac_count -gt 10 && break
5421   done
5422   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5423 esac
5424
5425       $ac_path_EGREP_found && break 3
5426     done
5427   done
5428   done
5429 IFS=$as_save_IFS
5430   if test -z "$ac_cv_path_EGREP"; then
5431     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5432   fi
5433 else
5434   ac_cv_path_EGREP=$EGREP
5435 fi
5436
5437    fi
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5440 $as_echo "$ac_cv_path_EGREP" >&6; }
5441  EGREP="$ac_cv_path_EGREP"
5442
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5445 $as_echo_n "checking for fgrep... " >&6; }
5446 if ${ac_cv_path_FGREP+:} false; then :
5447   $as_echo_n "(cached) " >&6
5448 else
5449   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5450    then ac_cv_path_FGREP="$GREP -F"
5451    else
5452      if test -z "$FGREP"; then
5453   ac_path_FGREP_found=false
5454   # Loop through the user's path and test for each of PROGNAME-LIST
5455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5457 do
5458   IFS=$as_save_IFS
5459   test -z "$as_dir" && as_dir=.
5460     for ac_prog in fgrep; do
5461     for ac_exec_ext in '' $ac_executable_extensions; do
5462       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5463       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5464 # Check for GNU ac_path_FGREP and select it if it is found.
5465   # Check for GNU $ac_path_FGREP
5466 case `"$ac_path_FGREP" --version 2>&1` in
5467 *GNU*)
5468   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5469 *)
5470   ac_count=0
5471   $as_echo_n 0123456789 >"conftest.in"
5472   while :
5473   do
5474     cat "conftest.in" "conftest.in" >"conftest.tmp"
5475     mv "conftest.tmp" "conftest.in"
5476     cp "conftest.in" "conftest.nl"
5477     $as_echo 'FGREP' >> "conftest.nl"
5478     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5479     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5480     as_fn_arith $ac_count + 1 && ac_count=$as_val
5481     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5482       # Best one so far, save it but keep looking for a better one
5483       ac_cv_path_FGREP="$ac_path_FGREP"
5484       ac_path_FGREP_max=$ac_count
5485     fi
5486     # 10*(2^10) chars as input seems more than enough
5487     test $ac_count -gt 10 && break
5488   done
5489   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5490 esac
5491
5492       $ac_path_FGREP_found && break 3
5493     done
5494   done
5495   done
5496 IFS=$as_save_IFS
5497   if test -z "$ac_cv_path_FGREP"; then
5498     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5499   fi
5500 else
5501   ac_cv_path_FGREP=$FGREP
5502 fi
5503
5504    fi
5505 fi
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5507 $as_echo "$ac_cv_path_FGREP" >&6; }
5508  FGREP="$ac_cv_path_FGREP"
5509
5510
5511 test -z "$GREP" && GREP=grep
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531 # Check whether --with-gnu-ld was given.
5532 if test "${with_gnu_ld+set}" = set; then :
5533   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5534 else
5535   with_gnu_ld=no
5536 fi
5537
5538 ac_prog=ld
5539 if test "$GCC" = yes; then
5540   # Check if gcc -print-prog-name=ld gives a path.
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5542 $as_echo_n "checking for ld used by $CC... " >&6; }
5543   case $host in
5544   *-*-mingw*)
5545     # gcc leaves a trailing carriage return which upsets mingw
5546     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5547   *)
5548     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5549   esac
5550   case $ac_prog in
5551     # Accept absolute paths.
5552     [\\/]* | ?:[\\/]*)
5553       re_direlt='/[^/][^/]*/\.\./'
5554       # Canonicalize the pathname of ld
5555       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5556       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5557         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5558       done
5559       test -z "$LD" && LD="$ac_prog"
5560       ;;
5561   "")
5562     # If it fails, then pretend we aren't using GCC.
5563     ac_prog=ld
5564     ;;
5565   *)
5566     # If it is relative, then search for the first ld in PATH.
5567     with_gnu_ld=unknown
5568     ;;
5569   esac
5570 elif test "$with_gnu_ld" = yes; then
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5572 $as_echo_n "checking for GNU ld... " >&6; }
5573 else
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5575 $as_echo_n "checking for non-GNU ld... " >&6; }
5576 fi
5577 if ${lt_cv_path_LD+:} false; then :
5578   $as_echo_n "(cached) " >&6
5579 else
5580   if test -z "$LD"; then
5581   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5582   for ac_dir in $PATH; do
5583     IFS="$lt_save_ifs"
5584     test -z "$ac_dir" && ac_dir=.
5585     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5586       lt_cv_path_LD="$ac_dir/$ac_prog"
5587       # Check to see if the program is GNU ld.  I'd rather use --version,
5588       # but apparently some variants of GNU ld only accept -v.
5589       # Break only if it was the GNU/non-GNU ld that we prefer.
5590       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5591       *GNU* | *'with BFD'*)
5592         test "$with_gnu_ld" != no && break
5593         ;;
5594       *)
5595         test "$with_gnu_ld" != yes && break
5596         ;;
5597       esac
5598     fi
5599   done
5600   IFS="$lt_save_ifs"
5601 else
5602   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5603 fi
5604 fi
5605
5606 LD="$lt_cv_path_LD"
5607 if test -n "$LD"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5609 $as_echo "$LD" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5616 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5617 if ${lt_cv_prog_gnu_ld+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5621 case `$LD -v 2>&1 </dev/null` in
5622 *GNU* | *'with BFD'*)
5623   lt_cv_prog_gnu_ld=yes
5624   ;;
5625 *)
5626   lt_cv_prog_gnu_ld=no
5627   ;;
5628 esac
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5631 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5632 with_gnu_ld=$lt_cv_prog_gnu_ld
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5643 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5644 if ${lt_cv_path_NM+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   if test -n "$NM"; then
5648   # Let the user override the test.
5649   lt_cv_path_NM="$NM"
5650 else
5651   lt_nm_to_check="${ac_tool_prefix}nm"
5652   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5653     lt_nm_to_check="$lt_nm_to_check nm"
5654   fi
5655   for lt_tmp_nm in $lt_nm_to_check; do
5656     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5657     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5658       IFS="$lt_save_ifs"
5659       test -z "$ac_dir" && ac_dir=.
5660       tmp_nm="$ac_dir/$lt_tmp_nm"
5661       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5662         # Check to see if the nm accepts a BSD-compat flag.
5663         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5664         #   nm: unknown option "B" ignored
5665         # Tru64's nm complains that /dev/null is an invalid object file
5666         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5667         */dev/null* | *'Invalid file or object type'*)
5668           lt_cv_path_NM="$tmp_nm -B"
5669           break
5670           ;;
5671         *)
5672           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5673           */dev/null*)
5674             lt_cv_path_NM="$tmp_nm -p"
5675             break
5676             ;;
5677           *)
5678             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5679             continue # so that we can try to find one that supports BSD flags
5680             ;;
5681           esac
5682           ;;
5683         esac
5684       fi
5685     done
5686     IFS="$lt_save_ifs"
5687   done
5688   : ${lt_cv_path_NM=no}
5689 fi
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5692 $as_echo "$lt_cv_path_NM" >&6; }
5693 if test "$lt_cv_path_NM" != "no"; then
5694   NM="$lt_cv_path_NM"
5695 else
5696   # Didn't find any BSD compatible name lister, look for dumpbin.
5697   if test -n "$DUMPBIN"; then :
5698     # Let the user override the test.
5699   else
5700     if test -n "$ac_tool_prefix"; then
5701   for ac_prog in dumpbin "link -dump"
5702   do
5703     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5704 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_DUMPBIN+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   if test -n "$DUMPBIN"; then
5711   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725   done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 DUMPBIN=$ac_cv_prog_DUMPBIN
5731 if test -n "$DUMPBIN"; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5733 $as_echo "$DUMPBIN" >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740     test -n "$DUMPBIN" && break
5741   done
5742 fi
5743 if test -z "$DUMPBIN"; then
5744   ac_ct_DUMPBIN=$DUMPBIN
5745   for ac_prog in dumpbin "link -dump"
5746 do
5747   # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   if test -n "$ac_ct_DUMPBIN"; then
5755   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762     for ac_exec_ext in '' $ac_executable_extensions; do
5763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5764     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769   done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5775 if test -n "$ac_ct_DUMPBIN"; then
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5777 $as_echo "$ac_ct_DUMPBIN" >&6; }
5778 else
5779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783
5784   test -n "$ac_ct_DUMPBIN" && break
5785 done
5786
5787   if test "x$ac_ct_DUMPBIN" = x; then
5788     DUMPBIN=":"
5789   else
5790     case $cross_compiling:$ac_tool_warned in
5791 yes:)
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5794 ac_tool_warned=yes ;;
5795 esac
5796     DUMPBIN=$ac_ct_DUMPBIN
5797   fi
5798 fi
5799
5800     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5801     *COFF*)
5802       DUMPBIN="$DUMPBIN -symbols"
5803       ;;
5804     *)
5805       DUMPBIN=:
5806       ;;
5807     esac
5808   fi
5809
5810   if test "$DUMPBIN" != ":"; then
5811     NM="$DUMPBIN"
5812   fi
5813 fi
5814 test -z "$NM" && NM=nm
5815
5816
5817
5818
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5822 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5823 if ${lt_cv_nm_interface+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   lt_cv_nm_interface="BSD nm"
5827   echo "int some_variable = 0;" > conftest.$ac_ext
5828   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5829   (eval "$ac_compile" 2>conftest.err)
5830   cat conftest.err >&5
5831   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5832   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5833   cat conftest.err >&5
5834   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5835   cat conftest.out >&5
5836   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5837     lt_cv_nm_interface="MS dumpbin"
5838   fi
5839   rm -f conftest*
5840 fi
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5842 $as_echo "$lt_cv_nm_interface" >&6; }
5843
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5845 $as_echo_n "checking whether ln -s works... " >&6; }
5846 LN_S=$as_ln_s
5847 if test "$LN_S" = "ln -s"; then
5848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5849 $as_echo "yes" >&6; }
5850 else
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5852 $as_echo "no, using $LN_S" >&6; }
5853 fi
5854
5855 # find the maximum length of command line arguments
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5857 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5858 if ${lt_cv_sys_max_cmd_len+:} false; then :
5859   $as_echo_n "(cached) " >&6
5860 else
5861     i=0
5862   teststring="ABCD"
5863
5864   case $build_os in
5865   msdosdjgpp*)
5866     # On DJGPP, this test can blow up pretty badly due to problems in libc
5867     # (any single argument exceeding 2000 bytes causes a buffer overrun
5868     # during glob expansion).  Even if it were fixed, the result of this
5869     # check would be larger than it should be.
5870     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5871     ;;
5872
5873   gnu*)
5874     # Under GNU Hurd, this test is not required because there is
5875     # no limit to the length of command line arguments.
5876     # Libtool will interpret -1 as no limit whatsoever
5877     lt_cv_sys_max_cmd_len=-1;
5878     ;;
5879
5880   cygwin* | mingw* | cegcc*)
5881     # On Win9x/ME, this test blows up -- it succeeds, but takes
5882     # about 5 minutes as the teststring grows exponentially.
5883     # Worse, since 9x/ME are not pre-emptively multitasking,
5884     # you end up with a "frozen" computer, even though with patience
5885     # the test eventually succeeds (with a max line length of 256k).
5886     # Instead, let's just punt: use the minimum linelength reported by
5887     # all of the supported platforms: 8192 (on NT/2K/XP).
5888     lt_cv_sys_max_cmd_len=8192;
5889     ;;
5890
5891   mint*)
5892     # On MiNT this can take a long time and run out of memory.
5893     lt_cv_sys_max_cmd_len=8192;
5894     ;;
5895
5896   amigaos*)
5897     # On AmigaOS with pdksh, this test takes hours, literally.
5898     # So we just punt and use a minimum line length of 8192.
5899     lt_cv_sys_max_cmd_len=8192;
5900     ;;
5901
5902   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5903     # This has been around since 386BSD, at least.  Likely further.
5904     if test -x /sbin/sysctl; then
5905       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5906     elif test -x /usr/sbin/sysctl; then
5907       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5908     else
5909       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5910     fi
5911     # And add a safety zone
5912     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5913     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5914     ;;
5915
5916   interix*)
5917     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5918     lt_cv_sys_max_cmd_len=196608
5919     ;;
5920
5921   osf*)
5922     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5923     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5924     # nice to cause kernel panics so lets avoid the loop below.
5925     # First set a reasonable default.
5926     lt_cv_sys_max_cmd_len=16384
5927     #
5928     if test -x /sbin/sysconfig; then
5929       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5930         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5931       esac
5932     fi
5933     ;;
5934   sco3.2v5*)
5935     lt_cv_sys_max_cmd_len=102400
5936     ;;
5937   sysv5* | sco5v6* | sysv4.2uw2*)
5938     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5939     if test -n "$kargmax"; then
5940       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5941     else
5942       lt_cv_sys_max_cmd_len=32768
5943     fi
5944     ;;
5945   *)
5946     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5947     if test -n "$lt_cv_sys_max_cmd_len"; then
5948       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5949       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5950     else
5951       # Make teststring a little bigger before we do anything with it.
5952       # a 1K string should be a reasonable start.
5953       for i in 1 2 3 4 5 6 7 8 ; do
5954         teststring=$teststring$teststring
5955       done
5956       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5957       # If test is not a shell built-in, we'll probably end up computing a
5958       # maximum length that is only half of the actual maximum length, but
5959       # we can't tell.
5960       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5961                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5962               test $i != 17 # 1/2 MB should be enough
5963       do
5964         i=`expr $i + 1`
5965         teststring=$teststring$teststring
5966       done
5967       # Only check the string length outside the loop.
5968       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5969       teststring=
5970       # Add a significant safety factor because C++ compilers can tack on
5971       # massive amounts of additional arguments before passing them to the
5972       # linker.  It appears as though 1/2 is a usable value.
5973       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5974     fi
5975     ;;
5976   esac
5977
5978 fi
5979
5980 if test -n $lt_cv_sys_max_cmd_len ; then
5981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5982 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5983 else
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5985 $as_echo "none" >&6; }
5986 fi
5987 max_cmd_len=$lt_cv_sys_max_cmd_len
5988
5989
5990
5991
5992
5993
5994 : ${CP="cp -f"}
5995 : ${MV="mv -f"}
5996 : ${RM="rm -f"}
5997
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5999 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6000 # Try some XSI features
6001 xsi_shell=no
6002 ( _lt_dummy="a/b/c"
6003   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6004       = c,a/b,b/c, \
6005     && eval 'test $(( 1 + 1 )) -eq 2 \
6006     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6007   && xsi_shell=yes
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6009 $as_echo "$xsi_shell" >&6; }
6010
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6013 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6014 lt_shell_append=no
6015 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6016     >/dev/null 2>&1 \
6017   && lt_shell_append=yes
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6019 $as_echo "$lt_shell_append" >&6; }
6020
6021
6022 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6023   lt_unset=unset
6024 else
6025   lt_unset=false
6026 fi
6027
6028
6029
6030
6031
6032 # test EBCDIC or ASCII
6033 case `echo X|tr X '\101'` in
6034  A) # ASCII based system
6035     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6036   lt_SP2NL='tr \040 \012'
6037   lt_NL2SP='tr \015\012 \040\040'
6038   ;;
6039  *) # EBCDIC based system
6040   lt_SP2NL='tr \100 \n'
6041   lt_NL2SP='tr \r\n \100\100'
6042   ;;
6043 esac
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6054 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6055 if ${lt_cv_to_host_file_cmd+:} false; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058   case $host in
6059   *-*-mingw* )
6060     case $build in
6061       *-*-mingw* ) # actually msys
6062         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6063         ;;
6064       *-*-cygwin* )
6065         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6066         ;;
6067       * ) # otherwise, assume *nix
6068         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6069         ;;
6070     esac
6071     ;;
6072   *-*-cygwin* )
6073     case $build in
6074       *-*-mingw* ) # actually msys
6075         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6076         ;;
6077       *-*-cygwin* )
6078         lt_cv_to_host_file_cmd=func_convert_file_noop
6079         ;;
6080       * ) # otherwise, assume *nix
6081         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6082         ;;
6083     esac
6084     ;;
6085   * ) # unhandled hosts (and "normal" native builds)
6086     lt_cv_to_host_file_cmd=func_convert_file_noop
6087     ;;
6088 esac
6089
6090 fi
6091
6092 to_host_file_cmd=$lt_cv_to_host_file_cmd
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6094 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6095
6096
6097
6098
6099
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6101 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6102 if ${lt_cv_to_tool_file_cmd+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   #assume ordinary cross tools, or native build.
6106 lt_cv_to_tool_file_cmd=func_convert_file_noop
6107 case $host in
6108   *-*-mingw* )
6109     case $build in
6110       *-*-mingw* ) # actually msys
6111         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6112         ;;
6113     esac
6114     ;;
6115 esac
6116
6117 fi
6118
6119 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6121 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6122
6123
6124
6125
6126
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6128 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6129 if ${lt_cv_ld_reload_flag+:} false; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   lt_cv_ld_reload_flag='-r'
6133 fi
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6135 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6136 reload_flag=$lt_cv_ld_reload_flag
6137 case $reload_flag in
6138 "" | " "*) ;;
6139 *) reload_flag=" $reload_flag" ;;
6140 esac
6141 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6142 case $host_os in
6143   cygwin* | mingw* | pw32* | cegcc*)
6144     if test "$GCC" != yes; then
6145       reload_cmds=false
6146     fi
6147     ;;
6148   darwin*)
6149     if test "$GCC" = yes; then
6150       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6151     else
6152       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6153     fi
6154     ;;
6155 esac
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165 if test -n "$ac_tool_prefix"; then
6166   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_OBJDUMP+:} false; then :
6171   $as_echo_n "(cached) " >&6
6172 else
6173   if test -n "$OBJDUMP"; then
6174   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181     for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188   done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 OBJDUMP=$ac_cv_prog_OBJDUMP
6194 if test -n "$OBJDUMP"; then
6195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6196 $as_echo "$OBJDUMP" >&6; }
6197 else
6198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6200 fi
6201
6202
6203 fi
6204 if test -z "$ac_cv_prog_OBJDUMP"; then
6205   ac_ct_OBJDUMP=$OBJDUMP
6206   # Extract the first word of "objdump", so it can be a program name with args.
6207 set dummy objdump; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   if test -n "$ac_ct_OBJDUMP"; then
6214   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6215 else
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 for as_dir in $PATH
6218 do
6219   IFS=$as_save_IFS
6220   test -z "$as_dir" && as_dir=.
6221     for ac_exec_ext in '' $ac_executable_extensions; do
6222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225     break 2
6226   fi
6227 done
6228   done
6229 IFS=$as_save_IFS
6230
6231 fi
6232 fi
6233 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6234 if test -n "$ac_ct_OBJDUMP"; then
6235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6236 $as_echo "$ac_ct_OBJDUMP" >&6; }
6237 else
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6240 fi
6241
6242   if test "x$ac_ct_OBJDUMP" = x; then
6243     OBJDUMP="false"
6244   else
6245     case $cross_compiling:$ac_tool_warned in
6246 yes:)
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6250 esac
6251     OBJDUMP=$ac_ct_OBJDUMP
6252   fi
6253 else
6254   OBJDUMP="$ac_cv_prog_OBJDUMP"
6255 fi
6256
6257 test -z "$OBJDUMP" && OBJDUMP=objdump
6258
6259
6260
6261
6262
6263
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6265 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6266 if ${lt_cv_deplibs_check_method+:} false; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   lt_cv_file_magic_cmd='$MAGIC_CMD'
6270 lt_cv_file_magic_test_file=
6271 lt_cv_deplibs_check_method='unknown'
6272 # Need to set the preceding variable on all platforms that support
6273 # interlibrary dependencies.
6274 # 'none' -- dependencies not supported.
6275 # `unknown' -- same as none, but documents that we really don't know.
6276 # 'pass_all' -- all dependencies passed with no checks.
6277 # 'test_compile' -- check by making test program.
6278 # 'file_magic [[regex]]' -- check by looking for files in library path
6279 # which responds to the $file_magic_cmd with a given extended regex.
6280 # If you have `file' or equivalent on your system and you're not sure
6281 # whether `pass_all' will *always* work, you probably want this one.
6282
6283 case $host_os in
6284 aix[4-9]*)
6285   lt_cv_deplibs_check_method=pass_all
6286   ;;
6287
6288 beos*)
6289   lt_cv_deplibs_check_method=pass_all
6290   ;;
6291
6292 bsdi[45]*)
6293   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6294   lt_cv_file_magic_cmd='/usr/bin/file -L'
6295   lt_cv_file_magic_test_file=/shlib/libc.so
6296   ;;
6297
6298 cygwin*)
6299   # func_win32_libid is a shell function defined in ltmain.sh
6300   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6301   lt_cv_file_magic_cmd='func_win32_libid'
6302   ;;
6303
6304 mingw* | pw32*)
6305   # Base MSYS/MinGW do not provide the 'file' command needed by
6306   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6307   # unless we find 'file', for example because we are cross-compiling.
6308   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6309   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6310     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311     lt_cv_file_magic_cmd='func_win32_libid'
6312   else
6313     # Keep this pattern in sync with the one in func_win32_libid.
6314     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6315     lt_cv_file_magic_cmd='$OBJDUMP -f'
6316   fi
6317   ;;
6318
6319 cegcc*)
6320   # use the weaker test based on 'objdump'. See mingw*.
6321   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6322   lt_cv_file_magic_cmd='$OBJDUMP -f'
6323   ;;
6324
6325 darwin* | rhapsody*)
6326   lt_cv_deplibs_check_method=pass_all
6327   ;;
6328
6329 freebsd* | dragonfly*)
6330   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6331     case $host_cpu in
6332     i*86 )
6333       # Not sure whether the presence of OpenBSD here was a mistake.
6334       # Let's accept both of them until this is cleared up.
6335       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6336       lt_cv_file_magic_cmd=/usr/bin/file
6337       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6338       ;;
6339     esac
6340   else
6341     lt_cv_deplibs_check_method=pass_all
6342   fi
6343   ;;
6344
6345 gnu*)
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 haiku*)
6350   lt_cv_deplibs_check_method=pass_all
6351   ;;
6352
6353 hpux10.20* | hpux11*)
6354   lt_cv_file_magic_cmd=/usr/bin/file
6355   case $host_cpu in
6356   ia64*)
6357     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6358     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6359     ;;
6360   hppa*64*)
6361     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6362     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6363     ;;
6364   *)
6365     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6366     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6367     ;;
6368   esac
6369   ;;
6370
6371 interix[3-9]*)
6372   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6373   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6374   ;;
6375
6376 irix5* | irix6* | nonstopux*)
6377   case $LD in
6378   *-32|*"-32 ") libmagic=32-bit;;
6379   *-n32|*"-n32 ") libmagic=N32;;
6380   *-64|*"-64 ") libmagic=64-bit;;
6381   *) libmagic=never-match;;
6382   esac
6383   lt_cv_deplibs_check_method=pass_all
6384   ;;
6385
6386 # This must be Linux ELF.
6387 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6388   lt_cv_deplibs_check_method=pass_all
6389   ;;
6390
6391 netbsd*)
6392   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6393     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6394   else
6395     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6396   fi
6397   ;;
6398
6399 newos6*)
6400   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6401   lt_cv_file_magic_cmd=/usr/bin/file
6402   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6403   ;;
6404
6405 *nto* | *qnx*)
6406   lt_cv_deplibs_check_method=pass_all
6407   ;;
6408
6409 openbsd*)
6410   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6411     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6412   else
6413     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6414   fi
6415   ;;
6416
6417 osf3* | osf4* | osf5*)
6418   lt_cv_deplibs_check_method=pass_all
6419   ;;
6420
6421 rdos*)
6422   lt_cv_deplibs_check_method=pass_all
6423   ;;
6424
6425 solaris*)
6426   lt_cv_deplibs_check_method=pass_all
6427   ;;
6428
6429 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6430   lt_cv_deplibs_check_method=pass_all
6431   ;;
6432
6433 sysv4 | sysv4.3*)
6434   case $host_vendor in
6435   motorola)
6436     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]'
6437     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6438     ;;
6439   ncr)
6440     lt_cv_deplibs_check_method=pass_all
6441     ;;
6442   sequent)
6443     lt_cv_file_magic_cmd='/bin/file'
6444     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6445     ;;
6446   sni)
6447     lt_cv_file_magic_cmd='/bin/file'
6448     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6449     lt_cv_file_magic_test_file=/lib/libc.so
6450     ;;
6451   siemens)
6452     lt_cv_deplibs_check_method=pass_all
6453     ;;
6454   pc)
6455     lt_cv_deplibs_check_method=pass_all
6456     ;;
6457   esac
6458   ;;
6459
6460 tpf*)
6461   lt_cv_deplibs_check_method=pass_all
6462   ;;
6463 esac
6464
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6467 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6468
6469 file_magic_glob=
6470 want_nocaseglob=no
6471 if test "$build" = "$host"; then
6472   case $host_os in
6473   mingw* | pw32*)
6474     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6475       want_nocaseglob=yes
6476     else
6477       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6478     fi
6479     ;;
6480   esac
6481 fi
6482
6483 file_magic_cmd=$lt_cv_file_magic_cmd
6484 deplibs_check_method=$lt_cv_deplibs_check_method
6485 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 if test -n "$ac_tool_prefix"; then
6509   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6510 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512 $as_echo_n "checking for $ac_word... " >&6; }
6513 if ${ac_cv_prog_DLLTOOL+:} false; then :
6514   $as_echo_n "(cached) " >&6
6515 else
6516   if test -n "$DLLTOOL"; then
6517   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6518 else
6519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520 for as_dir in $PATH
6521 do
6522   IFS=$as_save_IFS
6523   test -z "$as_dir" && as_dir=.
6524     for ac_exec_ext in '' $ac_executable_extensions; do
6525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528     break 2
6529   fi
6530 done
6531   done
6532 IFS=$as_save_IFS
6533
6534 fi
6535 fi
6536 DLLTOOL=$ac_cv_prog_DLLTOOL
6537 if test -n "$DLLTOOL"; then
6538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6539 $as_echo "$DLLTOOL" >&6; }
6540 else
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542 $as_echo "no" >&6; }
6543 fi
6544
6545
6546 fi
6547 if test -z "$ac_cv_prog_DLLTOOL"; then
6548   ac_ct_DLLTOOL=$DLLTOOL
6549   # Extract the first word of "dlltool", so it can be a program name with args.
6550 set dummy dlltool; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6554   $as_echo_n "(cached) " >&6
6555 else
6556   if test -n "$ac_ct_DLLTOOL"; then
6557   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562   IFS=$as_save_IFS
6563   test -z "$as_dir" && as_dir=.
6564     for ac_exec_ext in '' $ac_executable_extensions; do
6565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6566     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568     break 2
6569   fi
6570 done
6571   done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6577 if test -n "$ac_ct_DLLTOOL"; then
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6579 $as_echo "$ac_ct_DLLTOOL" >&6; }
6580 else
6581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585   if test "x$ac_ct_DLLTOOL" = x; then
6586     DLLTOOL="false"
6587   else
6588     case $cross_compiling:$ac_tool_warned in
6589 yes:)
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6592 ac_tool_warned=yes ;;
6593 esac
6594     DLLTOOL=$ac_ct_DLLTOOL
6595   fi
6596 else
6597   DLLTOOL="$ac_cv_prog_DLLTOOL"
6598 fi
6599
6600 test -z "$DLLTOOL" && DLLTOOL=dlltool
6601
6602
6603
6604
6605
6606
6607
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6609 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6610 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6611   $as_echo_n "(cached) " >&6
6612 else
6613   lt_cv_sharedlib_from_linklib_cmd='unknown'
6614
6615 case $host_os in
6616 cygwin* | mingw* | pw32* | cegcc*)
6617   # two different shell functions defined in ltmain.sh
6618   # decide which to use based on capabilities of $DLLTOOL
6619   case `$DLLTOOL --help 2>&1` in
6620   *--identify-strict*)
6621     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6622     ;;
6623   *)
6624     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6625     ;;
6626   esac
6627   ;;
6628 *)
6629   # fallback: assume linklib IS sharedlib
6630   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6631   ;;
6632 esac
6633
6634 fi
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6636 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6637 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6638 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6639
6640
6641
6642
6643
6644
6645
6646
6647 if test -n "$ac_tool_prefix"; then
6648   for ac_prog in ar
6649   do
6650     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_AR+:} false; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if test -n "$AR"; then
6658   ac_cv_prog_AR="$AR" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672   done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 AR=$ac_cv_prog_AR
6678 if test -n "$AR"; then
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6680 $as_echo "$AR" >&6; }
6681 else
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686
6687     test -n "$AR" && break
6688   done
6689 fi
6690 if test -z "$AR"; then
6691   ac_ct_AR=$AR
6692   for ac_prog in ar
6693 do
6694   # Extract the first word of "$ac_prog", so it can be a program name with args.
6695 set dummy $ac_prog; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$ac_ct_AR"; then
6702   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709     for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_prog_ac_ct_AR="$ac_prog"
6712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716   done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6722 if test -n "$ac_ct_AR"; then
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6724 $as_echo "$ac_ct_AR" >&6; }
6725 else
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730
6731   test -n "$ac_ct_AR" && break
6732 done
6733
6734   if test "x$ac_ct_AR" = x; then
6735     AR="false"
6736   else
6737     case $cross_compiling:$ac_tool_warned in
6738 yes:)
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6741 ac_tool_warned=yes ;;
6742 esac
6743     AR=$ac_ct_AR
6744   fi
6745 fi
6746
6747 : ${AR=ar}
6748 : ${AR_FLAGS=cru}
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6761 $as_echo_n "checking for archiver @FILE support... " >&6; }
6762 if ${lt_cv_ar_at_file+:} false; then :
6763   $as_echo_n "(cached) " >&6
6764 else
6765   lt_cv_ar_at_file=no
6766    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h.  */
6768
6769 int
6770 main ()
6771 {
6772
6773   ;
6774   return 0;
6775 }
6776 _ACEOF
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778   echo conftest.$ac_objext > conftest.lst
6779       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6780       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6781   (eval $lt_ar_try) 2>&5
6782   ac_status=$?
6783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784   test $ac_status = 0; }
6785       if test "$ac_status" -eq 0; then
6786         # Ensure the archiver fails upon bogus file names.
6787         rm -f conftest.$ac_objext libconftest.a
6788         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6789   (eval $lt_ar_try) 2>&5
6790   ac_status=$?
6791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6792   test $ac_status = 0; }
6793         if test "$ac_status" -ne 0; then
6794           lt_cv_ar_at_file=@
6795         fi
6796       fi
6797       rm -f conftest.* libconftest.a
6798
6799 fi
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801
6802 fi
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6804 $as_echo "$lt_cv_ar_at_file" >&6; }
6805
6806 if test "x$lt_cv_ar_at_file" = xno; then
6807   archiver_list_spec=
6808 else
6809   archiver_list_spec=$lt_cv_ar_at_file
6810 fi
6811
6812
6813
6814
6815
6816
6817
6818 if test -n "$ac_tool_prefix"; then
6819   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}strip; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_STRIP+:} false; then :
6824   $as_echo_n "(cached) " >&6
6825 else
6826   if test -n "$STRIP"; then
6827   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832   IFS=$as_save_IFS
6833   test -z "$as_dir" && as_dir=.
6834     for ac_exec_ext in '' $ac_executable_extensions; do
6835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838     break 2
6839   fi
6840 done
6841   done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 STRIP=$ac_cv_prog_STRIP
6847 if test -n "$STRIP"; then
6848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6849 $as_echo "$STRIP" >&6; }
6850 else
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856 fi
6857 if test -z "$ac_cv_prog_STRIP"; then
6858   ac_ct_STRIP=$STRIP
6859   # Extract the first word of "strip", so it can be a program name with args.
6860 set dummy strip; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$ac_ct_STRIP"; then
6867   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_prog_ac_ct_STRIP="strip"
6877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881   done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6887 if test -n "$ac_ct_STRIP"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6889 $as_echo "$ac_ct_STRIP" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895   if test "x$ac_ct_STRIP" = x; then
6896     STRIP=":"
6897   else
6898     case $cross_compiling:$ac_tool_warned in
6899 yes:)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904     STRIP=$ac_ct_STRIP
6905   fi
6906 else
6907   STRIP="$ac_cv_prog_STRIP"
6908 fi
6909
6910 test -z "$STRIP" && STRIP=:
6911
6912
6913
6914
6915
6916
6917 if test -n "$ac_tool_prefix"; then
6918   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_RANLIB+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$RANLIB"; then
6926   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933     for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940   done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 RANLIB=$ac_cv_prog_RANLIB
6946 if test -n "$RANLIB"; then
6947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6948 $as_echo "$RANLIB" >&6; }
6949 else
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954
6955 fi
6956 if test -z "$ac_cv_prog_RANLIB"; then
6957   ac_ct_RANLIB=$RANLIB
6958   # Extract the first word of "ranlib", so it can be a program name with args.
6959 set dummy ranlib; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   if test -n "$ac_ct_RANLIB"; then
6966   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6967 else
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 for as_dir in $PATH
6970 do
6971   IFS=$as_save_IFS
6972   test -z "$as_dir" && as_dir=.
6973     for ac_exec_ext in '' $ac_executable_extensions; do
6974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6975     ac_cv_prog_ac_ct_RANLIB="ranlib"
6976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977     break 2
6978   fi
6979 done
6980   done
6981 IFS=$as_save_IFS
6982
6983 fi
6984 fi
6985 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6986 if test -n "$ac_ct_RANLIB"; then
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6988 $as_echo "$ac_ct_RANLIB" >&6; }
6989 else
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6992 fi
6993
6994   if test "x$ac_ct_RANLIB" = x; then
6995     RANLIB=":"
6996   else
6997     case $cross_compiling:$ac_tool_warned in
6998 yes:)
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7002 esac
7003     RANLIB=$ac_ct_RANLIB
7004   fi
7005 else
7006   RANLIB="$ac_cv_prog_RANLIB"
7007 fi
7008
7009 test -z "$RANLIB" && RANLIB=:
7010
7011
7012
7013
7014
7015
7016 # Determine commands to create old-style static archives.
7017 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7018 old_postinstall_cmds='chmod 644 $oldlib'
7019 old_postuninstall_cmds=
7020
7021 if test -n "$RANLIB"; then
7022   case $host_os in
7023   openbsd*)
7024     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7025     ;;
7026   *)
7027     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7028     ;;
7029   esac
7030   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7031 fi
7032
7033 case $host_os in
7034   darwin*)
7035     lock_old_archive_extraction=yes ;;
7036   *)
7037     lock_old_archive_extraction=no ;;
7038 esac
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 # If no C compiler was specified, use CC.
7079 LTCC=${LTCC-"$CC"}
7080
7081 # If no C compiler flags were specified, use CFLAGS.
7082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7083
7084 # Allow CC to be a program name with arguments.
7085 compiler=$CC
7086
7087
7088 # Check for command to grab the raw symbol name followed by C symbol from nm.
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7090 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7091 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094
7095 # These are sane defaults that work on at least a few old systems.
7096 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7097
7098 # Character class describing NM global symbol codes.
7099 symcode='[BCDEGRST]'
7100
7101 # Regexp to match symbols that can be accessed directly from C.
7102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7103
7104 # Define system-specific variables.
7105 case $host_os in
7106 aix*)
7107   symcode='[BCDT]'
7108   ;;
7109 cygwin* | mingw* | pw32* | cegcc*)
7110   symcode='[ABCDGISTW]'
7111   ;;
7112 hpux*)
7113   if test "$host_cpu" = ia64; then
7114     symcode='[ABCDEGRST]'
7115   fi
7116   ;;
7117 irix* | nonstopux*)
7118   symcode='[BCDEGRST]'
7119   ;;
7120 osf*)
7121   symcode='[BCDEGQRST]'
7122   ;;
7123 solaris*)
7124   symcode='[BDRT]'
7125   ;;
7126 sco3.2v5*)
7127   symcode='[DT]'
7128   ;;
7129 sysv4.2uw2*)
7130   symcode='[DT]'
7131   ;;
7132 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7133   symcode='[ABDT]'
7134   ;;
7135 sysv4)
7136   symcode='[DFNSTU]'
7137   ;;
7138 esac
7139
7140 # If we're using GNU nm, then use its standard symbol codes.
7141 case `$NM -V 2>&1` in
7142 *GNU* | *'with BFD'*)
7143   symcode='[ABCDGIRSTW]' ;;
7144 esac
7145
7146 # Transform an extracted symbol line into a proper C declaration.
7147 # Some systems (esp. on ia64) link data and code symbols differently,
7148 # so use this general approach.
7149 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7150
7151 # Transform an extracted symbol line into symbol name and symbol address
7152 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7153 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'"
7154
7155 # Handle CRLF in mingw tool chain
7156 opt_cr=
7157 case $build_os in
7158 mingw*)
7159   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7160   ;;
7161 esac
7162
7163 # Try without a prefix underscore, then with it.
7164 for ac_symprfx in "" "_"; do
7165
7166   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7167   symxfrm="\\1 $ac_symprfx\\2 \\2"
7168
7169   # Write the raw and C identifiers.
7170   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7171     # Fake it for dumpbin and say T for any non-static function
7172     # and D for any global variable.
7173     # Also find C++ and __fastcall symbols from MSVC++,
7174     # which start with @ or ?.
7175     lt_cv_sys_global_symbol_pipe="$AWK '"\
7176 "     {last_section=section; section=\$ 3};"\
7177 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7178 "     \$ 0!~/External *\|/{next};"\
7179 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7180 "     {if(hide[section]) next};"\
7181 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7182 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7183 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7184 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7185 "     ' prfx=^$ac_symprfx"
7186   else
7187     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7188   fi
7189   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7190
7191   # Check to see that the pipe works correctly.
7192   pipe_works=no
7193
7194   rm -f conftest*
7195   cat > conftest.$ac_ext <<_LT_EOF
7196 #ifdef __cplusplus
7197 extern "C" {
7198 #endif
7199 char nm_test_var;
7200 void nm_test_func(void);
7201 void nm_test_func(void){}
7202 #ifdef __cplusplus
7203 }
7204 #endif
7205 int main(){nm_test_var='a';nm_test_func();return(0);}
7206 _LT_EOF
7207
7208   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7209   (eval $ac_compile) 2>&5
7210   ac_status=$?
7211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7212   test $ac_status = 0; }; then
7213     # Now try to grab the symbols.
7214     nlist=conftest.nm
7215     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7216   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7217   ac_status=$?
7218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219   test $ac_status = 0; } && test -s "$nlist"; then
7220       # Try sorting and uniquifying the output.
7221       if sort "$nlist" | uniq > "$nlist"T; then
7222         mv -f "$nlist"T "$nlist"
7223       else
7224         rm -f "$nlist"T
7225       fi
7226
7227       # Make sure that we snagged all the symbols we need.
7228       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7229         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7230           cat <<_LT_EOF > conftest.$ac_ext
7231 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7232 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7233 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7234    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7235 # define LT_DLSYM_CONST
7236 #elif defined(__osf__)
7237 /* This system does not cope well with relocations in const data.  */
7238 # define LT_DLSYM_CONST
7239 #else
7240 # define LT_DLSYM_CONST const
7241 #endif
7242
7243 #ifdef __cplusplus
7244 extern "C" {
7245 #endif
7246
7247 _LT_EOF
7248           # Now generate the symbol file.
7249           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7250
7251           cat <<_LT_EOF >> conftest.$ac_ext
7252
7253 /* The mapping between symbol names and symbols.  */
7254 LT_DLSYM_CONST struct {
7255   const char *name;
7256   void       *address;
7257 }
7258 lt__PROGRAM__LTX_preloaded_symbols[] =
7259 {
7260   { "@PROGRAM@", (void *) 0 },
7261 _LT_EOF
7262           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7263           cat <<\_LT_EOF >> conftest.$ac_ext
7264   {0, (void *) 0}
7265 };
7266
7267 /* This works around a problem in FreeBSD linker */
7268 #ifdef FREEBSD_WORKAROUND
7269 static const void *lt_preloaded_setup() {
7270   return lt__PROGRAM__LTX_preloaded_symbols;
7271 }
7272 #endif
7273
7274 #ifdef __cplusplus
7275 }
7276 #endif
7277 _LT_EOF
7278           # Now try linking the two files.
7279           mv conftest.$ac_objext conftstm.$ac_objext
7280           lt_globsym_save_LIBS=$LIBS
7281           lt_globsym_save_CFLAGS=$CFLAGS
7282           LIBS="conftstm.$ac_objext"
7283           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7284           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7285   (eval $ac_link) 2>&5
7286   ac_status=$?
7287   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7289             pipe_works=yes
7290           fi
7291           LIBS=$lt_globsym_save_LIBS
7292           CFLAGS=$lt_globsym_save_CFLAGS
7293         else
7294           echo "cannot find nm_test_func in $nlist" >&5
7295         fi
7296       else
7297         echo "cannot find nm_test_var in $nlist" >&5
7298       fi
7299     else
7300       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7301     fi
7302   else
7303     echo "$progname: failed program was:" >&5
7304     cat conftest.$ac_ext >&5
7305   fi
7306   rm -rf conftest* conftst*
7307
7308   # Do not use the global_symbol_pipe unless it works.
7309   if test "$pipe_works" = yes; then
7310     break
7311   else
7312     lt_cv_sys_global_symbol_pipe=
7313   fi
7314 done
7315
7316 fi
7317
7318 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7319   lt_cv_sys_global_symbol_to_cdecl=
7320 fi
7321 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7323 $as_echo "failed" >&6; }
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7326 $as_echo "ok" >&6; }
7327 fi
7328
7329 # Response file support.
7330 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7331   nm_file_list_spec='@'
7332 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7333   nm_file_list_spec='@'
7334 fi
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7363 $as_echo_n "checking for sysroot... " >&6; }
7364
7365 # Check whether --with-sysroot was given.
7366 if test "${with_sysroot+set}" = set; then :
7367   withval=$with_sysroot;
7368 else
7369   with_sysroot=no
7370 fi
7371
7372
7373 lt_sysroot=
7374 case ${with_sysroot} in #(
7375  yes)
7376    if test "$GCC" = yes; then
7377      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7378    fi
7379    ;; #(
7380  /*)
7381    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7382    ;; #(
7383  no|'')
7384    ;; #(
7385  *)
7386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7387 $as_echo "${with_sysroot}" >&6; }
7388    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7389    ;;
7390 esac
7391
7392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7393 $as_echo "${lt_sysroot:-no}" >&6; }
7394
7395
7396
7397
7398
7399 # Check whether --enable-libtool-lock was given.
7400 if test "${enable_libtool_lock+set}" = set; then :
7401   enableval=$enable_libtool_lock;
7402 fi
7403
7404 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7405
7406 # Some flags need to be propagated to the compiler or linker for good
7407 # libtool support.
7408 case $host in
7409 ia64-*-hpux*)
7410   # Find out which ABI we are using.
7411   echo 'int i;' > conftest.$ac_ext
7412   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413   (eval $ac_compile) 2>&5
7414   ac_status=$?
7415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416   test $ac_status = 0; }; then
7417     case `/usr/bin/file conftest.$ac_objext` in
7418       *ELF-32*)
7419         HPUX_IA64_MODE="32"
7420         ;;
7421       *ELF-64*)
7422         HPUX_IA64_MODE="64"
7423         ;;
7424     esac
7425   fi
7426   rm -rf conftest*
7427   ;;
7428 *-*-irix6*)
7429   # Find out which ABI we are using.
7430   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7431   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7432   (eval $ac_compile) 2>&5
7433   ac_status=$?
7434   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7435   test $ac_status = 0; }; then
7436     if test "$lt_cv_prog_gnu_ld" = yes; then
7437       case `/usr/bin/file conftest.$ac_objext` in
7438         *32-bit*)
7439           LD="${LD-ld} -melf32bsmip"
7440           ;;
7441         *N32*)
7442           LD="${LD-ld} -melf32bmipn32"
7443           ;;
7444         *64-bit*)
7445           LD="${LD-ld} -melf64bmip"
7446         ;;
7447       esac
7448     else
7449       case `/usr/bin/file conftest.$ac_objext` in
7450         *32-bit*)
7451           LD="${LD-ld} -32"
7452           ;;
7453         *N32*)
7454           LD="${LD-ld} -n32"
7455           ;;
7456         *64-bit*)
7457           LD="${LD-ld} -64"
7458           ;;
7459       esac
7460     fi
7461   fi
7462   rm -rf conftest*
7463   ;;
7464
7465 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7466 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7467   # Find out which ABI we are using.
7468   echo 'int i;' > conftest.$ac_ext
7469   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7470   (eval $ac_compile) 2>&5
7471   ac_status=$?
7472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473   test $ac_status = 0; }; then
7474     case `/usr/bin/file conftest.o` in
7475       *32-bit*)
7476         case $host in
7477           x86_64-*kfreebsd*-gnu)
7478             LD="${LD-ld} -m elf_i386_fbsd"
7479             ;;
7480           x86_64-*linux*)
7481             LD="${LD-ld} -m elf_i386"
7482             ;;
7483           ppc64-*linux*|powerpc64-*linux*)
7484             LD="${LD-ld} -m elf32ppclinux"
7485             ;;
7486           s390x-*linux*)
7487             LD="${LD-ld} -m elf_s390"
7488             ;;
7489           sparc64-*linux*)
7490             LD="${LD-ld} -m elf32_sparc"
7491             ;;
7492         esac
7493         ;;
7494       *64-bit*)
7495         case $host in
7496           x86_64-*kfreebsd*-gnu)
7497             LD="${LD-ld} -m elf_x86_64_fbsd"
7498             ;;
7499           x86_64-*linux*)
7500             LD="${LD-ld} -m elf_x86_64"
7501             ;;
7502           ppc*-*linux*|powerpc*-*linux*)
7503             LD="${LD-ld} -m elf64ppc"
7504             ;;
7505           s390*-*linux*|s390*-*tpf*)
7506             LD="${LD-ld} -m elf64_s390"
7507             ;;
7508           sparc*-*linux*)
7509             LD="${LD-ld} -m elf64_sparc"
7510             ;;
7511         esac
7512         ;;
7513     esac
7514   fi
7515   rm -rf conftest*
7516   ;;
7517
7518 *-*-sco3.2v5*)
7519   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7520   SAVE_CFLAGS="$CFLAGS"
7521   CFLAGS="$CFLAGS -belf"
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7523 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7524 if ${lt_cv_cc_needs_belf+:} false; then :
7525   $as_echo_n "(cached) " >&6
7526 else
7527   ac_ext=c
7528 ac_cpp='$CPP $CPPFLAGS'
7529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532
7533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h.  */
7535
7536 int
7537 main ()
7538 {
7539
7540   ;
7541   return 0;
7542 }
7543 _ACEOF
7544 if ac_fn_c_try_link "$LINENO"; then :
7545   lt_cv_cc_needs_belf=yes
7546 else
7547   lt_cv_cc_needs_belf=no
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext \
7550     conftest$ac_exeext conftest.$ac_ext
7551      ac_ext=c
7552 ac_cpp='$CPP $CPPFLAGS'
7553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7559 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7560   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7561     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7562     CFLAGS="$SAVE_CFLAGS"
7563   fi
7564   ;;
7565 sparc*-*solaris*)
7566   # Find out which ABI we are using.
7567   echo 'int i;' > conftest.$ac_ext
7568   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7569   (eval $ac_compile) 2>&5
7570   ac_status=$?
7571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572   test $ac_status = 0; }; then
7573     case `/usr/bin/file conftest.o` in
7574     *64-bit*)
7575       case $lt_cv_prog_gnu_ld in
7576       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7577       *)
7578         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7579           LD="${LD-ld} -64"
7580         fi
7581         ;;
7582       esac
7583       ;;
7584     esac
7585   fi
7586   rm -rf conftest*
7587   ;;
7588 esac
7589
7590 need_locks="$enable_libtool_lock"
7591
7592 if test -n "$ac_tool_prefix"; then
7593   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7594 set dummy ${ac_tool_prefix}mt; ac_word=$2
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7596 $as_echo_n "checking for $ac_word... " >&6; }
7597 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7598   $as_echo_n "(cached) " >&6
7599 else
7600   if test -n "$MANIFEST_TOOL"; then
7601   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7602 else
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604 for as_dir in $PATH
7605 do
7606   IFS=$as_save_IFS
7607   test -z "$as_dir" && as_dir=.
7608     for ac_exec_ext in '' $ac_executable_extensions; do
7609   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7610     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7611     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7612     break 2
7613   fi
7614 done
7615   done
7616 IFS=$as_save_IFS
7617
7618 fi
7619 fi
7620 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7621 if test -n "$MANIFEST_TOOL"; then
7622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7623 $as_echo "$MANIFEST_TOOL" >&6; }
7624 else
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626 $as_echo "no" >&6; }
7627 fi
7628
7629
7630 fi
7631 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7632   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7633   # Extract the first word of "mt", so it can be a program name with args.
7634 set dummy mt; ac_word=$2
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636 $as_echo_n "checking for $ac_word... " >&6; }
7637 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7638   $as_echo_n "(cached) " >&6
7639 else
7640   if test -n "$ac_ct_MANIFEST_TOOL"; then
7641   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7642 else
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648     for ac_exec_ext in '' $ac_executable_extensions; do
7649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655   done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7661 if test -n "$ac_ct_MANIFEST_TOOL"; then
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7663 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7664 else
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 $as_echo "no" >&6; }
7667 fi
7668
7669   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7670     MANIFEST_TOOL=":"
7671   else
7672     case $cross_compiling:$ac_tool_warned in
7673 yes:)
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7676 ac_tool_warned=yes ;;
7677 esac
7678     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7679   fi
7680 else
7681   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7682 fi
7683
7684 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7686 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7687 if ${lt_cv_path_mainfest_tool+:} false; then :
7688   $as_echo_n "(cached) " >&6
7689 else
7690   lt_cv_path_mainfest_tool=no
7691   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7692   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7693   cat conftest.err >&5
7694   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7695     lt_cv_path_mainfest_tool=yes
7696   fi
7697   rm -f conftest*
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7700 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7701 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7702   MANIFEST_TOOL=:
7703 fi
7704
7705
7706
7707
7708
7709
7710   case $host_os in
7711     rhapsody* | darwin*)
7712     if test -n "$ac_tool_prefix"; then
7713   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7714 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716 $as_echo_n "checking for $ac_word... " >&6; }
7717 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7718   $as_echo_n "(cached) " >&6
7719 else
7720   if test -n "$DSYMUTIL"; then
7721   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7722 else
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728     for ac_exec_ext in '' $ac_executable_extensions; do
7729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7730     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735   done
7736 IFS=$as_save_IFS
7737
7738 fi
7739 fi
7740 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7741 if test -n "$DSYMUTIL"; then
7742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7743 $as_echo "$DSYMUTIL" >&6; }
7744 else
7745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746 $as_echo "no" >&6; }
7747 fi
7748
7749
7750 fi
7751 if test -z "$ac_cv_prog_DSYMUTIL"; then
7752   ac_ct_DSYMUTIL=$DSYMUTIL
7753   # Extract the first word of "dsymutil", so it can be a program name with args.
7754 set dummy dsymutil; ac_word=$2
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7756 $as_echo_n "checking for $ac_word... " >&6; }
7757 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7758   $as_echo_n "(cached) " >&6
7759 else
7760   if test -n "$ac_ct_DSYMUTIL"; then
7761   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7762 else
7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 for as_dir in $PATH
7765 do
7766   IFS=$as_save_IFS
7767   test -z "$as_dir" && as_dir=.
7768     for ac_exec_ext in '' $ac_executable_extensions; do
7769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7770     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7772     break 2
7773   fi
7774 done
7775   done
7776 IFS=$as_save_IFS
7777
7778 fi
7779 fi
7780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7781 if test -n "$ac_ct_DSYMUTIL"; then
7782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7783 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7784 else
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7786 $as_echo "no" >&6; }
7787 fi
7788
7789   if test "x$ac_ct_DSYMUTIL" = x; then
7790     DSYMUTIL=":"
7791   else
7792     case $cross_compiling:$ac_tool_warned in
7793 yes:)
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7796 ac_tool_warned=yes ;;
7797 esac
7798     DSYMUTIL=$ac_ct_DSYMUTIL
7799   fi
7800 else
7801   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7802 fi
7803
7804     if test -n "$ac_tool_prefix"; then
7805   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7808 $as_echo_n "checking for $ac_word... " >&6; }
7809 if ${ac_cv_prog_NMEDIT+:} false; then :
7810   $as_echo_n "(cached) " >&6
7811 else
7812   if test -n "$NMEDIT"; then
7813   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818   IFS=$as_save_IFS
7819   test -z "$as_dir" && as_dir=.
7820     for ac_exec_ext in '' $ac_executable_extensions; do
7821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7824     break 2
7825   fi
7826 done
7827   done
7828 IFS=$as_save_IFS
7829
7830 fi
7831 fi
7832 NMEDIT=$ac_cv_prog_NMEDIT
7833 if test -n "$NMEDIT"; then
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7835 $as_echo "$NMEDIT" >&6; }
7836 else
7837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7838 $as_echo "no" >&6; }
7839 fi
7840
7841
7842 fi
7843 if test -z "$ac_cv_prog_NMEDIT"; then
7844   ac_ct_NMEDIT=$NMEDIT
7845   # Extract the first word of "nmedit", so it can be a program name with args.
7846 set dummy nmedit; ac_word=$2
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7848 $as_echo_n "checking for $ac_word... " >&6; }
7849 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   if test -n "$ac_ct_NMEDIT"; then
7853   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7854 else
7855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860     for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867   done
7868 IFS=$as_save_IFS
7869
7870 fi
7871 fi
7872 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7873 if test -n "$ac_ct_NMEDIT"; then
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7875 $as_echo "$ac_ct_NMEDIT" >&6; }
7876 else
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879 fi
7880
7881   if test "x$ac_ct_NMEDIT" = x; then
7882     NMEDIT=":"
7883   else
7884     case $cross_compiling:$ac_tool_warned in
7885 yes:)
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7888 ac_tool_warned=yes ;;
7889 esac
7890     NMEDIT=$ac_ct_NMEDIT
7891   fi
7892 else
7893   NMEDIT="$ac_cv_prog_NMEDIT"
7894 fi
7895
7896     if test -n "$ac_tool_prefix"; then
7897   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7898 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7900 $as_echo_n "checking for $ac_word... " >&6; }
7901 if ${ac_cv_prog_LIPO+:} false; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   if test -n "$LIPO"; then
7905   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7906 else
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912     for ac_exec_ext in '' $ac_executable_extensions; do
7913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7914     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919   done
7920 IFS=$as_save_IFS
7921
7922 fi
7923 fi
7924 LIPO=$ac_cv_prog_LIPO
7925 if test -n "$LIPO"; then
7926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7927 $as_echo "$LIPO" >&6; }
7928 else
7929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7930 $as_echo "no" >&6; }
7931 fi
7932
7933
7934 fi
7935 if test -z "$ac_cv_prog_LIPO"; then
7936   ac_ct_LIPO=$LIPO
7937   # Extract the first word of "lipo", so it can be a program name with args.
7938 set dummy lipo; ac_word=$2
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940 $as_echo_n "checking for $ac_word... " >&6; }
7941 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7942   $as_echo_n "(cached) " >&6
7943 else
7944   if test -n "$ac_ct_LIPO"; then
7945   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7946 else
7947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948 for as_dir in $PATH
7949 do
7950   IFS=$as_save_IFS
7951   test -z "$as_dir" && as_dir=.
7952     for ac_exec_ext in '' $ac_executable_extensions; do
7953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7954     ac_cv_prog_ac_ct_LIPO="lipo"
7955     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7956     break 2
7957   fi
7958 done
7959   done
7960 IFS=$as_save_IFS
7961
7962 fi
7963 fi
7964 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7965 if test -n "$ac_ct_LIPO"; then
7966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7967 $as_echo "$ac_ct_LIPO" >&6; }
7968 else
7969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 fi
7972
7973   if test "x$ac_ct_LIPO" = x; then
7974     LIPO=":"
7975   else
7976     case $cross_compiling:$ac_tool_warned in
7977 yes:)
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7980 ac_tool_warned=yes ;;
7981 esac
7982     LIPO=$ac_ct_LIPO
7983   fi
7984 else
7985   LIPO="$ac_cv_prog_LIPO"
7986 fi
7987
7988     if test -n "$ac_tool_prefix"; then
7989   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}otool; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_OTOOL+:} false; then :
7994   $as_echo_n "(cached) " >&6
7995 else
7996   if test -n "$OTOOL"; then
7997   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004     for ac_exec_ext in '' $ac_executable_extensions; do
8005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011   done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 OTOOL=$ac_cv_prog_OTOOL
8017 if test -n "$OTOOL"; then
8018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8019 $as_echo "$OTOOL" >&6; }
8020 else
8021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025
8026 fi
8027 if test -z "$ac_cv_prog_OTOOL"; then
8028   ac_ct_OTOOL=$OTOOL
8029   # Extract the first word of "otool", so it can be a program name with args.
8030 set dummy otool; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8034   $as_echo_n "(cached) " >&6
8035 else
8036   if test -n "$ac_ct_OTOOL"; then
8037   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044     for ac_exec_ext in '' $ac_executable_extensions; do
8045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046     ac_cv_prog_ac_ct_OTOOL="otool"
8047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051   done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8057 if test -n "$ac_ct_OTOOL"; then
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8059 $as_echo "$ac_ct_OTOOL" >&6; }
8060 else
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065   if test "x$ac_ct_OTOOL" = x; then
8066     OTOOL=":"
8067   else
8068     case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074     OTOOL=$ac_ct_OTOOL
8075   fi
8076 else
8077   OTOOL="$ac_cv_prog_OTOOL"
8078 fi
8079
8080     if test -n "$ac_tool_prefix"; then
8081   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8082 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if ${ac_cv_prog_OTOOL64+:} false; then :
8086   $as_echo_n "(cached) " >&6
8087 else
8088   if test -n "$OTOOL64"; then
8089   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8090 else
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8092 for as_dir in $PATH
8093 do
8094   IFS=$as_save_IFS
8095   test -z "$as_dir" && as_dir=.
8096     for ac_exec_ext in '' $ac_executable_extensions; do
8097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8100     break 2
8101   fi
8102 done
8103   done
8104 IFS=$as_save_IFS
8105
8106 fi
8107 fi
8108 OTOOL64=$ac_cv_prog_OTOOL64
8109 if test -n "$OTOOL64"; then
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8111 $as_echo "$OTOOL64" >&6; }
8112 else
8113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8115 fi
8116
8117
8118 fi
8119 if test -z "$ac_cv_prog_OTOOL64"; then
8120   ac_ct_OTOOL64=$OTOOL64
8121   # Extract the first word of "otool64", so it can be a program name with args.
8122 set dummy otool64; ac_word=$2
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8124 $as_echo_n "checking for $ac_word... " >&6; }
8125 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8126   $as_echo_n "(cached) " >&6
8127 else
8128   if test -n "$ac_ct_OTOOL64"; then
8129   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8130 else
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8133 do
8134   IFS=$as_save_IFS
8135   test -z "$as_dir" && as_dir=.
8136     for ac_exec_ext in '' $ac_executable_extensions; do
8137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8138     ac_cv_prog_ac_ct_OTOOL64="otool64"
8139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140     break 2
8141   fi
8142 done
8143   done
8144 IFS=$as_save_IFS
8145
8146 fi
8147 fi
8148 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8149 if test -n "$ac_ct_OTOOL64"; then
8150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8151 $as_echo "$ac_ct_OTOOL64" >&6; }
8152 else
8153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157   if test "x$ac_ct_OTOOL64" = x; then
8158     OTOOL64=":"
8159   else
8160     case $cross_compiling:$ac_tool_warned in
8161 yes:)
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8164 ac_tool_warned=yes ;;
8165 esac
8166     OTOOL64=$ac_ct_OTOOL64
8167   fi
8168 else
8169   OTOOL64="$ac_cv_prog_OTOOL64"
8170 fi
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8199 $as_echo_n "checking for -single_module linker flag... " >&6; }
8200 if ${lt_cv_apple_cc_single_mod+:} false; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   lt_cv_apple_cc_single_mod=no
8204       if test -z "${LT_MULTI_MODULE}"; then
8205         # By default we will add the -single_module flag. You can override
8206         # by either setting the environment variable LT_MULTI_MODULE
8207         # non-empty at configure time, or by adding -multi_module to the
8208         # link flags.
8209         rm -rf libconftest.dylib*
8210         echo "int foo(void){return 1;}" > conftest.c
8211         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8212 -dynamiclib -Wl,-single_module conftest.c" >&5
8213         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8214           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8215         _lt_result=$?
8216         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8217           lt_cv_apple_cc_single_mod=yes
8218         else
8219           cat conftest.err >&5
8220         fi
8221         rm -rf libconftest.dylib*
8222         rm -f conftest.*
8223       fi
8224 fi
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8226 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8227     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8228 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8229 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8230   $as_echo_n "(cached) " >&6
8231 else
8232   lt_cv_ld_exported_symbols_list=no
8233       save_LDFLAGS=$LDFLAGS
8234       echo "_main" > conftest.sym
8235       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h.  */
8238
8239 int
8240 main ()
8241 {
8242
8243   ;
8244   return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_link "$LINENO"; then :
8248   lt_cv_ld_exported_symbols_list=yes
8249 else
8250   lt_cv_ld_exported_symbols_list=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext \
8253     conftest$ac_exeext conftest.$ac_ext
8254         LDFLAGS="$save_LDFLAGS"
8255
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8258 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8260 $as_echo_n "checking for -force_load linker flag... " >&6; }
8261 if ${lt_cv_ld_force_load+:} false; then :
8262   $as_echo_n "(cached) " >&6
8263 else
8264   lt_cv_ld_force_load=no
8265       cat > conftest.c << _LT_EOF
8266 int forced_loaded() { return 2;}
8267 _LT_EOF
8268       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8269       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8270       echo "$AR cru libconftest.a conftest.o" >&5
8271       $AR cru libconftest.a conftest.o 2>&5
8272       echo "$RANLIB libconftest.a" >&5
8273       $RANLIB libconftest.a 2>&5
8274       cat > conftest.c << _LT_EOF
8275 int main() { return 0;}
8276 _LT_EOF
8277       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8278       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8279       _lt_result=$?
8280       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8281         lt_cv_ld_force_load=yes
8282       else
8283         cat conftest.err >&5
8284       fi
8285         rm -f conftest.err libconftest.a conftest conftest.c
8286         rm -rf conftest.dSYM
8287
8288 fi
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8290 $as_echo "$lt_cv_ld_force_load" >&6; }
8291     case $host_os in
8292     rhapsody* | darwin1.[012])
8293       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8294     darwin1.*)
8295       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8296     darwin*) # darwin 5.x on
8297       # if running on 10.5 or later, the deployment target defaults
8298       # to the OS version, if on x86, and 10.4, the deployment
8299       # target defaults to 10.4. Don't you love it?
8300       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8301         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8302           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8303         10.[012]*)
8304           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8305         10.*)
8306           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8307       esac
8308     ;;
8309   esac
8310     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8311       _lt_dar_single_mod='$single_module'
8312     fi
8313     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8314       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8315     else
8316       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8317     fi
8318     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8319       _lt_dsymutil='~$DSYMUTIL $lib || :'
8320     else
8321       _lt_dsymutil=
8322     fi
8323     ;;
8324   esac
8325
8326
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8328 $as_echo_n "checking for ANSI C header files... " >&6; }
8329 if ${ac_cv_header_stdc+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h.  */
8334 #include <stdlib.h>
8335 #include <stdarg.h>
8336 #include <string.h>
8337 #include <float.h>
8338
8339 int
8340 main ()
8341 {
8342
8343   ;
8344   return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_compile "$LINENO"; then :
8348   ac_cv_header_stdc=yes
8349 else
8350   ac_cv_header_stdc=no
8351 fi
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353
8354 if test $ac_cv_header_stdc = yes; then
8355   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h.  */
8358 #include <string.h>
8359
8360 _ACEOF
8361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8362   $EGREP "memchr" >/dev/null 2>&1; then :
8363
8364 else
8365   ac_cv_header_stdc=no
8366 fi
8367 rm -f conftest*
8368
8369 fi
8370
8371 if test $ac_cv_header_stdc = yes; then
8372   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h.  */
8375 #include <stdlib.h>
8376
8377 _ACEOF
8378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8379   $EGREP "free" >/dev/null 2>&1; then :
8380
8381 else
8382   ac_cv_header_stdc=no
8383 fi
8384 rm -f conftest*
8385
8386 fi
8387
8388 if test $ac_cv_header_stdc = yes; then
8389   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8390   if test "$cross_compiling" = yes; then :
8391   :
8392 else
8393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h.  */
8395 #include <ctype.h>
8396 #include <stdlib.h>
8397 #if ((' ' & 0x0FF) == 0x020)
8398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8400 #else
8401 # define ISLOWER(c) \
8402                    (('a' <= (c) && (c) <= 'i') \
8403                      || ('j' <= (c) && (c) <= 'r') \
8404                      || ('s' <= (c) && (c) <= 'z'))
8405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8406 #endif
8407
8408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8409 int
8410 main ()
8411 {
8412   int i;
8413   for (i = 0; i < 256; i++)
8414     if (XOR (islower (i), ISLOWER (i))
8415         || toupper (i) != TOUPPER (i))
8416       return 2;
8417   return 0;
8418 }
8419 _ACEOF
8420 if ac_fn_c_try_run "$LINENO"; then :
8421
8422 else
8423   ac_cv_header_stdc=no
8424 fi
8425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8426   conftest.$ac_objext conftest.beam conftest.$ac_ext
8427 fi
8428
8429 fi
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8432 $as_echo "$ac_cv_header_stdc" >&6; }
8433 if test $ac_cv_header_stdc = yes; then
8434
8435 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8436
8437 fi
8438
8439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8441                   inttypes.h stdint.h unistd.h
8442 do :
8443   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8444 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8445 "
8446 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8447   cat >>confdefs.h <<_ACEOF
8448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8449 _ACEOF
8450
8451 fi
8452
8453 done
8454
8455
8456 for ac_header in dlfcn.h
8457 do :
8458   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8459 "
8460 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8461   cat >>confdefs.h <<_ACEOF
8462 #define HAVE_DLFCN_H 1
8463 _ACEOF
8464
8465 fi
8466
8467 done
8468
8469
8470
8471
8472 func_stripname_cnf ()
8473 {
8474   case ${2} in
8475   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8476   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8477   esac
8478 } # func_stripname_cnf
8479
8480
8481
8482
8483
8484 # Set options
8485
8486
8487
8488         enable_dlopen=no
8489
8490
8491
8492
8493
8494
8495 # Check whether --with-pic was given.
8496 if test "${with_pic+set}" = set; then :
8497   withval=$with_pic; pic_mode="$withval"
8498 else
8499   pic_mode=default
8500 fi
8501
8502
8503 test -z "$pic_mode" && pic_mode=default
8504
8505
8506
8507
8508
8509
8510
8511   # Check whether --enable-fast-install was given.
8512 if test "${enable_fast_install+set}" = set; then :
8513   enableval=$enable_fast_install; p=${PACKAGE-default}
8514     case $enableval in
8515     yes) enable_fast_install=yes ;;
8516     no) enable_fast_install=no ;;
8517     *)
8518       enable_fast_install=no
8519       # Look at the argument we got.  We use all the common list separators.
8520       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8521       for pkg in $enableval; do
8522         IFS="$lt_save_ifs"
8523         if test "X$pkg" = "X$p"; then
8524           enable_fast_install=yes
8525         fi
8526       done
8527       IFS="$lt_save_ifs"
8528       ;;
8529     esac
8530 else
8531   enable_fast_install=yes
8532 fi
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544 # This can be used to rebuild libtool when needed
8545 LIBTOOL_DEPS="$ltmain"
8546
8547 # Always use our own libtool.
8548 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575 test -z "$LN_S" && LN_S="ln -s"
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590 if test -n "${ZSH_VERSION+set}" ; then
8591    setopt NO_GLOB_SUBST
8592 fi
8593
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8595 $as_echo_n "checking for objdir... " >&6; }
8596 if ${lt_cv_objdir+:} false; then :
8597   $as_echo_n "(cached) " >&6
8598 else
8599   rm -f .libs 2>/dev/null
8600 mkdir .libs 2>/dev/null
8601 if test -d .libs; then
8602   lt_cv_objdir=.libs
8603 else
8604   # MS-DOS does not allow filenames that begin with a dot.
8605   lt_cv_objdir=_libs
8606 fi
8607 rmdir .libs 2>/dev/null
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8610 $as_echo "$lt_cv_objdir" >&6; }
8611 objdir=$lt_cv_objdir
8612
8613
8614
8615
8616
8617 cat >>confdefs.h <<_ACEOF
8618 #define LT_OBJDIR "$lt_cv_objdir/"
8619 _ACEOF
8620
8621
8622
8623
8624 case $host_os in
8625 aix3*)
8626   # AIX sometimes has problems with the GCC collect2 program.  For some
8627   # reason, if we set the COLLECT_NAMES environment variable, the problems
8628   # vanish in a puff of smoke.
8629   if test "X${COLLECT_NAMES+set}" != Xset; then
8630     COLLECT_NAMES=
8631     export COLLECT_NAMES
8632   fi
8633   ;;
8634 esac
8635
8636 # Global variables:
8637 ofile=libtool
8638 can_build_shared=yes
8639
8640 # All known linkers require a `.a' archive for static linking (except MSVC,
8641 # which needs '.lib').
8642 libext=a
8643
8644 with_gnu_ld="$lt_cv_prog_gnu_ld"
8645
8646 old_CC="$CC"
8647 old_CFLAGS="$CFLAGS"
8648
8649 # Set sane defaults for various variables
8650 test -z "$CC" && CC=cc
8651 test -z "$LTCC" && LTCC=$CC
8652 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8653 test -z "$LD" && LD=ld
8654 test -z "$ac_objext" && ac_objext=o
8655
8656 for cc_temp in $compiler""; do
8657   case $cc_temp in
8658     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8659     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8660     \-*) ;;
8661     *) break;;
8662   esac
8663 done
8664 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8665
8666
8667 # Only perform the check for file, if the check method requires it
8668 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8669 case $deplibs_check_method in
8670 file_magic*)
8671   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8672     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8673 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8674 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8675   $as_echo_n "(cached) " >&6
8676 else
8677   case $MAGIC_CMD in
8678 [\\/*] |  ?:[\\/]*)
8679   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8680   ;;
8681 *)
8682   lt_save_MAGIC_CMD="$MAGIC_CMD"
8683   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8684   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8685   for ac_dir in $ac_dummy; do
8686     IFS="$lt_save_ifs"
8687     test -z "$ac_dir" && ac_dir=.
8688     if test -f $ac_dir/${ac_tool_prefix}file; then
8689       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8690       if test -n "$file_magic_test_file"; then
8691         case $deplibs_check_method in
8692         "file_magic "*)
8693           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8694           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8695           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8696             $EGREP "$file_magic_regex" > /dev/null; then
8697             :
8698           else
8699             cat <<_LT_EOF 1>&2
8700
8701 *** Warning: the command libtool uses to detect shared libraries,
8702 *** $file_magic_cmd, produces output that libtool cannot recognize.
8703 *** The result is that libtool may fail to recognize shared libraries
8704 *** as such.  This will affect the creation of libtool libraries that
8705 *** depend on shared libraries, but programs linked with such libtool
8706 *** libraries will work regardless of this problem.  Nevertheless, you
8707 *** may want to report the problem to your system manager and/or to
8708 *** bug-libtool@gnu.org
8709
8710 _LT_EOF
8711           fi ;;
8712         esac
8713       fi
8714       break
8715     fi
8716   done
8717   IFS="$lt_save_ifs"
8718   MAGIC_CMD="$lt_save_MAGIC_CMD"
8719   ;;
8720 esac
8721 fi
8722
8723 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8724 if test -n "$MAGIC_CMD"; then
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8726 $as_echo "$MAGIC_CMD" >&6; }
8727 else
8728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8730 fi
8731
8732
8733
8734
8735
8736 if test -z "$lt_cv_path_MAGIC_CMD"; then
8737   if test -n "$ac_tool_prefix"; then
8738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8739 $as_echo_n "checking for file... " >&6; }
8740 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8741   $as_echo_n "(cached) " >&6
8742 else
8743   case $MAGIC_CMD in
8744 [\\/*] |  ?:[\\/]*)
8745   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8746   ;;
8747 *)
8748   lt_save_MAGIC_CMD="$MAGIC_CMD"
8749   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8750   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8751   for ac_dir in $ac_dummy; do
8752     IFS="$lt_save_ifs"
8753     test -z "$ac_dir" && ac_dir=.
8754     if test -f $ac_dir/file; then
8755       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8756       if test -n "$file_magic_test_file"; then
8757         case $deplibs_check_method in
8758         "file_magic "*)
8759           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8760           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8761           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8762             $EGREP "$file_magic_regex" > /dev/null; then
8763             :
8764           else
8765             cat <<_LT_EOF 1>&2
8766
8767 *** Warning: the command libtool uses to detect shared libraries,
8768 *** $file_magic_cmd, produces output that libtool cannot recognize.
8769 *** The result is that libtool may fail to recognize shared libraries
8770 *** as such.  This will affect the creation of libtool libraries that
8771 *** depend on shared libraries, but programs linked with such libtool
8772 *** libraries will work regardless of this problem.  Nevertheless, you
8773 *** may want to report the problem to your system manager and/or to
8774 *** bug-libtool@gnu.org
8775
8776 _LT_EOF
8777           fi ;;
8778         esac
8779       fi
8780       break
8781     fi
8782   done
8783   IFS="$lt_save_ifs"
8784   MAGIC_CMD="$lt_save_MAGIC_CMD"
8785   ;;
8786 esac
8787 fi
8788
8789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8790 if test -n "$MAGIC_CMD"; then
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8792 $as_echo "$MAGIC_CMD" >&6; }
8793 else
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797
8798
8799   else
8800     MAGIC_CMD=:
8801   fi
8802 fi
8803
8804   fi
8805   ;;
8806 esac
8807
8808 # Use C for the default configuration in the libtool script
8809
8810 lt_save_CC="$CC"
8811 ac_ext=c
8812 ac_cpp='$CPP $CPPFLAGS'
8813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8816
8817
8818 # Source file extension for C test sources.
8819 ac_ext=c
8820
8821 # Object file extension for compiled C test sources.
8822 objext=o
8823 objext=$objext
8824
8825 # Code to be used in simple compile tests
8826 lt_simple_compile_test_code="int some_variable = 0;"
8827
8828 # Code to be used in simple link tests
8829 lt_simple_link_test_code='int main(){return(0);}'
8830
8831
8832
8833
8834
8835
8836
8837 # If no C compiler was specified, use CC.
8838 LTCC=${LTCC-"$CC"}
8839
8840 # If no C compiler flags were specified, use CFLAGS.
8841 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8842
8843 # Allow CC to be a program name with arguments.
8844 compiler=$CC
8845
8846 # Save the default compiler, since it gets overwritten when the other
8847 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8848 compiler_DEFAULT=$CC
8849
8850 # save warnings/boilerplate of simple test code
8851 ac_outfile=conftest.$ac_objext
8852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8854 _lt_compiler_boilerplate=`cat conftest.err`
8855 $RM conftest*
8856
8857 ac_outfile=conftest.$ac_objext
8858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8860 _lt_linker_boilerplate=`cat conftest.err`
8861 $RM -r conftest*
8862
8863
8864 if test -n "$compiler"; then
8865
8866 lt_prog_compiler_no_builtin_flag=
8867
8868 if test "$GCC" = yes; then
8869   case $cc_basename in
8870   nvcc*)
8871     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8872   *)
8873     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8874   esac
8875
8876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8877 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8878 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8879   $as_echo_n "(cached) " >&6
8880 else
8881   lt_cv_prog_compiler_rtti_exceptions=no
8882    ac_outfile=conftest.$ac_objext
8883    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8884    lt_compiler_flag="-fno-rtti -fno-exceptions"
8885    # Insert the option either (1) after the last *FLAGS variable, or
8886    # (2) before a word containing "conftest.", or (3) at the end.
8887    # Note that $ac_compile itself does not contain backslashes and begins
8888    # with a dollar sign (not a hyphen), so the echo should work correctly.
8889    # The option is referenced via a variable to avoid confusing sed.
8890    lt_compile=`echo "$ac_compile" | $SED \
8891    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8892    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8893    -e 's:$: $lt_compiler_flag:'`
8894    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8895    (eval "$lt_compile" 2>conftest.err)
8896    ac_status=$?
8897    cat conftest.err >&5
8898    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899    if (exit $ac_status) && test -s "$ac_outfile"; then
8900      # The compiler can only warn and ignore the option if not recognized
8901      # So say no if there are warnings other than the usual output.
8902      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8903      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8904      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8905        lt_cv_prog_compiler_rtti_exceptions=yes
8906      fi
8907    fi
8908    $RM conftest*
8909
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8912 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8913
8914 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8915     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8916 else
8917     :
8918 fi
8919
8920 fi
8921
8922
8923
8924
8925
8926
8927   lt_prog_compiler_wl=
8928 lt_prog_compiler_pic=
8929 lt_prog_compiler_static=
8930
8931
8932   if test "$GCC" = yes; then
8933     lt_prog_compiler_wl='-Wl,'
8934     lt_prog_compiler_static='-static'
8935
8936     case $host_os in
8937       aix*)
8938       # All AIX code is PIC.
8939       if test "$host_cpu" = ia64; then
8940         # AIX 5 now supports IA64 processor
8941         lt_prog_compiler_static='-Bstatic'
8942       fi
8943       ;;
8944
8945     amigaos*)
8946       case $host_cpu in
8947       powerpc)
8948             # see comment about AmigaOS4 .so support
8949             lt_prog_compiler_pic='-fPIC'
8950         ;;
8951       m68k)
8952             # FIXME: we need at least 68020 code to build shared libraries, but
8953             # adding the `-m68020' flag to GCC prevents building anything better,
8954             # like `-m68040'.
8955             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8956         ;;
8957       esac
8958       ;;
8959
8960     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8961       # PIC is the default for these OSes.
8962       ;;
8963
8964     mingw* | cygwin* | pw32* | os2* | cegcc*)
8965       # This hack is so that the source file can tell whether it is being
8966       # built for inclusion in a dll (and should export symbols for example).
8967       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8968       # (--disable-auto-import) libraries
8969       lt_prog_compiler_pic='-DDLL_EXPORT'
8970       ;;
8971
8972     darwin* | rhapsody*)
8973       # PIC is the default on this platform
8974       # Common symbols not allowed in MH_DYLIB files
8975       lt_prog_compiler_pic='-fno-common'
8976       ;;
8977
8978     haiku*)
8979       # PIC is the default for Haiku.
8980       # The "-static" flag exists, but is broken.
8981       lt_prog_compiler_static=
8982       ;;
8983
8984     hpux*)
8985       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8986       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8987       # sets the default TLS model and affects inlining.
8988       case $host_cpu in
8989       hppa*64*)
8990         # +Z the default
8991         ;;
8992       *)
8993         lt_prog_compiler_pic='-fPIC'
8994         ;;
8995       esac
8996       ;;
8997
8998     interix[3-9]*)
8999       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9000       # Instead, we relocate shared libraries at runtime.
9001       ;;
9002
9003     msdosdjgpp*)
9004       # Just because we use GCC doesn't mean we suddenly get shared libraries
9005       # on systems that don't support them.
9006       lt_prog_compiler_can_build_shared=no
9007       enable_shared=no
9008       ;;
9009
9010     *nto* | *qnx*)
9011       # QNX uses GNU C++, but need to define -shared option too, otherwise
9012       # it will coredump.
9013       lt_prog_compiler_pic='-fPIC -shared'
9014       ;;
9015
9016     sysv4*MP*)
9017       if test -d /usr/nec; then
9018         lt_prog_compiler_pic=-Kconform_pic
9019       fi
9020       ;;
9021
9022     *)
9023       lt_prog_compiler_pic='-fPIC'
9024       ;;
9025     esac
9026
9027     case $cc_basename in
9028     nvcc*) # Cuda Compiler Driver 2.2
9029       lt_prog_compiler_wl='-Xlinker '
9030       lt_prog_compiler_pic='-Xcompiler -fPIC'
9031       ;;
9032     esac
9033   else
9034     # PORTME Check for flag to pass linker flags through the system compiler.
9035     case $host_os in
9036     aix*)
9037       lt_prog_compiler_wl='-Wl,'
9038       if test "$host_cpu" = ia64; then
9039         # AIX 5 now supports IA64 processor
9040         lt_prog_compiler_static='-Bstatic'
9041       else
9042         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9043       fi
9044       ;;
9045
9046     mingw* | cygwin* | pw32* | os2* | cegcc*)
9047       # This hack is so that the source file can tell whether it is being
9048       # built for inclusion in a dll (and should export symbols for example).
9049       lt_prog_compiler_pic='-DDLL_EXPORT'
9050       ;;
9051
9052     hpux9* | hpux10* | hpux11*)
9053       lt_prog_compiler_wl='-Wl,'
9054       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9055       # not for PA HP-UX.
9056       case $host_cpu in
9057       hppa*64*|ia64*)
9058         # +Z the default
9059         ;;
9060       *)
9061         lt_prog_compiler_pic='+Z'
9062         ;;
9063       esac
9064       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9065       lt_prog_compiler_static='${wl}-a ${wl}archive'
9066       ;;
9067
9068     irix5* | irix6* | nonstopux*)
9069       lt_prog_compiler_wl='-Wl,'
9070       # PIC (with -KPIC) is the default.
9071       lt_prog_compiler_static='-non_shared'
9072       ;;
9073
9074     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9075       case $cc_basename in
9076       # old Intel for x86_64 which still supported -KPIC.
9077       ecc*)
9078         lt_prog_compiler_wl='-Wl,'
9079         lt_prog_compiler_pic='-KPIC'
9080         lt_prog_compiler_static='-static'
9081         ;;
9082       # icc used to be incompatible with GCC.
9083       # ICC 10 doesn't accept -KPIC any more.
9084       icc* | ifort*)
9085         lt_prog_compiler_wl='-Wl,'
9086         lt_prog_compiler_pic='-fPIC'
9087         lt_prog_compiler_static='-static'
9088         ;;
9089       # Lahey Fortran 8.1.
9090       lf95*)
9091         lt_prog_compiler_wl='-Wl,'
9092         lt_prog_compiler_pic='--shared'
9093         lt_prog_compiler_static='--static'
9094         ;;
9095       nagfor*)
9096         # NAG Fortran compiler
9097         lt_prog_compiler_wl='-Wl,-Wl,,'
9098         lt_prog_compiler_pic='-PIC'
9099         lt_prog_compiler_static='-Bstatic'
9100         ;;
9101       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9102         # Portland Group compilers (*not* the Pentium gcc compiler,
9103         # which looks to be a dead project)
9104         lt_prog_compiler_wl='-Wl,'
9105         lt_prog_compiler_pic='-fpic'
9106         lt_prog_compiler_static='-Bstatic'
9107         ;;
9108       ccc*)
9109         lt_prog_compiler_wl='-Wl,'
9110         # All Alpha code is PIC.
9111         lt_prog_compiler_static='-non_shared'
9112         ;;
9113       xl* | bgxl* | bgf* | mpixl*)
9114         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9115         lt_prog_compiler_wl='-Wl,'
9116         lt_prog_compiler_pic='-qpic'
9117         lt_prog_compiler_static='-qstaticlink'
9118         ;;
9119       *)
9120         case `$CC -V 2>&1 | sed 5q` in
9121         *Sun\ F* | *Sun*Fortran*)
9122           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9123           lt_prog_compiler_pic='-KPIC'
9124           lt_prog_compiler_static='-Bstatic'
9125           lt_prog_compiler_wl=''
9126           ;;
9127         *Sun\ C*)
9128           # Sun C 5.9
9129           lt_prog_compiler_pic='-KPIC'
9130           lt_prog_compiler_static='-Bstatic'
9131           lt_prog_compiler_wl='-Wl,'
9132           ;;
9133         esac
9134         ;;
9135       esac
9136       ;;
9137
9138     newsos6)
9139       lt_prog_compiler_pic='-KPIC'
9140       lt_prog_compiler_static='-Bstatic'
9141       ;;
9142
9143     *nto* | *qnx*)
9144       # QNX uses GNU C++, but need to define -shared option too, otherwise
9145       # it will coredump.
9146       lt_prog_compiler_pic='-fPIC -shared'
9147       ;;
9148
9149     osf3* | osf4* | osf5*)
9150       lt_prog_compiler_wl='-Wl,'
9151       # All OSF/1 code is PIC.
9152       lt_prog_compiler_static='-non_shared'
9153       ;;
9154
9155     rdos*)
9156       lt_prog_compiler_static='-non_shared'
9157       ;;
9158
9159     solaris*)
9160       lt_prog_compiler_pic='-KPIC'
9161       lt_prog_compiler_static='-Bstatic'
9162       case $cc_basename in
9163       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9164         lt_prog_compiler_wl='-Qoption ld ';;
9165       *)
9166         lt_prog_compiler_wl='-Wl,';;
9167       esac
9168       ;;
9169
9170     sunos4*)
9171       lt_prog_compiler_wl='-Qoption ld '
9172       lt_prog_compiler_pic='-PIC'
9173       lt_prog_compiler_static='-Bstatic'
9174       ;;
9175
9176     sysv4 | sysv4.2uw2* | sysv4.3*)
9177       lt_prog_compiler_wl='-Wl,'
9178       lt_prog_compiler_pic='-KPIC'
9179       lt_prog_compiler_static='-Bstatic'
9180       ;;
9181
9182     sysv4*MP*)
9183       if test -d /usr/nec ;then
9184         lt_prog_compiler_pic='-Kconform_pic'
9185         lt_prog_compiler_static='-Bstatic'
9186       fi
9187       ;;
9188
9189     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9190       lt_prog_compiler_wl='-Wl,'
9191       lt_prog_compiler_pic='-KPIC'
9192       lt_prog_compiler_static='-Bstatic'
9193       ;;
9194
9195     unicos*)
9196       lt_prog_compiler_wl='-Wl,'
9197       lt_prog_compiler_can_build_shared=no
9198       ;;
9199
9200     uts4*)
9201       lt_prog_compiler_pic='-pic'
9202       lt_prog_compiler_static='-Bstatic'
9203       ;;
9204
9205     *)
9206       lt_prog_compiler_can_build_shared=no
9207       ;;
9208     esac
9209   fi
9210
9211 case $host_os in
9212   # For platforms which do not support PIC, -DPIC is meaningless:
9213   *djgpp*)
9214     lt_prog_compiler_pic=
9215     ;;
9216   *)
9217     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9218     ;;
9219 esac
9220
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9222 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9223 if ${lt_cv_prog_compiler_pic+:} false; then :
9224   $as_echo_n "(cached) " >&6
9225 else
9226   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9229 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9230 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9231
9232 #
9233 # Check to make sure the PIC flag actually works.
9234 #
9235 if test -n "$lt_prog_compiler_pic"; then
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9237 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9238 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   lt_cv_prog_compiler_pic_works=no
9242    ac_outfile=conftest.$ac_objext
9243    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9244    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9245    # Insert the option either (1) after the last *FLAGS variable, or
9246    # (2) before a word containing "conftest.", or (3) at the end.
9247    # Note that $ac_compile itself does not contain backslashes and begins
9248    # with a dollar sign (not a hyphen), so the echo should work correctly.
9249    # The option is referenced via a variable to avoid confusing sed.
9250    lt_compile=`echo "$ac_compile" | $SED \
9251    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9252    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9253    -e 's:$: $lt_compiler_flag:'`
9254    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9255    (eval "$lt_compile" 2>conftest.err)
9256    ac_status=$?
9257    cat conftest.err >&5
9258    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259    if (exit $ac_status) && test -s "$ac_outfile"; then
9260      # The compiler can only warn and ignore the option if not recognized
9261      # So say no if there are warnings other than the usual output.
9262      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9263      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9264      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9265        lt_cv_prog_compiler_pic_works=yes
9266      fi
9267    fi
9268    $RM conftest*
9269
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9272 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9273
9274 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9275     case $lt_prog_compiler_pic in
9276      "" | " "*) ;;
9277      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9278      esac
9279 else
9280     lt_prog_compiler_pic=
9281      lt_prog_compiler_can_build_shared=no
9282 fi
9283
9284 fi
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296 #
9297 # Check to make sure the static flag actually works.
9298 #
9299 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9301 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9302 if ${lt_cv_prog_compiler_static_works+:} false; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   lt_cv_prog_compiler_static_works=no
9306    save_LDFLAGS="$LDFLAGS"
9307    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9308    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9309    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9310      # The linker can only warn and ignore the option if not recognized
9311      # So say no if there are warnings
9312      if test -s conftest.err; then
9313        # Append any errors to the config.log.
9314        cat conftest.err 1>&5
9315        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9316        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9317        if diff conftest.exp conftest.er2 >/dev/null; then
9318          lt_cv_prog_compiler_static_works=yes
9319        fi
9320      else
9321        lt_cv_prog_compiler_static_works=yes
9322      fi
9323    fi
9324    $RM -r conftest*
9325    LDFLAGS="$save_LDFLAGS"
9326
9327 fi
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9329 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9330
9331 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9332     :
9333 else
9334     lt_prog_compiler_static=
9335 fi
9336
9337
9338
9339
9340
9341
9342
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9345 if ${lt_cv_prog_compiler_c_o+:} false; then :
9346   $as_echo_n "(cached) " >&6
9347 else
9348   lt_cv_prog_compiler_c_o=no
9349    $RM -r conftest 2>/dev/null
9350    mkdir conftest
9351    cd conftest
9352    mkdir out
9353    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9354
9355    lt_compiler_flag="-o out/conftest2.$ac_objext"
9356    # Insert the option either (1) after the last *FLAGS variable, or
9357    # (2) before a word containing "conftest.", or (3) at the end.
9358    # Note that $ac_compile itself does not contain backslashes and begins
9359    # with a dollar sign (not a hyphen), so the echo should work correctly.
9360    lt_compile=`echo "$ac_compile" | $SED \
9361    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9362    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9363    -e 's:$: $lt_compiler_flag:'`
9364    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9365    (eval "$lt_compile" 2>out/conftest.err)
9366    ac_status=$?
9367    cat out/conftest.err >&5
9368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9370    then
9371      # The compiler can only warn and ignore the option if not recognized
9372      # So say no if there are warnings
9373      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9374      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9375      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9376        lt_cv_prog_compiler_c_o=yes
9377      fi
9378    fi
9379    chmod u+w . 2>&5
9380    $RM conftest*
9381    # SGI C++ compiler will create directory out/ii_files/ for
9382    # template instantiation
9383    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9384    $RM out/* && rmdir out
9385    cd ..
9386    $RM -r conftest
9387    $RM conftest*
9388
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9392
9393
9394
9395
9396
9397
9398   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9399 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9400 if ${lt_cv_prog_compiler_c_o+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   lt_cv_prog_compiler_c_o=no
9404    $RM -r conftest 2>/dev/null
9405    mkdir conftest
9406    cd conftest
9407    mkdir out
9408    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9409
9410    lt_compiler_flag="-o out/conftest2.$ac_objext"
9411    # Insert the option either (1) after the last *FLAGS variable, or
9412    # (2) before a word containing "conftest.", or (3) at the end.
9413    # Note that $ac_compile itself does not contain backslashes and begins
9414    # with a dollar sign (not a hyphen), so the echo should work correctly.
9415    lt_compile=`echo "$ac_compile" | $SED \
9416    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9417    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9418    -e 's:$: $lt_compiler_flag:'`
9419    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9420    (eval "$lt_compile" 2>out/conftest.err)
9421    ac_status=$?
9422    cat out/conftest.err >&5
9423    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9425    then
9426      # The compiler can only warn and ignore the option if not recognized
9427      # So say no if there are warnings
9428      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9429      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9430      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9431        lt_cv_prog_compiler_c_o=yes
9432      fi
9433    fi
9434    chmod u+w . 2>&5
9435    $RM conftest*
9436    # SGI C++ compiler will create directory out/ii_files/ for
9437    # template instantiation
9438    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9439    $RM out/* && rmdir out
9440    cd ..
9441    $RM -r conftest
9442    $RM conftest*
9443
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9446 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9447
9448
9449
9450
9451 hard_links="nottested"
9452 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9453   # do not overwrite the value of need_locks provided by the user
9454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9455 $as_echo_n "checking if we can lock with hard links... " >&6; }
9456   hard_links=yes
9457   $RM conftest*
9458   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9459   touch conftest.a
9460   ln conftest.a conftest.b 2>&5 || hard_links=no
9461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9463 $as_echo "$hard_links" >&6; }
9464   if test "$hard_links" = no; then
9465     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9466 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9467     need_locks=warn
9468   fi
9469 else
9470   need_locks=no
9471 fi
9472
9473
9474
9475
9476
9477
9478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9479 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9480
9481   runpath_var=
9482   allow_undefined_flag=
9483   always_export_symbols=no
9484   archive_cmds=
9485   archive_expsym_cmds=
9486   compiler_needs_object=no
9487   enable_shared_with_static_runtimes=no
9488   export_dynamic_flag_spec=
9489   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9490   hardcode_automatic=no
9491   hardcode_direct=no
9492   hardcode_direct_absolute=no
9493   hardcode_libdir_flag_spec=
9494   hardcode_libdir_flag_spec_ld=
9495   hardcode_libdir_separator=
9496   hardcode_minus_L=no
9497   hardcode_shlibpath_var=unsupported
9498   inherit_rpath=no
9499   link_all_deplibs=unknown
9500   module_cmds=
9501   module_expsym_cmds=
9502   old_archive_from_new_cmds=
9503   old_archive_from_expsyms_cmds=
9504   thread_safe_flag_spec=
9505   whole_archive_flag_spec=
9506   # include_expsyms should be a list of space-separated symbols to be *always*
9507   # included in the symbol list
9508   include_expsyms=
9509   # exclude_expsyms can be an extended regexp of symbols to exclude
9510   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9511   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9512   # as well as any symbol that contains `d'.
9513   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9514   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9515   # platforms (ab)use it in PIC code, but their linkers get confused if
9516   # the symbol is explicitly referenced.  Since portable code cannot
9517   # rely on this symbol name, it's probably fine to never include it in
9518   # preloaded symbol tables.
9519   # Exclude shared library initialization/finalization symbols.
9520   extract_expsyms_cmds=
9521
9522   case $host_os in
9523   cygwin* | mingw* | pw32* | cegcc*)
9524     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9525     # When not using gcc, we currently assume that we are using
9526     # Microsoft Visual C++.
9527     if test "$GCC" != yes; then
9528       with_gnu_ld=no
9529     fi
9530     ;;
9531   interix*)
9532     # we just hope/assume this is gcc and not c89 (= MSVC++)
9533     with_gnu_ld=yes
9534     ;;
9535   openbsd*)
9536     with_gnu_ld=no
9537     ;;
9538   esac
9539
9540   ld_shlibs=yes
9541
9542   # On some targets, GNU ld is compatible enough with the native linker
9543   # that we're better off using the native interface for both.
9544   lt_use_gnu_ld_interface=no
9545   if test "$with_gnu_ld" = yes; then
9546     case $host_os in
9547       aix*)
9548         # The AIX port of GNU ld has always aspired to compatibility
9549         # with the native linker.  However, as the warning in the GNU ld
9550         # block says, versions before 2.19.5* couldn't really create working
9551         # shared libraries, regardless of the interface used.
9552         case `$LD -v 2>&1` in
9553           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9554           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9555           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9556           *)
9557             lt_use_gnu_ld_interface=yes
9558             ;;
9559         esac
9560         ;;
9561       *)
9562         lt_use_gnu_ld_interface=yes
9563         ;;
9564     esac
9565   fi
9566
9567   if test "$lt_use_gnu_ld_interface" = yes; then
9568     # If archive_cmds runs LD, not CC, wlarc should be empty
9569     wlarc='${wl}'
9570
9571     # Set some defaults for GNU ld with shared library support. These
9572     # are reset later if shared libraries are not supported. Putting them
9573     # here allows them to be overridden if necessary.
9574     runpath_var=LD_RUN_PATH
9575     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576     export_dynamic_flag_spec='${wl}--export-dynamic'
9577     # ancient GNU ld didn't support --whole-archive et. al.
9578     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9579       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9580     else
9581       whole_archive_flag_spec=
9582     fi
9583     supports_anon_versioning=no
9584     case `$LD -v 2>&1` in
9585       *GNU\ gold*) supports_anon_versioning=yes ;;
9586       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9587       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9588       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9589       *\ 2.11.*) ;; # other 2.11 versions
9590       *) supports_anon_versioning=yes ;;
9591     esac
9592
9593     # See if GNU ld supports shared libraries.
9594     case $host_os in
9595     aix[3-9]*)
9596       # On AIX/PPC, the GNU linker is very broken
9597       if test "$host_cpu" != ia64; then
9598         ld_shlibs=no
9599         cat <<_LT_EOF 1>&2
9600
9601 *** Warning: the GNU linker, at least up to release 2.19, is reported
9602 *** to be unable to reliably create shared libraries on AIX.
9603 *** Therefore, libtool is disabling shared libraries support.  If you
9604 *** really care for shared libraries, you may want to install binutils
9605 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9606 *** You will then need to restart the configuration process.
9607
9608 _LT_EOF
9609       fi
9610       ;;
9611
9612     amigaos*)
9613       case $host_cpu in
9614       powerpc)
9615             # see comment about AmigaOS4 .so support
9616             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9617             archive_expsym_cmds=''
9618         ;;
9619       m68k)
9620             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)'
9621             hardcode_libdir_flag_spec='-L$libdir'
9622             hardcode_minus_L=yes
9623         ;;
9624       esac
9625       ;;
9626
9627     beos*)
9628       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9629         allow_undefined_flag=unsupported
9630         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9631         # support --undefined.  This deserves some investigation.  FIXME
9632         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9633       else
9634         ld_shlibs=no
9635       fi
9636       ;;
9637
9638     cygwin* | mingw* | pw32* | cegcc*)
9639       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9640       # as there is no search path for DLLs.
9641       hardcode_libdir_flag_spec='-L$libdir'
9642       export_dynamic_flag_spec='${wl}--export-all-symbols'
9643       allow_undefined_flag=unsupported
9644       always_export_symbols=no
9645       enable_shared_with_static_runtimes=yes
9646       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9647       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9648
9649       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9650         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9651         # If the export-symbols file already is a .def file (1st line
9652         # is EXPORTS), use it as is; otherwise, prepend...
9653         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9654           cp $export_symbols $output_objdir/$soname.def;
9655         else
9656           echo EXPORTS > $output_objdir/$soname.def;
9657           cat $export_symbols >> $output_objdir/$soname.def;
9658         fi~
9659         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9660       else
9661         ld_shlibs=no
9662       fi
9663       ;;
9664
9665     haiku*)
9666       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9667       link_all_deplibs=yes
9668       ;;
9669
9670     interix[3-9]*)
9671       hardcode_direct=no
9672       hardcode_shlibpath_var=no
9673       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9674       export_dynamic_flag_spec='${wl}-E'
9675       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9676       # Instead, shared libraries are loaded at an image base (0x10000000 by
9677       # default) and relocated if they conflict, which is a slow very memory
9678       # consuming and fragmenting process.  To avoid this, we pick a random,
9679       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9680       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9681       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9682       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'
9683       ;;
9684
9685     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9686       tmp_diet=no
9687       if test "$host_os" = linux-dietlibc; then
9688         case $cc_basename in
9689           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9690         esac
9691       fi
9692       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9693          && test "$tmp_diet" = no
9694       then
9695         tmp_addflag=' $pic_flag'
9696         tmp_sharedflag='-shared'
9697         case $cc_basename,$host_cpu in
9698         pgcc*)                          # Portland Group C compiler
9699           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9700           tmp_addflag=' $pic_flag'
9701           ;;
9702         pgf77* | pgf90* | pgf95* | pgfortran*)
9703                                         # Portland Group f77 and f90 compilers
9704           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9705           tmp_addflag=' $pic_flag -Mnomain' ;;
9706         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9707           tmp_addflag=' -i_dynamic' ;;
9708         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9709           tmp_addflag=' -i_dynamic -nofor_main' ;;
9710         ifc* | ifort*)                  # Intel Fortran compiler
9711           tmp_addflag=' -nofor_main' ;;
9712         lf95*)                          # Lahey Fortran 8.1
9713           whole_archive_flag_spec=
9714           tmp_sharedflag='--shared' ;;
9715         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9716           tmp_sharedflag='-qmkshrobj'
9717           tmp_addflag= ;;
9718         nvcc*)  # Cuda Compiler Driver 2.2
9719           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9720           compiler_needs_object=yes
9721           ;;
9722         esac
9723         case `$CC -V 2>&1 | sed 5q` in
9724         *Sun\ C*)                       # Sun C 5.9
9725           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9726           compiler_needs_object=yes
9727           tmp_sharedflag='-G' ;;
9728         *Sun\ F*)                       # Sun Fortran 8.3
9729           tmp_sharedflag='-G' ;;
9730         esac
9731         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9732
9733         if test "x$supports_anon_versioning" = xyes; then
9734           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9735             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9736             echo "local: *; };" >> $output_objdir/$libname.ver~
9737             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9738         fi
9739
9740         case $cc_basename in
9741         xlf* | bgf* | bgxlf* | mpixlf*)
9742           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9743           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9744           hardcode_libdir_flag_spec=
9745           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9746           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9747           if test "x$supports_anon_versioning" = xyes; then
9748             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9749               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9750               echo "local: *; };" >> $output_objdir/$libname.ver~
9751               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9752           fi
9753           ;;
9754         esac
9755       else
9756         ld_shlibs=no
9757       fi
9758       ;;
9759
9760     netbsd*)
9761       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9762         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9763         wlarc=
9764       else
9765         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9767       fi
9768       ;;
9769
9770     solaris*)
9771       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9772         ld_shlibs=no
9773         cat <<_LT_EOF 1>&2
9774
9775 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9776 *** create shared libraries on Solaris systems.  Therefore, libtool
9777 *** is disabling shared libraries support.  We urge you to upgrade GNU
9778 *** binutils to release 2.9.1 or newer.  Another option is to modify
9779 *** your PATH or compiler configuration so that the native linker is
9780 *** used, and then restart.
9781
9782 _LT_EOF
9783       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9784         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9786       else
9787         ld_shlibs=no
9788       fi
9789       ;;
9790
9791     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9792       case `$LD -v 2>&1` in
9793         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9794         ld_shlibs=no
9795         cat <<_LT_EOF 1>&2
9796
9797 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9798 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9799 *** is disabling shared libraries support.  We urge you to upgrade GNU
9800 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9801 *** your PATH or compiler configuration so that the native linker is
9802 *** used, and then restart.
9803
9804 _LT_EOF
9805         ;;
9806         *)
9807           # For security reasons, it is highly recommended that you always
9808           # use absolute paths for naming shared libraries, and exclude the
9809           # DT_RUNPATH tag from executables and libraries.  But doing so
9810           # requires that you compile everything twice, which is a pain.
9811           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9812             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9813             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9814             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9815           else
9816             ld_shlibs=no
9817           fi
9818         ;;
9819       esac
9820       ;;
9821
9822     sunos4*)
9823       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9824       wlarc=
9825       hardcode_direct=yes
9826       hardcode_shlibpath_var=no
9827       ;;
9828
9829     *)
9830       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9831         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9833       else
9834         ld_shlibs=no
9835       fi
9836       ;;
9837     esac
9838
9839     if test "$ld_shlibs" = no; then
9840       runpath_var=
9841       hardcode_libdir_flag_spec=
9842       export_dynamic_flag_spec=
9843       whole_archive_flag_spec=
9844     fi
9845   else
9846     # PORTME fill in a description of your system's linker (not GNU ld)
9847     case $host_os in
9848     aix3*)
9849       allow_undefined_flag=unsupported
9850       always_export_symbols=yes
9851       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'
9852       # Note: this linker hardcodes the directories in LIBPATH if there
9853       # are no directories specified by -L.
9854       hardcode_minus_L=yes
9855       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9856         # Neither direct hardcoding nor static linking is supported with a
9857         # broken collect2.
9858         hardcode_direct=unsupported
9859       fi
9860       ;;
9861
9862     aix[4-9]*)
9863       if test "$host_cpu" = ia64; then
9864         # On IA64, the linker does run time linking by default, so we don't
9865         # have to do anything special.
9866         aix_use_runtimelinking=no
9867         exp_sym_flag='-Bexport'
9868         no_entry_flag=""
9869       else
9870         # If we're using GNU nm, then we don't want the "-C" option.
9871         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9872         # Also, AIX nm treats weak defined symbols like other global
9873         # defined symbols, whereas GNU nm marks them as "W".
9874         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9875           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9876         else
9877           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'
9878         fi
9879         aix_use_runtimelinking=no
9880
9881         # Test if we are trying to use run time linking or normal
9882         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9883         # need to do runtime linking.
9884         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9885           for ld_flag in $LDFLAGS; do
9886           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9887             aix_use_runtimelinking=yes
9888             break
9889           fi
9890           done
9891           ;;
9892         esac
9893
9894         exp_sym_flag='-bexport'
9895         no_entry_flag='-bnoentry'
9896       fi
9897
9898       # When large executables or shared objects are built, AIX ld can
9899       # have problems creating the table of contents.  If linking a library
9900       # or program results in "error TOC overflow" add -mminimal-toc to
9901       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9902       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9903
9904       archive_cmds=''
9905       hardcode_direct=yes
9906       hardcode_direct_absolute=yes
9907       hardcode_libdir_separator=':'
9908       link_all_deplibs=yes
9909       file_list_spec='${wl}-f,'
9910
9911       if test "$GCC" = yes; then
9912         case $host_os in aix4.[012]|aix4.[012].*)
9913         # We only want to do this on AIX 4.2 and lower, the check
9914         # below for broken collect2 doesn't work under 4.3+
9915           collect2name=`${CC} -print-prog-name=collect2`
9916           if test -f "$collect2name" &&
9917            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9918           then
9919           # We have reworked collect2
9920           :
9921           else
9922           # We have old collect2
9923           hardcode_direct=unsupported
9924           # It fails to find uninstalled libraries when the uninstalled
9925           # path is not listed in the libpath.  Setting hardcode_minus_L
9926           # to unsupported forces relinking
9927           hardcode_minus_L=yes
9928           hardcode_libdir_flag_spec='-L$libdir'
9929           hardcode_libdir_separator=
9930           fi
9931           ;;
9932         esac
9933         shared_flag='-shared'
9934         if test "$aix_use_runtimelinking" = yes; then
9935           shared_flag="$shared_flag "'${wl}-G'
9936         fi
9937       else
9938         # not using gcc
9939         if test "$host_cpu" = ia64; then
9940         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9941         # chokes on -Wl,-G. The following line is correct:
9942           shared_flag='-G'
9943         else
9944           if test "$aix_use_runtimelinking" = yes; then
9945             shared_flag='${wl}-G'
9946           else
9947             shared_flag='${wl}-bM:SRE'
9948           fi
9949         fi
9950       fi
9951
9952       export_dynamic_flag_spec='${wl}-bexpall'
9953       # It seems that -bexpall does not export symbols beginning with
9954       # underscore (_), so it is better to generate a list of symbols to export.
9955       always_export_symbols=yes
9956       if test "$aix_use_runtimelinking" = yes; then
9957         # Warning - without using the other runtime loading flags (-brtl),
9958         # -berok will link without error, but may produce a broken library.
9959         allow_undefined_flag='-berok'
9960         # Determine the default libpath from the value encoded in an
9961         # empty executable.
9962         if test "${lt_cv_aix_libpath+set}" = set; then
9963   aix_libpath=$lt_cv_aix_libpath
9964 else
9965   if ${lt_cv_aix_libpath_+:} false; then :
9966   $as_echo_n "(cached) " >&6
9967 else
9968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h.  */
9970
9971 int
9972 main ()
9973 {
9974
9975   ;
9976   return 0;
9977 }
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980
9981   lt_aix_libpath_sed='
9982       /Import File Strings/,/^$/ {
9983           /^0/ {
9984               s/^0  *\([^ ]*\) *$/\1/
9985               p
9986           }
9987       }'
9988   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9989   # Check for a 64-bit object if we didn't find anything.
9990   if test -z "$lt_cv_aix_libpath_"; then
9991     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9992   fi
9993 fi
9994 rm -f core conftest.err conftest.$ac_objext \
9995     conftest$ac_exeext conftest.$ac_ext
9996   if test -z "$lt_cv_aix_libpath_"; then
9997     lt_cv_aix_libpath_="/usr/lib:/lib"
9998   fi
9999
10000 fi
10001
10002   aix_libpath=$lt_cv_aix_libpath_
10003 fi
10004
10005         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10006         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10007       else
10008         if test "$host_cpu" = ia64; then
10009           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10010           allow_undefined_flag="-z nodefs"
10011           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"
10012         else
10013          # Determine the default libpath from the value encoded in an
10014          # empty executable.
10015          if test "${lt_cv_aix_libpath+set}" = set; then
10016   aix_libpath=$lt_cv_aix_libpath
10017 else
10018   if ${lt_cv_aix_libpath_+:} false; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h.  */
10023
10024 int
10025 main ()
10026 {
10027
10028   ;
10029   return 0;
10030 }
10031 _ACEOF
10032 if ac_fn_c_try_link "$LINENO"; then :
10033
10034   lt_aix_libpath_sed='
10035       /Import File Strings/,/^$/ {
10036           /^0/ {
10037               s/^0  *\([^ ]*\) *$/\1/
10038               p
10039           }
10040       }'
10041   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10042   # Check for a 64-bit object if we didn't find anything.
10043   if test -z "$lt_cv_aix_libpath_"; then
10044     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10045   fi
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext \
10048     conftest$ac_exeext conftest.$ac_ext
10049   if test -z "$lt_cv_aix_libpath_"; then
10050     lt_cv_aix_libpath_="/usr/lib:/lib"
10051   fi
10052
10053 fi
10054
10055   aix_libpath=$lt_cv_aix_libpath_
10056 fi
10057
10058          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10059           # Warning - without using the other run time loading flags,
10060           # -berok will link without error, but may produce a broken library.
10061           no_undefined_flag=' ${wl}-bernotok'
10062           allow_undefined_flag=' ${wl}-berok'
10063           if test "$with_gnu_ld" = yes; then
10064             # We only use this code for GNU lds that support --whole-archive.
10065             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10066           else
10067             # Exported symbols can be pulled into shared objects from archives
10068             whole_archive_flag_spec='$convenience'
10069           fi
10070           archive_cmds_need_lc=yes
10071           # This is similar to how AIX traditionally builds its shared libraries.
10072           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'
10073         fi
10074       fi
10075       ;;
10076
10077     amigaos*)
10078       case $host_cpu in
10079       powerpc)
10080             # see comment about AmigaOS4 .so support
10081             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10082             archive_expsym_cmds=''
10083         ;;
10084       m68k)
10085             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)'
10086             hardcode_libdir_flag_spec='-L$libdir'
10087             hardcode_minus_L=yes
10088         ;;
10089       esac
10090       ;;
10091
10092     bsdi[45]*)
10093       export_dynamic_flag_spec=-rdynamic
10094       ;;
10095
10096     cygwin* | mingw* | pw32* | cegcc*)
10097       # When not using gcc, we currently assume that we are using
10098       # Microsoft Visual C++.
10099       # hardcode_libdir_flag_spec is actually meaningless, as there is
10100       # no search path for DLLs.
10101       case $cc_basename in
10102       cl*)
10103         # Native MSVC
10104         hardcode_libdir_flag_spec=' '
10105         allow_undefined_flag=unsupported
10106         always_export_symbols=yes
10107         file_list_spec='@'
10108         # Tell ltmain to make .lib files, not .a files.
10109         libext=lib
10110         # Tell ltmain to make .dll files, not .so files.
10111         shrext_cmds=".dll"
10112         # FIXME: Setting linknames here is a bad hack.
10113         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10114         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10115             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10116           else
10117             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10118           fi~
10119           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10120           linknames='
10121         # The linker will not automatically build a static lib if we build a DLL.
10122         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10123         enable_shared_with_static_runtimes=yes
10124         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10125         # Don't use ranlib
10126         old_postinstall_cmds='chmod 644 $oldlib'
10127         postlink_cmds='lt_outputfile="@OUTPUT@"~
10128           lt_tool_outputfile="@TOOL_OUTPUT@"~
10129           case $lt_outputfile in
10130             *.exe|*.EXE) ;;
10131             *)
10132               lt_outputfile="$lt_outputfile.exe"
10133               lt_tool_outputfile="$lt_tool_outputfile.exe"
10134               ;;
10135           esac~
10136           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10137             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10138             $RM "$lt_outputfile.manifest";
10139           fi'
10140         ;;
10141       *)
10142         # Assume MSVC wrapper
10143         hardcode_libdir_flag_spec=' '
10144         allow_undefined_flag=unsupported
10145         # Tell ltmain to make .lib files, not .a files.
10146         libext=lib
10147         # Tell ltmain to make .dll files, not .so files.
10148         shrext_cmds=".dll"
10149         # FIXME: Setting linknames here is a bad hack.
10150         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10151         # The linker will automatically build a .lib file if we build a DLL.
10152         old_archive_from_new_cmds='true'
10153         # FIXME: Should let the user specify the lib program.
10154         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10155         enable_shared_with_static_runtimes=yes
10156         ;;
10157       esac
10158       ;;
10159
10160     darwin* | rhapsody*)
10161
10162
10163   archive_cmds_need_lc=no
10164   hardcode_direct=no
10165   hardcode_automatic=yes
10166   hardcode_shlibpath_var=unsupported
10167   if test "$lt_cv_ld_force_load" = "yes"; then
10168     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10169   else
10170     whole_archive_flag_spec=''
10171   fi
10172   link_all_deplibs=yes
10173   allow_undefined_flag="$_lt_dar_allow_undefined"
10174   case $cc_basename in
10175      ifort*) _lt_dar_can_shared=yes ;;
10176      *) _lt_dar_can_shared=$GCC ;;
10177   esac
10178   if test "$_lt_dar_can_shared" = "yes"; then
10179     output_verbose_link_cmd=func_echo_all
10180     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10181     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10182     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}"
10183     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}"
10184
10185   else
10186   ld_shlibs=no
10187   fi
10188
10189       ;;
10190
10191     dgux*)
10192       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10193       hardcode_libdir_flag_spec='-L$libdir'
10194       hardcode_shlibpath_var=no
10195       ;;
10196
10197     freebsd1*)
10198       ld_shlibs=no
10199       ;;
10200
10201     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10202     # support.  Future versions do this automatically, but an explicit c++rt0.o
10203     # does not break anything, and helps significantly (at the cost of a little
10204     # extra space).
10205     freebsd2.2*)
10206       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10207       hardcode_libdir_flag_spec='-R$libdir'
10208       hardcode_direct=yes
10209       hardcode_shlibpath_var=no
10210       ;;
10211
10212     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10213     freebsd2*)
10214       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10215       hardcode_direct=yes
10216       hardcode_minus_L=yes
10217       hardcode_shlibpath_var=no
10218       ;;
10219
10220     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10221     freebsd* | dragonfly*)
10222       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223       hardcode_libdir_flag_spec='-R$libdir'
10224       hardcode_direct=yes
10225       hardcode_shlibpath_var=no
10226       ;;
10227
10228     hpux9*)
10229       if test "$GCC" = yes; then
10230         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10231       else
10232         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'
10233       fi
10234       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10235       hardcode_libdir_separator=:
10236       hardcode_direct=yes
10237
10238       # hardcode_minus_L: Not really in the search PATH,
10239       # but as the default location of the library.
10240       hardcode_minus_L=yes
10241       export_dynamic_flag_spec='${wl}-E'
10242       ;;
10243
10244     hpux10*)
10245       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10246         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10247       else
10248         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10249       fi
10250       if test "$with_gnu_ld" = no; then
10251         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10252         hardcode_libdir_flag_spec_ld='+b $libdir'
10253         hardcode_libdir_separator=:
10254         hardcode_direct=yes
10255         hardcode_direct_absolute=yes
10256         export_dynamic_flag_spec='${wl}-E'
10257         # hardcode_minus_L: Not really in the search PATH,
10258         # but as the default location of the library.
10259         hardcode_minus_L=yes
10260       fi
10261       ;;
10262
10263     hpux11*)
10264       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10265         case $host_cpu in
10266         hppa*64*)
10267           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10268           ;;
10269         ia64*)
10270           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10271           ;;
10272         *)
10273           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10274           ;;
10275         esac
10276       else
10277         case $host_cpu in
10278         hppa*64*)
10279           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10280           ;;
10281         ia64*)
10282           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10283           ;;
10284         *)
10285
10286           # Older versions of the 11.00 compiler do not understand -b yet
10287           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10288           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10289 $as_echo_n "checking if $CC understands -b... " >&6; }
10290 if ${lt_cv_prog_compiler__b+:} false; then :
10291   $as_echo_n "(cached) " >&6
10292 else
10293   lt_cv_prog_compiler__b=no
10294    save_LDFLAGS="$LDFLAGS"
10295    LDFLAGS="$LDFLAGS -b"
10296    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10297    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10298      # The linker can only warn and ignore the option if not recognized
10299      # So say no if there are warnings
10300      if test -s conftest.err; then
10301        # Append any errors to the config.log.
10302        cat conftest.err 1>&5
10303        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10304        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10305        if diff conftest.exp conftest.er2 >/dev/null; then
10306          lt_cv_prog_compiler__b=yes
10307        fi
10308      else
10309        lt_cv_prog_compiler__b=yes
10310      fi
10311    fi
10312    $RM -r conftest*
10313    LDFLAGS="$save_LDFLAGS"
10314
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10317 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10318
10319 if test x"$lt_cv_prog_compiler__b" = xyes; then
10320     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321 else
10322     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10323 fi
10324
10325           ;;
10326         esac
10327       fi
10328       if test "$with_gnu_ld" = no; then
10329         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10330         hardcode_libdir_separator=:
10331
10332         case $host_cpu in
10333         hppa*64*|ia64*)
10334           hardcode_direct=no
10335           hardcode_shlibpath_var=no
10336           ;;
10337         *)
10338           hardcode_direct=yes
10339           hardcode_direct_absolute=yes
10340           export_dynamic_flag_spec='${wl}-E'
10341
10342           # hardcode_minus_L: Not really in the search PATH,
10343           # but as the default location of the library.
10344           hardcode_minus_L=yes
10345           ;;
10346         esac
10347       fi
10348       ;;
10349
10350     irix5* | irix6* | nonstopux*)
10351       if test "$GCC" = yes; then
10352         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10353         # Try to use the -exported_symbol ld option, if it does not
10354         # work, assume that -exports_file does not work either and
10355         # implicitly export all symbols.
10356         # This should be the same for all languages, so no per-tag cache variable.
10357         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10358 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10359 if ${lt_cv_irix_exported_symbol+:} false; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   save_LDFLAGS="$LDFLAGS"
10363            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10364            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h.  */
10366 int foo (void) { return 0; }
10367 _ACEOF
10368 if ac_fn_c_try_link "$LINENO"; then :
10369   lt_cv_irix_exported_symbol=yes
10370 else
10371   lt_cv_irix_exported_symbol=no
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext \
10374     conftest$ac_exeext conftest.$ac_ext
10375            LDFLAGS="$save_LDFLAGS"
10376 fi
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10378 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10379         if test "$lt_cv_irix_exported_symbol" = yes; then
10380           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10381         fi
10382       else
10383         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10384         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10385       fi
10386       archive_cmds_need_lc='no'
10387       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10388       hardcode_libdir_separator=:
10389       inherit_rpath=yes
10390       link_all_deplibs=yes
10391       ;;
10392
10393     netbsd*)
10394       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10395         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10396       else
10397         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10398       fi
10399       hardcode_libdir_flag_spec='-R$libdir'
10400       hardcode_direct=yes
10401       hardcode_shlibpath_var=no
10402       ;;
10403
10404     newsos6)
10405       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406       hardcode_direct=yes
10407       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10408       hardcode_libdir_separator=:
10409       hardcode_shlibpath_var=no
10410       ;;
10411
10412     *nto* | *qnx*)
10413       ;;
10414
10415     openbsd*)
10416       if test -f /usr/libexec/ld.so; then
10417         hardcode_direct=yes
10418         hardcode_shlibpath_var=no
10419         hardcode_direct_absolute=yes
10420         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10421           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10422           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10423           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10424           export_dynamic_flag_spec='${wl}-E'
10425         else
10426           case $host_os in
10427            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10428              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10429              hardcode_libdir_flag_spec='-R$libdir'
10430              ;;
10431            *)
10432              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10433              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10434              ;;
10435           esac
10436         fi
10437       else
10438         ld_shlibs=no
10439       fi
10440       ;;
10441
10442     os2*)
10443       hardcode_libdir_flag_spec='-L$libdir'
10444       hardcode_minus_L=yes
10445       allow_undefined_flag=unsupported
10446       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'
10447       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10448       ;;
10449
10450     osf3*)
10451       if test "$GCC" = yes; then
10452         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10453         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10454       else
10455         allow_undefined_flag=' -expect_unresolved \*'
10456         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10457       fi
10458       archive_cmds_need_lc='no'
10459       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460       hardcode_libdir_separator=:
10461       ;;
10462
10463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10464       if test "$GCC" = yes; then
10465         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10466         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10467         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10468       else
10469         allow_undefined_flag=' -expect_unresolved \*'
10470         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10471         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~
10472         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10473
10474         # Both c and cxx compiler support -rpath directly
10475         hardcode_libdir_flag_spec='-rpath $libdir'
10476       fi
10477       archive_cmds_need_lc='no'
10478       hardcode_libdir_separator=:
10479       ;;
10480
10481     solaris*)
10482       no_undefined_flag=' -z defs'
10483       if test "$GCC" = yes; then
10484         wlarc='${wl}'
10485         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10486         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10487           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10488       else
10489         case `$CC -V 2>&1` in
10490         *"Compilers 5.0"*)
10491           wlarc=''
10492           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10493           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10494           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10495           ;;
10496         *)
10497           wlarc='${wl}'
10498           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10499           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10500           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10501           ;;
10502         esac
10503       fi
10504       hardcode_libdir_flag_spec='-R$libdir'
10505       hardcode_shlibpath_var=no
10506       case $host_os in
10507       solaris2.[0-5] | solaris2.[0-5].*) ;;
10508       *)
10509         # The compiler driver will combine and reorder linker options,
10510         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10511         # but is careful enough not to reorder.
10512         # Supported since Solaris 2.6 (maybe 2.5.1?)
10513         if test "$GCC" = yes; then
10514           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10515         else
10516           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10517         fi
10518         ;;
10519       esac
10520       link_all_deplibs=yes
10521       ;;
10522
10523     sunos4*)
10524       if test "x$host_vendor" = xsequent; then
10525         # Use $CC to link under sequent, because it throws in some extra .o
10526         # files that make .init and .fini sections work.
10527         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10528       else
10529         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10530       fi
10531       hardcode_libdir_flag_spec='-L$libdir'
10532       hardcode_direct=yes
10533       hardcode_minus_L=yes
10534       hardcode_shlibpath_var=no
10535       ;;
10536
10537     sysv4)
10538       case $host_vendor in
10539         sni)
10540           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10541           hardcode_direct=yes # is this really true???
10542         ;;
10543         siemens)
10544           ## LD is ld it makes a PLAMLIB
10545           ## CC just makes a GrossModule.
10546           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10547           reload_cmds='$CC -r -o $output$reload_objs'
10548           hardcode_direct=no
10549         ;;
10550         motorola)
10551           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10552           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10553         ;;
10554       esac
10555       runpath_var='LD_RUN_PATH'
10556       hardcode_shlibpath_var=no
10557       ;;
10558
10559     sysv4.3*)
10560       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10561       hardcode_shlibpath_var=no
10562       export_dynamic_flag_spec='-Bexport'
10563       ;;
10564
10565     sysv4*MP*)
10566       if test -d /usr/nec; then
10567         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10568         hardcode_shlibpath_var=no
10569         runpath_var=LD_RUN_PATH
10570         hardcode_runpath_var=yes
10571         ld_shlibs=yes
10572       fi
10573       ;;
10574
10575     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10576       no_undefined_flag='${wl}-z,text'
10577       archive_cmds_need_lc=no
10578       hardcode_shlibpath_var=no
10579       runpath_var='LD_RUN_PATH'
10580
10581       if test "$GCC" = yes; then
10582         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584       else
10585         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587       fi
10588       ;;
10589
10590     sysv5* | sco3.2v5* | sco5v6*)
10591       # Note: We can NOT use -z defs as we might desire, because we do not
10592       # link with -lc, and that would cause any symbols used from libc to
10593       # always be unresolved, which means just about no library would
10594       # ever link correctly.  If we're not using GNU ld we use -z text
10595       # though, which does catch some bad symbols but isn't as heavy-handed
10596       # as -z defs.
10597       no_undefined_flag='${wl}-z,text'
10598       allow_undefined_flag='${wl}-z,nodefs'
10599       archive_cmds_need_lc=no
10600       hardcode_shlibpath_var=no
10601       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10602       hardcode_libdir_separator=':'
10603       link_all_deplibs=yes
10604       export_dynamic_flag_spec='${wl}-Bexport'
10605       runpath_var='LD_RUN_PATH'
10606
10607       if test "$GCC" = yes; then
10608         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610       else
10611         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10613       fi
10614       ;;
10615
10616     uts4*)
10617       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10618       hardcode_libdir_flag_spec='-L$libdir'
10619       hardcode_shlibpath_var=no
10620       ;;
10621
10622     *)
10623       ld_shlibs=no
10624       ;;
10625     esac
10626
10627     if test x$host_vendor = xsni; then
10628       case $host in
10629       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10630         export_dynamic_flag_spec='${wl}-Blargedynsym'
10631         ;;
10632       esac
10633     fi
10634   fi
10635
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10637 $as_echo "$ld_shlibs" >&6; }
10638 test "$ld_shlibs" = no && can_build_shared=no
10639
10640 with_gnu_ld=$with_gnu_ld
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656 #
10657 # Do we need to explicitly link libc?
10658 #
10659 case "x$archive_cmds_need_lc" in
10660 x|xyes)
10661   # Assume -lc should be added
10662   archive_cmds_need_lc=yes
10663
10664   if test "$enable_shared" = yes && test "$GCC" = yes; then
10665     case $archive_cmds in
10666     *'~'*)
10667       # FIXME: we may have to deal with multi-command sequences.
10668       ;;
10669     '$CC '*)
10670       # Test whether the compiler implicitly links with -lc since on some
10671       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10672       # to ld, don't add -lc before -lgcc.
10673       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10674 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10675 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   $RM conftest*
10679         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10680
10681         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10682   (eval $ac_compile) 2>&5
10683   ac_status=$?
10684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10685   test $ac_status = 0; } 2>conftest.err; then
10686           soname=conftest
10687           lib=conftest
10688           libobjs=conftest.$ac_objext
10689           deplibs=
10690           wl=$lt_prog_compiler_wl
10691           pic_flag=$lt_prog_compiler_pic
10692           compiler_flags=-v
10693           linker_flags=-v
10694           verstring=
10695           output_objdir=.
10696           libname=conftest
10697           lt_save_allow_undefined_flag=$allow_undefined_flag
10698           allow_undefined_flag=
10699           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10700   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10701   ac_status=$?
10702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703   test $ac_status = 0; }
10704           then
10705             lt_cv_archive_cmds_need_lc=no
10706           else
10707             lt_cv_archive_cmds_need_lc=yes
10708           fi
10709           allow_undefined_flag=$lt_save_allow_undefined_flag
10710         else
10711           cat conftest.err 1>&5
10712         fi
10713         $RM conftest*
10714
10715 fi
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10717 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10718       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10719       ;;
10720     esac
10721   fi
10722   ;;
10723 esac
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10882 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10883
10884 if test "$GCC" = yes; then
10885   case $host_os in
10886     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10887     *) lt_awk_arg="/^libraries:/" ;;
10888   esac
10889   case $host_os in
10890     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10891     *) lt_sed_strip_eq="s,=/,/,g" ;;
10892   esac
10893   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10894   case $lt_search_path_spec in
10895   *\;*)
10896     # if the path contains ";" then we assume it to be the separator
10897     # otherwise default to the standard path separator (i.e. ":") - it is
10898     # assumed that no part of a normal pathname contains ";" but that should
10899     # okay in the real world where ";" in dirpaths is itself problematic.
10900     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10901     ;;
10902   *)
10903     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10904     ;;
10905   esac
10906   # Ok, now we have the path, separated by spaces, we can step through it
10907   # and add multilib dir if necessary.
10908   lt_tmp_lt_search_path_spec=
10909   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10910   for lt_sys_path in $lt_search_path_spec; do
10911     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10912       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10913     else
10914       test -d "$lt_sys_path" && \
10915         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10916     fi
10917   done
10918   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10919 BEGIN {RS=" "; FS="/|\n";} {
10920   lt_foo="";
10921   lt_count=0;
10922   for (lt_i = NF; lt_i > 0; lt_i--) {
10923     if ($lt_i != "" && $lt_i != ".") {
10924       if ($lt_i == "..") {
10925         lt_count++;
10926       } else {
10927         if (lt_count == 0) {
10928           lt_foo="/" $lt_i lt_foo;
10929         } else {
10930           lt_count--;
10931         }
10932       }
10933     }
10934   }
10935   if (lt_foo != "") { lt_freq[lt_foo]++; }
10936   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10937 }'`
10938   # AWK program above erroneously prepends '/' to C:/dos/paths
10939   # for these hosts.
10940   case $host_os in
10941     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10942       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10943   esac
10944   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10945 else
10946   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10947 fi
10948 library_names_spec=
10949 libname_spec='lib$name'
10950 soname_spec=
10951 shrext_cmds=".so"
10952 postinstall_cmds=
10953 postuninstall_cmds=
10954 finish_cmds=
10955 finish_eval=
10956 shlibpath_var=
10957 shlibpath_overrides_runpath=unknown
10958 version_type=none
10959 dynamic_linker="$host_os ld.so"
10960 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10961 need_lib_prefix=unknown
10962 hardcode_into_libs=no
10963
10964 # when you set need_version to no, make sure it does not cause -set_version
10965 # flags to be left without arguments
10966 need_version=unknown
10967
10968 case $host_os in
10969 aix3*)
10970   version_type=linux
10971   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10972   shlibpath_var=LIBPATH
10973
10974   # AIX 3 has no versioning support, so we append a major version to the name.
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   ;;
10977
10978 aix[4-9]*)
10979   version_type=linux
10980   need_lib_prefix=no
10981   need_version=no
10982   hardcode_into_libs=yes
10983   if test "$host_cpu" = ia64; then
10984     # AIX 5 supports IA64
10985     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10986     shlibpath_var=LD_LIBRARY_PATH
10987   else
10988     # With GCC up to 2.95.x, collect2 would create an import file
10989     # for dependence libraries.  The import file would start with
10990     # the line `#! .'.  This would cause the generated library to
10991     # depend on `.', always an invalid library.  This was fixed in
10992     # development snapshots of GCC prior to 3.0.
10993     case $host_os in
10994       aix4 | aix4.[01] | aix4.[01].*)
10995       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10996            echo ' yes '
10997            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10998         :
10999       else
11000         can_build_shared=no
11001       fi
11002       ;;
11003     esac
11004     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11005     # soname into executable. Probably we can add versioning support to
11006     # collect2, so additional links can be useful in future.
11007     if test "$aix_use_runtimelinking" = yes; then
11008       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11009       # instead of lib<name>.a to let people know that these are not
11010       # typical AIX shared libraries.
11011       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012     else
11013       # We preserve .a as extension for shared libraries through AIX4.2
11014       # and later when we are not doing run time linking.
11015       library_names_spec='${libname}${release}.a $libname.a'
11016       soname_spec='${libname}${release}${shared_ext}$major'
11017     fi
11018     shlibpath_var=LIBPATH
11019   fi
11020   ;;
11021
11022 amigaos*)
11023   case $host_cpu in
11024   powerpc)
11025     # Since July 2007 AmigaOS4 officially supports .so libraries.
11026     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11027     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028     ;;
11029   m68k)
11030     library_names_spec='$libname.ixlibrary $libname.a'
11031     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11032     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11033     ;;
11034   esac
11035   ;;
11036
11037 beos*)
11038   library_names_spec='${libname}${shared_ext}'
11039   dynamic_linker="$host_os ld.so"
11040   shlibpath_var=LIBRARY_PATH
11041   ;;
11042
11043 bsdi[45]*)
11044   version_type=linux
11045   need_version=no
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11051   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11052   # the default ld.so.conf also contains /usr/contrib/lib and
11053   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11054   # libtool to hard-code these into programs
11055   ;;
11056
11057 cygwin* | mingw* | pw32* | cegcc*)
11058   version_type=windows
11059   shrext_cmds=".dll"
11060   need_version=no
11061   need_lib_prefix=no
11062
11063   case $GCC,$cc_basename in
11064   yes,*)
11065     # gcc
11066     library_names_spec='$libname.dll.a'
11067     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11068     postinstall_cmds='base_file=`basename \${file}`~
11069       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11070       dldir=$destdir/`dirname \$dlpath`~
11071       test -d \$dldir || mkdir -p \$dldir~
11072       $install_prog $dir/$dlname \$dldir/$dlname~
11073       chmod a+x \$dldir/$dlname~
11074       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11075         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11076       fi'
11077     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11078       dlpath=$dir/\$dldll~
11079        $RM \$dlpath'
11080     shlibpath_overrides_runpath=yes
11081
11082     case $host_os in
11083     cygwin*)
11084       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11085       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11086
11087       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11088       ;;
11089     mingw* | cegcc*)
11090       # MinGW DLLs use traditional 'lib' prefix
11091       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11092       ;;
11093     pw32*)
11094       # pw32 DLLs use 'pw' prefix rather than 'lib'
11095       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11096       ;;
11097     esac
11098     dynamic_linker='Win32 ld.exe'
11099     ;;
11100
11101   *,cl*)
11102     # Native MSVC
11103     libname_spec='$name'
11104     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11105     library_names_spec='${libname}.dll.lib'
11106
11107     case $build_os in
11108     mingw*)
11109       sys_lib_search_path_spec=
11110       lt_save_ifs=$IFS
11111       IFS=';'
11112       for lt_path in $LIB
11113       do
11114         IFS=$lt_save_ifs
11115         # Let DOS variable expansion print the short 8.3 style file name.
11116         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11117         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11118       done
11119       IFS=$lt_save_ifs
11120       # Convert to MSYS style.
11121       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11122       ;;
11123     cygwin*)
11124       # Convert to unix form, then to dos form, then back to unix form
11125       # but this time dos style (no spaces!) so that the unix form looks
11126       # like /cygdrive/c/PROGRA~1:/cygdr...
11127       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11128       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11129       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11130       ;;
11131     *)
11132       sys_lib_search_path_spec="$LIB"
11133       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11134         # It is most probably a Windows format PATH.
11135         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11136       else
11137         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11138       fi
11139       # FIXME: find the short name or the path components, as spaces are
11140       # common. (e.g. "Program Files" -> "PROGRA~1")
11141       ;;
11142     esac
11143
11144     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11145     postinstall_cmds='base_file=`basename \${file}`~
11146       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11147       dldir=$destdir/`dirname \$dlpath`~
11148       test -d \$dldir || mkdir -p \$dldir~
11149       $install_prog $dir/$dlname \$dldir/$dlname'
11150     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11151       dlpath=$dir/\$dldll~
11152        $RM \$dlpath'
11153     shlibpath_overrides_runpath=yes
11154     dynamic_linker='Win32 link.exe'
11155     ;;
11156
11157   *)
11158     # Assume MSVC wrapper
11159     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11160     dynamic_linker='Win32 ld.exe'
11161     ;;
11162   esac
11163   # FIXME: first we should search . and the directory the executable is in
11164   shlibpath_var=PATH
11165   ;;
11166
11167 darwin* | rhapsody*)
11168   dynamic_linker="$host_os dyld"
11169   version_type=darwin
11170   need_lib_prefix=no
11171   need_version=no
11172   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11173   soname_spec='${libname}${release}${major}$shared_ext'
11174   shlibpath_overrides_runpath=yes
11175   shlibpath_var=DYLD_LIBRARY_PATH
11176   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11177
11178   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11179   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11180   ;;
11181
11182 dgux*)
11183   version_type=linux
11184   need_lib_prefix=no
11185   need_version=no
11186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11187   soname_spec='${libname}${release}${shared_ext}$major'
11188   shlibpath_var=LD_LIBRARY_PATH
11189   ;;
11190
11191 freebsd1*)
11192   dynamic_linker=no
11193   ;;
11194
11195 freebsd* | dragonfly*)
11196   # DragonFly does not have aout.  When/if they implement a new
11197   # versioning mechanism, adjust this.
11198   if test -x /usr/bin/objformat; then
11199     objformat=`/usr/bin/objformat`
11200   else
11201     case $host_os in
11202     freebsd[123]*) objformat=aout ;;
11203     *) objformat=elf ;;
11204     esac
11205   fi
11206   version_type=freebsd-$objformat
11207   case $version_type in
11208     freebsd-elf*)
11209       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11210       need_version=no
11211       need_lib_prefix=no
11212       ;;
11213     freebsd-*)
11214       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11215       need_version=yes
11216       ;;
11217   esac
11218   shlibpath_var=LD_LIBRARY_PATH
11219   case $host_os in
11220   freebsd2*)
11221     shlibpath_overrides_runpath=yes
11222     ;;
11223   freebsd3.[01]* | freebsdelf3.[01]*)
11224     shlibpath_overrides_runpath=yes
11225     hardcode_into_libs=yes
11226     ;;
11227   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11228   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11229     shlibpath_overrides_runpath=no
11230     hardcode_into_libs=yes
11231     ;;
11232   *) # from 4.6 on, and DragonFly
11233     shlibpath_overrides_runpath=yes
11234     hardcode_into_libs=yes
11235     ;;
11236   esac
11237   ;;
11238
11239 gnu*)
11240   version_type=linux
11241   need_lib_prefix=no
11242   need_version=no
11243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11244   soname_spec='${libname}${release}${shared_ext}$major'
11245   shlibpath_var=LD_LIBRARY_PATH
11246   hardcode_into_libs=yes
11247   ;;
11248
11249 haiku*)
11250   version_type=linux
11251   need_lib_prefix=no
11252   need_version=no
11253   dynamic_linker="$host_os runtime_loader"
11254   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11255   soname_spec='${libname}${release}${shared_ext}$major'
11256   shlibpath_var=LIBRARY_PATH
11257   shlibpath_overrides_runpath=yes
11258   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11259   hardcode_into_libs=yes
11260   ;;
11261
11262 hpux9* | hpux10* | hpux11*)
11263   # Give a soname corresponding to the major version so that dld.sl refuses to
11264   # link against other versions.
11265   version_type=sunos
11266   need_lib_prefix=no
11267   need_version=no
11268   case $host_cpu in
11269   ia64*)
11270     shrext_cmds='.so'
11271     hardcode_into_libs=yes
11272     dynamic_linker="$host_os dld.so"
11273     shlibpath_var=LD_LIBRARY_PATH
11274     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276     soname_spec='${libname}${release}${shared_ext}$major'
11277     if test "X$HPUX_IA64_MODE" = X32; then
11278       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11279     else
11280       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11281     fi
11282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11283     ;;
11284   hppa*64*)
11285     shrext_cmds='.sl'
11286     hardcode_into_libs=yes
11287     dynamic_linker="$host_os dld.sl"
11288     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11289     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11291     soname_spec='${libname}${release}${shared_ext}$major'
11292     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11293     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11294     ;;
11295   *)
11296     shrext_cmds='.sl'
11297     dynamic_linker="$host_os dld.sl"
11298     shlibpath_var=SHLIB_PATH
11299     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11301     soname_spec='${libname}${release}${shared_ext}$major'
11302     ;;
11303   esac
11304   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11305   postinstall_cmds='chmod 555 $lib'
11306   # or fails outright, so override atomically:
11307   install_override_mode=555
11308   ;;
11309
11310 interix[3-9]*)
11311   version_type=linux
11312   need_lib_prefix=no
11313   need_version=no
11314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315   soname_spec='${libname}${release}${shared_ext}$major'
11316   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11317   shlibpath_var=LD_LIBRARY_PATH
11318   shlibpath_overrides_runpath=no
11319   hardcode_into_libs=yes
11320   ;;
11321
11322 irix5* | irix6* | nonstopux*)
11323   case $host_os in
11324     nonstopux*) version_type=nonstopux ;;
11325     *)
11326         if test "$lt_cv_prog_gnu_ld" = yes; then
11327                 version_type=linux
11328         else
11329                 version_type=irix
11330         fi ;;
11331   esac
11332   need_lib_prefix=no
11333   need_version=no
11334   soname_spec='${libname}${release}${shared_ext}$major'
11335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11336   case $host_os in
11337   irix5* | nonstopux*)
11338     libsuff= shlibsuff=
11339     ;;
11340   *)
11341     case $LD in # libtool.m4 will add one of these switches to LD
11342     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11343       libsuff= shlibsuff= libmagic=32-bit;;
11344     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11345       libsuff=32 shlibsuff=N32 libmagic=N32;;
11346     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11347       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11348     *) libsuff= shlibsuff= libmagic=never-match;;
11349     esac
11350     ;;
11351   esac
11352   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11353   shlibpath_overrides_runpath=no
11354   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11355   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11356   hardcode_into_libs=yes
11357   ;;
11358
11359 # No shared lib support for Linux oldld, aout, or coff.
11360 linux*oldld* | linux*aout* | linux*coff*)
11361   dynamic_linker=no
11362   ;;
11363
11364 # This must be Linux ELF.
11365 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11366   version_type=linux
11367   need_lib_prefix=no
11368   need_version=no
11369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370   soname_spec='${libname}${release}${shared_ext}$major'
11371   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11372   shlibpath_var=LD_LIBRARY_PATH
11373   shlibpath_overrides_runpath=no
11374
11375   # Some binutils ld are patched to set DT_RUNPATH
11376   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11377   $as_echo_n "(cached) " >&6
11378 else
11379   lt_cv_shlibpath_overrides_runpath=no
11380     save_LDFLAGS=$LDFLAGS
11381     save_libdir=$libdir
11382     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11383          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11384     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385 /* end confdefs.h.  */
11386
11387 int
11388 main ()
11389 {
11390
11391   ;
11392   return 0;
11393 }
11394 _ACEOF
11395 if ac_fn_c_try_link "$LINENO"; then :
11396   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11397   lt_cv_shlibpath_overrides_runpath=yes
11398 fi
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext \
11401     conftest$ac_exeext conftest.$ac_ext
11402     LDFLAGS=$save_LDFLAGS
11403     libdir=$save_libdir
11404
11405 fi
11406
11407   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11408
11409   # This implies no fast_install, which is unacceptable.
11410   # Some rework will be needed to allow for fast_install
11411   # before this can be enabled.
11412   hardcode_into_libs=yes
11413
11414   # Append ld.so.conf contents to the search path
11415   if test -f /etc/ld.so.conf; then
11416     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;s/"//g;/^$/d' | tr '\n' ' '`
11417     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11418   fi
11419
11420   # We used to test for /lib/ld.so.1 and disable shared libraries on
11421   # powerpc, because MkLinux only supported shared libraries with the
11422   # GNU dynamic linker.  Since this was broken with cross compilers,
11423   # most powerpc-linux boxes support dynamic linking these days and
11424   # people can always --disable-shared, the test was removed, and we
11425   # assume the GNU/Linux dynamic linker is in use.
11426   dynamic_linker='GNU/Linux ld.so'
11427   ;;
11428
11429 netbsd*)
11430   version_type=sunos
11431   need_lib_prefix=no
11432   need_version=no
11433   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11434     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11435     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11436     dynamic_linker='NetBSD (a.out) ld.so'
11437   else
11438     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11439     soname_spec='${libname}${release}${shared_ext}$major'
11440     dynamic_linker='NetBSD ld.elf_so'
11441   fi
11442   shlibpath_var=LD_LIBRARY_PATH
11443   shlibpath_overrides_runpath=yes
11444   hardcode_into_libs=yes
11445   ;;
11446
11447 newsos6)
11448   version_type=linux
11449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11450   shlibpath_var=LD_LIBRARY_PATH
11451   shlibpath_overrides_runpath=yes
11452   ;;
11453
11454 *nto* | *qnx*)
11455   version_type=qnx
11456   need_lib_prefix=no
11457   need_version=no
11458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459   soname_spec='${libname}${release}${shared_ext}$major'
11460   shlibpath_var=LD_LIBRARY_PATH
11461   shlibpath_overrides_runpath=no
11462   hardcode_into_libs=yes
11463   dynamic_linker='ldqnx.so'
11464   ;;
11465
11466 openbsd*)
11467   version_type=sunos
11468   sys_lib_dlsearch_path_spec="/usr/lib"
11469   need_lib_prefix=no
11470   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11471   case $host_os in
11472     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11473     *)                          need_version=no  ;;
11474   esac
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11479     case $host_os in
11480       openbsd2.[89] | openbsd2.[89].*)
11481         shlibpath_overrides_runpath=no
11482         ;;
11483       *)
11484         shlibpath_overrides_runpath=yes
11485         ;;
11486       esac
11487   else
11488     shlibpath_overrides_runpath=yes
11489   fi
11490   ;;
11491
11492 os2*)
11493   libname_spec='$name'
11494   shrext_cmds=".dll"
11495   need_lib_prefix=no
11496   library_names_spec='$libname${shared_ext} $libname.a'
11497   dynamic_linker='OS/2 ld.exe'
11498   shlibpath_var=LIBPATH
11499   ;;
11500
11501 osf3* | osf4* | osf5*)
11502   version_type=osf
11503   need_lib_prefix=no
11504   need_version=no
11505   soname_spec='${libname}${release}${shared_ext}$major'
11506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507   shlibpath_var=LD_LIBRARY_PATH
11508   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11509   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11510   ;;
11511
11512 rdos*)
11513   dynamic_linker=no
11514   ;;
11515
11516 solaris*)
11517   version_type=linux
11518   need_lib_prefix=no
11519   need_version=no
11520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521   soname_spec='${libname}${release}${shared_ext}$major'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   shlibpath_overrides_runpath=yes
11524   hardcode_into_libs=yes
11525   # ldd complains unless libraries are executable
11526   postinstall_cmds='chmod +x $lib'
11527   ;;
11528
11529 sunos4*)
11530   version_type=sunos
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11532   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   shlibpath_overrides_runpath=yes
11535   if test "$with_gnu_ld" = yes; then
11536     need_lib_prefix=no
11537   fi
11538   need_version=yes
11539   ;;
11540
11541 sysv4 | sysv4.3*)
11542   version_type=linux
11543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544   soname_spec='${libname}${release}${shared_ext}$major'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   case $host_vendor in
11547     sni)
11548       shlibpath_overrides_runpath=no
11549       need_lib_prefix=no
11550       runpath_var=LD_RUN_PATH
11551       ;;
11552     siemens)
11553       need_lib_prefix=no
11554       ;;
11555     motorola)
11556       need_lib_prefix=no
11557       need_version=no
11558       shlibpath_overrides_runpath=no
11559       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11560       ;;
11561   esac
11562   ;;
11563
11564 sysv4*MP*)
11565   if test -d /usr/nec ;then
11566     version_type=linux
11567     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11568     soname_spec='$libname${shared_ext}.$major'
11569     shlibpath_var=LD_LIBRARY_PATH
11570   fi
11571   ;;
11572
11573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11574   version_type=freebsd-elf
11575   need_lib_prefix=no
11576   need_version=no
11577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11578   soname_spec='${libname}${release}${shared_ext}$major'
11579   shlibpath_var=LD_LIBRARY_PATH
11580   shlibpath_overrides_runpath=yes
11581   hardcode_into_libs=yes
11582   if test "$with_gnu_ld" = yes; then
11583     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11584   else
11585     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11586     case $host_os in
11587       sco3.2v5*)
11588         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11589         ;;
11590     esac
11591   fi
11592   sys_lib_dlsearch_path_spec='/usr/lib'
11593   ;;
11594
11595 tpf*)
11596   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11597   version_type=linux
11598   need_lib_prefix=no
11599   need_version=no
11600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601   shlibpath_var=LD_LIBRARY_PATH
11602   shlibpath_overrides_runpath=no
11603   hardcode_into_libs=yes
11604   ;;
11605
11606 uts4*)
11607   version_type=linux
11608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609   soname_spec='${libname}${release}${shared_ext}$major'
11610   shlibpath_var=LD_LIBRARY_PATH
11611   ;;
11612
11613 *)
11614   dynamic_linker=no
11615   ;;
11616 esac
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11618 $as_echo "$dynamic_linker" >&6; }
11619 test "$dynamic_linker" = no && can_build_shared=no
11620
11621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11622 if test "$GCC" = yes; then
11623   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11624 fi
11625
11626 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11627   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11628 fi
11629 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11630   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11631 fi
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11725 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11726 hardcode_action=
11727 if test -n "$hardcode_libdir_flag_spec" ||
11728    test -n "$runpath_var" ||
11729    test "X$hardcode_automatic" = "Xyes" ; then
11730
11731   # We can hardcode non-existent directories.
11732   if test "$hardcode_direct" != no &&
11733      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11734      # have to relink, otherwise we might link with an installed library
11735      # when we should be linking with a yet-to-be-installed one
11736      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11737      test "$hardcode_minus_L" != no; then
11738     # Linking always hardcodes the temporary library directory.
11739     hardcode_action=relink
11740   else
11741     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11742     hardcode_action=immediate
11743   fi
11744 else
11745   # We cannot hardcode anything, or else we can only hardcode existing
11746   # directories.
11747   hardcode_action=unsupported
11748 fi
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11750 $as_echo "$hardcode_action" >&6; }
11751
11752 if test "$hardcode_action" = relink ||
11753    test "$inherit_rpath" = yes; then
11754   # Fast installation is not supported
11755   enable_fast_install=no
11756 elif test "$shlibpath_overrides_runpath" = yes ||
11757      test "$enable_shared" = no; then
11758   # Fast installation is not necessary
11759   enable_fast_install=needless
11760 fi
11761
11762
11763
11764
11765
11766
11767   if test "x$enable_dlopen" != xyes; then
11768   enable_dlopen=unknown
11769   enable_dlopen_self=unknown
11770   enable_dlopen_self_static=unknown
11771 else
11772   lt_cv_dlopen=no
11773   lt_cv_dlopen_libs=
11774
11775   case $host_os in
11776   beos*)
11777     lt_cv_dlopen="load_add_on"
11778     lt_cv_dlopen_libs=
11779     lt_cv_dlopen_self=yes
11780     ;;
11781
11782   mingw* | pw32* | cegcc*)
11783     lt_cv_dlopen="LoadLibrary"
11784     lt_cv_dlopen_libs=
11785     ;;
11786
11787   cygwin*)
11788     lt_cv_dlopen="dlopen"
11789     lt_cv_dlopen_libs=
11790     ;;
11791
11792   darwin*)
11793   # if libdl is installed we need to link against it
11794     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11795 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11796 if ${ac_cv_lib_dl_dlopen+:} false; then :
11797   $as_echo_n "(cached) " >&6
11798 else
11799   ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-ldl  $LIBS"
11801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11802 /* end confdefs.h.  */
11803
11804 /* Override any GCC internal prototype to avoid an error.
11805    Use char because int might match the return type of a GCC
11806    builtin and then its argument prototype would still apply.  */
11807 #ifdef __cplusplus
11808 extern "C"
11809 #endif
11810 char dlopen ();
11811 int
11812 main ()
11813 {
11814 return dlopen ();
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 if ac_fn_c_try_link "$LINENO"; then :
11820   ac_cv_lib_dl_dlopen=yes
11821 else
11822   ac_cv_lib_dl_dlopen=no
11823 fi
11824 rm -f core conftest.err conftest.$ac_objext \
11825     conftest$ac_exeext conftest.$ac_ext
11826 LIBS=$ac_check_lib_save_LIBS
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11829 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11830 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11831   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11832 else
11833
11834     lt_cv_dlopen="dyld"
11835     lt_cv_dlopen_libs=
11836     lt_cv_dlopen_self=yes
11837
11838 fi
11839
11840     ;;
11841
11842   *)
11843     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11844 if test "x$ac_cv_func_shl_load" = xyes; then :
11845   lt_cv_dlopen="shl_load"
11846 else
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11848 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11849 if ${ac_cv_lib_dld_shl_load+:} false; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   ac_check_lib_save_LIBS=$LIBS
11853 LIBS="-ldld  $LIBS"
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h.  */
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858    Use char because int might match the return type of a GCC
11859    builtin and then its argument prototype would still apply.  */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char shl_load ();
11864 int
11865 main ()
11866 {
11867 return shl_load ();
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_link "$LINENO"; then :
11873   ac_cv_lib_dld_shl_load=yes
11874 else
11875   ac_cv_lib_dld_shl_load=no
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext \
11878     conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11882 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11883 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11884   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11885 else
11886   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11887 if test "x$ac_cv_func_dlopen" = xyes; then :
11888   lt_cv_dlopen="dlopen"
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11891 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11892 if ${ac_cv_lib_dl_dlopen+:} false; then :
11893   $as_echo_n "(cached) " >&6
11894 else
11895   ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-ldl  $LIBS"
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h.  */
11899
11900 /* Override any GCC internal prototype to avoid an error.
11901    Use char because int might match the return type of a GCC
11902    builtin and then its argument prototype would still apply.  */
11903 #ifdef __cplusplus
11904 extern "C"
11905 #endif
11906 char dlopen ();
11907 int
11908 main ()
11909 {
11910 return dlopen ();
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 if ac_fn_c_try_link "$LINENO"; then :
11916   ac_cv_lib_dl_dlopen=yes
11917 else
11918   ac_cv_lib_dl_dlopen=no
11919 fi
11920 rm -f core conftest.err conftest.$ac_objext \
11921     conftest$ac_exeext conftest.$ac_ext
11922 LIBS=$ac_check_lib_save_LIBS
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11925 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11926 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11927   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11928 else
11929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11930 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11931 if ${ac_cv_lib_svld_dlopen+:} false; then :
11932   $as_echo_n "(cached) " >&6
11933 else
11934   ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-lsvld  $LIBS"
11936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11937 /* end confdefs.h.  */
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940    Use char because int might match the return type of a GCC
11941    builtin and then its argument prototype would still apply.  */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char dlopen ();
11946 int
11947 main ()
11948 {
11949 return dlopen ();
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 if ac_fn_c_try_link "$LINENO"; then :
11955   ac_cv_lib_svld_dlopen=yes
11956 else
11957   ac_cv_lib_svld_dlopen=no
11958 fi
11959 rm -f core conftest.err conftest.$ac_objext \
11960     conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_check_lib_save_LIBS
11962 fi
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11964 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11965 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11966   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11967 else
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11969 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11970 if ${ac_cv_lib_dld_dld_link+:} false; then :
11971   $as_echo_n "(cached) " >&6
11972 else
11973   ac_check_lib_save_LIBS=$LIBS
11974 LIBS="-ldld  $LIBS"
11975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11976 /* end confdefs.h.  */
11977
11978 /* Override any GCC internal prototype to avoid an error.
11979    Use char because int might match the return type of a GCC
11980    builtin and then its argument prototype would still apply.  */
11981 #ifdef __cplusplus
11982 extern "C"
11983 #endif
11984 char dld_link ();
11985 int
11986 main ()
11987 {
11988 return dld_link ();
11989   ;
11990   return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_link "$LINENO"; then :
11994   ac_cv_lib_dld_dld_link=yes
11995 else
11996   ac_cv_lib_dld_dld_link=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext \
11999     conftest$ac_exeext conftest.$ac_ext
12000 LIBS=$ac_check_lib_save_LIBS
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12003 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12004 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12005   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12006 fi
12007
12008
12009 fi
12010
12011
12012 fi
12013
12014
12015 fi
12016
12017
12018 fi
12019
12020
12021 fi
12022
12023     ;;
12024   esac
12025
12026   if test "x$lt_cv_dlopen" != xno; then
12027     enable_dlopen=yes
12028   else
12029     enable_dlopen=no
12030   fi
12031
12032   case $lt_cv_dlopen in
12033   dlopen)
12034     save_CPPFLAGS="$CPPFLAGS"
12035     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12036
12037     save_LDFLAGS="$LDFLAGS"
12038     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12039
12040     save_LIBS="$LIBS"
12041     LIBS="$lt_cv_dlopen_libs $LIBS"
12042
12043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12044 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12045 if ${lt_cv_dlopen_self+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048           if test "$cross_compiling" = yes; then :
12049   lt_cv_dlopen_self=cross
12050 else
12051   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12052   lt_status=$lt_dlunknown
12053   cat > conftest.$ac_ext <<_LT_EOF
12054 #line $LINENO "configure"
12055 #include "confdefs.h"
12056
12057 #if HAVE_DLFCN_H
12058 #include <dlfcn.h>
12059 #endif
12060
12061 #include <stdio.h>
12062
12063 #ifdef RTLD_GLOBAL
12064 #  define LT_DLGLOBAL           RTLD_GLOBAL
12065 #else
12066 #  ifdef DL_GLOBAL
12067 #    define LT_DLGLOBAL         DL_GLOBAL
12068 #  else
12069 #    define LT_DLGLOBAL         0
12070 #  endif
12071 #endif
12072
12073 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12074    find out it does not work in some platform. */
12075 #ifndef LT_DLLAZY_OR_NOW
12076 #  ifdef RTLD_LAZY
12077 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12078 #  else
12079 #    ifdef DL_LAZY
12080 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12081 #    else
12082 #      ifdef RTLD_NOW
12083 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12084 #      else
12085 #        ifdef DL_NOW
12086 #          define LT_DLLAZY_OR_NOW      DL_NOW
12087 #        else
12088 #          define LT_DLLAZY_OR_NOW      0
12089 #        endif
12090 #      endif
12091 #    endif
12092 #  endif
12093 #endif
12094
12095 /* When -fvisbility=hidden is used, assume the code has been annotated
12096    correspondingly for the symbols needed.  */
12097 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12098 int fnord () __attribute__((visibility("default")));
12099 #endif
12100
12101 int fnord () { return 42; }
12102 int main ()
12103 {
12104   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12105   int status = $lt_dlunknown;
12106
12107   if (self)
12108     {
12109       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12110       else
12111         {
12112           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12113           else puts (dlerror ());
12114         }
12115       /* dlclose (self); */
12116     }
12117   else
12118     puts (dlerror ());
12119
12120   return status;
12121 }
12122 _LT_EOF
12123   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12124   (eval $ac_link) 2>&5
12125   ac_status=$?
12126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12127   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12128     (./conftest; exit; ) >&5 2>/dev/null
12129     lt_status=$?
12130     case x$lt_status in
12131       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12132       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12133       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12134     esac
12135   else :
12136     # compilation failed
12137     lt_cv_dlopen_self=no
12138   fi
12139 fi
12140 rm -fr conftest*
12141
12142
12143 fi
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12145 $as_echo "$lt_cv_dlopen_self" >&6; }
12146
12147     if test "x$lt_cv_dlopen_self" = xyes; then
12148       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12149       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12150 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12151 if ${lt_cv_dlopen_self_static+:} false; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154           if test "$cross_compiling" = yes; then :
12155   lt_cv_dlopen_self_static=cross
12156 else
12157   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12158   lt_status=$lt_dlunknown
12159   cat > conftest.$ac_ext <<_LT_EOF
12160 #line $LINENO "configure"
12161 #include "confdefs.h"
12162
12163 #if HAVE_DLFCN_H
12164 #include <dlfcn.h>
12165 #endif
12166
12167 #include <stdio.h>
12168
12169 #ifdef RTLD_GLOBAL
12170 #  define LT_DLGLOBAL           RTLD_GLOBAL
12171 #else
12172 #  ifdef DL_GLOBAL
12173 #    define LT_DLGLOBAL         DL_GLOBAL
12174 #  else
12175 #    define LT_DLGLOBAL         0
12176 #  endif
12177 #endif
12178
12179 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12180    find out it does not work in some platform. */
12181 #ifndef LT_DLLAZY_OR_NOW
12182 #  ifdef RTLD_LAZY
12183 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12184 #  else
12185 #    ifdef DL_LAZY
12186 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12187 #    else
12188 #      ifdef RTLD_NOW
12189 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12190 #      else
12191 #        ifdef DL_NOW
12192 #          define LT_DLLAZY_OR_NOW      DL_NOW
12193 #        else
12194 #          define LT_DLLAZY_OR_NOW      0
12195 #        endif
12196 #      endif
12197 #    endif
12198 #  endif
12199 #endif
12200
12201 /* When -fvisbility=hidden is used, assume the code has been annotated
12202    correspondingly for the symbols needed.  */
12203 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12204 int fnord () __attribute__((visibility("default")));
12205 #endif
12206
12207 int fnord () { return 42; }
12208 int main ()
12209 {
12210   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211   int status = $lt_dlunknown;
12212
12213   if (self)
12214     {
12215       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12216       else
12217         {
12218           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12219           else puts (dlerror ());
12220         }
12221       /* dlclose (self); */
12222     }
12223   else
12224     puts (dlerror ());
12225
12226   return status;
12227 }
12228 _LT_EOF
12229   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12230   (eval $ac_link) 2>&5
12231   ac_status=$?
12232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12234     (./conftest; exit; ) >&5 2>/dev/null
12235     lt_status=$?
12236     case x$lt_status in
12237       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12238       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12239       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12240     esac
12241   else :
12242     # compilation failed
12243     lt_cv_dlopen_self_static=no
12244   fi
12245 fi
12246 rm -fr conftest*
12247
12248
12249 fi
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12251 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12252     fi
12253
12254     CPPFLAGS="$save_CPPFLAGS"
12255     LDFLAGS="$save_LDFLAGS"
12256     LIBS="$save_LIBS"
12257     ;;
12258   esac
12259
12260   case $lt_cv_dlopen_self in
12261   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12262   *) enable_dlopen_self=unknown ;;
12263   esac
12264
12265   case $lt_cv_dlopen_self_static in
12266   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12267   *) enable_dlopen_self_static=unknown ;;
12268   esac
12269 fi
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287 striplib=
12288 old_striplib=
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12290 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12291 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12292   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12293   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12295 $as_echo "yes" >&6; }
12296 else
12297 # FIXME - insert some real tests, host_os isn't really good enough
12298   case $host_os in
12299   darwin*)
12300     if test -n "$STRIP" ; then
12301       striplib="$STRIP -x"
12302       old_striplib="$STRIP -S"
12303       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12304 $as_echo "yes" >&6; }
12305     else
12306       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307 $as_echo "no" >&6; }
12308     fi
12309     ;;
12310   *)
12311     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12312 $as_echo "no" >&6; }
12313     ;;
12314   esac
12315 fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328   # Report which library types will actually be built
12329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12330 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12332 $as_echo "$can_build_shared" >&6; }
12333
12334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12335 $as_echo_n "checking whether to build shared libraries... " >&6; }
12336   test "$can_build_shared" = "no" && enable_shared=no
12337
12338   # On AIX, shared libraries and static libraries use the same namespace, and
12339   # are all built from PIC.
12340   case $host_os in
12341   aix3*)
12342     test "$enable_shared" = yes && enable_static=no
12343     if test -n "$RANLIB"; then
12344       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12345       postinstall_cmds='$RANLIB $lib'
12346     fi
12347     ;;
12348
12349   aix[4-9]*)
12350     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12351       test "$enable_shared" = yes && enable_static=no
12352     fi
12353     ;;
12354   esac
12355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12356 $as_echo "$enable_shared" >&6; }
12357
12358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12359 $as_echo_n "checking whether to build static libraries... " >&6; }
12360   # Make sure either enable_shared or enable_static is yes.
12361   test "$enable_shared" = yes || enable_static=yes
12362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12363 $as_echo "$enable_static" >&6; }
12364
12365
12366
12367
12368 fi
12369 ac_ext=c
12370 ac_cpp='$CPP $CPPFLAGS'
12371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12374
12375 CC="$lt_save_CC"
12376
12377       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12378     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12379     (test "X$CXX" != "Xg++"))) ; then
12380   ac_ext=cpp
12381 ac_cpp='$CXXCPP $CPPFLAGS'
12382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12386 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12387 if test -z "$CXXCPP"; then
12388   if ${ac_cv_prog_CXXCPP+:} false; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391       # Double quotes because CXXCPP needs to be expanded
12392     for CXXCPP in "$CXX -E" "/lib/cpp"
12393     do
12394       ac_preproc_ok=false
12395 for ac_cxx_preproc_warn_flag in '' yes
12396 do
12397   # Use a header file that comes with gcc, so configuring glibc
12398   # with a fresh cross-compiler works.
12399   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12400   # <limits.h> exists even on freestanding compilers.
12401   # On the NeXT, cc -E runs the code through the compiler's parser,
12402   # not just through cpp. "Syntax error" is here to catch this case.
12403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 /* end confdefs.h.  */
12405 #ifdef __STDC__
12406 # include <limits.h>
12407 #else
12408 # include <assert.h>
12409 #endif
12410                      Syntax error
12411 _ACEOF
12412 if ac_fn_cxx_try_cpp "$LINENO"; then :
12413
12414 else
12415   # Broken: fails on valid input.
12416 continue
12417 fi
12418 rm -f conftest.err conftest.i conftest.$ac_ext
12419
12420   # OK, works on sane cases.  Now check whether nonexistent headers
12421   # can be detected and how.
12422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h.  */
12424 #include <ac_nonexistent.h>
12425 _ACEOF
12426 if ac_fn_cxx_try_cpp "$LINENO"; then :
12427   # Broken: success on invalid input.
12428 continue
12429 else
12430   # Passes both tests.
12431 ac_preproc_ok=:
12432 break
12433 fi
12434 rm -f conftest.err conftest.i conftest.$ac_ext
12435
12436 done
12437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12438 rm -f conftest.i conftest.err conftest.$ac_ext
12439 if $ac_preproc_ok; then :
12440   break
12441 fi
12442
12443     done
12444     ac_cv_prog_CXXCPP=$CXXCPP
12445
12446 fi
12447   CXXCPP=$ac_cv_prog_CXXCPP
12448 else
12449   ac_cv_prog_CXXCPP=$CXXCPP
12450 fi
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12452 $as_echo "$CXXCPP" >&6; }
12453 ac_preproc_ok=false
12454 for ac_cxx_preproc_warn_flag in '' yes
12455 do
12456   # Use a header file that comes with gcc, so configuring glibc
12457   # with a fresh cross-compiler works.
12458   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12459   # <limits.h> exists even on freestanding compilers.
12460   # On the NeXT, cc -E runs the code through the compiler's parser,
12461   # not just through cpp. "Syntax error" is here to catch this case.
12462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h.  */
12464 #ifdef __STDC__
12465 # include <limits.h>
12466 #else
12467 # include <assert.h>
12468 #endif
12469                      Syntax error
12470 _ACEOF
12471 if ac_fn_cxx_try_cpp "$LINENO"; then :
12472
12473 else
12474   # Broken: fails on valid input.
12475 continue
12476 fi
12477 rm -f conftest.err conftest.i conftest.$ac_ext
12478
12479   # OK, works on sane cases.  Now check whether nonexistent headers
12480   # can be detected and how.
12481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h.  */
12483 #include <ac_nonexistent.h>
12484 _ACEOF
12485 if ac_fn_cxx_try_cpp "$LINENO"; then :
12486   # Broken: success on invalid input.
12487 continue
12488 else
12489   # Passes both tests.
12490 ac_preproc_ok=:
12491 break
12492 fi
12493 rm -f conftest.err conftest.i conftest.$ac_ext
12494
12495 done
12496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12497 rm -f conftest.i conftest.err conftest.$ac_ext
12498 if $ac_preproc_ok; then :
12499
12500 else
12501   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12503 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12504 See \`config.log' for more details" "$LINENO" 5 ; }
12505 fi
12506
12507 ac_ext=c
12508 ac_cpp='$CPP $CPPFLAGS'
12509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12512
12513 else
12514   _lt_caught_CXX_error=yes
12515 fi
12516
12517 ac_ext=cpp
12518 ac_cpp='$CXXCPP $CPPFLAGS'
12519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12522
12523 archive_cmds_need_lc_CXX=no
12524 allow_undefined_flag_CXX=
12525 always_export_symbols_CXX=no
12526 archive_expsym_cmds_CXX=
12527 compiler_needs_object_CXX=no
12528 export_dynamic_flag_spec_CXX=
12529 hardcode_direct_CXX=no
12530 hardcode_direct_absolute_CXX=no
12531 hardcode_libdir_flag_spec_CXX=
12532 hardcode_libdir_flag_spec_ld_CXX=
12533 hardcode_libdir_separator_CXX=
12534 hardcode_minus_L_CXX=no
12535 hardcode_shlibpath_var_CXX=unsupported
12536 hardcode_automatic_CXX=no
12537 inherit_rpath_CXX=no
12538 module_cmds_CXX=
12539 module_expsym_cmds_CXX=
12540 link_all_deplibs_CXX=unknown
12541 old_archive_cmds_CXX=$old_archive_cmds
12542 reload_flag_CXX=$reload_flag
12543 reload_cmds_CXX=$reload_cmds
12544 no_undefined_flag_CXX=
12545 whole_archive_flag_spec_CXX=
12546 enable_shared_with_static_runtimes_CXX=no
12547
12548 # Source file extension for C++ test sources.
12549 ac_ext=cpp
12550
12551 # Object file extension for compiled C++ test sources.
12552 objext=o
12553 objext_CXX=$objext
12554
12555 # No sense in running all these tests if we already determined that
12556 # the CXX compiler isn't working.  Some variables (like enable_shared)
12557 # are currently assumed to apply to all compilers on this platform,
12558 # and will be corrupted by setting them based on a non-working compiler.
12559 if test "$_lt_caught_CXX_error" != yes; then
12560   # Code to be used in simple compile tests
12561   lt_simple_compile_test_code="int some_variable = 0;"
12562
12563   # Code to be used in simple link tests
12564   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12565
12566   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12567
12568
12569
12570
12571
12572
12573 # If no C compiler was specified, use CC.
12574 LTCC=${LTCC-"$CC"}
12575
12576 # If no C compiler flags were specified, use CFLAGS.
12577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12578
12579 # Allow CC to be a program name with arguments.
12580 compiler=$CC
12581
12582
12583   # save warnings/boilerplate of simple test code
12584   ac_outfile=conftest.$ac_objext
12585 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12586 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12587 _lt_compiler_boilerplate=`cat conftest.err`
12588 $RM conftest*
12589
12590   ac_outfile=conftest.$ac_objext
12591 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12592 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12593 _lt_linker_boilerplate=`cat conftest.err`
12594 $RM -r conftest*
12595
12596
12597   # Allow CC to be a program name with arguments.
12598   lt_save_CC=$CC
12599   lt_save_CFLAGS=$CFLAGS
12600   lt_save_LD=$LD
12601   lt_save_GCC=$GCC
12602   GCC=$GXX
12603   lt_save_with_gnu_ld=$with_gnu_ld
12604   lt_save_path_LD=$lt_cv_path_LD
12605   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12606     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12607   else
12608     $as_unset lt_cv_prog_gnu_ld
12609   fi
12610   if test -n "${lt_cv_path_LDCXX+set}"; then
12611     lt_cv_path_LD=$lt_cv_path_LDCXX
12612   else
12613     $as_unset lt_cv_path_LD
12614   fi
12615   test -z "${LDCXX+set}" || LD=$LDCXX
12616   CC=${CXX-"c++"}
12617   CFLAGS=$CXXFLAGS
12618   compiler=$CC
12619   compiler_CXX=$CC
12620   for cc_temp in $compiler""; do
12621   case $cc_temp in
12622     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12623     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12624     \-*) ;;
12625     *) break;;
12626   esac
12627 done
12628 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12629
12630
12631   if test -n "$compiler"; then
12632     # We don't want -fno-exception when compiling C++ code, so set the
12633     # no_builtin_flag separately
12634     if test "$GXX" = yes; then
12635       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12636     else
12637       lt_prog_compiler_no_builtin_flag_CXX=
12638     fi
12639
12640     if test "$GXX" = yes; then
12641       # Set up default GNU C++ configuration
12642
12643
12644
12645 # Check whether --with-gnu-ld was given.
12646 if test "${with_gnu_ld+set}" = set; then :
12647   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12648 else
12649   with_gnu_ld=no
12650 fi
12651
12652 ac_prog=ld
12653 if test "$GCC" = yes; then
12654   # Check if gcc -print-prog-name=ld gives a path.
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12656 $as_echo_n "checking for ld used by $CC... " >&6; }
12657   case $host in
12658   *-*-mingw*)
12659     # gcc leaves a trailing carriage return which upsets mingw
12660     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12661   *)
12662     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12663   esac
12664   case $ac_prog in
12665     # Accept absolute paths.
12666     [\\/]* | ?:[\\/]*)
12667       re_direlt='/[^/][^/]*/\.\./'
12668       # Canonicalize the pathname of ld
12669       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12670       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12671         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12672       done
12673       test -z "$LD" && LD="$ac_prog"
12674       ;;
12675   "")
12676     # If it fails, then pretend we aren't using GCC.
12677     ac_prog=ld
12678     ;;
12679   *)
12680     # If it is relative, then search for the first ld in PATH.
12681     with_gnu_ld=unknown
12682     ;;
12683   esac
12684 elif test "$with_gnu_ld" = yes; then
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12686 $as_echo_n "checking for GNU ld... " >&6; }
12687 else
12688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12689 $as_echo_n "checking for non-GNU ld... " >&6; }
12690 fi
12691 if ${lt_cv_path_LD+:} false; then :
12692   $as_echo_n "(cached) " >&6
12693 else
12694   if test -z "$LD"; then
12695   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12696   for ac_dir in $PATH; do
12697     IFS="$lt_save_ifs"
12698     test -z "$ac_dir" && ac_dir=.
12699     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12700       lt_cv_path_LD="$ac_dir/$ac_prog"
12701       # Check to see if the program is GNU ld.  I'd rather use --version,
12702       # but apparently some variants of GNU ld only accept -v.
12703       # Break only if it was the GNU/non-GNU ld that we prefer.
12704       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12705       *GNU* | *'with BFD'*)
12706         test "$with_gnu_ld" != no && break
12707         ;;
12708       *)
12709         test "$with_gnu_ld" != yes && break
12710         ;;
12711       esac
12712     fi
12713   done
12714   IFS="$lt_save_ifs"
12715 else
12716   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12717 fi
12718 fi
12719
12720 LD="$lt_cv_path_LD"
12721 if test -n "$LD"; then
12722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12723 $as_echo "$LD" >&6; }
12724 else
12725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12727 fi
12728 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12730 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12731 if ${lt_cv_prog_gnu_ld+:} false; then :
12732   $as_echo_n "(cached) " >&6
12733 else
12734   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12735 case `$LD -v 2>&1 </dev/null` in
12736 *GNU* | *'with BFD'*)
12737   lt_cv_prog_gnu_ld=yes
12738   ;;
12739 *)
12740   lt_cv_prog_gnu_ld=no
12741   ;;
12742 esac
12743 fi
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12745 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12746 with_gnu_ld=$lt_cv_prog_gnu_ld
12747
12748
12749
12750
12751
12752
12753
12754       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12755       # archiving commands below assume that GNU ld is being used.
12756       if test "$with_gnu_ld" = yes; then
12757         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12758         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12759
12760         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12761         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12762
12763         # If archive_cmds runs LD, not CC, wlarc should be empty
12764         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12765         #     investigate it a little bit more. (MM)
12766         wlarc='${wl}'
12767
12768         # ancient GNU ld didn't support --whole-archive et. al.
12769         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12770           $GREP 'no-whole-archive' > /dev/null; then
12771           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12772         else
12773           whole_archive_flag_spec_CXX=
12774         fi
12775       else
12776         with_gnu_ld=no
12777         wlarc=
12778
12779         # A generic and very simple default shared library creation
12780         # command for GNU C++ for the case where it uses the native
12781         # linker, instead of GNU ld.  If possible, this setting should
12782         # overridden to take advantage of the native linker features on
12783         # the platform it is being used on.
12784         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12785       fi
12786
12787       # Commands to make compiler produce verbose output that lists
12788       # what "hidden" libraries, object files and flags are used when
12789       # linking a shared library.
12790       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12791
12792     else
12793       GXX=no
12794       with_gnu_ld=no
12795       wlarc=
12796     fi
12797
12798     # PORTME: fill in a description of your system's C++ link characteristics
12799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12800 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12801     ld_shlibs_CXX=yes
12802     case $host_os in
12803       aix3*)
12804         # FIXME: insert proper C++ library support
12805         ld_shlibs_CXX=no
12806         ;;
12807       aix[4-9]*)
12808         if test "$host_cpu" = ia64; then
12809           # On IA64, the linker does run time linking by default, so we don't
12810           # have to do anything special.
12811           aix_use_runtimelinking=no
12812           exp_sym_flag='-Bexport'
12813           no_entry_flag=""
12814         else
12815           aix_use_runtimelinking=no
12816
12817           # Test if we are trying to use run time linking or normal
12818           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12819           # need to do runtime linking.
12820           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12821             for ld_flag in $LDFLAGS; do
12822               case $ld_flag in
12823               *-brtl*)
12824                 aix_use_runtimelinking=yes
12825                 break
12826                 ;;
12827               esac
12828             done
12829             ;;
12830           esac
12831
12832           exp_sym_flag='-bexport'
12833           no_entry_flag='-bnoentry'
12834         fi
12835
12836         # When large executables or shared objects are built, AIX ld can
12837         # have problems creating the table of contents.  If linking a library
12838         # or program results in "error TOC overflow" add -mminimal-toc to
12839         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12840         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12841
12842         archive_cmds_CXX=''
12843         hardcode_direct_CXX=yes
12844         hardcode_direct_absolute_CXX=yes
12845         hardcode_libdir_separator_CXX=':'
12846         link_all_deplibs_CXX=yes
12847         file_list_spec_CXX='${wl}-f,'
12848
12849         if test "$GXX" = yes; then
12850           case $host_os in aix4.[012]|aix4.[012].*)
12851           # We only want to do this on AIX 4.2 and lower, the check
12852           # below for broken collect2 doesn't work under 4.3+
12853           collect2name=`${CC} -print-prog-name=collect2`
12854           if test -f "$collect2name" &&
12855              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12856           then
12857             # We have reworked collect2
12858             :
12859           else
12860             # We have old collect2
12861             hardcode_direct_CXX=unsupported
12862             # It fails to find uninstalled libraries when the uninstalled
12863             # path is not listed in the libpath.  Setting hardcode_minus_L
12864             # to unsupported forces relinking
12865             hardcode_minus_L_CXX=yes
12866             hardcode_libdir_flag_spec_CXX='-L$libdir'
12867             hardcode_libdir_separator_CXX=
12868           fi
12869           esac
12870           shared_flag='-shared'
12871           if test "$aix_use_runtimelinking" = yes; then
12872             shared_flag="$shared_flag "'${wl}-G'
12873           fi
12874         else
12875           # not using gcc
12876           if test "$host_cpu" = ia64; then
12877           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12878           # chokes on -Wl,-G. The following line is correct:
12879           shared_flag='-G'
12880           else
12881             if test "$aix_use_runtimelinking" = yes; then
12882               shared_flag='${wl}-G'
12883             else
12884               shared_flag='${wl}-bM:SRE'
12885             fi
12886           fi
12887         fi
12888
12889         export_dynamic_flag_spec_CXX='${wl}-bexpall'
12890         # It seems that -bexpall does not export symbols beginning with
12891         # underscore (_), so it is better to generate a list of symbols to
12892         # export.
12893         always_export_symbols_CXX=yes
12894         if test "$aix_use_runtimelinking" = yes; then
12895           # Warning - without using the other runtime loading flags (-brtl),
12896           # -berok will link without error, but may produce a broken library.
12897           allow_undefined_flag_CXX='-berok'
12898           # Determine the default libpath from the value encoded in an empty
12899           # executable.
12900           if test "${lt_cv_aix_libpath+set}" = set; then
12901   aix_libpath=$lt_cv_aix_libpath
12902 else
12903   if ${lt_cv_aix_libpath__CXX+:} false; then :
12904   $as_echo_n "(cached) " >&6
12905 else
12906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12907 /* end confdefs.h.  */
12908
12909 int
12910 main ()
12911 {
12912
12913   ;
12914   return 0;
12915 }
12916 _ACEOF
12917 if ac_fn_cxx_try_link "$LINENO"; then :
12918
12919   lt_aix_libpath_sed='
12920       /Import File Strings/,/^$/ {
12921           /^0/ {
12922               s/^0  *\([^ ]*\) *$/\1/
12923               p
12924           }
12925       }'
12926   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12927   # Check for a 64-bit object if we didn't find anything.
12928   if test -z "$lt_cv_aix_libpath__CXX"; then
12929     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12930   fi
12931 fi
12932 rm -f core conftest.err conftest.$ac_objext \
12933     conftest$ac_exeext conftest.$ac_ext
12934   if test -z "$lt_cv_aix_libpath__CXX"; then
12935     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12936   fi
12937
12938 fi
12939
12940   aix_libpath=$lt_cv_aix_libpath__CXX
12941 fi
12942
12943           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12944
12945           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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12946         else
12947           if test "$host_cpu" = ia64; then
12948             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12949             allow_undefined_flag_CXX="-z nodefs"
12950             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"
12951           else
12952             # Determine the default libpath from the value encoded in an
12953             # empty executable.
12954             if test "${lt_cv_aix_libpath+set}" = set; then
12955   aix_libpath=$lt_cv_aix_libpath
12956 else
12957   if ${lt_cv_aix_libpath__CXX+:} false; then :
12958   $as_echo_n "(cached) " >&6
12959 else
12960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h.  */
12962
12963 int
12964 main ()
12965 {
12966
12967   ;
12968   return 0;
12969 }
12970 _ACEOF
12971 if ac_fn_cxx_try_link "$LINENO"; then :
12972
12973   lt_aix_libpath_sed='
12974       /Import File Strings/,/^$/ {
12975           /^0/ {
12976               s/^0  *\([^ ]*\) *$/\1/
12977               p
12978           }
12979       }'
12980   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12981   # Check for a 64-bit object if we didn't find anything.
12982   if test -z "$lt_cv_aix_libpath__CXX"; then
12983     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12984   fi
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext \
12987     conftest$ac_exeext conftest.$ac_ext
12988   if test -z "$lt_cv_aix_libpath__CXX"; then
12989     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12990   fi
12991
12992 fi
12993
12994   aix_libpath=$lt_cv_aix_libpath__CXX
12995 fi
12996
12997             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12998             # Warning - without using the other run time loading flags,
12999             # -berok will link without error, but may produce a broken library.
13000             no_undefined_flag_CXX=' ${wl}-bernotok'
13001             allow_undefined_flag_CXX=' ${wl}-berok'
13002             if test "$with_gnu_ld" = yes; then
13003               # We only use this code for GNU lds that support --whole-archive.
13004               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13005             else
13006               # Exported symbols can be pulled into shared objects from archives
13007               whole_archive_flag_spec_CXX='$convenience'
13008             fi
13009             archive_cmds_need_lc_CXX=yes
13010             # This is similar to how AIX traditionally builds its shared
13011             # libraries.
13012             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'
13013           fi
13014         fi
13015         ;;
13016
13017       beos*)
13018         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13019           allow_undefined_flag_CXX=unsupported
13020           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13021           # support --undefined.  This deserves some investigation.  FIXME
13022           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023         else
13024           ld_shlibs_CXX=no
13025         fi
13026         ;;
13027
13028       chorus*)
13029         case $cc_basename in
13030           *)
13031           # FIXME: insert proper C++ library support
13032           ld_shlibs_CXX=no
13033           ;;
13034         esac
13035         ;;
13036
13037       cygwin* | mingw* | pw32* | cegcc*)
13038         case $GXX,$cc_basename in
13039         ,cl* | no,cl*)
13040           # Native MSVC
13041           # hardcode_libdir_flag_spec is actually meaningless, as there is
13042           # no search path for DLLs.
13043           hardcode_libdir_flag_spec_CXX=' '
13044           allow_undefined_flag_CXX=unsupported
13045           always_export_symbols_CXX=yes
13046           file_list_spec_CXX='@'
13047           # Tell ltmain to make .lib files, not .a files.
13048           libext=lib
13049           # Tell ltmain to make .dll files, not .so files.
13050           shrext_cmds=".dll"
13051           # FIXME: Setting linknames here is a bad hack.
13052           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13053           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13054               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13055             else
13056               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13057             fi~
13058             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13059             linknames='
13060           # The linker will not automatically build a static lib if we build a DLL.
13061           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13062           enable_shared_with_static_runtimes_CXX=yes
13063           # Don't use ranlib
13064           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13065           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13066             lt_tool_outputfile="@TOOL_OUTPUT@"~
13067             case $lt_outputfile in
13068               *.exe|*.EXE) ;;
13069               *)
13070                 lt_outputfile="$lt_outputfile.exe"
13071                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13072                 ;;
13073             esac~
13074             func_to_tool_file "$lt_outputfile"~
13075             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13076               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13077               $RM "$lt_outputfile.manifest";
13078             fi'
13079           ;;
13080         *)
13081           # g++
13082           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13083           # as there is no search path for DLLs.
13084           hardcode_libdir_flag_spec_CXX='-L$libdir'
13085           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13086           allow_undefined_flag_CXX=unsupported
13087           always_export_symbols_CXX=no
13088           enable_shared_with_static_runtimes_CXX=yes
13089
13090           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13091             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'
13092             # If the export-symbols file already is a .def file (1st line
13093             # is EXPORTS), use it as is; otherwise, prepend...
13094             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13095               cp $export_symbols $output_objdir/$soname.def;
13096             else
13097               echo EXPORTS > $output_objdir/$soname.def;
13098               cat $export_symbols >> $output_objdir/$soname.def;
13099             fi~
13100             $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'
13101           else
13102             ld_shlibs_CXX=no
13103           fi
13104           ;;
13105         esac
13106         ;;
13107       darwin* | rhapsody*)
13108
13109
13110   archive_cmds_need_lc_CXX=no
13111   hardcode_direct_CXX=no
13112   hardcode_automatic_CXX=yes
13113   hardcode_shlibpath_var_CXX=unsupported
13114   if test "$lt_cv_ld_force_load" = "yes"; then
13115     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13116   else
13117     whole_archive_flag_spec_CXX=''
13118   fi
13119   link_all_deplibs_CXX=yes
13120   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13121   case $cc_basename in
13122      ifort*) _lt_dar_can_shared=yes ;;
13123      *) _lt_dar_can_shared=$GCC ;;
13124   esac
13125   if test "$_lt_dar_can_shared" = "yes"; then
13126     output_verbose_link_cmd=func_echo_all
13127     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}"
13128     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13129     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}"
13130     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}"
13131        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13132       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}"
13133       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}"
13134     fi
13135
13136   else
13137   ld_shlibs_CXX=no
13138   fi
13139
13140         ;;
13141
13142       dgux*)
13143         case $cc_basename in
13144           ec++*)
13145             # FIXME: insert proper C++ library support
13146             ld_shlibs_CXX=no
13147             ;;
13148           ghcx*)
13149             # Green Hills C++ Compiler
13150             # FIXME: insert proper C++ library support
13151             ld_shlibs_CXX=no
13152             ;;
13153           *)
13154             # FIXME: insert proper C++ library support
13155             ld_shlibs_CXX=no
13156             ;;
13157         esac
13158         ;;
13159
13160       freebsd[12]*)
13161         # C++ shared libraries reported to be fairly broken before
13162         # switch to ELF
13163         ld_shlibs_CXX=no
13164         ;;
13165
13166       freebsd-elf*)
13167         archive_cmds_need_lc_CXX=no
13168         ;;
13169
13170       freebsd* | dragonfly*)
13171         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13172         # conventions
13173         ld_shlibs_CXX=yes
13174         ;;
13175
13176       gnu*)
13177         ;;
13178
13179       haiku*)
13180         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13181         link_all_deplibs_CXX=yes
13182         ;;
13183
13184       hpux9*)
13185         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13186         hardcode_libdir_separator_CXX=:
13187         export_dynamic_flag_spec_CXX='${wl}-E'
13188         hardcode_direct_CXX=yes
13189         hardcode_minus_L_CXX=yes # Not in the search PATH,
13190                                              # but as the default
13191                                              # location of the library.
13192
13193         case $cc_basename in
13194           CC*)
13195             # FIXME: insert proper C++ library support
13196             ld_shlibs_CXX=no
13197             ;;
13198           aCC*)
13199             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'
13200             # Commands to make compiler produce verbose output that lists
13201             # what "hidden" libraries, object files and flags are used when
13202             # linking a shared library.
13203             #
13204             # There doesn't appear to be a way to prevent this compiler from
13205             # explicitly linking system object files so we need to strip them
13206             # from the output so that they don't get included in the library
13207             # dependencies.
13208             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; func_echo_all "$list"'
13209             ;;
13210           *)
13211             if test "$GXX" = yes; then
13212               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13213             else
13214               # FIXME: insert proper C++ library support
13215               ld_shlibs_CXX=no
13216             fi
13217             ;;
13218         esac
13219         ;;
13220
13221       hpux10*|hpux11*)
13222         if test $with_gnu_ld = no; then
13223           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13224           hardcode_libdir_separator_CXX=:
13225
13226           case $host_cpu in
13227             hppa*64*|ia64*)
13228               ;;
13229             *)
13230               export_dynamic_flag_spec_CXX='${wl}-E'
13231               ;;
13232           esac
13233         fi
13234         case $host_cpu in
13235           hppa*64*|ia64*)
13236             hardcode_direct_CXX=no
13237             hardcode_shlibpath_var_CXX=no
13238             ;;
13239           *)
13240             hardcode_direct_CXX=yes
13241             hardcode_direct_absolute_CXX=yes
13242             hardcode_minus_L_CXX=yes # Not in the search PATH,
13243                                                  # but as the default
13244                                                  # location of the library.
13245             ;;
13246         esac
13247
13248         case $cc_basename in
13249           CC*)
13250             # FIXME: insert proper C++ library support
13251             ld_shlibs_CXX=no
13252             ;;
13253           aCC*)
13254             case $host_cpu in
13255               hppa*64*)
13256                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13257                 ;;
13258               ia64*)
13259                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260                 ;;
13261               *)
13262                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13263                 ;;
13264             esac
13265             # Commands to make compiler produce verbose output that lists
13266             # what "hidden" libraries, object files and flags are used when
13267             # linking a shared library.
13268             #
13269             # There doesn't appear to be a way to prevent this compiler from
13270             # explicitly linking system object files so we need to strip them
13271             # from the output so that they don't get included in the library
13272             # dependencies.
13273             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; func_echo_all "$list"'
13274             ;;
13275           *)
13276             if test "$GXX" = yes; then
13277               if test $with_gnu_ld = no; then
13278                 case $host_cpu in
13279                   hppa*64*)
13280                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13281                     ;;
13282                   ia64*)
13283                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13284                     ;;
13285                   *)
13286                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13287                     ;;
13288                 esac
13289               fi
13290             else
13291               # FIXME: insert proper C++ library support
13292               ld_shlibs_CXX=no
13293             fi
13294             ;;
13295         esac
13296         ;;
13297
13298       interix[3-9]*)
13299         hardcode_direct_CXX=no
13300         hardcode_shlibpath_var_CXX=no
13301         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13302         export_dynamic_flag_spec_CXX='${wl}-E'
13303         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13304         # Instead, shared libraries are loaded at an image base (0x10000000 by
13305         # default) and relocated if they conflict, which is a slow very memory
13306         # consuming and fragmenting process.  To avoid this, we pick a random,
13307         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13308         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13309         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'
13310         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'
13311         ;;
13312       irix5* | irix6*)
13313         case $cc_basename in
13314           CC*)
13315             # SGI C++
13316             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13317
13318             # Archives containing C++ object files must be created using
13319             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13320             # necessary to make sure instantiated templates are included
13321             # in the archive.
13322             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13323             ;;
13324           *)
13325             if test "$GXX" = yes; then
13326               if test "$with_gnu_ld" = no; then
13327                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13328               else
13329                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13330               fi
13331             fi
13332             link_all_deplibs_CXX=yes
13333             ;;
13334         esac
13335         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13336         hardcode_libdir_separator_CXX=:
13337         inherit_rpath_CXX=yes
13338         ;;
13339
13340       linux* | k*bsd*-gnu | kopensolaris*-gnu)
13341         case $cc_basename in
13342           KCC*)
13343             # Kuck and Associates, Inc. (KAI) C++ Compiler
13344
13345             # KCC will only create a shared library if the output file
13346             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13347             # to its proper name (with version) after linking.
13348             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'
13349             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'
13350             # Commands to make compiler produce verbose output that lists
13351             # what "hidden" libraries, object files and flags are used when
13352             # linking a shared library.
13353             #
13354             # There doesn't appear to be a way to prevent this compiler from
13355             # explicitly linking system object files so we need to strip them
13356             # from the output so that they don't get included in the library
13357             # dependencies.
13358             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; func_echo_all "$list"'
13359
13360             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13361             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13362
13363             # Archives containing C++ object files must be created using
13364             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13365             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13366             ;;
13367           icpc* | ecpc* )
13368             # Intel C++
13369             with_gnu_ld=yes
13370             # version 8.0 and above of icpc choke on multiply defined symbols
13371             # if we add $predep_objects and $postdep_objects, however 7.1 and
13372             # earlier do not add the objects themselves.
13373             case `$CC -V 2>&1` in
13374               *"Version 7."*)
13375                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13376                 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'
13377                 ;;
13378               *)  # Version 8.0 or newer
13379                 tmp_idyn=
13380                 case $host_cpu in
13381                   ia64*) tmp_idyn=' -i_dynamic';;
13382                 esac
13383                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13384                 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'
13385                 ;;
13386             esac
13387             archive_cmds_need_lc_CXX=no
13388             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13389             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13390             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13391             ;;
13392           pgCC* | pgcpp*)
13393             # Portland Group C++ compiler
13394             case `$CC -V` in
13395             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13396               prelink_cmds_CXX='tpldir=Template.dir~
13397                 rm -rf $tpldir~
13398                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13399                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13400               old_archive_cmds_CXX='tpldir=Template.dir~
13401                 rm -rf $tpldir~
13402                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13403                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13404                 $RANLIB $oldlib'
13405               archive_cmds_CXX='tpldir=Template.dir~
13406                 rm -rf $tpldir~
13407                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13408                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13409               archive_expsym_cmds_CXX='tpldir=Template.dir~
13410                 rm -rf $tpldir~
13411                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13412                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13413               ;;
13414             *) # Version 6 and above use weak symbols
13415               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13416               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'
13417               ;;
13418             esac
13419
13420             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13421             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13422             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13423             ;;
13424           cxx*)
13425             # Compaq C++
13426             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13427             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'
13428
13429             runpath_var=LD_RUN_PATH
13430             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13431             hardcode_libdir_separator_CXX=:
13432
13433             # Commands to make compiler produce verbose output that lists
13434             # what "hidden" libraries, object files and flags are used when
13435             # linking a shared library.
13436             #
13437             # There doesn't appear to be a way to prevent this compiler from
13438             # explicitly linking system object files so we need to strip them
13439             # from the output so that they don't get included in the library
13440             # dependencies.
13441             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13442             ;;
13443           xl* | mpixl* | bgxl*)
13444             # IBM XL 8.0 on PPC, with GNU ld
13445             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13446             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13448             if test "x$supports_anon_versioning" = xyes; then
13449               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13450                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13451                 echo "local: *; };" >> $output_objdir/$libname.ver~
13452                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13453             fi
13454             ;;
13455           *)
13456             case `$CC -V 2>&1 | sed 5q` in
13457             *Sun\ C*)
13458               # Sun C++ 5.9
13459               no_undefined_flag_CXX=' -zdefs'
13460               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13461               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'
13462               hardcode_libdir_flag_spec_CXX='-R$libdir'
13463               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13464               compiler_needs_object_CXX=yes
13465
13466               # Not sure whether something based on
13467               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13468               # would be better.
13469               output_verbose_link_cmd='func_echo_all'
13470
13471               # Archives containing C++ object files must be created using
13472               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13473               # necessary to make sure instantiated templates are included
13474               # in the archive.
13475               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13476               ;;
13477             esac
13478             ;;
13479         esac
13480         ;;
13481
13482       lynxos*)
13483         # FIXME: insert proper C++ library support
13484         ld_shlibs_CXX=no
13485         ;;
13486
13487       m88k*)
13488         # FIXME: insert proper C++ library support
13489         ld_shlibs_CXX=no
13490         ;;
13491
13492       mvs*)
13493         case $cc_basename in
13494           cxx*)
13495             # FIXME: insert proper C++ library support
13496             ld_shlibs_CXX=no
13497             ;;
13498           *)
13499             # FIXME: insert proper C++ library support
13500             ld_shlibs_CXX=no
13501             ;;
13502         esac
13503         ;;
13504
13505       netbsd*)
13506         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13507           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13508           wlarc=
13509           hardcode_libdir_flag_spec_CXX='-R$libdir'
13510           hardcode_direct_CXX=yes
13511           hardcode_shlibpath_var_CXX=no
13512         fi
13513         # Workaround some broken pre-1.5 toolchains
13514         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13515         ;;
13516
13517       *nto* | *qnx*)
13518         ld_shlibs_CXX=yes
13519         ;;
13520
13521       openbsd2*)
13522         # C++ shared libraries are fairly broken
13523         ld_shlibs_CXX=no
13524         ;;
13525
13526       openbsd*)
13527         if test -f /usr/libexec/ld.so; then
13528           hardcode_direct_CXX=yes
13529           hardcode_shlibpath_var_CXX=no
13530           hardcode_direct_absolute_CXX=yes
13531           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13532           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13533           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13534             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13535             export_dynamic_flag_spec_CXX='${wl}-E'
13536             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13537           fi
13538           output_verbose_link_cmd=func_echo_all
13539         else
13540           ld_shlibs_CXX=no
13541         fi
13542         ;;
13543
13544       osf3* | osf4* | osf5*)
13545         case $cc_basename in
13546           KCC*)
13547             # Kuck and Associates, Inc. (KAI) C++ Compiler
13548
13549             # KCC will only create a shared library if the output file
13550             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13551             # to its proper name (with version) after linking.
13552             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'
13553
13554             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13555             hardcode_libdir_separator_CXX=:
13556
13557             # Archives containing C++ object files must be created using
13558             # the KAI C++ compiler.
13559             case $host in
13560               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13561               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13562             esac
13563             ;;
13564           RCC*)
13565             # Rational C++ 2.4.1
13566             # FIXME: insert proper C++ library support
13567             ld_shlibs_CXX=no
13568             ;;
13569           cxx*)
13570             case $host in
13571               osf3*)
13572                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13573                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13574                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13575                 ;;
13576               *)
13577                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13578                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13579                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13580                   echo "-hidden">> $lib.exp~
13581                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13582                   $RM $lib.exp'
13583                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13584                 ;;
13585             esac
13586
13587             hardcode_libdir_separator_CXX=:
13588
13589             # Commands to make compiler produce verbose output that lists
13590             # what "hidden" libraries, object files and flags are used when
13591             # linking a shared library.
13592             #
13593             # There doesn't appear to be a way to prevent this compiler from
13594             # explicitly linking system object files so we need to strip them
13595             # from the output so that they don't get included in the library
13596             # dependencies.
13597             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13598             ;;
13599           *)
13600             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13601               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13602               case $host in
13603                 osf3*)
13604                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13605                   ;;
13606                 *)
13607                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13608                   ;;
13609               esac
13610
13611               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13612               hardcode_libdir_separator_CXX=:
13613
13614               # Commands to make compiler produce verbose output that lists
13615               # what "hidden" libraries, object files and flags are used when
13616               # linking a shared library.
13617               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13618
13619             else
13620               # FIXME: insert proper C++ library support
13621               ld_shlibs_CXX=no
13622             fi
13623             ;;
13624         esac
13625         ;;
13626
13627       psos*)
13628         # FIXME: insert proper C++ library support
13629         ld_shlibs_CXX=no
13630         ;;
13631
13632       sunos4*)
13633         case $cc_basename in
13634           CC*)
13635             # Sun C++ 4.x
13636             # FIXME: insert proper C++ library support
13637             ld_shlibs_CXX=no
13638             ;;
13639           lcc*)
13640             # Lucid
13641             # FIXME: insert proper C++ library support
13642             ld_shlibs_CXX=no
13643             ;;
13644           *)
13645             # FIXME: insert proper C++ library support
13646             ld_shlibs_CXX=no
13647             ;;
13648         esac
13649         ;;
13650
13651       solaris*)
13652         case $cc_basename in
13653           CC* | sunCC*)
13654             # Sun C++ 4.2, 5.x and Centerline C++
13655             archive_cmds_need_lc_CXX=yes
13656             no_undefined_flag_CXX=' -zdefs'
13657             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13658             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13659               $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'
13660
13661             hardcode_libdir_flag_spec_CXX='-R$libdir'
13662             hardcode_shlibpath_var_CXX=no
13663             case $host_os in
13664               solaris2.[0-5] | solaris2.[0-5].*) ;;
13665               *)
13666                 # The compiler driver will combine and reorder linker options,
13667                 # but understands `-z linker_flag'.
13668                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13669                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13670                 ;;
13671             esac
13672             link_all_deplibs_CXX=yes
13673
13674             output_verbose_link_cmd='func_echo_all'
13675
13676             # Archives containing C++ object files must be created using
13677             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13678             # necessary to make sure instantiated templates are included
13679             # in the archive.
13680             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13681             ;;
13682           gcx*)
13683             # Green Hills C++ Compiler
13684             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13685
13686             # The C++ compiler must be used to create the archive.
13687             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13688             ;;
13689           *)
13690             # GNU C++ compiler with Solaris linker
13691             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13692               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13693               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13694                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13695                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13696                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13697
13698                 # Commands to make compiler produce verbose output that lists
13699                 # what "hidden" libraries, object files and flags are used when
13700                 # linking a shared library.
13701                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13702               else
13703                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13704                 # platform.
13705                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13706                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13707                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13708
13709                 # Commands to make compiler produce verbose output that lists
13710                 # what "hidden" libraries, object files and flags are used when
13711                 # linking a shared library.
13712                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13713               fi
13714
13715               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13716               case $host_os in
13717                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13718                 *)
13719                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13720                   ;;
13721               esac
13722             fi
13723             ;;
13724         esac
13725         ;;
13726
13727     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13728       no_undefined_flag_CXX='${wl}-z,text'
13729       archive_cmds_need_lc_CXX=no
13730       hardcode_shlibpath_var_CXX=no
13731       runpath_var='LD_RUN_PATH'
13732
13733       case $cc_basename in
13734         CC*)
13735           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13736           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13737           ;;
13738         *)
13739           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741           ;;
13742       esac
13743       ;;
13744
13745       sysv5* | sco3.2v5* | sco5v6*)
13746         # Note: We can NOT use -z defs as we might desire, because we do not
13747         # link with -lc, and that would cause any symbols used from libc to
13748         # always be unresolved, which means just about no library would
13749         # ever link correctly.  If we're not using GNU ld we use -z text
13750         # though, which does catch some bad symbols but isn't as heavy-handed
13751         # as -z defs.
13752         no_undefined_flag_CXX='${wl}-z,text'
13753         allow_undefined_flag_CXX='${wl}-z,nodefs'
13754         archive_cmds_need_lc_CXX=no
13755         hardcode_shlibpath_var_CXX=no
13756         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13757         hardcode_libdir_separator_CXX=':'
13758         link_all_deplibs_CXX=yes
13759         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13760         runpath_var='LD_RUN_PATH'
13761
13762         case $cc_basename in
13763           CC*)
13764             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13765             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13767               '"$old_archive_cmds_CXX"
13768             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13769               '"$reload_cmds_CXX"
13770             ;;
13771           *)
13772             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13774             ;;
13775         esac
13776       ;;
13777
13778       tandem*)
13779         case $cc_basename in
13780           NCC*)
13781             # NonStop-UX NCC 3.20
13782             # FIXME: insert proper C++ library support
13783             ld_shlibs_CXX=no
13784             ;;
13785           *)
13786             # FIXME: insert proper C++ library support
13787             ld_shlibs_CXX=no
13788             ;;
13789         esac
13790         ;;
13791
13792       vxworks*)
13793         # FIXME: insert proper C++ library support
13794         ld_shlibs_CXX=no
13795         ;;
13796
13797       *)
13798         # FIXME: insert proper C++ library support
13799         ld_shlibs_CXX=no
13800         ;;
13801     esac
13802
13803     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13804 $as_echo "$ld_shlibs_CXX" >&6; }
13805     test "$ld_shlibs_CXX" = no && can_build_shared=no
13806
13807     GCC_CXX="$GXX"
13808     LD_CXX="$LD"
13809
13810     ## CAVEAT EMPTOR:
13811     ## There is no encapsulation within the following macros, do not change
13812     ## the running order or otherwise move them around unless you know exactly
13813     ## what you are doing...
13814     # Dependencies to place before and after the object being linked:
13815 predep_objects_CXX=
13816 postdep_objects_CXX=
13817 predeps_CXX=
13818 postdeps_CXX=
13819 compiler_lib_search_path_CXX=
13820
13821 cat > conftest.$ac_ext <<_LT_EOF
13822 class Foo
13823 {
13824 public:
13825   Foo (void) { a = 0; }
13826 private:
13827   int a;
13828 };
13829 _LT_EOF
13830
13831
13832 _lt_libdeps_save_CFLAGS=$CFLAGS
13833 case "$CC $CFLAGS " in #(
13834 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13835 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13836 esac
13837
13838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13839   (eval $ac_compile) 2>&5
13840   ac_status=$?
13841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13842   test $ac_status = 0; }; then
13843   # Parse the compiler output and extract the necessary
13844   # objects, libraries and library flags.
13845
13846   # Sentinel used to keep track of whether or not we are before
13847   # the conftest object file.
13848   pre_test_object_deps_done=no
13849
13850   for p in `eval "$output_verbose_link_cmd"`; do
13851     case ${prev}${p} in
13852
13853     -L* | -R* | -l*)
13854        # Some compilers place space between "-{L,R}" and the path.
13855        # Remove the space.
13856        if test $p = "-L" ||
13857           test $p = "-R"; then
13858          prev=$p
13859          continue
13860        fi
13861
13862        # Expand the sysroot to ease extracting the directories later.
13863        if test -z "$prev"; then
13864          case $p in
13865          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13866          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13867          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13868          esac
13869        fi
13870        case $p in
13871        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13872        esac
13873        if test "$pre_test_object_deps_done" = no; then
13874          case ${prev} in
13875          -L | -R)
13876            # Internal compiler library paths should come after those
13877            # provided the user.  The postdeps already come after the
13878            # user supplied libs so there is no need to process them.
13879            if test -z "$compiler_lib_search_path_CXX"; then
13880              compiler_lib_search_path_CXX="${prev}${p}"
13881            else
13882              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13883            fi
13884            ;;
13885          # The "-l" case would never come before the object being
13886          # linked, so don't bother handling this case.
13887          esac
13888        else
13889          if test -z "$postdeps_CXX"; then
13890            postdeps_CXX="${prev}${p}"
13891          else
13892            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13893          fi
13894        fi
13895        prev=
13896        ;;
13897
13898     *.lto.$objext) ;; # Ignore GCC LTO objects
13899     *.$objext)
13900        # This assumes that the test object file only shows up
13901        # once in the compiler output.
13902        if test "$p" = "conftest.$objext"; then
13903          pre_test_object_deps_done=yes
13904          continue
13905        fi
13906
13907        if test "$pre_test_object_deps_done" = no; then
13908          if test -z "$predep_objects_CXX"; then
13909            predep_objects_CXX="$p"
13910          else
13911            predep_objects_CXX="$predep_objects_CXX $p"
13912          fi
13913        else
13914          if test -z "$postdep_objects_CXX"; then
13915            postdep_objects_CXX="$p"
13916          else
13917            postdep_objects_CXX="$postdep_objects_CXX $p"
13918          fi
13919        fi
13920        ;;
13921
13922     *) ;; # Ignore the rest.
13923
13924     esac
13925   done
13926
13927   # Clean up.
13928   rm -f a.out a.exe
13929 else
13930   echo "libtool.m4: error: problem compiling CXX test program"
13931 fi
13932
13933 $RM -f confest.$objext
13934 CFLAGS=$_lt_libdeps_save_CFLAGS
13935
13936 # PORTME: override above test on systems where it is broken
13937 case $host_os in
13938 interix[3-9]*)
13939   # Interix 3.5 installs completely hosed .la files for C++, so rather than
13940   # hack all around it, let's just trust "g++" to DTRT.
13941   predep_objects_CXX=
13942   postdep_objects_CXX=
13943   postdeps_CXX=
13944   ;;
13945
13946 linux*)
13947   case `$CC -V 2>&1 | sed 5q` in
13948   *Sun\ C*)
13949     # Sun C++ 5.9
13950
13951     # The more standards-conforming stlport4 library is
13952     # incompatible with the Cstd library. Avoid specifying
13953     # it if it's in CXXFLAGS. Ignore libCrun as
13954     # -library=stlport4 depends on it.
13955     case " $CXX $CXXFLAGS " in
13956     *" -library=stlport4 "*)
13957       solaris_use_stlport4=yes
13958       ;;
13959     esac
13960
13961     if test "$solaris_use_stlport4" != yes; then
13962       postdeps_CXX='-library=Cstd -library=Crun'
13963     fi
13964     ;;
13965   esac
13966   ;;
13967
13968 solaris*)
13969   case $cc_basename in
13970   CC* | sunCC*)
13971     # The more standards-conforming stlport4 library is
13972     # incompatible with the Cstd library. Avoid specifying
13973     # it if it's in CXXFLAGS. Ignore libCrun as
13974     # -library=stlport4 depends on it.
13975     case " $CXX $CXXFLAGS " in
13976     *" -library=stlport4 "*)
13977       solaris_use_stlport4=yes
13978       ;;
13979     esac
13980
13981     # Adding this requires a known-good setup of shared libraries for
13982     # Sun compiler versions before 5.6, else PIC objects from an old
13983     # archive will be linked into the output, leading to subtle bugs.
13984     if test "$solaris_use_stlport4" != yes; then
13985       postdeps_CXX='-library=Cstd -library=Crun'
13986     fi
13987     ;;
13988   esac
13989   ;;
13990 esac
13991
13992
13993 case " $postdeps_CXX " in
13994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13995 esac
13996  compiler_lib_search_dirs_CXX=
13997 if test -n "${compiler_lib_search_path_CXX}"; then
13998  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13999 fi
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031     lt_prog_compiler_wl_CXX=
14032 lt_prog_compiler_pic_CXX=
14033 lt_prog_compiler_static_CXX=
14034
14035
14036   # C++ specific cases for pic, static, wl, etc.
14037   if test "$GXX" = yes; then
14038     lt_prog_compiler_wl_CXX='-Wl,'
14039     lt_prog_compiler_static_CXX='-static'
14040
14041     case $host_os in
14042     aix*)
14043       # All AIX code is PIC.
14044       if test "$host_cpu" = ia64; then
14045         # AIX 5 now supports IA64 processor
14046         lt_prog_compiler_static_CXX='-Bstatic'
14047       fi
14048       ;;
14049
14050     amigaos*)
14051       case $host_cpu in
14052       powerpc)
14053             # see comment about AmigaOS4 .so support
14054             lt_prog_compiler_pic_CXX='-fPIC'
14055         ;;
14056       m68k)
14057             # FIXME: we need at least 68020 code to build shared libraries, but
14058             # adding the `-m68020' flag to GCC prevents building anything better,
14059             # like `-m68040'.
14060             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14061         ;;
14062       esac
14063       ;;
14064
14065     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14066       # PIC is the default for these OSes.
14067       ;;
14068     mingw* | cygwin* | os2* | pw32* | cegcc*)
14069       # This hack is so that the source file can tell whether it is being
14070       # built for inclusion in a dll (and should export symbols for example).
14071       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14072       # (--disable-auto-import) libraries
14073       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14074       ;;
14075     darwin* | rhapsody*)
14076       # PIC is the default on this platform
14077       # Common symbols not allowed in MH_DYLIB files
14078       lt_prog_compiler_pic_CXX='-fno-common'
14079       ;;
14080     *djgpp*)
14081       # DJGPP does not support shared libraries at all
14082       lt_prog_compiler_pic_CXX=
14083       ;;
14084     haiku*)
14085       # PIC is the default for Haiku.
14086       # The "-static" flag exists, but is broken.
14087       lt_prog_compiler_static_CXX=
14088       ;;
14089     interix[3-9]*)
14090       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14091       # Instead, we relocate shared libraries at runtime.
14092       ;;
14093     sysv4*MP*)
14094       if test -d /usr/nec; then
14095         lt_prog_compiler_pic_CXX=-Kconform_pic
14096       fi
14097       ;;
14098     hpux*)
14099       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14100       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14101       # sets the default TLS model and affects inlining.
14102       case $host_cpu in
14103       hppa*64*)
14104         ;;
14105       *)
14106         lt_prog_compiler_pic_CXX='-fPIC'
14107         ;;
14108       esac
14109       ;;
14110     *qnx* | *nto*)
14111       # QNX uses GNU C++, but need to define -shared option too, otherwise
14112       # it will coredump.
14113       lt_prog_compiler_pic_CXX='-fPIC -shared'
14114       ;;
14115     *)
14116       lt_prog_compiler_pic_CXX='-fPIC'
14117       ;;
14118     esac
14119   else
14120     case $host_os in
14121       aix[4-9]*)
14122         # All AIX code is PIC.
14123         if test "$host_cpu" = ia64; then
14124           # AIX 5 now supports IA64 processor
14125           lt_prog_compiler_static_CXX='-Bstatic'
14126         else
14127           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14128         fi
14129         ;;
14130       chorus*)
14131         case $cc_basename in
14132         cxch68*)
14133           # Green Hills C++ Compiler
14134           # _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"
14135           ;;
14136         esac
14137         ;;
14138       mingw* | cygwin* | os2* | pw32* | cegcc*)
14139         # This hack is so that the source file can tell whether it is being
14140         # built for inclusion in a dll (and should export symbols for example).
14141         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14142         ;;
14143       dgux*)
14144         case $cc_basename in
14145           ec++*)
14146             lt_prog_compiler_pic_CXX='-KPIC'
14147             ;;
14148           ghcx*)
14149             # Green Hills C++ Compiler
14150             lt_prog_compiler_pic_CXX='-pic'
14151             ;;
14152           *)
14153             ;;
14154         esac
14155         ;;
14156       freebsd* | dragonfly*)
14157         # FreeBSD uses GNU C++
14158         ;;
14159       hpux9* | hpux10* | hpux11*)
14160         case $cc_basename in
14161           CC*)
14162             lt_prog_compiler_wl_CXX='-Wl,'
14163             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14164             if test "$host_cpu" != ia64; then
14165               lt_prog_compiler_pic_CXX='+Z'
14166             fi
14167             ;;
14168           aCC*)
14169             lt_prog_compiler_wl_CXX='-Wl,'
14170             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14171             case $host_cpu in
14172             hppa*64*|ia64*)
14173               # +Z the default
14174               ;;
14175             *)
14176               lt_prog_compiler_pic_CXX='+Z'
14177               ;;
14178             esac
14179             ;;
14180           *)
14181             ;;
14182         esac
14183         ;;
14184       interix*)
14185         # This is c89, which is MS Visual C++ (no shared libs)
14186         # Anyone wants to do a port?
14187         ;;
14188       irix5* | irix6* | nonstopux*)
14189         case $cc_basename in
14190           CC*)
14191             lt_prog_compiler_wl_CXX='-Wl,'
14192             lt_prog_compiler_static_CXX='-non_shared'
14193             # CC pic flag -KPIC is the default.
14194             ;;
14195           *)
14196             ;;
14197         esac
14198         ;;
14199       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14200         case $cc_basename in
14201           KCC*)
14202             # KAI C++ Compiler
14203             lt_prog_compiler_wl_CXX='--backend -Wl,'
14204             lt_prog_compiler_pic_CXX='-fPIC'
14205             ;;
14206           ecpc* )
14207             # old Intel C++ for x86_64 which still supported -KPIC.
14208             lt_prog_compiler_wl_CXX='-Wl,'
14209             lt_prog_compiler_pic_CXX='-KPIC'
14210             lt_prog_compiler_static_CXX='-static'
14211             ;;
14212           icpc* )
14213             # Intel C++, used to be incompatible with GCC.
14214             # ICC 10 doesn't accept -KPIC any more.
14215             lt_prog_compiler_wl_CXX='-Wl,'
14216             lt_prog_compiler_pic_CXX='-fPIC'
14217             lt_prog_compiler_static_CXX='-static'
14218             ;;
14219           pgCC* | pgcpp*)
14220             # Portland Group C++ compiler
14221             lt_prog_compiler_wl_CXX='-Wl,'
14222             lt_prog_compiler_pic_CXX='-fpic'
14223             lt_prog_compiler_static_CXX='-Bstatic'
14224             ;;
14225           cxx*)
14226             # Compaq C++
14227             # Make sure the PIC flag is empty.  It appears that all Alpha
14228             # Linux and Compaq Tru64 Unix objects are PIC.
14229             lt_prog_compiler_pic_CXX=
14230             lt_prog_compiler_static_CXX='-non_shared'
14231             ;;
14232           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14233             # IBM XL 8.0, 9.0 on PPC and BlueGene
14234             lt_prog_compiler_wl_CXX='-Wl,'
14235             lt_prog_compiler_pic_CXX='-qpic'
14236             lt_prog_compiler_static_CXX='-qstaticlink'
14237             ;;
14238           *)
14239             case `$CC -V 2>&1 | sed 5q` in
14240             *Sun\ C*)
14241               # Sun C++ 5.9
14242               lt_prog_compiler_pic_CXX='-KPIC'
14243               lt_prog_compiler_static_CXX='-Bstatic'
14244               lt_prog_compiler_wl_CXX='-Qoption ld '
14245               ;;
14246             esac
14247             ;;
14248         esac
14249         ;;
14250       lynxos*)
14251         ;;
14252       m88k*)
14253         ;;
14254       mvs*)
14255         case $cc_basename in
14256           cxx*)
14257             lt_prog_compiler_pic_CXX='-W c,exportall'
14258             ;;
14259           *)
14260             ;;
14261         esac
14262         ;;
14263       netbsd*)
14264         ;;
14265       *qnx* | *nto*)
14266         # QNX uses GNU C++, but need to define -shared option too, otherwise
14267         # it will coredump.
14268         lt_prog_compiler_pic_CXX='-fPIC -shared'
14269         ;;
14270       osf3* | osf4* | osf5*)
14271         case $cc_basename in
14272           KCC*)
14273             lt_prog_compiler_wl_CXX='--backend -Wl,'
14274             ;;
14275           RCC*)
14276             # Rational C++ 2.4.1
14277             lt_prog_compiler_pic_CXX='-pic'
14278             ;;
14279           cxx*)
14280             # Digital/Compaq C++
14281             lt_prog_compiler_wl_CXX='-Wl,'
14282             # Make sure the PIC flag is empty.  It appears that all Alpha
14283             # Linux and Compaq Tru64 Unix objects are PIC.
14284             lt_prog_compiler_pic_CXX=
14285             lt_prog_compiler_static_CXX='-non_shared'
14286             ;;
14287           *)
14288             ;;
14289         esac
14290         ;;
14291       psos*)
14292         ;;
14293       solaris*)
14294         case $cc_basename in
14295           CC* | sunCC*)
14296             # Sun C++ 4.2, 5.x and Centerline C++
14297             lt_prog_compiler_pic_CXX='-KPIC'
14298             lt_prog_compiler_static_CXX='-Bstatic'
14299             lt_prog_compiler_wl_CXX='-Qoption ld '
14300             ;;
14301           gcx*)
14302             # Green Hills C++ Compiler
14303             lt_prog_compiler_pic_CXX='-PIC'
14304             ;;
14305           *)
14306             ;;
14307         esac
14308         ;;
14309       sunos4*)
14310         case $cc_basename in
14311           CC*)
14312             # Sun C++ 4.x
14313             lt_prog_compiler_pic_CXX='-pic'
14314             lt_prog_compiler_static_CXX='-Bstatic'
14315             ;;
14316           lcc*)
14317             # Lucid
14318             lt_prog_compiler_pic_CXX='-pic'
14319             ;;
14320           *)
14321             ;;
14322         esac
14323         ;;
14324       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14325         case $cc_basename in
14326           CC*)
14327             lt_prog_compiler_wl_CXX='-Wl,'
14328             lt_prog_compiler_pic_CXX='-KPIC'
14329             lt_prog_compiler_static_CXX='-Bstatic'
14330             ;;
14331         esac
14332         ;;
14333       tandem*)
14334         case $cc_basename in
14335           NCC*)
14336             # NonStop-UX NCC 3.20
14337             lt_prog_compiler_pic_CXX='-KPIC'
14338             ;;
14339           *)
14340             ;;
14341         esac
14342         ;;
14343       vxworks*)
14344         ;;
14345       *)
14346         lt_prog_compiler_can_build_shared_CXX=no
14347         ;;
14348     esac
14349   fi
14350
14351 case $host_os in
14352   # For platforms which do not support PIC, -DPIC is meaningless:
14353   *djgpp*)
14354     lt_prog_compiler_pic_CXX=
14355     ;;
14356   *)
14357     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14358     ;;
14359 esac
14360
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14363 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14364   $as_echo_n "(cached) " >&6
14365 else
14366   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14367 fi
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14369 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14370 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14371
14372 #
14373 # Check to make sure the PIC flag actually works.
14374 #
14375 if test -n "$lt_prog_compiler_pic_CXX"; then
14376   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14377 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14378 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14379   $as_echo_n "(cached) " >&6
14380 else
14381   lt_cv_prog_compiler_pic_works_CXX=no
14382    ac_outfile=conftest.$ac_objext
14383    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14384    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14385    # Insert the option either (1) after the last *FLAGS variable, or
14386    # (2) before a word containing "conftest.", or (3) at the end.
14387    # Note that $ac_compile itself does not contain backslashes and begins
14388    # with a dollar sign (not a hyphen), so the echo should work correctly.
14389    # The option is referenced via a variable to avoid confusing sed.
14390    lt_compile=`echo "$ac_compile" | $SED \
14391    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14392    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14393    -e 's:$: $lt_compiler_flag:'`
14394    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14395    (eval "$lt_compile" 2>conftest.err)
14396    ac_status=$?
14397    cat conftest.err >&5
14398    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399    if (exit $ac_status) && test -s "$ac_outfile"; then
14400      # The compiler can only warn and ignore the option if not recognized
14401      # So say no if there are warnings other than the usual output.
14402      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14403      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14404      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14405        lt_cv_prog_compiler_pic_works_CXX=yes
14406      fi
14407    fi
14408    $RM conftest*
14409
14410 fi
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14412 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14413
14414 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14415     case $lt_prog_compiler_pic_CXX in
14416      "" | " "*) ;;
14417      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14418      esac
14419 else
14420     lt_prog_compiler_pic_CXX=
14421      lt_prog_compiler_can_build_shared_CXX=no
14422 fi
14423
14424 fi
14425
14426
14427
14428
14429
14430 #
14431 # Check to make sure the static flag actually works.
14432 #
14433 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14435 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14436 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14437   $as_echo_n "(cached) " >&6
14438 else
14439   lt_cv_prog_compiler_static_works_CXX=no
14440    save_LDFLAGS="$LDFLAGS"
14441    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14442    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14443    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14444      # The linker can only warn and ignore the option if not recognized
14445      # So say no if there are warnings
14446      if test -s conftest.err; then
14447        # Append any errors to the config.log.
14448        cat conftest.err 1>&5
14449        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14450        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14451        if diff conftest.exp conftest.er2 >/dev/null; then
14452          lt_cv_prog_compiler_static_works_CXX=yes
14453        fi
14454      else
14455        lt_cv_prog_compiler_static_works_CXX=yes
14456      fi
14457    fi
14458    $RM -r conftest*
14459    LDFLAGS="$save_LDFLAGS"
14460
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14463 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14464
14465 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14466     :
14467 else
14468     lt_prog_compiler_static_CXX=
14469 fi
14470
14471
14472
14473
14474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14475 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14476 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14477   $as_echo_n "(cached) " >&6
14478 else
14479   lt_cv_prog_compiler_c_o_CXX=no
14480    $RM -r conftest 2>/dev/null
14481    mkdir conftest
14482    cd conftest
14483    mkdir out
14484    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14485
14486    lt_compiler_flag="-o out/conftest2.$ac_objext"
14487    # Insert the option either (1) after the last *FLAGS variable, or
14488    # (2) before a word containing "conftest.", or (3) at the end.
14489    # Note that $ac_compile itself does not contain backslashes and begins
14490    # with a dollar sign (not a hyphen), so the echo should work correctly.
14491    lt_compile=`echo "$ac_compile" | $SED \
14492    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14493    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14494    -e 's:$: $lt_compiler_flag:'`
14495    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14496    (eval "$lt_compile" 2>out/conftest.err)
14497    ac_status=$?
14498    cat out/conftest.err >&5
14499    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14501    then
14502      # The compiler can only warn and ignore the option if not recognized
14503      # So say no if there are warnings
14504      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14505      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14506      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14507        lt_cv_prog_compiler_c_o_CXX=yes
14508      fi
14509    fi
14510    chmod u+w . 2>&5
14511    $RM conftest*
14512    # SGI C++ compiler will create directory out/ii_files/ for
14513    # template instantiation
14514    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14515    $RM out/* && rmdir out
14516    cd ..
14517    $RM -r conftest
14518    $RM conftest*
14519
14520 fi
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14522 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14523
14524
14525
14526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14527 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14528 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14529   $as_echo_n "(cached) " >&6
14530 else
14531   lt_cv_prog_compiler_c_o_CXX=no
14532    $RM -r conftest 2>/dev/null
14533    mkdir conftest
14534    cd conftest
14535    mkdir out
14536    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14537
14538    lt_compiler_flag="-o out/conftest2.$ac_objext"
14539    # Insert the option either (1) after the last *FLAGS variable, or
14540    # (2) before a word containing "conftest.", or (3) at the end.
14541    # Note that $ac_compile itself does not contain backslashes and begins
14542    # with a dollar sign (not a hyphen), so the echo should work correctly.
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:$LINENO: $lt_compile\"" >&5)
14548    (eval "$lt_compile" 2>out/conftest.err)
14549    ac_status=$?
14550    cat out/conftest.err >&5
14551    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14553    then
14554      # The compiler can only warn and ignore the option if not recognized
14555      # So say no if there are warnings
14556      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14557      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14558      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14559        lt_cv_prog_compiler_c_o_CXX=yes
14560      fi
14561    fi
14562    chmod u+w . 2>&5
14563    $RM conftest*
14564    # SGI C++ compiler will create directory out/ii_files/ for
14565    # template instantiation
14566    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14567    $RM out/* && rmdir out
14568    cd ..
14569    $RM -r conftest
14570    $RM conftest*
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14574 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14575
14576
14577
14578
14579 hard_links="nottested"
14580 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14581   # do not overwrite the value of need_locks provided by the user
14582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14583 $as_echo_n "checking if we can lock with hard links... " >&6; }
14584   hard_links=yes
14585   $RM conftest*
14586   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14587   touch conftest.a
14588   ln conftest.a conftest.b 2>&5 || hard_links=no
14589   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14591 $as_echo "$hard_links" >&6; }
14592   if test "$hard_links" = no; then
14593     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14594 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14595     need_locks=warn
14596   fi
14597 else
14598   need_locks=no
14599 fi
14600
14601
14602
14603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14604 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14605
14606   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14607   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14608   case $host_os in
14609   aix[4-9]*)
14610     # If we're using GNU nm, then we don't want the "-C" option.
14611     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14612     # Also, AIX nm treats weak defined symbols like other global defined
14613     # symbols, whereas GNU nm marks them as "W".
14614     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14615       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14616     else
14617       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'
14618     fi
14619     ;;
14620   pw32*)
14621     export_symbols_cmds_CXX="$ltdll_cmds"
14622     ;;
14623   cygwin* | mingw* | cegcc*)
14624     case $cc_basename in
14625     cl*) ;;
14626     *)
14627       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14628       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14629       ;;
14630     esac
14631     ;;
14632   *)
14633     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14634     ;;
14635   esac
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14638 $as_echo "$ld_shlibs_CXX" >&6; }
14639 test "$ld_shlibs_CXX" = no && can_build_shared=no
14640
14641 with_gnu_ld_CXX=$with_gnu_ld
14642
14643
14644
14645
14646
14647
14648 #
14649 # Do we need to explicitly link libc?
14650 #
14651 case "x$archive_cmds_need_lc_CXX" in
14652 x|xyes)
14653   # Assume -lc should be added
14654   archive_cmds_need_lc_CXX=yes
14655
14656   if test "$enable_shared" = yes && test "$GCC" = yes; then
14657     case $archive_cmds_CXX in
14658     *'~'*)
14659       # FIXME: we may have to deal with multi-command sequences.
14660       ;;
14661     '$CC '*)
14662       # Test whether the compiler implicitly links with -lc since on some
14663       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14664       # to ld, don't add -lc before -lgcc.
14665       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14666 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14667 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14668   $as_echo_n "(cached) " >&6
14669 else
14670   $RM conftest*
14671         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14672
14673         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14674   (eval $ac_compile) 2>&5
14675   ac_status=$?
14676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14677   test $ac_status = 0; } 2>conftest.err; then
14678           soname=conftest
14679           lib=conftest
14680           libobjs=conftest.$ac_objext
14681           deplibs=
14682           wl=$lt_prog_compiler_wl_CXX
14683           pic_flag=$lt_prog_compiler_pic_CXX
14684           compiler_flags=-v
14685           linker_flags=-v
14686           verstring=
14687           output_objdir=.
14688           libname=conftest
14689           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14690           allow_undefined_flag_CXX=
14691           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14692   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14693   ac_status=$?
14694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14695   test $ac_status = 0; }
14696           then
14697             lt_cv_archive_cmds_need_lc_CXX=no
14698           else
14699             lt_cv_archive_cmds_need_lc_CXX=yes
14700           fi
14701           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14702         else
14703           cat conftest.err 1>&5
14704         fi
14705         $RM conftest*
14706
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14709 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14710       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14711       ;;
14712     esac
14713   fi
14714   ;;
14715 esac
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14781 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14782
14783 library_names_spec=
14784 libname_spec='lib$name'
14785 soname_spec=
14786 shrext_cmds=".so"
14787 postinstall_cmds=
14788 postuninstall_cmds=
14789 finish_cmds=
14790 finish_eval=
14791 shlibpath_var=
14792 shlibpath_overrides_runpath=unknown
14793 version_type=none
14794 dynamic_linker="$host_os ld.so"
14795 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14796 need_lib_prefix=unknown
14797 hardcode_into_libs=no
14798
14799 # when you set need_version to no, make sure it does not cause -set_version
14800 # flags to be left without arguments
14801 need_version=unknown
14802
14803 case $host_os in
14804 aix3*)
14805   version_type=linux
14806   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14807   shlibpath_var=LIBPATH
14808
14809   # AIX 3 has no versioning support, so we append a major version to the name.
14810   soname_spec='${libname}${release}${shared_ext}$major'
14811   ;;
14812
14813 aix[4-9]*)
14814   version_type=linux
14815   need_lib_prefix=no
14816   need_version=no
14817   hardcode_into_libs=yes
14818   if test "$host_cpu" = ia64; then
14819     # AIX 5 supports IA64
14820     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14821     shlibpath_var=LD_LIBRARY_PATH
14822   else
14823     # With GCC up to 2.95.x, collect2 would create an import file
14824     # for dependence libraries.  The import file would start with
14825     # the line `#! .'.  This would cause the generated library to
14826     # depend on `.', always an invalid library.  This was fixed in
14827     # development snapshots of GCC prior to 3.0.
14828     case $host_os in
14829       aix4 | aix4.[01] | aix4.[01].*)
14830       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14831            echo ' yes '
14832            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14833         :
14834       else
14835         can_build_shared=no
14836       fi
14837       ;;
14838     esac
14839     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14840     # soname into executable. Probably we can add versioning support to
14841     # collect2, so additional links can be useful in future.
14842     if test "$aix_use_runtimelinking" = yes; then
14843       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14844       # instead of lib<name>.a to let people know that these are not
14845       # typical AIX shared libraries.
14846       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847     else
14848       # We preserve .a as extension for shared libraries through AIX4.2
14849       # and later when we are not doing run time linking.
14850       library_names_spec='${libname}${release}.a $libname.a'
14851       soname_spec='${libname}${release}${shared_ext}$major'
14852     fi
14853     shlibpath_var=LIBPATH
14854   fi
14855   ;;
14856
14857 amigaos*)
14858   case $host_cpu in
14859   powerpc)
14860     # Since July 2007 AmigaOS4 officially supports .so libraries.
14861     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14862     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863     ;;
14864   m68k)
14865     library_names_spec='$libname.ixlibrary $libname.a'
14866     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14867     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14868     ;;
14869   esac
14870   ;;
14871
14872 beos*)
14873   library_names_spec='${libname}${shared_ext}'
14874   dynamic_linker="$host_os ld.so"
14875   shlibpath_var=LIBRARY_PATH
14876   ;;
14877
14878 bsdi[45]*)
14879   version_type=linux
14880   need_version=no
14881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14882   soname_spec='${libname}${release}${shared_ext}$major'
14883   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14884   shlibpath_var=LD_LIBRARY_PATH
14885   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14886   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14887   # the default ld.so.conf also contains /usr/contrib/lib and
14888   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14889   # libtool to hard-code these into programs
14890   ;;
14891
14892 cygwin* | mingw* | pw32* | cegcc*)
14893   version_type=windows
14894   shrext_cmds=".dll"
14895   need_version=no
14896   need_lib_prefix=no
14897
14898   case $GCC,$cc_basename in
14899   yes,*)
14900     # gcc
14901     library_names_spec='$libname.dll.a'
14902     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14903     postinstall_cmds='base_file=`basename \${file}`~
14904       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14905       dldir=$destdir/`dirname \$dlpath`~
14906       test -d \$dldir || mkdir -p \$dldir~
14907       $install_prog $dir/$dlname \$dldir/$dlname~
14908       chmod a+x \$dldir/$dlname~
14909       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14910         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14911       fi'
14912     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14913       dlpath=$dir/\$dldll~
14914        $RM \$dlpath'
14915     shlibpath_overrides_runpath=yes
14916
14917     case $host_os in
14918     cygwin*)
14919       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14920       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14921
14922       ;;
14923     mingw* | cegcc*)
14924       # MinGW DLLs use traditional 'lib' prefix
14925       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14926       ;;
14927     pw32*)
14928       # pw32 DLLs use 'pw' prefix rather than 'lib'
14929       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14930       ;;
14931     esac
14932     dynamic_linker='Win32 ld.exe'
14933     ;;
14934
14935   *,cl*)
14936     # Native MSVC
14937     libname_spec='$name'
14938     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14939     library_names_spec='${libname}.dll.lib'
14940
14941     case $build_os in
14942     mingw*)
14943       sys_lib_search_path_spec=
14944       lt_save_ifs=$IFS
14945       IFS=';'
14946       for lt_path in $LIB
14947       do
14948         IFS=$lt_save_ifs
14949         # Let DOS variable expansion print the short 8.3 style file name.
14950         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14951         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14952       done
14953       IFS=$lt_save_ifs
14954       # Convert to MSYS style.
14955       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14956       ;;
14957     cygwin*)
14958       # Convert to unix form, then to dos form, then back to unix form
14959       # but this time dos style (no spaces!) so that the unix form looks
14960       # like /cygdrive/c/PROGRA~1:/cygdr...
14961       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14962       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14963       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14964       ;;
14965     *)
14966       sys_lib_search_path_spec="$LIB"
14967       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14968         # It is most probably a Windows format PATH.
14969         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14970       else
14971         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14972       fi
14973       # FIXME: find the short name or the path components, as spaces are
14974       # common. (e.g. "Program Files" -> "PROGRA~1")
14975       ;;
14976     esac
14977
14978     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14979     postinstall_cmds='base_file=`basename \${file}`~
14980       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14981       dldir=$destdir/`dirname \$dlpath`~
14982       test -d \$dldir || mkdir -p \$dldir~
14983       $install_prog $dir/$dlname \$dldir/$dlname'
14984     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14985       dlpath=$dir/\$dldll~
14986        $RM \$dlpath'
14987     shlibpath_overrides_runpath=yes
14988     dynamic_linker='Win32 link.exe'
14989     ;;
14990
14991   *)
14992     # Assume MSVC wrapper
14993     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14994     dynamic_linker='Win32 ld.exe'
14995     ;;
14996   esac
14997   # FIXME: first we should search . and the directory the executable is in
14998   shlibpath_var=PATH
14999   ;;
15000
15001 darwin* | rhapsody*)
15002   dynamic_linker="$host_os dyld"
15003   version_type=darwin
15004   need_lib_prefix=no
15005   need_version=no
15006   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15007   soname_spec='${libname}${release}${major}$shared_ext'
15008   shlibpath_overrides_runpath=yes
15009   shlibpath_var=DYLD_LIBRARY_PATH
15010   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15011
15012   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15013   ;;
15014
15015 dgux*)
15016   version_type=linux
15017   need_lib_prefix=no
15018   need_version=no
15019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15020   soname_spec='${libname}${release}${shared_ext}$major'
15021   shlibpath_var=LD_LIBRARY_PATH
15022   ;;
15023
15024 freebsd1*)
15025   dynamic_linker=no
15026   ;;
15027
15028 freebsd* | dragonfly*)
15029   # DragonFly does not have aout.  When/if they implement a new
15030   # versioning mechanism, adjust this.
15031   if test -x /usr/bin/objformat; then
15032     objformat=`/usr/bin/objformat`
15033   else
15034     case $host_os in
15035     freebsd[123]*) objformat=aout ;;
15036     *) objformat=elf ;;
15037     esac
15038   fi
15039   version_type=freebsd-$objformat
15040   case $version_type in
15041     freebsd-elf*)
15042       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15043       need_version=no
15044       need_lib_prefix=no
15045       ;;
15046     freebsd-*)
15047       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15048       need_version=yes
15049       ;;
15050   esac
15051   shlibpath_var=LD_LIBRARY_PATH
15052   case $host_os in
15053   freebsd2*)
15054     shlibpath_overrides_runpath=yes
15055     ;;
15056   freebsd3.[01]* | freebsdelf3.[01]*)
15057     shlibpath_overrides_runpath=yes
15058     hardcode_into_libs=yes
15059     ;;
15060   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15061   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15062     shlibpath_overrides_runpath=no
15063     hardcode_into_libs=yes
15064     ;;
15065   *) # from 4.6 on, and DragonFly
15066     shlibpath_overrides_runpath=yes
15067     hardcode_into_libs=yes
15068     ;;
15069   esac
15070   ;;
15071
15072 gnu*)
15073   version_type=linux
15074   need_lib_prefix=no
15075   need_version=no
15076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15077   soname_spec='${libname}${release}${shared_ext}$major'
15078   shlibpath_var=LD_LIBRARY_PATH
15079   hardcode_into_libs=yes
15080   ;;
15081
15082 haiku*)
15083   version_type=linux
15084   need_lib_prefix=no
15085   need_version=no
15086   dynamic_linker="$host_os runtime_loader"
15087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15088   soname_spec='${libname}${release}${shared_ext}$major'
15089   shlibpath_var=LIBRARY_PATH
15090   shlibpath_overrides_runpath=yes
15091   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15092   hardcode_into_libs=yes
15093   ;;
15094
15095 hpux9* | hpux10* | hpux11*)
15096   # Give a soname corresponding to the major version so that dld.sl refuses to
15097   # link against other versions.
15098   version_type=sunos
15099   need_lib_prefix=no
15100   need_version=no
15101   case $host_cpu in
15102   ia64*)
15103     shrext_cmds='.so'
15104     hardcode_into_libs=yes
15105     dynamic_linker="$host_os dld.so"
15106     shlibpath_var=LD_LIBRARY_PATH
15107     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15109     soname_spec='${libname}${release}${shared_ext}$major'
15110     if test "X$HPUX_IA64_MODE" = X32; then
15111       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15112     else
15113       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15114     fi
15115     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15116     ;;
15117   hppa*64*)
15118     shrext_cmds='.sl'
15119     hardcode_into_libs=yes
15120     dynamic_linker="$host_os dld.sl"
15121     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15122     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15123     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15124     soname_spec='${libname}${release}${shared_ext}$major'
15125     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15126     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15127     ;;
15128   *)
15129     shrext_cmds='.sl'
15130     dynamic_linker="$host_os dld.sl"
15131     shlibpath_var=SHLIB_PATH
15132     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15133     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134     soname_spec='${libname}${release}${shared_ext}$major'
15135     ;;
15136   esac
15137   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15138   postinstall_cmds='chmod 555 $lib'
15139   # or fails outright, so override atomically:
15140   install_override_mode=555
15141   ;;
15142
15143 interix[3-9]*)
15144   version_type=linux
15145   need_lib_prefix=no
15146   need_version=no
15147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15148   soname_spec='${libname}${release}${shared_ext}$major'
15149   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15150   shlibpath_var=LD_LIBRARY_PATH
15151   shlibpath_overrides_runpath=no
15152   hardcode_into_libs=yes
15153   ;;
15154
15155 irix5* | irix6* | nonstopux*)
15156   case $host_os in
15157     nonstopux*) version_type=nonstopux ;;
15158     *)
15159         if test "$lt_cv_prog_gnu_ld" = yes; then
15160                 version_type=linux
15161         else
15162                 version_type=irix
15163         fi ;;
15164   esac
15165   need_lib_prefix=no
15166   need_version=no
15167   soname_spec='${libname}${release}${shared_ext}$major'
15168   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15169   case $host_os in
15170   irix5* | nonstopux*)
15171     libsuff= shlibsuff=
15172     ;;
15173   *)
15174     case $LD in # libtool.m4 will add one of these switches to LD
15175     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15176       libsuff= shlibsuff= libmagic=32-bit;;
15177     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15178       libsuff=32 shlibsuff=N32 libmagic=N32;;
15179     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15180       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15181     *) libsuff= shlibsuff= libmagic=never-match;;
15182     esac
15183     ;;
15184   esac
15185   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15186   shlibpath_overrides_runpath=no
15187   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15188   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15189   hardcode_into_libs=yes
15190   ;;
15191
15192 # No shared lib support for Linux oldld, aout, or coff.
15193 linux*oldld* | linux*aout* | linux*coff*)
15194   dynamic_linker=no
15195   ;;
15196
15197 # This must be Linux ELF.
15198 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15199   version_type=linux
15200   need_lib_prefix=no
15201   need_version=no
15202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15203   soname_spec='${libname}${release}${shared_ext}$major'
15204   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15205   shlibpath_var=LD_LIBRARY_PATH
15206   shlibpath_overrides_runpath=no
15207
15208   # Some binutils ld are patched to set DT_RUNPATH
15209   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15210   $as_echo_n "(cached) " >&6
15211 else
15212   lt_cv_shlibpath_overrides_runpath=no
15213     save_LDFLAGS=$LDFLAGS
15214     save_libdir=$libdir
15215     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15216          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h.  */
15219
15220 int
15221 main ()
15222 {
15223
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 if ac_fn_cxx_try_link "$LINENO"; then :
15229   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15230   lt_cv_shlibpath_overrides_runpath=yes
15231 fi
15232 fi
15233 rm -f core conftest.err conftest.$ac_objext \
15234     conftest$ac_exeext conftest.$ac_ext
15235     LDFLAGS=$save_LDFLAGS
15236     libdir=$save_libdir
15237
15238 fi
15239
15240   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15241
15242   # This implies no fast_install, which is unacceptable.
15243   # Some rework will be needed to allow for fast_install
15244   # before this can be enabled.
15245   hardcode_into_libs=yes
15246
15247   # Append ld.so.conf contents to the search path
15248   if test -f /etc/ld.so.conf; then
15249     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;s/"//g;/^$/d' | tr '\n' ' '`
15250     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15251   fi
15252
15253   # We used to test for /lib/ld.so.1 and disable shared libraries on
15254   # powerpc, because MkLinux only supported shared libraries with the
15255   # GNU dynamic linker.  Since this was broken with cross compilers,
15256   # most powerpc-linux boxes support dynamic linking these days and
15257   # people can always --disable-shared, the test was removed, and we
15258   # assume the GNU/Linux dynamic linker is in use.
15259   dynamic_linker='GNU/Linux ld.so'
15260   ;;
15261
15262 netbsd*)
15263   version_type=sunos
15264   need_lib_prefix=no
15265   need_version=no
15266   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15268     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15269     dynamic_linker='NetBSD (a.out) ld.so'
15270   else
15271     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15272     soname_spec='${libname}${release}${shared_ext}$major'
15273     dynamic_linker='NetBSD ld.elf_so'
15274   fi
15275   shlibpath_var=LD_LIBRARY_PATH
15276   shlibpath_overrides_runpath=yes
15277   hardcode_into_libs=yes
15278   ;;
15279
15280 newsos6)
15281   version_type=linux
15282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15283   shlibpath_var=LD_LIBRARY_PATH
15284   shlibpath_overrides_runpath=yes
15285   ;;
15286
15287 *nto* | *qnx*)
15288   version_type=qnx
15289   need_lib_prefix=no
15290   need_version=no
15291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292   soname_spec='${libname}${release}${shared_ext}$major'
15293   shlibpath_var=LD_LIBRARY_PATH
15294   shlibpath_overrides_runpath=no
15295   hardcode_into_libs=yes
15296   dynamic_linker='ldqnx.so'
15297   ;;
15298
15299 openbsd*)
15300   version_type=sunos
15301   sys_lib_dlsearch_path_spec="/usr/lib"
15302   need_lib_prefix=no
15303   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15304   case $host_os in
15305     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15306     *)                          need_version=no  ;;
15307   esac
15308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15309   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15310   shlibpath_var=LD_LIBRARY_PATH
15311   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15312     case $host_os in
15313       openbsd2.[89] | openbsd2.[89].*)
15314         shlibpath_overrides_runpath=no
15315         ;;
15316       *)
15317         shlibpath_overrides_runpath=yes
15318         ;;
15319       esac
15320   else
15321     shlibpath_overrides_runpath=yes
15322   fi
15323   ;;
15324
15325 os2*)
15326   libname_spec='$name'
15327   shrext_cmds=".dll"
15328   need_lib_prefix=no
15329   library_names_spec='$libname${shared_ext} $libname.a'
15330   dynamic_linker='OS/2 ld.exe'
15331   shlibpath_var=LIBPATH
15332   ;;
15333
15334 osf3* | osf4* | osf5*)
15335   version_type=osf
15336   need_lib_prefix=no
15337   need_version=no
15338   soname_spec='${libname}${release}${shared_ext}$major'
15339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340   shlibpath_var=LD_LIBRARY_PATH
15341   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15342   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15343   ;;
15344
15345 rdos*)
15346   dynamic_linker=no
15347   ;;
15348
15349 solaris*)
15350   version_type=linux
15351   need_lib_prefix=no
15352   need_version=no
15353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15354   soname_spec='${libname}${release}${shared_ext}$major'
15355   shlibpath_var=LD_LIBRARY_PATH
15356   shlibpath_overrides_runpath=yes
15357   hardcode_into_libs=yes
15358   # ldd complains unless libraries are executable
15359   postinstall_cmds='chmod +x $lib'
15360   ;;
15361
15362 sunos4*)
15363   version_type=sunos
15364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15365   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15366   shlibpath_var=LD_LIBRARY_PATH
15367   shlibpath_overrides_runpath=yes
15368   if test "$with_gnu_ld" = yes; then
15369     need_lib_prefix=no
15370   fi
15371   need_version=yes
15372   ;;
15373
15374 sysv4 | sysv4.3*)
15375   version_type=linux
15376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377   soname_spec='${libname}${release}${shared_ext}$major'
15378   shlibpath_var=LD_LIBRARY_PATH
15379   case $host_vendor in
15380     sni)
15381       shlibpath_overrides_runpath=no
15382       need_lib_prefix=no
15383       runpath_var=LD_RUN_PATH
15384       ;;
15385     siemens)
15386       need_lib_prefix=no
15387       ;;
15388     motorola)
15389       need_lib_prefix=no
15390       need_version=no
15391       shlibpath_overrides_runpath=no
15392       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15393       ;;
15394   esac
15395   ;;
15396
15397 sysv4*MP*)
15398   if test -d /usr/nec ;then
15399     version_type=linux
15400     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15401     soname_spec='$libname${shared_ext}.$major'
15402     shlibpath_var=LD_LIBRARY_PATH
15403   fi
15404   ;;
15405
15406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15407   version_type=freebsd-elf
15408   need_lib_prefix=no
15409   need_version=no
15410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15411   soname_spec='${libname}${release}${shared_ext}$major'
15412   shlibpath_var=LD_LIBRARY_PATH
15413   shlibpath_overrides_runpath=yes
15414   hardcode_into_libs=yes
15415   if test "$with_gnu_ld" = yes; then
15416     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15417   else
15418     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15419     case $host_os in
15420       sco3.2v5*)
15421         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15422         ;;
15423     esac
15424   fi
15425   sys_lib_dlsearch_path_spec='/usr/lib'
15426   ;;
15427
15428 tpf*)
15429   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15430   version_type=linux
15431   need_lib_prefix=no
15432   need_version=no
15433   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434   shlibpath_var=LD_LIBRARY_PATH
15435   shlibpath_overrides_runpath=no
15436   hardcode_into_libs=yes
15437   ;;
15438
15439 uts4*)
15440   version_type=linux
15441   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442   soname_spec='${libname}${release}${shared_ext}$major'
15443   shlibpath_var=LD_LIBRARY_PATH
15444   ;;
15445
15446 *)
15447   dynamic_linker=no
15448   ;;
15449 esac
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15451 $as_echo "$dynamic_linker" >&6; }
15452 test "$dynamic_linker" = no && can_build_shared=no
15453
15454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15455 if test "$GCC" = yes; then
15456   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15457 fi
15458
15459 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15460   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15461 fi
15462 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15463   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15464 fi
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15505 hardcode_action_CXX=
15506 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15507    test -n "$runpath_var_CXX" ||
15508    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15509
15510   # We can hardcode non-existent directories.
15511   if test "$hardcode_direct_CXX" != no &&
15512      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15513      # have to relink, otherwise we might link with an installed library
15514      # when we should be linking with a yet-to-be-installed one
15515      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15516      test "$hardcode_minus_L_CXX" != no; then
15517     # Linking always hardcodes the temporary library directory.
15518     hardcode_action_CXX=relink
15519   else
15520     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15521     hardcode_action_CXX=immediate
15522   fi
15523 else
15524   # We cannot hardcode anything, or else we can only hardcode existing
15525   # directories.
15526   hardcode_action_CXX=unsupported
15527 fi
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15529 $as_echo "$hardcode_action_CXX" >&6; }
15530
15531 if test "$hardcode_action_CXX" = relink ||
15532    test "$inherit_rpath_CXX" = yes; then
15533   # Fast installation is not supported
15534   enable_fast_install=no
15535 elif test "$shlibpath_overrides_runpath" = yes ||
15536      test "$enable_shared" = no; then
15537   # Fast installation is not necessary
15538   enable_fast_install=needless
15539 fi
15540
15541
15542
15543
15544
15545
15546
15547   fi # test -n "$compiler"
15548
15549   CC=$lt_save_CC
15550   CFLAGS=$lt_save_CFLAGS
15551   LDCXX=$LD
15552   LD=$lt_save_LD
15553   GCC=$lt_save_GCC
15554   with_gnu_ld=$lt_save_with_gnu_ld
15555   lt_cv_path_LDCXX=$lt_cv_path_LD
15556   lt_cv_path_LD=$lt_save_path_LD
15557   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15558   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15559 fi # test "$_lt_caught_CXX_error" != yes
15560
15561 ac_ext=c
15562 ac_cpp='$CPP $CPPFLAGS'
15563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579         ac_config_commands="$ac_config_commands libtool"
15580
15581
15582
15583
15584 # Only expand once:
15585
15586
15587
15588
15589 # Add configure option --enable-maintainer-mode which enables dependency
15590 # checking and generation useful to package maintainers.  This is made an
15591 # option to avoid confusing end users.
15592
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15594 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15595     # Check whether --enable-maintainer-mode was given.
15596 if test "${enable_maintainer_mode+set}" = set; then :
15597   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15598 else
15599   USE_MAINTAINER_MODE=no
15600 fi
15601
15602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15603 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15604    if test $USE_MAINTAINER_MODE = yes; then
15605   MAINTAINER_MODE_TRUE=
15606   MAINTAINER_MODE_FALSE='#'
15607 else
15608   MAINTAINER_MODE_TRUE='#'
15609   MAINTAINER_MODE_FALSE=
15610 fi
15611
15612   MAINT=$MAINTAINER_MODE_TRUE
15613
15614
15615
15616 # If the C compiler supports the keyword inline, do nothing. Otherwise
15617 # define inline to __inline__ or __inline if it accepts one of those,
15618 # otherwise define inline to be empty.
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15620 $as_echo_n "checking for inline... " >&6; }
15621 if ${ac_cv_c_inline+:} false; then :
15622   $as_echo_n "(cached) " >&6
15623 else
15624   ac_cv_c_inline=no
15625 for ac_kw in inline __inline__ __inline; do
15626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h.  */
15628 #ifndef __cplusplus
15629 typedef int foo_t;
15630 static $ac_kw foo_t static_foo () {return 0; }
15631 $ac_kw foo_t foo () {return 0; }
15632 #endif
15633
15634 _ACEOF
15635 if ac_fn_c_try_compile "$LINENO"; then :
15636   ac_cv_c_inline=$ac_kw
15637 fi
15638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15639   test "$ac_cv_c_inline" != no && break
15640 done
15641
15642 fi
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15644 $as_echo "$ac_cv_c_inline" >&6; }
15645
15646 case $ac_cv_c_inline in
15647   inline | yes) ;;
15648   *)
15649     case $ac_cv_c_inline in
15650       no) ac_val=;;
15651       *) ac_val=$ac_cv_c_inline;;
15652     esac
15653     cat >>confdefs.h <<_ACEOF
15654 #ifndef __cplusplus
15655 #define inline $ac_val
15656 #endif
15657 _ACEOF
15658     ;;
15659 esac
15660
15661
15662
15663 # If words are stored with the most significant byte first (like
15664 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
15665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15666 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15667 if ${ac_cv_c_bigendian+:} false; then :
15668   $as_echo_n "(cached) " >&6
15669 else
15670   ac_cv_c_bigendian=unknown
15671     # See if we're dealing with a universal compiler.
15672     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h.  */
15674 #ifndef __APPLE_CC__
15675                not a universal capable compiler
15676              #endif
15677              typedef int dummy;
15678
15679 _ACEOF
15680 if ac_fn_c_try_compile "$LINENO"; then :
15681
15682         # Check for potential -arch flags.  It is not universal unless
15683         # there are at least two -arch flags with different values.
15684         ac_arch=
15685         ac_prev=
15686         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15687          if test -n "$ac_prev"; then
15688            case $ac_word in
15689              i?86 | x86_64 | ppc | ppc64)
15690                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15691                  ac_arch=$ac_word
15692                else
15693                  ac_cv_c_bigendian=universal
15694                  break
15695                fi
15696                ;;
15697            esac
15698            ac_prev=
15699          elif test "x$ac_word" = "x-arch"; then
15700            ac_prev=arch
15701          fi
15702        done
15703 fi
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705     if test $ac_cv_c_bigendian = unknown; then
15706       # See if sys/param.h defines the BYTE_ORDER macro.
15707       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h.  */
15709 #include <sys/types.h>
15710              #include <sys/param.h>
15711
15712 int
15713 main ()
15714 {
15715 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15716                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15717                      && LITTLE_ENDIAN)
15718               bogus endian macros
15719              #endif
15720
15721   ;
15722   return 0;
15723 }
15724 _ACEOF
15725 if ac_fn_c_try_compile "$LINENO"; then :
15726   # It does; now see whether it defined to BIG_ENDIAN or not.
15727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h.  */
15729 #include <sys/types.h>
15730                 #include <sys/param.h>
15731
15732 int
15733 main ()
15734 {
15735 #if BYTE_ORDER != BIG_ENDIAN
15736                  not big endian
15737                 #endif
15738
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744   ac_cv_c_bigendian=yes
15745 else
15746   ac_cv_c_bigendian=no
15747 fi
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749 fi
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751     fi
15752     if test $ac_cv_c_bigendian = unknown; then
15753       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15754       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15755 /* end confdefs.h.  */
15756 #include <limits.h>
15757
15758 int
15759 main ()
15760 {
15761 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15762               bogus endian macros
15763              #endif
15764
15765   ;
15766   return 0;
15767 }
15768 _ACEOF
15769 if ac_fn_c_try_compile "$LINENO"; then :
15770   # It does; now see whether it defined to _BIG_ENDIAN or not.
15771          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15772 /* end confdefs.h.  */
15773 #include <limits.h>
15774
15775 int
15776 main ()
15777 {
15778 #ifndef _BIG_ENDIAN
15779                  not big endian
15780                 #endif
15781
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 if ac_fn_c_try_compile "$LINENO"; then :
15787   ac_cv_c_bigendian=yes
15788 else
15789   ac_cv_c_bigendian=no
15790 fi
15791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15794     fi
15795     if test $ac_cv_c_bigendian = unknown; then
15796       # Compile a test program.
15797       if test "$cross_compiling" = yes; then :
15798   # Try to guess by grepping values from an object file.
15799          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h.  */
15801 short int ascii_mm[] =
15802                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15803                 short int ascii_ii[] =
15804                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15805                 int use_ascii (int i) {
15806                   return ascii_mm[i] + ascii_ii[i];
15807                 }
15808                 short int ebcdic_ii[] =
15809                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15810                 short int ebcdic_mm[] =
15811                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15812                 int use_ebcdic (int i) {
15813                   return ebcdic_mm[i] + ebcdic_ii[i];
15814                 }
15815                 extern int foo;
15816
15817 int
15818 main ()
15819 {
15820 return use_ascii (foo) == use_ebcdic (foo);
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 if ac_fn_c_try_compile "$LINENO"; then :
15826   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15827               ac_cv_c_bigendian=yes
15828             fi
15829             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15830               if test "$ac_cv_c_bigendian" = unknown; then
15831                 ac_cv_c_bigendian=no
15832               else
15833                 # finding both strings is unlikely to happen, but who knows?
15834                 ac_cv_c_bigendian=unknown
15835               fi
15836             fi
15837 fi
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839 else
15840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h.  */
15842 $ac_includes_default
15843 int
15844 main ()
15845 {
15846
15847              /* Are we little or big endian?  From Harbison&Steele.  */
15848              union
15849              {
15850                long int l;
15851                char c[sizeof (long int)];
15852              } u;
15853              u.l = 1;
15854              return u.c[sizeof (long int) - 1] == 1;
15855
15856   ;
15857   return 0;
15858 }
15859 _ACEOF
15860 if ac_fn_c_try_run "$LINENO"; then :
15861   ac_cv_c_bigendian=no
15862 else
15863   ac_cv_c_bigendian=yes
15864 fi
15865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15866   conftest.$ac_objext conftest.beam conftest.$ac_ext
15867 fi
15868
15869     fi
15870 fi
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15872 $as_echo "$ac_cv_c_bigendian" >&6; }
15873  case $ac_cv_c_bigendian in #(
15874    yes)
15875      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15876 ;; #(
15877    no)
15878       ;; #(
15879    universal)
15880
15881 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15882
15883      ;; #(
15884    *)
15885      as_fn_error $? "unknown endianness
15886  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
15887  esac
15888
15889
15890 #
15891 # Find math library
15892 #
15893 LIB_MATH=''
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
15895 $as_echo_n "checking for sqrt in -lm... " >&6; }
15896 if ${ac_cv_lib_m_sqrt+:} false; then :
15897   $as_echo_n "(cached) " >&6
15898 else
15899   ac_check_lib_save_LIBS=$LIBS
15900 LIBS="-lm  $LIBS"
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h.  */
15903
15904 /* Override any GCC internal prototype to avoid an error.
15905    Use char because int might match the return type of a GCC
15906    builtin and then its argument prototype would still apply.  */
15907 #ifdef __cplusplus
15908 extern "C"
15909 #endif
15910 char sqrt ();
15911 int
15912 main ()
15913 {
15914 return sqrt ();
15915   ;
15916   return 0;
15917 }
15918 _ACEOF
15919 if ac_fn_c_try_link "$LINENO"; then :
15920   ac_cv_lib_m_sqrt=yes
15921 else
15922   ac_cv_lib_m_sqrt=no
15923 fi
15924 rm -f core conftest.err conftest.$ac_objext \
15925     conftest$ac_exeext conftest.$ac_ext
15926 LIBS=$ac_check_lib_save_LIBS
15927 fi
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
15929 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
15930 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
15931   LIB_MATH="-lm"
15932 fi
15933
15934 LIBS="$LIB_MATH $LIBS"
15935
15936
15937 #
15938 # Check for JPEG
15939 #
15940 have_jpeg='no'
15941 LIB_JPEG=''
15942 if test ! "$with_jpeg" = 'no'
15943 then
15944     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG support " >&5
15945 $as_echo_n "checking for JPEG support ... " >&6; }
15946     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
15947 $as_echo "" >&6; }
15948     failed=0;
15949     passed=0;
15950     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
15951 if test "x$ac_cv_header_jconfig_h" = xyes; then :
15952   passed=`expr $passed + 1`
15953 else
15954   failed=`expr $failed + 1`
15955 fi
15956
15957
15958     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
15959 if test "x$ac_cv_header_jerror_h" = xyes; then :
15960   passed=`expr $passed + 1`
15961 else
15962   failed=`expr $failed + 1`
15963 fi
15964
15965
15966     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
15967 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
15968   passed=`expr $passed + 1`
15969 else
15970   failed=`expr $failed + 1`
15971 fi
15972
15973
15974     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
15975 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
15976   passed=`expr $passed + 1`
15977 else
15978   failed=`expr $failed + 1`
15979 fi
15980
15981
15982     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
15983 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
15984 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
15985   $as_echo_n "(cached) " >&6
15986 else
15987   ac_check_lib_save_LIBS=$LIBS
15988 LIBS="-ljpeg  $LIBS"
15989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15990 /* end confdefs.h.  */
15991
15992 /* Override any GCC internal prototype to avoid an error.
15993    Use char because int might match the return type of a GCC
15994    builtin and then its argument prototype would still apply.  */
15995 #ifdef __cplusplus
15996 extern "C"
15997 #endif
15998 char jpeg_read_header ();
15999 int
16000 main ()
16001 {
16002 return jpeg_read_header ();
16003   ;
16004   return 0;
16005 }
16006 _ACEOF
16007 if ac_fn_c_try_link "$LINENO"; then :
16008   ac_cv_lib_jpeg_jpeg_read_header=yes
16009 else
16010   ac_cv_lib_jpeg_jpeg_read_header=no
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext \
16013     conftest$ac_exeext conftest.$ac_ext
16014 LIBS=$ac_check_lib_save_LIBS
16015 fi
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
16017 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
16018 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
16019   passed=`expr $passed + 1`
16020 else
16021   failed=`expr $failed + 1`
16022 fi
16023
16024
16025 # Test for compatible JPEG library
16026 if test ! "$ac_cv_jpeg_version_ok" = 'yes' ; then
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
16028 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
16029 if ${ac_cv_jpeg_version_ok+:} false; then :
16030   $as_echo_n "(cached) " >&6
16031 else
16032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16033 /* end confdefs.h.  */
16034 #include <stdio.h>
16035 #include <stdlib.h>
16036 #include <jpeglib.h>
16037
16038 int
16039 main ()
16040 {
16041
16042 #if JPEG_LIB_VERSION < 62
16043 #error IJG JPEG library must be version 6b or newer!
16044 #endif
16045 return 0;
16046
16047   ;
16048   return 0;
16049 }
16050 _ACEOF
16051 if ac_fn_c_try_compile "$LINENO"; then :
16052   ac_cv_jpeg_version_ok='yes'
16053 else
16054   ac_cv_jpeg_version_ok='no'
16055 fi
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 fi
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
16059 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
16060 if test "$ac_cv_jpeg_version_ok" = 'yes' ; then
16061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16062 $as_echo "yes" >&6; }
16063  passed=`expr $passed + 1`
16064 else
16065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16066 $as_echo "no" >&6; }
16067  failed=`expr $failed + 1`
16068 fi
16069 fi
16070     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
16071 $as_echo_n "checking if JPEG package is complete... " >&6; }
16072     if test $passed -gt 0
16073     then
16074     if test $failed -gt 0
16075     then
16076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16077 $as_echo "no -- some components failed test" >&6; }
16078         have_jpeg='no (failed tests)'
16079     else
16080         LIB_JPEG='-ljpeg'
16081         LIBS="$LIB_JPEG $LIBS"
16082
16083 $as_echo "#define HasJPEG 1" >>confdefs.h
16084
16085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16086 $as_echo "yes" >&6; }
16087         have_jpeg='yes'
16088     fi
16089     else
16090         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16091 $as_echo "no" >&6; }
16092     fi
16093 fi
16094  if test "$have_jpeg" = 'yes'; then
16095   HasJPEG_TRUE=
16096   HasJPEG_FALSE='#'
16097 else
16098   HasJPEG_TRUE='#'
16099   HasJPEG_FALSE=
16100 fi
16101
16102
16103
16104 #
16105 # Check for ZLIB
16106 #
16107 have_zlib='no'
16108 if test ! "$with_zlib" = 'no' || test ! "$with_png" = 'no'
16109 then
16110   LIB_ZLIB=''
16111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB support " >&5
16112 $as_echo_n "checking for ZLIB support ... " >&6; }
16113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16114 $as_echo "" >&6; }
16115   failed=0;
16116   passed=0;
16117   ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
16118 if test "x$ac_cv_header_zconf_h" = xyes; then :
16119   passed=`expr $passed + 1`
16120 else
16121   failed=`expr $failed + 1`
16122 fi
16123
16124
16125   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16126 if test "x$ac_cv_header_zlib_h" = xyes; then :
16127   passed=`expr $passed + 1`
16128 else
16129   failed=`expr $failed + 1`
16130 fi
16131
16132
16133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
16134 $as_echo_n "checking for compress in -lz... " >&6; }
16135 if ${ac_cv_lib_z_compress+:} false; then :
16136   $as_echo_n "(cached) " >&6
16137 else
16138   ac_check_lib_save_LIBS=$LIBS
16139 LIBS="-lz  $LIBS"
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h.  */
16142
16143 /* Override any GCC internal prototype to avoid an error.
16144    Use char because int might match the return type of a GCC
16145    builtin and then its argument prototype would still apply.  */
16146 #ifdef __cplusplus
16147 extern "C"
16148 #endif
16149 char compress ();
16150 int
16151 main ()
16152 {
16153 return compress ();
16154   ;
16155   return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"; then :
16159   ac_cv_lib_z_compress=yes
16160 else
16161   ac_cv_lib_z_compress=no
16162 fi
16163 rm -f core conftest.err conftest.$ac_objext \
16164     conftest$ac_exeext conftest.$ac_ext
16165 LIBS=$ac_check_lib_save_LIBS
16166 fi
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
16168 $as_echo "$ac_cv_lib_z_compress" >&6; }
16169 if test "x$ac_cv_lib_z_compress" = xyes; then :
16170   passed=`expr $passed + 1`
16171 else
16172   failed=`expr $failed + 1`
16173 fi
16174
16175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
16176 $as_echo_n "checking for uncompress in -lz... " >&6; }
16177 if ${ac_cv_lib_z_uncompress+:} false; then :
16178   $as_echo_n "(cached) " >&6
16179 else
16180   ac_check_lib_save_LIBS=$LIBS
16181 LIBS="-lz  $LIBS"
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h.  */
16184
16185 /* Override any GCC internal prototype to avoid an error.
16186    Use char because int might match the return type of a GCC
16187    builtin and then its argument prototype would still apply.  */
16188 #ifdef __cplusplus
16189 extern "C"
16190 #endif
16191 char uncompress ();
16192 int
16193 main ()
16194 {
16195 return uncompress ();
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 if ac_fn_c_try_link "$LINENO"; then :
16201   ac_cv_lib_z_uncompress=yes
16202 else
16203   ac_cv_lib_z_uncompress=no
16204 fi
16205 rm -f core conftest.err conftest.$ac_objext \
16206     conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16208 fi
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
16210 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
16211 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
16212   passed=`expr $passed + 1`
16213 else
16214   failed=`expr $failed + 1`
16215 fi
16216
16217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
16218 $as_echo_n "checking for deflate in -lz... " >&6; }
16219 if ${ac_cv_lib_z_deflate+:} false; then :
16220   $as_echo_n "(cached) " >&6
16221 else
16222   ac_check_lib_save_LIBS=$LIBS
16223 LIBS="-lz  $LIBS"
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225 /* end confdefs.h.  */
16226
16227 /* Override any GCC internal prototype to avoid an error.
16228    Use char because int might match the return type of a GCC
16229    builtin and then its argument prototype would still apply.  */
16230 #ifdef __cplusplus
16231 extern "C"
16232 #endif
16233 char deflate ();
16234 int
16235 main ()
16236 {
16237 return deflate ();
16238   ;
16239   return 0;
16240 }
16241 _ACEOF
16242 if ac_fn_c_try_link "$LINENO"; then :
16243   ac_cv_lib_z_deflate=yes
16244 else
16245   ac_cv_lib_z_deflate=no
16246 fi
16247 rm -f core conftest.err conftest.$ac_objext \
16248     conftest$ac_exeext conftest.$ac_ext
16249 LIBS=$ac_check_lib_save_LIBS
16250 fi
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
16252 $as_echo "$ac_cv_lib_z_deflate" >&6; }
16253 if test "x$ac_cv_lib_z_deflate" = xyes; then :
16254   passed=`expr $passed + 1`
16255 else
16256   failed=`expr $failed + 1`
16257 fi
16258
16259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
16260 $as_echo_n "checking for inflate in -lz... " >&6; }
16261 if ${ac_cv_lib_z_inflate+:} false; then :
16262   $as_echo_n "(cached) " >&6
16263 else
16264   ac_check_lib_save_LIBS=$LIBS
16265 LIBS="-lz  $LIBS"
16266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16267 /* end confdefs.h.  */
16268
16269 /* Override any GCC internal prototype to avoid an error.
16270    Use char because int might match the return type of a GCC
16271    builtin and then its argument prototype would still apply.  */
16272 #ifdef __cplusplus
16273 extern "C"
16274 #endif
16275 char inflate ();
16276 int
16277 main ()
16278 {
16279 return inflate ();
16280   ;
16281   return 0;
16282 }
16283 _ACEOF
16284 if ac_fn_c_try_link "$LINENO"; then :
16285   ac_cv_lib_z_inflate=yes
16286 else
16287   ac_cv_lib_z_inflate=no
16288 fi
16289 rm -f core conftest.err conftest.$ac_objext \
16290     conftest$ac_exeext conftest.$ac_ext
16291 LIBS=$ac_check_lib_save_LIBS
16292 fi
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
16294 $as_echo "$ac_cv_lib_z_inflate" >&6; }
16295 if test "x$ac_cv_lib_z_inflate" = xyes; then :
16296   passed=`expr $passed + 1`
16297 else
16298   failed=`expr $failed + 1`
16299 fi
16300
16301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
16302 $as_echo_n "checking for gzseek in -lz... " >&6; }
16303 if ${ac_cv_lib_z_gzseek+:} false; then :
16304   $as_echo_n "(cached) " >&6
16305 else
16306   ac_check_lib_save_LIBS=$LIBS
16307 LIBS="-lz  $LIBS"
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h.  */
16310
16311 /* Override any GCC internal prototype to avoid an error.
16312    Use char because int might match the return type of a GCC
16313    builtin and then its argument prototype would still apply.  */
16314 #ifdef __cplusplus
16315 extern "C"
16316 #endif
16317 char gzseek ();
16318 int
16319 main ()
16320 {
16321 return gzseek ();
16322   ;
16323   return 0;
16324 }
16325 _ACEOF
16326 if ac_fn_c_try_link "$LINENO"; then :
16327   ac_cv_lib_z_gzseek=yes
16328 else
16329   ac_cv_lib_z_gzseek=no
16330 fi
16331 rm -f core conftest.err conftest.$ac_objext \
16332     conftest$ac_exeext conftest.$ac_ext
16333 LIBS=$ac_check_lib_save_LIBS
16334 fi
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
16336 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
16337 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
16338   passed=`expr $passed + 1`
16339 else
16340   failed=`expr $failed + 1`
16341 fi
16342
16343   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
16344 $as_echo_n "checking for gztell in -lz... " >&6; }
16345 if ${ac_cv_lib_z_gztell+:} false; then :
16346   $as_echo_n "(cached) " >&6
16347 else
16348   ac_check_lib_save_LIBS=$LIBS
16349 LIBS="-lz  $LIBS"
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h.  */
16352
16353 /* Override any GCC internal prototype to avoid an error.
16354    Use char because int might match the return type of a GCC
16355    builtin and then its argument prototype would still apply.  */
16356 #ifdef __cplusplus
16357 extern "C"
16358 #endif
16359 char gztell ();
16360 int
16361 main ()
16362 {
16363 return gztell ();
16364   ;
16365   return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_link "$LINENO"; then :
16369   ac_cv_lib_z_gztell=yes
16370 else
16371   ac_cv_lib_z_gztell=no
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext \
16374     conftest$ac_exeext conftest.$ac_ext
16375 LIBS=$ac_check_lib_save_LIBS
16376 fi
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
16378 $as_echo "$ac_cv_lib_z_gztell" >&6; }
16379 if test "x$ac_cv_lib_z_gztell" = xyes; then :
16380   passed=`expr $passed + 1`
16381 else
16382   failed=`expr $failed + 1`
16383 fi
16384
16385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
16386 $as_echo_n "checking if ZLIB package is complete... " >&6; }
16387   if test $passed -gt 0
16388   then
16389     if test $failed -gt 0
16390     then
16391       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16392 $as_echo "no -- some components failed test" >&6; }
16393       have_zlib='no (failed tests)'
16394     else
16395       LIB_ZLIB='-lz'
16396       LIBS="$LIB_ZLIB $LIBS"
16397
16398 $as_echo "#define HasZLIB 1" >>confdefs.h
16399
16400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16401 $as_echo "yes" >&6; }
16402       have_zlib='yes'
16403     fi
16404   else
16405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16406 $as_echo "no" >&6; }
16407   fi
16408 fi
16409  if test "$have_zlib" = 'yes'; then
16410   HasZLIB_TRUE=
16411   HasZLIB_FALSE='#'
16412 else
16413   HasZLIB_TRUE='#'
16414   HasZLIB_FALSE=
16415 fi
16416
16417
16418
16419 #
16420 # Check for TIFF
16421 #
16422 have_tiff='no'
16423 LIB_TIFF=''
16424 if test ! "$with_tiff" = 'no'
16425 then
16426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF support " >&5
16427 $as_echo_n "checking for TIFF support ... " >&6; }
16428     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16429 $as_echo "" >&6; }
16430     failed=0;
16431     passed=0;
16432     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
16433 if test "x$ac_cv_header_tiff_h" = xyes; then :
16434   passed=`expr $passed + 1`
16435 else
16436   failed=`expr $failed + 1`
16437 fi
16438
16439
16440     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
16441 if test "x$ac_cv_header_tiffio_h" = xyes; then :
16442   passed=`expr $passed + 1`
16443 else
16444   failed=`expr $failed + 1`
16445 fi
16446
16447
16448     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
16449 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
16450 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
16451   $as_echo_n "(cached) " >&6
16452 else
16453   ac_check_lib_save_LIBS=$LIBS
16454 LIBS="-ltiff  $LIBS"
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h.  */
16457
16458 /* Override any GCC internal prototype to avoid an error.
16459    Use char because int might match the return type of a GCC
16460    builtin and then its argument prototype would still apply.  */
16461 #ifdef __cplusplus
16462 extern "C"
16463 #endif
16464 char TIFFOpen ();
16465 int
16466 main ()
16467 {
16468 return TIFFOpen ();
16469   ;
16470   return 0;
16471 }
16472 _ACEOF
16473 if ac_fn_c_try_link "$LINENO"; then :
16474   ac_cv_lib_tiff_TIFFOpen=yes
16475 else
16476   ac_cv_lib_tiff_TIFFOpen=no
16477 fi
16478 rm -f core conftest.err conftest.$ac_objext \
16479     conftest$ac_exeext conftest.$ac_ext
16480 LIBS=$ac_check_lib_save_LIBS
16481 fi
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
16483 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
16484 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
16485   passed=`expr $passed + 1`
16486 else
16487   failed=`expr $failed + 1`
16488 fi
16489
16490     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
16491 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
16492 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
16493   $as_echo_n "(cached) " >&6
16494 else
16495   ac_check_lib_save_LIBS=$LIBS
16496 LIBS="-ltiff  $LIBS"
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h.  */
16499
16500 /* Override any GCC internal prototype to avoid an error.
16501    Use char because int might match the return type of a GCC
16502    builtin and then its argument prototype would still apply.  */
16503 #ifdef __cplusplus
16504 extern "C"
16505 #endif
16506 char TIFFClientOpen ();
16507 int
16508 main ()
16509 {
16510 return TIFFClientOpen ();
16511   ;
16512   return 0;
16513 }
16514 _ACEOF
16515 if ac_fn_c_try_link "$LINENO"; then :
16516   ac_cv_lib_tiff_TIFFClientOpen=yes
16517 else
16518   ac_cv_lib_tiff_TIFFClientOpen=no
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext \
16521     conftest$ac_exeext conftest.$ac_ext
16522 LIBS=$ac_check_lib_save_LIBS
16523 fi
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
16525 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
16526 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
16527   passed=`expr $passed + 1`
16528 else
16529   failed=`expr $failed + 1`
16530 fi
16531
16532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
16533 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
16534 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
16535   $as_echo_n "(cached) " >&6
16536 else
16537   ac_check_lib_save_LIBS=$LIBS
16538 LIBS="-ltiff  $LIBS"
16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16540 /* end confdefs.h.  */
16541
16542 /* Override any GCC internal prototype to avoid an error.
16543    Use char because int might match the return type of a GCC
16544    builtin and then its argument prototype would still apply.  */
16545 #ifdef __cplusplus
16546 extern "C"
16547 #endif
16548 char TIFFIsByteSwapped ();
16549 int
16550 main ()
16551 {
16552 return TIFFIsByteSwapped ();
16553   ;
16554   return 0;
16555 }
16556 _ACEOF
16557 if ac_fn_c_try_link "$LINENO"; then :
16558   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
16559 else
16560   ac_cv_lib_tiff_TIFFIsByteSwapped=no
16561 fi
16562 rm -f core conftest.err conftest.$ac_objext \
16563     conftest$ac_exeext conftest.$ac_ext
16564 LIBS=$ac_check_lib_save_LIBS
16565 fi
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
16567 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
16568 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
16569   passed=`expr $passed + 1`
16570 else
16571   failed=`expr $failed + 1`
16572 fi
16573
16574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
16575 $as_echo_n "checking if TIFF package is complete... " >&6; }
16576     if test $passed -gt 0
16577     then
16578     if test $failed -gt 0
16579     then
16580         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
16581 $as_echo "no -- some components failed test" >&6; }
16582         have_tiff='no (failed tests)'
16583     else
16584         LIB_TIFF='-ltiff'
16585         LIBS="$LIB_TIFF $LIBS"
16586
16587 $as_echo "#define HasTIFF 1" >>confdefs.h
16588
16589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16590 $as_echo "yes" >&6; }
16591         have_tiff='yes'
16592         for ac_header in tiffconf.h
16593 do :
16594   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
16595 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
16596   cat >>confdefs.h <<_ACEOF
16597 #define HAVE_TIFFCONF_H 1
16598 _ACEOF
16599
16600 fi
16601
16602 done
16603
16604     fi
16605     else
16606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16607 $as_echo "no" >&6; }
16608     fi
16609 fi
16610  if test "$have_tiff" = 'yes'; then
16611   HasTIFF_TRUE=
16612   HasTIFF_FALSE='#'
16613 else
16614   HasTIFF_TRUE='#'
16615   HasTIFF_FALSE=
16616 fi
16617
16618
16619
16620 # Libraries that the LCMS library depends on
16621 LCMS_LIB_DEPLIBS="$LIB_MATH"
16622 LCMS_LIB_DEPLIBS=`echo $LCMS_LIB_DEPLIBS | sed -e 's/  */ /g'`
16623
16624
16625 # Libraries that the jpegicc program depends on
16626 JPEGICC_DEPLIBS="$LIB_JPEG $LIB_MATH"
16627 JPEGICC_DEPLIBS=`echo $JPEGICC_DEPLIBS | sed -e 's/  */ /g'`
16628
16629
16630 # Libraries that the tifficc program depends on
16631 TIFFICC_DEPLIBS="$LIB_TIFF $LIB_JPEG $LIB_ZLIB $LIB_MATH"
16632 TIFFICC_DEPLIBS=`echo $TIFFICC_DEPLIBS | sed -e 's/  */ /g'`
16633
16634
16635 LIBS=''
16636
16637 #
16638 # Perform substitutions
16639 #
16640 ac_config_files="$ac_config_files Makefile"
16641
16642 ac_config_files="$ac_config_files lcms2.pc"
16643
16644 ac_config_files="$ac_config_files include/Makefile"
16645
16646 ac_config_files="$ac_config_files src/Makefile"
16647
16648 ac_config_files="$ac_config_files utils/tificc/Makefile"
16649
16650 ac_config_files="$ac_config_files utils/transicc/Makefile"
16651
16652 ac_config_files="$ac_config_files utils/linkicc/Makefile"
16653
16654 ac_config_files="$ac_config_files utils/jpgicc/Makefile"
16655
16656 ac_config_files="$ac_config_files utils/psicc/Makefile"
16657
16658 ac_config_files="$ac_config_files testbed/Makefile"
16659
16660 cat >confcache <<\_ACEOF
16661 # This file is a shell script that caches the results of configure
16662 # tests run on this system so they can be shared between configure
16663 # scripts and configure runs, see configure's option --config-cache.
16664 # It is not useful on other systems.  If it contains results you don't
16665 # want to keep, you may remove or edit it.
16666 #
16667 # config.status only pays attention to the cache file if you give it
16668 # the --recheck option to rerun configure.
16669 #
16670 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16671 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16672 # following values.
16673
16674 _ACEOF
16675
16676 # The following way of writing the cache mishandles newlines in values,
16677 # but we know of no workaround that is simple, portable, and efficient.
16678 # So, we kill variables containing newlines.
16679 # Ultrix sh set writes to stderr and can't be redirected directly,
16680 # and sets the high bit in the cache file unless we assign to the vars.
16681 (
16682   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16683     eval ac_val=\$$ac_var
16684     case $ac_val in #(
16685     *${as_nl}*)
16686       case $ac_var in #(
16687       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16688 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16689       esac
16690       case $ac_var in #(
16691       _ | IFS | as_nl) ;; #(
16692       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16693       *) { eval $ac_var=; unset $ac_var;} ;;
16694       esac ;;
16695     esac
16696   done
16697
16698   (set) 2>&1 |
16699     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16700     *${as_nl}ac_space=\ *)
16701       # `set' does not quote correctly, so add quotes: double-quote
16702       # substitution turns \\\\ into \\, and sed turns \\ into \.
16703       sed -n \
16704         "s/'/'\\\\''/g;
16705           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16706       ;; #(
16707     *)
16708       # `set' quotes correctly as required by POSIX, so do not add quotes.
16709       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16710       ;;
16711     esac |
16712     sort
16713 ) |
16714   sed '
16715      /^ac_cv_env_/b end
16716      t clear
16717      :clear
16718      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16719      t end
16720      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16721      :end' >>confcache
16722 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16723   if test -w "$cache_file"; then
16724     if test "x$cache_file" != "x/dev/null"; then
16725       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16726 $as_echo "$as_me: updating cache $cache_file" >&6;}
16727       if test ! -f "$cache_file" || test -h "$cache_file"; then
16728         cat confcache >"$cache_file"
16729       else
16730         case $cache_file in #(
16731         */* | ?:*)
16732           mv -f confcache "$cache_file"$$ &&
16733           mv -f "$cache_file"$$ "$cache_file" ;; #(
16734         *)
16735           mv -f confcache "$cache_file" ;;
16736         esac
16737       fi
16738     fi
16739   else
16740     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16741 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16742   fi
16743 fi
16744 rm -f confcache
16745
16746 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16747 # Let make expand exec_prefix.
16748 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16749
16750 # Transform confdefs.h into DEFS.
16751 # Protect against shell expansion while executing Makefile rules.
16752 # Protect against Makefile macro expansion.
16753 #
16754 # If the first sed substitution is executed (which looks for macros that
16755 # take arguments), then branch to the quote section.  Otherwise,
16756 # look for a macro that doesn't take arguments.
16757 ac_script='
16758 :mline
16759 /\\$/{
16760  N
16761  s,\\\n,,
16762  b mline
16763 }
16764 t clear
16765 :clear
16766 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
16767 t quote
16768 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
16769 t quote
16770 b any
16771 :quote
16772 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16773 s/\[/\\&/g
16774 s/\]/\\&/g
16775 s/\$/$$/g
16776 H
16777 :any
16778 ${
16779         g
16780         s/^\n//
16781         s/\n/ /g
16782         p
16783 }
16784 '
16785 DEFS=`sed -n "$ac_script" confdefs.h`
16786
16787
16788 ac_libobjs=
16789 ac_ltlibobjs=
16790 U=
16791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16792   # 1. Remove the extension, and $U if already installed.
16793   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16794   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16795   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16796   #    will be set to the directory where LIBOBJS objects are built.
16797   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16798   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16799 done
16800 LIBOBJS=$ac_libobjs
16801
16802 LTLIBOBJS=$ac_ltlibobjs
16803
16804
16805  if test -n "$EXEEXT"; then
16806   am__EXEEXT_TRUE=
16807   am__EXEEXT_FALSE='#'
16808 else
16809   am__EXEEXT_TRUE='#'
16810   am__EXEEXT_FALSE=
16811 fi
16812
16813 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16814   as_fn_error $? "conditional \"AMDEP\" was never defined.
16815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16816 fi
16817 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16818   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16820 fi
16821 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16822   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16824 fi
16825 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16826   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16828 fi
16829
16830 if test -z "${HasJPEG_TRUE}" && test -z "${HasJPEG_FALSE}"; then
16831   as_fn_error $? "conditional \"HasJPEG\" was never defined.
16832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16833 fi
16834 if test -z "${HasZLIB_TRUE}" && test -z "${HasZLIB_FALSE}"; then
16835   as_fn_error $? "conditional \"HasZLIB\" was never defined.
16836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 fi
16838 if test -z "${HasTIFF_TRUE}" && test -z "${HasTIFF_FALSE}"; then
16839   as_fn_error $? "conditional \"HasTIFF\" was never defined.
16840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16841 fi
16842
16843 : "${CONFIG_STATUS=./config.status}"
16844 ac_write_fail=0
16845 ac_clean_files_save=$ac_clean_files
16846 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16848 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16849 as_write_fail=0
16850 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16851 #! $SHELL
16852 # Generated by $as_me.
16853 # Run this file to recreate the current configuration.
16854 # Compiler output produced by configure, useful for debugging
16855 # configure, is in config.log if it exists.
16856
16857 debug=false
16858 ac_cs_recheck=false
16859 ac_cs_silent=false
16860
16861 SHELL=\${CONFIG_SHELL-$SHELL}
16862 export SHELL
16863 _ASEOF
16864 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16865 ## -------------------- ##
16866 ## M4sh Initialization. ##
16867 ## -------------------- ##
16868
16869 # Be more Bourne compatible
16870 DUALCASE=1; export DUALCASE # for MKS sh
16871 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16872   emulate sh
16873   NULLCMD=:
16874   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16875   # is contrary to our usage.  Disable this feature.
16876   alias -g '${1+"$@"}'='"$@"'
16877   setopt NO_GLOB_SUBST
16878 else
16879   case `(set -o) 2>/dev/null` in #(
16880   *posix*) :
16881     set -o posix ;; #(
16882   *) :
16883      ;;
16884 esac
16885 fi
16886
16887
16888 as_nl='
16889 '
16890 export as_nl
16891 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16892 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16894 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16895 # Prefer a ksh shell builtin over an external printf program on Solaris,
16896 # but without wasting forks for bash or zsh.
16897 if test -z "$BASH_VERSION$ZSH_VERSION" \
16898     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16899   as_echo='print -r --'
16900   as_echo_n='print -rn --'
16901 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16902   as_echo='printf %s\n'
16903   as_echo_n='printf %s'
16904 else
16905   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16906     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16907     as_echo_n='/usr/ucb/echo -n'
16908   else
16909     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16910     as_echo_n_body='eval
16911       arg=$1;
16912       case $arg in #(
16913       *"$as_nl"*)
16914         expr "X$arg" : "X\\(.*\\)$as_nl";
16915         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16916       esac;
16917       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16918     '
16919     export as_echo_n_body
16920     as_echo_n='sh -c $as_echo_n_body as_echo'
16921   fi
16922   export as_echo_body
16923   as_echo='sh -c $as_echo_body as_echo'
16924 fi
16925
16926 # The user is always right.
16927 if test "${PATH_SEPARATOR+set}" != set; then
16928   PATH_SEPARATOR=:
16929   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16930     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16931       PATH_SEPARATOR=';'
16932   }
16933 fi
16934
16935
16936 # IFS
16937 # We need space, tab and new line, in precisely that order.  Quoting is
16938 # there to prevent editors from complaining about space-tab.
16939 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16940 # splitting by setting IFS to empty value.)
16941 IFS=" ""        $as_nl"
16942
16943 # Find who we are.  Look in the path if we contain no directory separator.
16944 as_myself=
16945 case $0 in #((
16946   *[\\/]* ) as_myself=$0 ;;
16947   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948 for as_dir in $PATH
16949 do
16950   IFS=$as_save_IFS
16951   test -z "$as_dir" && as_dir=.
16952     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16953   done
16954 IFS=$as_save_IFS
16955
16956      ;;
16957 esac
16958 # We did not find ourselves, most probably we were run as `sh COMMAND'
16959 # in which case we are not to be found in the path.
16960 if test "x$as_myself" = x; then
16961   as_myself=$0
16962 fi
16963 if test ! -f "$as_myself"; then
16964   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16965   exit 1
16966 fi
16967
16968 # Unset variables that we do not need and which cause bugs (e.g. in
16969 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16970 # suppresses any "Segmentation fault" message there.  '((' could
16971 # trigger a bug in pdksh 5.2.14.
16972 for as_var in BASH_ENV ENV MAIL MAILPATH
16973 do eval test x\${$as_var+set} = xset \
16974   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16975 done
16976 PS1='$ '
16977 PS2='> '
16978 PS4='+ '
16979
16980 # NLS nuisances.
16981 LC_ALL=C
16982 export LC_ALL
16983 LANGUAGE=C
16984 export LANGUAGE
16985
16986 # CDPATH.
16987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16988
16989
16990 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16991 # ----------------------------------------
16992 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16993 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16994 # script with STATUS, using 1 if that was 0.
16995 as_fn_error ()
16996 {
16997   as_status=$1; test $as_status -eq 0 && as_status=1
16998   if test "$4"; then
16999     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17000     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17001   fi
17002   $as_echo "$as_me: error: $2" >&2
17003   as_fn_exit $as_status
17004 } # as_fn_error
17005
17006
17007 # as_fn_set_status STATUS
17008 # -----------------------
17009 # Set $? to STATUS, without forking.
17010 as_fn_set_status ()
17011 {
17012   return $1
17013 } # as_fn_set_status
17014
17015 # as_fn_exit STATUS
17016 # -----------------
17017 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17018 as_fn_exit ()
17019 {
17020   set +e
17021   as_fn_set_status $1
17022   exit $1
17023 } # as_fn_exit
17024
17025 # as_fn_unset VAR
17026 # ---------------
17027 # Portably unset VAR.
17028 as_fn_unset ()
17029 {
17030   { eval $1=; unset $1;}
17031 }
17032 as_unset=as_fn_unset
17033 # as_fn_append VAR VALUE
17034 # ----------------------
17035 # Append the text in VALUE to the end of the definition contained in VAR. Take
17036 # advantage of any shell optimizations that allow amortized linear growth over
17037 # repeated appends, instead of the typical quadratic growth present in naive
17038 # implementations.
17039 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17040   eval 'as_fn_append ()
17041   {
17042     eval $1+=\$2
17043   }'
17044 else
17045   as_fn_append ()
17046   {
17047     eval $1=\$$1\$2
17048   }
17049 fi # as_fn_append
17050
17051 # as_fn_arith ARG...
17052 # ------------------
17053 # Perform arithmetic evaluation on the ARGs, and store the result in the
17054 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17055 # must be portable across $(()) and expr.
17056 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17057   eval 'as_fn_arith ()
17058   {
17059     as_val=$(( $* ))
17060   }'
17061 else
17062   as_fn_arith ()
17063   {
17064     as_val=`expr "$@" || test $? -eq 1`
17065   }
17066 fi # as_fn_arith
17067
17068
17069 if expr a : '\(a\)' >/dev/null 2>&1 &&
17070    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17071   as_expr=expr
17072 else
17073   as_expr=false
17074 fi
17075
17076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17077   as_basename=basename
17078 else
17079   as_basename=false
17080 fi
17081
17082 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17083   as_dirname=dirname
17084 else
17085   as_dirname=false
17086 fi
17087
17088 as_me=`$as_basename -- "$0" ||
17089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17090          X"$0" : 'X\(//\)$' \| \
17091          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17092 $as_echo X/"$0" |
17093     sed '/^.*\/\([^/][^/]*\)\/*$/{
17094             s//\1/
17095             q
17096           }
17097           /^X\/\(\/\/\)$/{
17098             s//\1/
17099             q
17100           }
17101           /^X\/\(\/\).*/{
17102             s//\1/
17103             q
17104           }
17105           s/.*/./; q'`
17106
17107 # Avoid depending upon Character Ranges.
17108 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17109 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17110 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17111 as_cr_digits='0123456789'
17112 as_cr_alnum=$as_cr_Letters$as_cr_digits
17113
17114 ECHO_C= ECHO_N= ECHO_T=
17115 case `echo -n x` in #(((((
17116 -n*)
17117   case `echo 'xy\c'` in
17118   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17119   xy)  ECHO_C='\c';;
17120   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17121        ECHO_T=' ';;
17122   esac;;
17123 *)
17124   ECHO_N='-n';;
17125 esac
17126
17127 rm -f conf$$ conf$$.exe conf$$.file
17128 if test -d conf$$.dir; then
17129   rm -f conf$$.dir/conf$$.file
17130 else
17131   rm -f conf$$.dir
17132   mkdir conf$$.dir 2>/dev/null
17133 fi
17134 if (echo >conf$$.file) 2>/dev/null; then
17135   if ln -s conf$$.file conf$$ 2>/dev/null; then
17136     as_ln_s='ln -s'
17137     # ... but there are two gotchas:
17138     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17139     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17140     # In both cases, we have to default to `cp -p'.
17141     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17142       as_ln_s='cp -p'
17143   elif ln conf$$.file conf$$ 2>/dev/null; then
17144     as_ln_s=ln
17145   else
17146     as_ln_s='cp -p'
17147   fi
17148 else
17149   as_ln_s='cp -p'
17150 fi
17151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17152 rmdir conf$$.dir 2>/dev/null
17153
17154
17155 # as_fn_mkdir_p
17156 # -------------
17157 # Create "$as_dir" as a directory, including parents if necessary.
17158 as_fn_mkdir_p ()
17159 {
17160
17161   case $as_dir in #(
17162   -*) as_dir=./$as_dir;;
17163   esac
17164   test -d "$as_dir" || eval $as_mkdir_p || {
17165     as_dirs=
17166     while :; do
17167       case $as_dir in #(
17168       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17169       *) as_qdir=$as_dir;;
17170       esac
17171       as_dirs="'$as_qdir' $as_dirs"
17172       as_dir=`$as_dirname -- "$as_dir" ||
17173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17174          X"$as_dir" : 'X\(//\)[^/]' \| \
17175          X"$as_dir" : 'X\(//\)$' \| \
17176          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17177 $as_echo X"$as_dir" |
17178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17179             s//\1/
17180             q
17181           }
17182           /^X\(\/\/\)[^/].*/{
17183             s//\1/
17184             q
17185           }
17186           /^X\(\/\/\)$/{
17187             s//\1/
17188             q
17189           }
17190           /^X\(\/\).*/{
17191             s//\1/
17192             q
17193           }
17194           s/.*/./; q'`
17195       test -d "$as_dir" && break
17196     done
17197     test -z "$as_dirs" || eval "mkdir $as_dirs"
17198   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17199
17200
17201 } # as_fn_mkdir_p
17202 if mkdir -p . 2>/dev/null; then
17203   as_mkdir_p='mkdir -p "$as_dir"'
17204 else
17205   test -d ./-p && rmdir ./-p
17206   as_mkdir_p=false
17207 fi
17208
17209 if test -x / >/dev/null 2>&1; then
17210   as_test_x='test -x'
17211 else
17212   if ls -dL / >/dev/null 2>&1; then
17213     as_ls_L_option=L
17214   else
17215     as_ls_L_option=
17216   fi
17217   as_test_x='
17218     eval sh -c '\''
17219       if test -d "$1"; then
17220         test -d "$1/.";
17221       else
17222         case $1 in #(
17223         -*)set "./$1";;
17224         esac;
17225         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17226         ???[sx]*):;;*)false;;esac;fi
17227     '\'' sh
17228   '
17229 fi
17230 as_executable_p=$as_test_x
17231
17232 # Sed expression to map a string onto a valid CPP name.
17233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17234
17235 # Sed expression to map a string onto a valid variable name.
17236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17237
17238
17239 exec 6>&1
17240 ## ----------------------------------- ##
17241 ## Main body of $CONFIG_STATUS script. ##
17242 ## ----------------------------------- ##
17243 _ASEOF
17244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17245
17246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17247 # Save the log message, to keep $0 and so on meaningful, and to
17248 # report actual input values of CONFIG_FILES etc. instead of their
17249 # values after options handling.
17250 ac_log="
17251 This file was extended by lcms2 $as_me 2.3, which was
17252 generated by GNU Autoconf 2.68.  Invocation command line was
17253
17254   CONFIG_FILES    = $CONFIG_FILES
17255   CONFIG_HEADERS  = $CONFIG_HEADERS
17256   CONFIG_LINKS    = $CONFIG_LINKS
17257   CONFIG_COMMANDS = $CONFIG_COMMANDS
17258   $ $0 $@
17259
17260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17261 "
17262
17263 _ACEOF
17264
17265 case $ac_config_files in *"
17266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17267 esac
17268
17269
17270
17271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17272 # Files that config.status was made for.
17273 config_files="$ac_config_files"
17274 config_commands="$ac_config_commands"
17275
17276 _ACEOF
17277
17278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17279 ac_cs_usage="\
17280 \`$as_me' instantiates files and other configuration actions
17281 from templates according to the current configuration.  Unless the files
17282 and actions are specified as TAGs, all are instantiated by default.
17283
17284 Usage: $0 [OPTION]... [TAG]...
17285
17286   -h, --help       print this help, then exit
17287   -V, --version    print version number and configuration settings, then exit
17288       --config     print configuration, then exit
17289   -q, --quiet, --silent
17290                    do not print progress messages
17291   -d, --debug      don't remove temporary files
17292       --recheck    update $as_me by reconfiguring in the same conditions
17293       --file=FILE[:TEMPLATE]
17294                    instantiate the configuration file FILE
17295
17296 Configuration files:
17297 $config_files
17298
17299 Configuration commands:
17300 $config_commands
17301
17302 Report bugs to the package provider."
17303
17304 _ACEOF
17305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17306 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17307 ac_cs_version="\\
17308 lcms2 config.status 2.3
17309 configured by $0, generated by GNU Autoconf 2.68,
17310   with options \\"\$ac_cs_config\\"
17311
17312 Copyright (C) 2010 Free Software Foundation, Inc.
17313 This config.status script is free software; the Free Software Foundation
17314 gives unlimited permission to copy, distribute and modify it."
17315
17316 ac_pwd='$ac_pwd'
17317 srcdir='$srcdir'
17318 INSTALL='$INSTALL'
17319 MKDIR_P='$MKDIR_P'
17320 AWK='$AWK'
17321 test -n "\$AWK" || AWK=awk
17322 _ACEOF
17323
17324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17325 # The default lists apply if the user does not specify any file.
17326 ac_need_defaults=:
17327 while test $# != 0
17328 do
17329   case $1 in
17330   --*=?*)
17331     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17332     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17333     ac_shift=:
17334     ;;
17335   --*=)
17336     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17337     ac_optarg=
17338     ac_shift=:
17339     ;;
17340   *)
17341     ac_option=$1
17342     ac_optarg=$2
17343     ac_shift=shift
17344     ;;
17345   esac
17346
17347   case $ac_option in
17348   # Handling of the options.
17349   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17350     ac_cs_recheck=: ;;
17351   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17352     $as_echo "$ac_cs_version"; exit ;;
17353   --config | --confi | --conf | --con | --co | --c )
17354     $as_echo "$ac_cs_config"; exit ;;
17355   --debug | --debu | --deb | --de | --d | -d )
17356     debug=: ;;
17357   --file | --fil | --fi | --f )
17358     $ac_shift
17359     case $ac_optarg in
17360     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17361     '') as_fn_error $? "missing file argument" ;;
17362     esac
17363     as_fn_append CONFIG_FILES " '$ac_optarg'"
17364     ac_need_defaults=false;;
17365   --he | --h |  --help | --hel | -h )
17366     $as_echo "$ac_cs_usage"; exit ;;
17367   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17368   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17369     ac_cs_silent=: ;;
17370
17371   # This is an error.
17372   -*) as_fn_error $? "unrecognized option: \`$1'
17373 Try \`$0 --help' for more information." ;;
17374
17375   *) as_fn_append ac_config_targets " $1"
17376      ac_need_defaults=false ;;
17377
17378   esac
17379   shift
17380 done
17381
17382 ac_configure_extra_args=
17383
17384 if $ac_cs_silent; then
17385   exec 6>/dev/null
17386   ac_configure_extra_args="$ac_configure_extra_args --silent"
17387 fi
17388
17389 _ACEOF
17390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17391 if \$ac_cs_recheck; then
17392   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17393   shift
17394   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17395   CONFIG_SHELL='$SHELL'
17396   export CONFIG_SHELL
17397   exec "\$@"
17398 fi
17399
17400 _ACEOF
17401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17402 exec 5>>config.log
17403 {
17404   echo
17405   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17406 ## Running $as_me. ##
17407 _ASBOX
17408   $as_echo "$ac_log"
17409 } >&5
17410
17411 _ACEOF
17412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17413 #
17414 # INIT-COMMANDS
17415 #
17416 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17417
17418
17419 # The HP-UX ksh and POSIX shell print the target directory to stdout
17420 # if CDPATH is set.
17421 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17422
17423 sed_quote_subst='$sed_quote_subst'
17424 double_quote_subst='$double_quote_subst'
17425 delay_variable_subst='$delay_variable_subst'
17426 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17427 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17428 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17429 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17430 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17431 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17432 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17433 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17434 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17435 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17436 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17437 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17438 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17439 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17440 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17441 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17442 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17443 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17444 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17445 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17446 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17447 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17448 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17449 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17450 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17451 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17452 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17453 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17454 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17455 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17456 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17457 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17458 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17459 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17460 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17461 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17462 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17463 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17464 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17465 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17466 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17467 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17468 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17482 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
17483 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17484 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17485 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17486 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17487 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17488 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17489 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17490 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17491 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17492 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17493 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17494 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17495 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17496 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17497 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17498 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17499 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17500 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17501 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17502 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17503 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17504 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17505 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17506 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17507 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17508 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17509 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17510 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17511 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17512 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17513 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17514 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17515 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17516 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17517 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17518 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17519 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17520 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17521 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17522 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17523 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17524 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17525 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17526 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17527 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17528 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17529 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17530 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17531 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17532 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17533 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17534 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17535 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17536 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17537 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17538 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17539 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17540 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17541 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17542 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17543 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17544 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17545 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17546 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17547 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17548 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17549 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17550 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17551 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17552 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17553 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17554 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17555 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17556 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17557 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17558 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17559 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17560 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17561 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17562 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17563 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17564 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17565 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17566 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17567 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17568 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17569 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17570 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17571 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17572 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17573 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17574 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17575 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17576 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17577 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17578 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17579 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17580 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17581 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17582 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17583 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17584 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17585 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17586 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17587 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17588 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17589 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17590 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17591 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17592 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17593 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17594 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17595 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17596 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17597 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17598 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17599 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17600 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17601 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17602 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17603 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17604 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17605 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17606 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17607 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17608 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17609 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17610 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17611 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17612
17613 LTCC='$LTCC'
17614 LTCFLAGS='$LTCFLAGS'
17615 compiler='$compiler_DEFAULT'
17616
17617 # A function that is used when there is no print builtin or printf.
17618 func_fallback_echo ()
17619 {
17620   eval 'cat <<_LTECHO_EOF
17621 \$1
17622 _LTECHO_EOF'
17623 }
17624
17625 # Quote evaled strings.
17626 for var in AS \
17627 DLLTOOL \
17628 OBJDUMP \
17629 SHELL \
17630 ECHO \
17631 SED \
17632 GREP \
17633 EGREP \
17634 FGREP \
17635 LD \
17636 NM \
17637 LN_S \
17638 lt_SP2NL \
17639 lt_NL2SP \
17640 reload_flag \
17641 deplibs_check_method \
17642 file_magic_cmd \
17643 file_magic_glob \
17644 want_nocaseglob \
17645 sharedlib_from_linklib_cmd \
17646 AR \
17647 AR_FLAGS \
17648 archiver_list_spec \
17649 STRIP \
17650 RANLIB \
17651 CC \
17652 CFLAGS \
17653 compiler \
17654 lt_cv_sys_global_symbol_pipe \
17655 lt_cv_sys_global_symbol_to_cdecl \
17656 lt_cv_sys_global_symbol_to_c_name_address \
17657 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17658 nm_file_list_spec \
17659 lt_prog_compiler_no_builtin_flag \
17660 lt_prog_compiler_pic \
17661 lt_prog_compiler_wl \
17662 lt_prog_compiler_static \
17663 lt_cv_prog_compiler_c_o \
17664 need_locks \
17665 MANIFEST_TOOL \
17666 DSYMUTIL \
17667 NMEDIT \
17668 LIPO \
17669 OTOOL \
17670 OTOOL64 \
17671 shrext_cmds \
17672 export_dynamic_flag_spec \
17673 whole_archive_flag_spec \
17674 compiler_needs_object \
17675 with_gnu_ld \
17676 allow_undefined_flag \
17677 no_undefined_flag \
17678 hardcode_libdir_flag_spec \
17679 hardcode_libdir_flag_spec_ld \
17680 hardcode_libdir_separator \
17681 exclude_expsyms \
17682 include_expsyms \
17683 file_list_spec \
17684 variables_saved_for_relink \
17685 libname_spec \
17686 library_names_spec \
17687 soname_spec \
17688 install_override_mode \
17689 finish_eval \
17690 old_striplib \
17691 striplib \
17692 compiler_lib_search_dirs \
17693 predep_objects \
17694 postdep_objects \
17695 predeps \
17696 postdeps \
17697 compiler_lib_search_path \
17698 LD_CXX \
17699 reload_flag_CXX \
17700 compiler_CXX \
17701 lt_prog_compiler_no_builtin_flag_CXX \
17702 lt_prog_compiler_pic_CXX \
17703 lt_prog_compiler_wl_CXX \
17704 lt_prog_compiler_static_CXX \
17705 lt_cv_prog_compiler_c_o_CXX \
17706 export_dynamic_flag_spec_CXX \
17707 whole_archive_flag_spec_CXX \
17708 compiler_needs_object_CXX \
17709 with_gnu_ld_CXX \
17710 allow_undefined_flag_CXX \
17711 no_undefined_flag_CXX \
17712 hardcode_libdir_flag_spec_CXX \
17713 hardcode_libdir_flag_spec_ld_CXX \
17714 hardcode_libdir_separator_CXX \
17715 exclude_expsyms_CXX \
17716 include_expsyms_CXX \
17717 file_list_spec_CXX \
17718 compiler_lib_search_dirs_CXX \
17719 predep_objects_CXX \
17720 postdep_objects_CXX \
17721 predeps_CXX \
17722 postdeps_CXX \
17723 compiler_lib_search_path_CXX; do
17724     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17725     *[\\\\\\\`\\"\\\$]*)
17726       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17727       ;;
17728     *)
17729       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17730       ;;
17731     esac
17732 done
17733
17734 # Double-quote double-evaled strings.
17735 for var in reload_cmds \
17736 old_postinstall_cmds \
17737 old_postuninstall_cmds \
17738 old_archive_cmds \
17739 extract_expsyms_cmds \
17740 old_archive_from_new_cmds \
17741 old_archive_from_expsyms_cmds \
17742 archive_cmds \
17743 archive_expsym_cmds \
17744 module_cmds \
17745 module_expsym_cmds \
17746 export_symbols_cmds \
17747 prelink_cmds \
17748 postlink_cmds \
17749 postinstall_cmds \
17750 postuninstall_cmds \
17751 finish_cmds \
17752 sys_lib_search_path_spec \
17753 sys_lib_dlsearch_path_spec \
17754 reload_cmds_CXX \
17755 old_archive_cmds_CXX \
17756 old_archive_from_new_cmds_CXX \
17757 old_archive_from_expsyms_cmds_CXX \
17758 archive_cmds_CXX \
17759 archive_expsym_cmds_CXX \
17760 module_cmds_CXX \
17761 module_expsym_cmds_CXX \
17762 export_symbols_cmds_CXX \
17763 prelink_cmds_CXX \
17764 postlink_cmds_CXX; do
17765     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17766     *[\\\\\\\`\\"\\\$]*)
17767       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17768       ;;
17769     *)
17770       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17771       ;;
17772     esac
17773 done
17774
17775 ac_aux_dir='$ac_aux_dir'
17776 xsi_shell='$xsi_shell'
17777 lt_shell_append='$lt_shell_append'
17778
17779 # See if we are running on zsh, and set the options which allow our
17780 # commands through without removal of \ escapes INIT.
17781 if test -n "\${ZSH_VERSION+set}" ; then
17782    setopt NO_GLOB_SUBST
17783 fi
17784
17785
17786     PACKAGE='$PACKAGE'
17787     VERSION='$VERSION'
17788     TIMESTAMP='$TIMESTAMP'
17789     RM='$RM'
17790     ofile='$ofile'
17791
17792
17793
17794
17795
17796
17797 _ACEOF
17798
17799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17800
17801 # Handling of arguments.
17802 for ac_config_target in $ac_config_targets
17803 do
17804   case $ac_config_target in
17805     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17806     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17807     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17808     "lcms2.pc") CONFIG_FILES="$CONFIG_FILES lcms2.pc" ;;
17809     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17810     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17811     "utils/tificc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tificc/Makefile" ;;
17812     "utils/transicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/transicc/Makefile" ;;
17813     "utils/linkicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/linkicc/Makefile" ;;
17814     "utils/jpgicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/jpgicc/Makefile" ;;
17815     "utils/psicc/Makefile") CONFIG_FILES="$CONFIG_FILES utils/psicc/Makefile" ;;
17816     "testbed/Makefile") CONFIG_FILES="$CONFIG_FILES testbed/Makefile" ;;
17817
17818   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
17819   esac
17820 done
17821
17822
17823 # If the user did not use the arguments to specify the items to instantiate,
17824 # then the envvar interface is used.  Set only those that are not.
17825 # We use the long form for the default assignment because of an extremely
17826 # bizarre bug on SunOS 4.1.3.
17827 if $ac_need_defaults; then
17828   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17829   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17830 fi
17831
17832 # Have a temporary directory for convenience.  Make it in the build tree
17833 # simply because there is no reason against having it here, and in addition,
17834 # creating and moving files from /tmp can sometimes cause problems.
17835 # Hook for its removal unless debugging.
17836 # Note that there is a small window in which the directory will not be cleaned:
17837 # after its creation but before its name has been assigned to `$tmp'.
17838 $debug ||
17839 {
17840   tmp= ac_tmp=
17841   trap 'exit_status=$?
17842   : "${ac_tmp:=$tmp}"
17843   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17844 ' 0
17845   trap 'as_fn_exit 1' 1 2 13 15
17846 }
17847 # Create a (secure) tmp directory for tmp files.
17848
17849 {
17850   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17851   test -d "$tmp"
17852 }  ||
17853 {
17854   tmp=./conf$$-$RANDOM
17855   (umask 077 && mkdir "$tmp")
17856 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17857 ac_tmp=$tmp
17858
17859 # Set up the scripts for CONFIG_FILES section.
17860 # No need to generate them if there are no CONFIG_FILES.
17861 # This happens for instance with `./config.status config.h'.
17862 if test -n "$CONFIG_FILES"; then
17863
17864
17865 ac_cr=`echo X | tr X '\015'`
17866 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17867 # But we know of no other shell where ac_cr would be empty at this
17868 # point, so we can use a bashism as a fallback.
17869 if test "x$ac_cr" = x; then
17870   eval ac_cr=\$\'\\r\'
17871 fi
17872 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17873 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17874   ac_cs_awk_cr='\\r'
17875 else
17876   ac_cs_awk_cr=$ac_cr
17877 fi
17878
17879 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17880 _ACEOF
17881
17882
17883 {
17884   echo "cat >conf$$subs.awk <<_ACEOF" &&
17885   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17886   echo "_ACEOF"
17887 } >conf$$subs.sh ||
17888   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17889 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17890 ac_delim='%!_!# '
17891 for ac_last_try in false false false false false :; do
17892   . ./conf$$subs.sh ||
17893     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17894
17895   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17896   if test $ac_delim_n = $ac_delim_num; then
17897     break
17898   elif $ac_last_try; then
17899     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17900   else
17901     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17902   fi
17903 done
17904 rm -f conf$$subs.sh
17905
17906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17907 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17908 _ACEOF
17909 sed -n '
17910 h
17911 s/^/S["/; s/!.*/"]=/
17912 p
17913 g
17914 s/^[^!]*!//
17915 :repl
17916 t repl
17917 s/'"$ac_delim"'$//
17918 t delim
17919 :nl
17920 h
17921 s/\(.\{148\}\)..*/\1/
17922 t more1
17923 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17924 p
17925 n
17926 b repl
17927 :more1
17928 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17929 p
17930 g
17931 s/.\{148\}//
17932 t nl
17933 :delim
17934 h
17935 s/\(.\{148\}\)..*/\1/
17936 t more2
17937 s/["\\]/\\&/g; s/^/"/; s/$/"/
17938 p
17939 b
17940 :more2
17941 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17942 p
17943 g
17944 s/.\{148\}//
17945 t delim
17946 ' <conf$$subs.awk | sed '
17947 /^[^""]/{
17948   N
17949   s/\n//
17950 }
17951 ' >>$CONFIG_STATUS || ac_write_fail=1
17952 rm -f conf$$subs.awk
17953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17954 _ACAWK
17955 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17956   for (key in S) S_is_set[key] = 1
17957   FS = "\a"
17958
17959 }
17960 {
17961   line = $ 0
17962   nfields = split(line, field, "@")
17963   substed = 0
17964   len = length(field[1])
17965   for (i = 2; i < nfields; i++) {
17966     key = field[i]
17967     keylen = length(key)
17968     if (S_is_set[key]) {
17969       value = S[key]
17970       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17971       len += length(value) + length(field[++i])
17972       substed = 1
17973     } else
17974       len += 1 + keylen
17975   }
17976
17977   print line
17978 }
17979
17980 _ACAWK
17981 _ACEOF
17982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17983 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17984   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17985 else
17986   cat
17987 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17988   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17989 _ACEOF
17990
17991 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17992 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17993 # trailing colons and then remove the whole line if VPATH becomes empty
17994 # (actually we leave an empty line to preserve line numbers).
17995 if test "x$srcdir" = x.; then
17996   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17997 h
17998 s///
17999 s/^/:/
18000 s/[      ]*$/:/
18001 s/:\$(srcdir):/:/g
18002 s/:\${srcdir}:/:/g
18003 s/:@srcdir@:/:/g
18004 s/^:*//
18005 s/:*$//
18006 x
18007 s/\(=[   ]*\).*/\1/
18008 G
18009 s/\n//
18010 s/^[^=]*=[       ]*$//
18011 }'
18012 fi
18013
18014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18015 fi # test -n "$CONFIG_FILES"
18016
18017
18018 eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
18019 shift
18020 for ac_tag
18021 do
18022   case $ac_tag in
18023   :[FHLC]) ac_mode=$ac_tag; continue;;
18024   esac
18025   case $ac_mode$ac_tag in
18026   :[FHL]*:*);;
18027   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
18028   :[FH]-) ac_tag=-:-;;
18029   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18030   esac
18031   ac_save_IFS=$IFS
18032   IFS=:
18033   set x $ac_tag
18034   IFS=$ac_save_IFS
18035   shift
18036   ac_file=$1
18037   shift
18038
18039   case $ac_mode in
18040   :L) ac_source=$1;;
18041   :[FH])
18042     ac_file_inputs=
18043     for ac_f
18044     do
18045       case $ac_f in
18046       -) ac_f="$ac_tmp/stdin";;
18047       *) # Look for the file first in the build tree, then in the source tree
18048          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18049          # because $ac_f cannot contain `:'.
18050          test -f "$ac_f" ||
18051            case $ac_f in
18052            [\\/$]*) false;;
18053            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18054            esac ||
18055            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
18056       esac
18057       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18058       as_fn_append ac_file_inputs " '$ac_f'"
18059     done
18060
18061     # Let's still pretend it is `configure' which instantiates (i.e., don't
18062     # use $as_me), people would be surprised to read:
18063     #    /* config.h.  Generated by config.status.  */
18064     configure_input='Generated from '`
18065           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18066         `' by configure.'
18067     if test x"$ac_file" != x-; then
18068       configure_input="$ac_file.  $configure_input"
18069       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18070 $as_echo "$as_me: creating $ac_file" >&6;}
18071     fi
18072     # Neutralize special characters interpreted by sed in replacement strings.
18073     case $configure_input in #(
18074     *\&* | *\|* | *\\* )
18075        ac_sed_conf_input=`$as_echo "$configure_input" |
18076        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18077     *) ac_sed_conf_input=$configure_input;;
18078     esac
18079
18080     case $ac_tag in
18081     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18082       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
18083     esac
18084     ;;
18085   esac
18086
18087   ac_dir=`$as_dirname -- "$ac_file" ||
18088 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18089          X"$ac_file" : 'X\(//\)[^/]' \| \
18090          X"$ac_file" : 'X\(//\)$' \| \
18091          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18092 $as_echo X"$ac_file" |
18093     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18094             s//\1/
18095             q
18096           }
18097           /^X\(\/\/\)[^/].*/{
18098             s//\1/
18099             q
18100           }
18101           /^X\(\/\/\)$/{
18102             s//\1/
18103             q
18104           }
18105           /^X\(\/\).*/{
18106             s//\1/
18107             q
18108           }
18109           s/.*/./; q'`
18110   as_dir="$ac_dir"; as_fn_mkdir_p
18111   ac_builddir=.
18112
18113 case "$ac_dir" in
18114 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18115 *)
18116   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18117   # A ".." for each directory in $ac_dir_suffix.
18118   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18119   case $ac_top_builddir_sub in
18120   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18121   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18122   esac ;;
18123 esac
18124 ac_abs_top_builddir=$ac_pwd
18125 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18126 # for backward compatibility:
18127 ac_top_builddir=$ac_top_build_prefix
18128
18129 case $srcdir in
18130   .)  # We are building in place.
18131     ac_srcdir=.
18132     ac_top_srcdir=$ac_top_builddir_sub
18133     ac_abs_top_srcdir=$ac_pwd ;;
18134   [\\/]* | ?:[\\/]* )  # Absolute name.
18135     ac_srcdir=$srcdir$ac_dir_suffix;
18136     ac_top_srcdir=$srcdir
18137     ac_abs_top_srcdir=$srcdir ;;
18138   *) # Relative name.
18139     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18140     ac_top_srcdir=$ac_top_build_prefix$srcdir
18141     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18142 esac
18143 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18144
18145
18146   case $ac_mode in
18147   :F)
18148   #
18149   # CONFIG_FILE
18150   #
18151
18152   case $INSTALL in
18153   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18154   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18155   esac
18156   ac_MKDIR_P=$MKDIR_P
18157   case $MKDIR_P in
18158   [\\/$]* | ?:[\\/]* ) ;;
18159   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18160   esac
18161 _ACEOF
18162
18163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18164 # If the template does not know about datarootdir, expand it.
18165 # FIXME: This hack should be removed a few years after 2.60.
18166 ac_datarootdir_hack=; ac_datarootdir_seen=
18167 ac_sed_dataroot='
18168 /datarootdir/ {
18169   p
18170   q
18171 }
18172 /@datadir@/p
18173 /@docdir@/p
18174 /@infodir@/p
18175 /@localedir@/p
18176 /@mandir@/p'
18177 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18178 *datarootdir*) ac_datarootdir_seen=yes;;
18179 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18181 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18182 _ACEOF
18183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18184   ac_datarootdir_hack='
18185   s&@datadir@&$datadir&g
18186   s&@docdir@&$docdir&g
18187   s&@infodir@&$infodir&g
18188   s&@localedir@&$localedir&g
18189   s&@mandir@&$mandir&g
18190   s&\\\${datarootdir}&$datarootdir&g' ;;
18191 esac
18192 _ACEOF
18193
18194 # Neutralize VPATH when `$srcdir' = `.'.
18195 # Shell code in configure.ac might set extrasub.
18196 # FIXME: do we really want to maintain this feature?
18197 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18198 ac_sed_extra="$ac_vpsub
18199 $extrasub
18200 _ACEOF
18201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18202 :t
18203 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18204 s|@configure_input@|$ac_sed_conf_input|;t t
18205 s&@top_builddir@&$ac_top_builddir_sub&;t t
18206 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18207 s&@srcdir@&$ac_srcdir&;t t
18208 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18209 s&@top_srcdir@&$ac_top_srcdir&;t t
18210 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18211 s&@builddir@&$ac_builddir&;t t
18212 s&@abs_builddir@&$ac_abs_builddir&;t t
18213 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18214 s&@INSTALL@&$ac_INSTALL&;t t
18215 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18216 $ac_datarootdir_hack
18217 "
18218 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18219   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18220
18221 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18222   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18223   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18224       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18225   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18226 which seems to be undefined.  Please make sure it is defined" >&5
18227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18228 which seems to be undefined.  Please make sure it is defined" >&2;}
18229
18230   rm -f "$ac_tmp/stdin"
18231   case $ac_file in
18232   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18233   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18234   esac \
18235   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18236  ;;
18237
18238
18239   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18240 $as_echo "$as_me: executing $ac_file commands" >&6;}
18241  ;;
18242   esac
18243
18244
18245   case $ac_file$ac_mode in
18246     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18247   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18248   # are listed without --file.  Let's play safe and only enable the eval
18249   # if we detect the quoting.
18250   case $CONFIG_FILES in
18251   *\'*) eval set x "$CONFIG_FILES" ;;
18252   *)   set x $CONFIG_FILES ;;
18253   esac
18254   shift
18255   for mf
18256   do
18257     # Strip MF so we end up with the name of the file.
18258     mf=`echo "$mf" | sed -e 's/:.*$//'`
18259     # Check whether this is an Automake generated Makefile or not.
18260     # We used to match only the files named `Makefile.in', but
18261     # some people rename them; so instead we look at the file content.
18262     # Grep'ing the first line is not enough: some people post-process
18263     # each Makefile.in and add a new line on top of each file to say so.
18264     # Grep'ing the whole file is not good either: AIX grep has a line
18265     # limit of 2048, but all sed's we know have understand at least 4000.
18266     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18267       dirpart=`$as_dirname -- "$mf" ||
18268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18269          X"$mf" : 'X\(//\)[^/]' \| \
18270          X"$mf" : 'X\(//\)$' \| \
18271          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18272 $as_echo X"$mf" |
18273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18274             s//\1/
18275             q
18276           }
18277           /^X\(\/\/\)[^/].*/{
18278             s//\1/
18279             q
18280           }
18281           /^X\(\/\/\)$/{
18282             s//\1/
18283             q
18284           }
18285           /^X\(\/\).*/{
18286             s//\1/
18287             q
18288           }
18289           s/.*/./; q'`
18290     else
18291       continue
18292     fi
18293     # Extract the definition of DEPDIR, am__include, and am__quote
18294     # from the Makefile without running `make'.
18295     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18296     test -z "$DEPDIR" && continue
18297     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18298     test -z "am__include" && continue
18299     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18300     # When using ansi2knr, U may be empty or an underscore; expand it
18301     U=`sed -n 's/^U = //p' < "$mf"`
18302     # Find all dependency output files, they are included files with
18303     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18304     # simplest approach to changing $(DEPDIR) to its actual value in the
18305     # expansion.
18306     for file in `sed -n "
18307       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18308          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18309       # Make sure the directory exists.
18310       test -f "$dirpart/$file" && continue
18311       fdir=`$as_dirname -- "$file" ||
18312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313          X"$file" : 'X\(//\)[^/]' \| \
18314          X"$file" : 'X\(//\)$' \| \
18315          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18316 $as_echo X"$file" |
18317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18318             s//\1/
18319             q
18320           }
18321           /^X\(\/\/\)[^/].*/{
18322             s//\1/
18323             q
18324           }
18325           /^X\(\/\/\)$/{
18326             s//\1/
18327             q
18328           }
18329           /^X\(\/\).*/{
18330             s//\1/
18331             q
18332           }
18333           s/.*/./; q'`
18334       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18335       # echo "creating $dirpart/$file"
18336       echo '# dummy' > "$dirpart/$file"
18337     done
18338   done
18339 }
18340  ;;
18341     "libtool":C)
18342
18343     # See if we are running on zsh, and set the options which allow our
18344     # commands through without removal of \ escapes.
18345     if test -n "${ZSH_VERSION+set}" ; then
18346       setopt NO_GLOB_SUBST
18347     fi
18348
18349     cfgfile="${ofile}T"
18350     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18351     $RM "$cfgfile"
18352
18353     cat <<_LT_EOF >> "$cfgfile"
18354 #! $SHELL
18355
18356 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18357 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18360 #
18361 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18362 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
18363 #                 Inc.
18364 #   Written by Gordon Matzigkeit, 1996
18365 #
18366 #   This file is part of GNU Libtool.
18367 #
18368 # GNU Libtool is free software; you can redistribute it and/or
18369 # modify it under the terms of the GNU General Public License as
18370 # published by the Free Software Foundation; either version 2 of
18371 # the License, or (at your option) any later version.
18372 #
18373 # As a special exception to the GNU General Public License,
18374 # if you distribute this file as part of a program or library that
18375 # is built using GNU Libtool, you may include this file under the
18376 # same distribution terms that you use for the rest of that program.
18377 #
18378 # GNU Libtool is distributed in the hope that it will be useful,
18379 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18380 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18381 # GNU General Public License for more details.
18382 #
18383 # You should have received a copy of the GNU General Public License
18384 # along with GNU Libtool; see the file COPYING.  If not, a copy
18385 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18386 # obtained by writing to the Free Software Foundation, Inc.,
18387 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18388
18389
18390 # The names of the tagged configurations supported by this script.
18391 available_tags="CXX "
18392
18393 # ### BEGIN LIBTOOL CONFIG
18394
18395 # Whether or not to build shared libraries.
18396 build_libtool_libs=$enable_shared
18397
18398 # Whether or not to build static libraries.
18399 build_old_libs=$enable_static
18400
18401 # Assembler program.
18402 AS=$lt_AS
18403
18404 # DLL creation program.
18405 DLLTOOL=$lt_DLLTOOL
18406
18407 # Object dumper program.
18408 OBJDUMP=$lt_OBJDUMP
18409
18410 # Which release of libtool.m4 was used?
18411 macro_version=$macro_version
18412 macro_revision=$macro_revision
18413
18414 # What type of objects to build.
18415 pic_mode=$pic_mode
18416
18417 # Whether or not to optimize for fast installation.
18418 fast_install=$enable_fast_install
18419
18420 # Shell to use when invoking shell scripts.
18421 SHELL=$lt_SHELL
18422
18423 # An echo program that protects backslashes.
18424 ECHO=$lt_ECHO
18425
18426 # The host system.
18427 host_alias=$host_alias
18428 host=$host
18429 host_os=$host_os
18430
18431 # The build system.
18432 build_alias=$build_alias
18433 build=$build
18434 build_os=$build_os
18435
18436 # A sed program that does not truncate output.
18437 SED=$lt_SED
18438
18439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18440 Xsed="\$SED -e 1s/^X//"
18441
18442 # A grep program that handles long lines.
18443 GREP=$lt_GREP
18444
18445 # An ERE matcher.
18446 EGREP=$lt_EGREP
18447
18448 # A literal string matcher.
18449 FGREP=$lt_FGREP
18450
18451 # A BSD- or MS-compatible name lister.
18452 NM=$lt_NM
18453
18454 # Whether we need soft or hard links.
18455 LN_S=$lt_LN_S
18456
18457 # What is the maximum length of a command?
18458 max_cmd_len=$max_cmd_len
18459
18460 # Object file suffix (normally "o").
18461 objext=$ac_objext
18462
18463 # Executable file suffix (normally "").
18464 exeext=$exeext
18465
18466 # whether the shell understands "unset".
18467 lt_unset=$lt_unset
18468
18469 # turn spaces into newlines.
18470 SP2NL=$lt_lt_SP2NL
18471
18472 # turn newlines into spaces.
18473 NL2SP=$lt_lt_NL2SP
18474
18475 # convert \$build file names to \$host format.
18476 to_host_file_cmd=$lt_cv_to_host_file_cmd
18477
18478 # convert \$build files to toolchain format.
18479 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18480
18481 # Method to check whether dependent libraries are shared objects.
18482 deplibs_check_method=$lt_deplibs_check_method
18483
18484 # Command to use when deplibs_check_method = "file_magic".
18485 file_magic_cmd=$lt_file_magic_cmd
18486
18487 # How to find potential files when deplibs_check_method = "file_magic".
18488 file_magic_glob=$lt_file_magic_glob
18489
18490 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18491 want_nocaseglob=$lt_want_nocaseglob
18492
18493 # Command to associate shared and link libraries.
18494 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18495
18496 # The archiver.
18497 AR=$lt_AR
18498
18499 # Flags to create an archive.
18500 AR_FLAGS=$lt_AR_FLAGS
18501
18502 # How to feed a file listing to the archiver.
18503 archiver_list_spec=$lt_archiver_list_spec
18504
18505 # A symbol stripping program.
18506 STRIP=$lt_STRIP
18507
18508 # Commands used to install an old-style archive.
18509 RANLIB=$lt_RANLIB
18510 old_postinstall_cmds=$lt_old_postinstall_cmds
18511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18512
18513 # Whether to use a lock for old archive extraction.
18514 lock_old_archive_extraction=$lock_old_archive_extraction
18515
18516 # A C compiler.
18517 LTCC=$lt_CC
18518
18519 # LTCC compiler flags.
18520 LTCFLAGS=$lt_CFLAGS
18521
18522 # Take the output of nm and produce a listing of raw symbols and C names.
18523 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18524
18525 # Transform the output of nm in a proper C declaration.
18526 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18527
18528 # Transform the output of nm in a C name address pair.
18529 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18530
18531 # Transform the output of nm in a C name address pair when lib prefix is needed.
18532 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18533
18534 # Specify filename containing input files for \$NM.
18535 nm_file_list_spec=$lt_nm_file_list_spec
18536
18537 # The root where to search for dependent libraries,and in which our libraries should be installed.
18538 lt_sysroot=$lt_sysroot
18539
18540 # The name of the directory that contains temporary libtool files.
18541 objdir=$objdir
18542
18543 # Used to examine libraries when file_magic_cmd begins with "file".
18544 MAGIC_CMD=$MAGIC_CMD
18545
18546 # Must we lock files when doing compilation?
18547 need_locks=$lt_need_locks
18548
18549 # Manifest tool.
18550 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18551
18552 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18553 DSYMUTIL=$lt_DSYMUTIL
18554
18555 # Tool to change global to local symbols on Mac OS X.
18556 NMEDIT=$lt_NMEDIT
18557
18558 # Tool to manipulate fat objects and archives on Mac OS X.
18559 LIPO=$lt_LIPO
18560
18561 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18562 OTOOL=$lt_OTOOL
18563
18564 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18565 OTOOL64=$lt_OTOOL64
18566
18567 # Old archive suffix (normally "a").
18568 libext=$libext
18569
18570 # Shared library suffix (normally ".so").
18571 shrext_cmds=$lt_shrext_cmds
18572
18573 # The commands to extract the exported symbol list from a shared archive.
18574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18575
18576 # Variables whose values should be saved in libtool wrapper scripts and
18577 # restored at link time.
18578 variables_saved_for_relink=$lt_variables_saved_for_relink
18579
18580 # Do we need the "lib" prefix for modules?
18581 need_lib_prefix=$need_lib_prefix
18582
18583 # Do we need a version for libraries?
18584 need_version=$need_version
18585
18586 # Library versioning type.
18587 version_type=$version_type
18588
18589 # Shared library runtime path variable.
18590 runpath_var=$runpath_var
18591
18592 # Shared library path variable.
18593 shlibpath_var=$shlibpath_var
18594
18595 # Is shlibpath searched before the hard-coded library search path?
18596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18597
18598 # Format of library name prefix.
18599 libname_spec=$lt_libname_spec
18600
18601 # List of archive names.  First name is the real one, the rest are links.
18602 # The last name is the one that the linker finds with -lNAME
18603 library_names_spec=$lt_library_names_spec
18604
18605 # The coded name of the library, if different from the real name.
18606 soname_spec=$lt_soname_spec
18607
18608 # Permission mode override for installation of shared libraries.
18609 install_override_mode=$lt_install_override_mode
18610
18611 # Command to use after installation of a shared archive.
18612 postinstall_cmds=$lt_postinstall_cmds
18613
18614 # Command to use after uninstallation of a shared archive.
18615 postuninstall_cmds=$lt_postuninstall_cmds
18616
18617 # Commands used to finish a libtool library installation in a directory.
18618 finish_cmds=$lt_finish_cmds
18619
18620 # As "finish_cmds", except a single script fragment to be evaled but
18621 # not shown.
18622 finish_eval=$lt_finish_eval
18623
18624 # Whether we should hardcode library paths into libraries.
18625 hardcode_into_libs=$hardcode_into_libs
18626
18627 # Compile-time system search path for libraries.
18628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18629
18630 # Run-time system search path for libraries.
18631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18632
18633 # Whether dlopen is supported.
18634 dlopen_support=$enable_dlopen
18635
18636 # Whether dlopen of programs is supported.
18637 dlopen_self=$enable_dlopen_self
18638
18639 # Whether dlopen of statically linked programs is supported.
18640 dlopen_self_static=$enable_dlopen_self_static
18641
18642 # Commands to strip libraries.
18643 old_striplib=$lt_old_striplib
18644 striplib=$lt_striplib
18645
18646
18647 # The linker used to build libraries.
18648 LD=$lt_LD
18649
18650 # How to create reloadable object files.
18651 reload_flag=$lt_reload_flag
18652 reload_cmds=$lt_reload_cmds
18653
18654 # Commands used to build an old-style archive.
18655 old_archive_cmds=$lt_old_archive_cmds
18656
18657 # A language specific compiler.
18658 CC=$lt_compiler
18659
18660 # Is the compiler the GNU compiler?
18661 with_gcc=$GCC
18662
18663 # Compiler flag to turn off builtin functions.
18664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18665
18666 # Additional compiler flags for building library objects.
18667 pic_flag=$lt_lt_prog_compiler_pic
18668
18669 # How to pass a linker flag through the compiler.
18670 wl=$lt_lt_prog_compiler_wl
18671
18672 # Compiler flag to prevent dynamic linking.
18673 link_static_flag=$lt_lt_prog_compiler_static
18674
18675 # Does compiler simultaneously support -c and -o options?
18676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18677
18678 # Whether or not to add -lc for building shared libraries.
18679 build_libtool_need_lc=$archive_cmds_need_lc
18680
18681 # Whether or not to disallow shared libs when runtime libs are static.
18682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18683
18684 # Compiler flag to allow reflexive dlopens.
18685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18686
18687 # Compiler flag to generate shared objects directly from archives.
18688 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18689
18690 # Whether the compiler copes with passing no objects directly.
18691 compiler_needs_object=$lt_compiler_needs_object
18692
18693 # Create an old-style archive from a shared archive.
18694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18695
18696 # Create a temporary old-style archive to link instead of a shared archive.
18697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18698
18699 # Commands used to build a shared archive.
18700 archive_cmds=$lt_archive_cmds
18701 archive_expsym_cmds=$lt_archive_expsym_cmds
18702
18703 # Commands used to build a loadable module if different from building
18704 # a shared archive.
18705 module_cmds=$lt_module_cmds
18706 module_expsym_cmds=$lt_module_expsym_cmds
18707
18708 # Whether we are building with GNU ld or not.
18709 with_gnu_ld=$lt_with_gnu_ld
18710
18711 # Flag that allows shared libraries with undefined symbols to be built.
18712 allow_undefined_flag=$lt_allow_undefined_flag
18713
18714 # Flag that enforces no undefined symbols.
18715 no_undefined_flag=$lt_no_undefined_flag
18716
18717 # Flag to hardcode \$libdir into a binary during linking.
18718 # This must work even if \$libdir does not exist
18719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18720
18721 # If ld is used when linking, flag to hardcode \$libdir into a binary
18722 # during linking.  This must work even if \$libdir does not exist.
18723 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18724
18725 # Whether we need a single "-rpath" flag with a separated argument.
18726 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18727
18728 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18729 # DIR into the resulting binary.
18730 hardcode_direct=$hardcode_direct
18731
18732 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18733 # DIR into the resulting binary and the resulting library dependency is
18734 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18735 # library is relocated.
18736 hardcode_direct_absolute=$hardcode_direct_absolute
18737
18738 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18739 # into the resulting binary.
18740 hardcode_minus_L=$hardcode_minus_L
18741
18742 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18743 # into the resulting binary.
18744 hardcode_shlibpath_var=$hardcode_shlibpath_var
18745
18746 # Set to "yes" if building a shared library automatically hardcodes DIR
18747 # into the library and all subsequent libraries and executables linked
18748 # against it.
18749 hardcode_automatic=$hardcode_automatic
18750
18751 # Set to yes if linker adds runtime paths of dependent libraries
18752 # to runtime path list.
18753 inherit_rpath=$inherit_rpath
18754
18755 # Whether libtool must link a program against all its dependency libraries.
18756 link_all_deplibs=$link_all_deplibs
18757
18758 # Set to "yes" if exported symbols are required.
18759 always_export_symbols=$always_export_symbols
18760
18761 # The commands to list exported symbols.
18762 export_symbols_cmds=$lt_export_symbols_cmds
18763
18764 # Symbols that should not be listed in the preloaded symbols.
18765 exclude_expsyms=$lt_exclude_expsyms
18766
18767 # Symbols that must always be exported.
18768 include_expsyms=$lt_include_expsyms
18769
18770 # Commands necessary for linking programs (against libraries) with templates.
18771 prelink_cmds=$lt_prelink_cmds
18772
18773 # Commands necessary for finishing linking programs.
18774 postlink_cmds=$lt_postlink_cmds
18775
18776 # Specify filename containing input files.
18777 file_list_spec=$lt_file_list_spec
18778
18779 # How to hardcode a shared library path into an executable.
18780 hardcode_action=$hardcode_action
18781
18782 # The directories searched by this compiler when creating a shared library.
18783 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18784
18785 # Dependencies to place before and after the objects being linked to
18786 # create a shared library.
18787 predep_objects=$lt_predep_objects
18788 postdep_objects=$lt_postdep_objects
18789 predeps=$lt_predeps
18790 postdeps=$lt_postdeps
18791
18792 # The library search path used internally by the compiler when linking
18793 # a shared library.
18794 compiler_lib_search_path=$lt_compiler_lib_search_path
18795
18796 # ### END LIBTOOL CONFIG
18797
18798 _LT_EOF
18799
18800   case $host_os in
18801   aix3*)
18802     cat <<\_LT_EOF >> "$cfgfile"
18803 # AIX sometimes has problems with the GCC collect2 program.  For some
18804 # reason, if we set the COLLECT_NAMES environment variable, the problems
18805 # vanish in a puff of smoke.
18806 if test "X${COLLECT_NAMES+set}" != Xset; then
18807   COLLECT_NAMES=
18808   export COLLECT_NAMES
18809 fi
18810 _LT_EOF
18811     ;;
18812   esac
18813
18814
18815 ltmain="$ac_aux_dir/ltmain.sh"
18816
18817
18818   # We use sed instead of cat because bash on DJGPP gets confused if
18819   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18820   # text mode, it properly converts lines to CR/LF.  This bash problem
18821   # is reportedly fixed, but why not run on old versions too?
18822   sed '$q' "$ltmain" >> "$cfgfile" \
18823      || (rm -f "$cfgfile"; exit 1)
18824
18825   if test x"$xsi_shell" = xyes; then
18826   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18827 func_dirname ()\
18828 {\
18829 \    case ${1} in\
18830 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18831 \      *  ) func_dirname_result="${3}" ;;\
18832 \    esac\
18833 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18834   && mv -f "$cfgfile.tmp" "$cfgfile" \
18835     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18836 test 0 -eq $? || _lt_function_replace_fail=:
18837
18838
18839   sed -e '/^func_basename ()$/,/^} # func_basename /c\
18840 func_basename ()\
18841 {\
18842 \    func_basename_result="${1##*/}"\
18843 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18844   && mv -f "$cfgfile.tmp" "$cfgfile" \
18845     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18846 test 0 -eq $? || _lt_function_replace_fail=:
18847
18848
18849   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18850 func_dirname_and_basename ()\
18851 {\
18852 \    case ${1} in\
18853 \      */*) func_dirname_result="${1%/*}${2}" ;;\
18854 \      *  ) func_dirname_result="${3}" ;;\
18855 \    esac\
18856 \    func_basename_result="${1##*/}"\
18857 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18858   && mv -f "$cfgfile.tmp" "$cfgfile" \
18859     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18860 test 0 -eq $? || _lt_function_replace_fail=:
18861
18862
18863   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18864 func_stripname ()\
18865 {\
18866 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18867 \    # positional parameters, so assign one to ordinary parameter first.\
18868 \    func_stripname_result=${3}\
18869 \    func_stripname_result=${func_stripname_result#"${1}"}\
18870 \    func_stripname_result=${func_stripname_result%"${2}"}\
18871 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18872   && mv -f "$cfgfile.tmp" "$cfgfile" \
18873     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18874 test 0 -eq $? || _lt_function_replace_fail=:
18875
18876
18877   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18878 func_split_long_opt ()\
18879 {\
18880 \    func_split_long_opt_name=${1%%=*}\
18881 \    func_split_long_opt_arg=${1#*=}\
18882 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18883   && mv -f "$cfgfile.tmp" "$cfgfile" \
18884     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18885 test 0 -eq $? || _lt_function_replace_fail=:
18886
18887
18888   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18889 func_split_short_opt ()\
18890 {\
18891 \    func_split_short_opt_arg=${1#??}\
18892 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18893 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18894   && mv -f "$cfgfile.tmp" "$cfgfile" \
18895     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18896 test 0 -eq $? || _lt_function_replace_fail=:
18897
18898
18899   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18900 func_lo2o ()\
18901 {\
18902 \    case ${1} in\
18903 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18904 \      *)    func_lo2o_result=${1} ;;\
18905 \    esac\
18906 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18907   && mv -f "$cfgfile.tmp" "$cfgfile" \
18908     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18909 test 0 -eq $? || _lt_function_replace_fail=:
18910
18911
18912   sed -e '/^func_xform ()$/,/^} # func_xform /c\
18913 func_xform ()\
18914 {\
18915     func_xform_result=${1%.*}.lo\
18916 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18917   && mv -f "$cfgfile.tmp" "$cfgfile" \
18918     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18919 test 0 -eq $? || _lt_function_replace_fail=:
18920
18921
18922   sed -e '/^func_arith ()$/,/^} # func_arith /c\
18923 func_arith ()\
18924 {\
18925     func_arith_result=$(( $* ))\
18926 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18927   && mv -f "$cfgfile.tmp" "$cfgfile" \
18928     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18929 test 0 -eq $? || _lt_function_replace_fail=:
18930
18931
18932   sed -e '/^func_len ()$/,/^} # func_len /c\
18933 func_len ()\
18934 {\
18935     func_len_result=${#1}\
18936 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18937   && mv -f "$cfgfile.tmp" "$cfgfile" \
18938     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18939 test 0 -eq $? || _lt_function_replace_fail=:
18940
18941 fi
18942
18943 if test x"$lt_shell_append" = xyes; then
18944   sed -e '/^func_append ()$/,/^} # func_append /c\
18945 func_append ()\
18946 {\
18947     eval "${1}+=\\${2}"\
18948 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18949   && mv -f "$cfgfile.tmp" "$cfgfile" \
18950     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18951 test 0 -eq $? || _lt_function_replace_fail=:
18952
18953
18954   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18955 func_append_quoted ()\
18956 {\
18957 \    func_quote_for_eval "${2}"\
18958 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18959 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18960   && mv -f "$cfgfile.tmp" "$cfgfile" \
18961     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18962 test 0 -eq $? || _lt_function_replace_fail=:
18963
18964
18965   # Save a `func_append' function call where possible by direct use of '+='
18966   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18967     && mv -f "$cfgfile.tmp" "$cfgfile" \
18968       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18969   test 0 -eq $? || _lt_function_replace_fail=:
18970 else
18971   # Save a `func_append' function call even when '+=' is not available
18972   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18973     && mv -f "$cfgfile.tmp" "$cfgfile" \
18974       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18975   test 0 -eq $? || _lt_function_replace_fail=:
18976 fi
18977
18978 if test x"$_lt_function_replace_fail" = x":"; then
18979   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18980 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18981 fi
18982
18983
18984    mv -f "$cfgfile" "$ofile" ||
18985     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18986   chmod +x "$ofile"
18987
18988
18989     cat <<_LT_EOF >> "$ofile"
18990
18991 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18992
18993 # The linker used to build libraries.
18994 LD=$lt_LD_CXX
18995
18996 # How to create reloadable object files.
18997 reload_flag=$lt_reload_flag_CXX
18998 reload_cmds=$lt_reload_cmds_CXX
18999
19000 # Commands used to build an old-style archive.
19001 old_archive_cmds=$lt_old_archive_cmds_CXX
19002
19003 # A language specific compiler.
19004 CC=$lt_compiler_CXX
19005
19006 # Is the compiler the GNU compiler?
19007 with_gcc=$GCC_CXX
19008
19009 # Compiler flag to turn off builtin functions.
19010 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19011
19012 # Additional compiler flags for building library objects.
19013 pic_flag=$lt_lt_prog_compiler_pic_CXX
19014
19015 # How to pass a linker flag through the compiler.
19016 wl=$lt_lt_prog_compiler_wl_CXX
19017
19018 # Compiler flag to prevent dynamic linking.
19019 link_static_flag=$lt_lt_prog_compiler_static_CXX
19020
19021 # Does compiler simultaneously support -c and -o options?
19022 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19023
19024 # Whether or not to add -lc for building shared libraries.
19025 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19026
19027 # Whether or not to disallow shared libs when runtime libs are static.
19028 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19029
19030 # Compiler flag to allow reflexive dlopens.
19031 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19032
19033 # Compiler flag to generate shared objects directly from archives.
19034 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19035
19036 # Whether the compiler copes with passing no objects directly.
19037 compiler_needs_object=$lt_compiler_needs_object_CXX
19038
19039 # Create an old-style archive from a shared archive.
19040 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19041
19042 # Create a temporary old-style archive to link instead of a shared archive.
19043 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19044
19045 # Commands used to build a shared archive.
19046 archive_cmds=$lt_archive_cmds_CXX
19047 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19048
19049 # Commands used to build a loadable module if different from building
19050 # a shared archive.
19051 module_cmds=$lt_module_cmds_CXX
19052 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19053
19054 # Whether we are building with GNU ld or not.
19055 with_gnu_ld=$lt_with_gnu_ld_CXX
19056
19057 # Flag that allows shared libraries with undefined symbols to be built.
19058 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19059
19060 # Flag that enforces no undefined symbols.
19061 no_undefined_flag=$lt_no_undefined_flag_CXX
19062
19063 # Flag to hardcode \$libdir into a binary during linking.
19064 # This must work even if \$libdir does not exist
19065 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19066
19067 # If ld is used when linking, flag to hardcode \$libdir into a binary
19068 # during linking.  This must work even if \$libdir does not exist.
19069 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19070
19071 # Whether we need a single "-rpath" flag with a separated argument.
19072 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19073
19074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19075 # DIR into the resulting binary.
19076 hardcode_direct=$hardcode_direct_CXX
19077
19078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19079 # DIR into the resulting binary and the resulting library dependency is
19080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19081 # library is relocated.
19082 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19083
19084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19085 # into the resulting binary.
19086 hardcode_minus_L=$hardcode_minus_L_CXX
19087
19088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19089 # into the resulting binary.
19090 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19091
19092 # Set to "yes" if building a shared library automatically hardcodes DIR
19093 # into the library and all subsequent libraries and executables linked
19094 # against it.
19095 hardcode_automatic=$hardcode_automatic_CXX
19096
19097 # Set to yes if linker adds runtime paths of dependent libraries
19098 # to runtime path list.
19099 inherit_rpath=$inherit_rpath_CXX
19100
19101 # Whether libtool must link a program against all its dependency libraries.
19102 link_all_deplibs=$link_all_deplibs_CXX
19103
19104 # Set to "yes" if exported symbols are required.
19105 always_export_symbols=$always_export_symbols_CXX
19106
19107 # The commands to list exported symbols.
19108 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19109
19110 # Symbols that should not be listed in the preloaded symbols.
19111 exclude_expsyms=$lt_exclude_expsyms_CXX
19112
19113 # Symbols that must always be exported.
19114 include_expsyms=$lt_include_expsyms_CXX
19115
19116 # Commands necessary for linking programs (against libraries) with templates.
19117 prelink_cmds=$lt_prelink_cmds_CXX
19118
19119 # Commands necessary for finishing linking programs.
19120 postlink_cmds=$lt_postlink_cmds_CXX
19121
19122 # Specify filename containing input files.
19123 file_list_spec=$lt_file_list_spec_CXX
19124
19125 # How to hardcode a shared library path into an executable.
19126 hardcode_action=$hardcode_action_CXX
19127
19128 # The directories searched by this compiler when creating a shared library.
19129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19130
19131 # Dependencies to place before and after the objects being linked to
19132 # create a shared library.
19133 predep_objects=$lt_predep_objects_CXX
19134 postdep_objects=$lt_postdep_objects_CXX
19135 predeps=$lt_predeps_CXX
19136 postdeps=$lt_postdeps_CXX
19137
19138 # The library search path used internally by the compiler when linking
19139 # a shared library.
19140 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19141
19142 # ### END LIBTOOL TAG CONFIG: CXX
19143 _LT_EOF
19144
19145  ;;
19146
19147   esac
19148 done # for ac_tag
19149
19150
19151 as_fn_exit 0
19152 _ACEOF
19153 ac_clean_files=$ac_clean_files_save
19154
19155 test $ac_write_fail = 0 ||
19156   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19157
19158
19159 # configure is writing to config.log, and then calls config.status.
19160 # config.status does its own redirection, appending to config.log.
19161 # Unfortunately, on DOS this fails, as config.log is still kept open
19162 # by configure, so config.status won't be able to write to it; its
19163 # output is simply discarded.  So we exec the FD to /dev/null,
19164 # effectively closing config.log, so it can be properly (re)opened and
19165 # appended to by config.status.  When coming back to configure, we
19166 # need to make the FD available again.
19167 if test "$no_create" != yes; then
19168   ac_cs_success=:
19169   ac_config_status_args=
19170   test "$silent" = yes &&
19171     ac_config_status_args="$ac_config_status_args --quiet"
19172   exec 5>/dev/null
19173   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19174   exec 5>>config.log
19175   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19176   # would make configure fail if this is the last instruction.
19177   $ac_cs_success || as_fn_exit 1
19178 fi
19179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19182 fi
19183