resetting manifest requested domain to floor
[platform/upstream/acl.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     PATH=/empty FPATH=/empty; export PATH FPATH
205     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME=
589 PACKAGE_TARNAME=
590 PACKAGE_VERSION=
591 PACKAGE_STRING=
592 PACKAGE_BUGREPORT=
593 PACKAGE_URL=
594
595 ac_unique_file="include/acl.h"
596 ac_default_prefix=/usr
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 #  include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 #  include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='LTLIBOBJS
634 LIBOBJS
635 have_zipped_manpages
636 libattr
637 libdirsuffix
638 rpmbuild
639 RPMBUILD
640 rpm_version
641 rpm
642 RPM
643 xgettext
644 XGETTEXT
645 msgmerge
646 MSGMERGE
647 msgfmt
648 MSGFMT
649 sort
650 SORT
651 echo
652 ECHO
653 sed
654 awk
655 makedepend
656 MAKEDEPEND
657 zip
658 ZIP
659 tar
660 TAR
661 make
662 MAKE
663 cc
664 pkg_platform
665 pkg_distribution
666 pkg_group
667 pkg_user
668 malloc_lib
669 opt_build
670 debug_build
671 pkg_release
672 pkg_version
673 pkg_name
674 enable_lib64
675 enable_gettext
676 enable_shared
677 CPP
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 AWK
685 RANLIB
686 STRIP
687 ac_ct_AR
688 AR
689 DLLTOOL
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 LIBTOOL
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL'
754 ac_subst_files=''
755 ac_user_opts='
756 enable_option_checking
757 enable_shared
758 enable_static
759 with_pic
760 enable_fast_install
761 with_gnu_ld
762 with_sysroot
763 enable_libtool_lock
764 enable_gettext
765 enable_lib64
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
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830   # If the previous option needs an argument, assign it.
831   if test -n "$ac_prev"; then
832     eval $ac_prev=\$ac_option
833     ac_prev=
834     continue
835   fi
836
837   case $ac_option in
838   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839   *=)   ac_optarg= ;;
840   *)    ac_optarg=yes ;;
841   esac
842
843   # Accept the important Cygnus configure options, so we can diagnose typos.
844
845   case $ac_dashdash$ac_option in
846   --)
847     ac_dashdash=yes ;;
848
849   -bindir | --bindir | --bindi | --bind | --bin | --bi)
850     ac_prev=bindir ;;
851   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852     bindir=$ac_optarg ;;
853
854   -build | --build | --buil | --bui | --bu)
855     ac_prev=build_alias ;;
856   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857     build_alias=$ac_optarg ;;
858
859   -cache-file | --cache-file | --cache-fil | --cache-fi \
860   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861     ac_prev=cache_file ;;
862   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864     cache_file=$ac_optarg ;;
865
866   --config-cache | -C)
867     cache_file=config.cache ;;
868
869   -datadir | --datadir | --datadi | --datad)
870     ac_prev=datadir ;;
871   -datadir=* | --datadir=* | --datadi=* | --datad=*)
872     datadir=$ac_optarg ;;
873
874   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875   | --dataroo | --dataro | --datar)
876     ac_prev=datarootdir ;;
877   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879     datarootdir=$ac_optarg ;;
880
881   -disable-* | --disable-*)
882     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883     # Reject names that are not valid shell variable names.
884     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885       as_fn_error $? "invalid feature name: $ac_useropt"
886     ac_useropt_orig=$ac_useropt
887     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888     case $ac_user_opts in
889       *"
890 "enable_$ac_useropt"
891 "*) ;;
892       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893          ac_unrecognized_sep=', ';;
894     esac
895     eval enable_$ac_useropt=no ;;
896
897   -docdir | --docdir | --docdi | --doc | --do)
898     ac_prev=docdir ;;
899   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900     docdir=$ac_optarg ;;
901
902   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903     ac_prev=dvidir ;;
904   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905     dvidir=$ac_optarg ;;
906
907   -enable-* | --enable-*)
908     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909     # Reject names that are not valid shell variable names.
910     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911       as_fn_error $? "invalid feature name: $ac_useropt"
912     ac_useropt_orig=$ac_useropt
913     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914     case $ac_user_opts in
915       *"
916 "enable_$ac_useropt"
917 "*) ;;
918       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919          ac_unrecognized_sep=', ';;
920     esac
921     eval enable_$ac_useropt=\$ac_optarg ;;
922
923   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925   | --exec | --exe | --ex)
926     ac_prev=exec_prefix ;;
927   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929   | --exec=* | --exe=* | --ex=*)
930     exec_prefix=$ac_optarg ;;
931
932   -gas | --gas | --ga | --g)
933     # Obsolete; use --with-gas.
934     with_gas=yes ;;
935
936   -help | --help | --hel | --he | -h)
937     ac_init_help=long ;;
938   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939     ac_init_help=recursive ;;
940   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941     ac_init_help=short ;;
942
943   -host | --host | --hos | --ho)
944     ac_prev=host_alias ;;
945   -host=* | --host=* | --hos=* | --ho=*)
946     host_alias=$ac_optarg ;;
947
948   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949     ac_prev=htmldir ;;
950   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951   | --ht=*)
952     htmldir=$ac_optarg ;;
953
954   -includedir | --includedir | --includedi | --included | --include \
955   | --includ | --inclu | --incl | --inc)
956     ac_prev=includedir ;;
957   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958   | --includ=* | --inclu=* | --incl=* | --inc=*)
959     includedir=$ac_optarg ;;
960
961   -infodir | --infodir | --infodi | --infod | --info | --inf)
962     ac_prev=infodir ;;
963   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964     infodir=$ac_optarg ;;
965
966   -libdir | --libdir | --libdi | --libd)
967     ac_prev=libdir ;;
968   -libdir=* | --libdir=* | --libdi=* | --libd=*)
969     libdir=$ac_optarg ;;
970
971   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972   | --libexe | --libex | --libe)
973     ac_prev=libexecdir ;;
974   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975   | --libexe=* | --libex=* | --libe=*)
976     libexecdir=$ac_optarg ;;
977
978   -localedir | --localedir | --localedi | --localed | --locale)
979     ac_prev=localedir ;;
980   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981     localedir=$ac_optarg ;;
982
983   -localstatedir | --localstatedir | --localstatedi | --localstated \
984   | --localstate | --localstat | --localsta | --localst | --locals)
985     ac_prev=localstatedir ;;
986   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988     localstatedir=$ac_optarg ;;
989
990   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991     ac_prev=mandir ;;
992   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993     mandir=$ac_optarg ;;
994
995   -nfp | --nfp | --nf)
996     # Obsolete; use --without-fp.
997     with_fp=no ;;
998
999   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000   | --no-cr | --no-c | -n)
1001     no_create=yes ;;
1002
1003   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005     no_recursion=yes ;;
1006
1007   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009   | --oldin | --oldi | --old | --ol | --o)
1010     ac_prev=oldincludedir ;;
1011   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014     oldincludedir=$ac_optarg ;;
1015
1016   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017     ac_prev=prefix ;;
1018   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019     prefix=$ac_optarg ;;
1020
1021   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022   | --program-pre | --program-pr | --program-p)
1023     ac_prev=program_prefix ;;
1024   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026     program_prefix=$ac_optarg ;;
1027
1028   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029   | --program-suf | --program-su | --program-s)
1030     ac_prev=program_suffix ;;
1031   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033     program_suffix=$ac_optarg ;;
1034
1035   -program-transform-name | --program-transform-name \
1036   | --program-transform-nam | --program-transform-na \
1037   | --program-transform-n | --program-transform- \
1038   | --program-transform | --program-transfor \
1039   | --program-transfo | --program-transf \
1040   | --program-trans | --program-tran \
1041   | --progr-tra | --program-tr | --program-t)
1042     ac_prev=program_transform_name ;;
1043   -program-transform-name=* | --program-transform-name=* \
1044   | --program-transform-nam=* | --program-transform-na=* \
1045   | --program-transform-n=* | --program-transform-=* \
1046   | --program-transform=* | --program-transfor=* \
1047   | --program-transfo=* | --program-transf=* \
1048   | --program-trans=* | --program-tran=* \
1049   | --progr-tra=* | --program-tr=* | --program-t=*)
1050     program_transform_name=$ac_optarg ;;
1051
1052   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053     ac_prev=pdfdir ;;
1054   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055     pdfdir=$ac_optarg ;;
1056
1057   -psdir | --psdir | --psdi | --psd | --ps)
1058     ac_prev=psdir ;;
1059   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060     psdir=$ac_optarg ;;
1061
1062   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063   | -silent | --silent | --silen | --sile | --sil)
1064     silent=yes ;;
1065
1066   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067     ac_prev=sbindir ;;
1068   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069   | --sbi=* | --sb=*)
1070     sbindir=$ac_optarg ;;
1071
1072   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074   | --sharedst | --shareds | --shared | --share | --shar \
1075   | --sha | --sh)
1076     ac_prev=sharedstatedir ;;
1077   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080   | --sha=* | --sh=*)
1081     sharedstatedir=$ac_optarg ;;
1082
1083   -site | --site | --sit)
1084     ac_prev=site ;;
1085   -site=* | --site=* | --sit=*)
1086     site=$ac_optarg ;;
1087
1088   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089     ac_prev=srcdir ;;
1090   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091     srcdir=$ac_optarg ;;
1092
1093   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094   | --syscon | --sysco | --sysc | --sys | --sy)
1095     ac_prev=sysconfdir ;;
1096   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098     sysconfdir=$ac_optarg ;;
1099
1100   -target | --target | --targe | --targ | --tar | --ta | --t)
1101     ac_prev=target_alias ;;
1102   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103     target_alias=$ac_optarg ;;
1104
1105   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106     verbose=yes ;;
1107
1108   -version | --version | --versio | --versi | --vers | -V)
1109     ac_init_version=: ;;
1110
1111   -with-* | --with-*)
1112     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113     # Reject names that are not valid shell variable names.
1114     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115       as_fn_error $? "invalid package name: $ac_useropt"
1116     ac_useropt_orig=$ac_useropt
1117     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118     case $ac_user_opts in
1119       *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123          ac_unrecognized_sep=', ';;
1124     esac
1125     eval with_$ac_useropt=\$ac_optarg ;;
1126
1127   -without-* | --without-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid package name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval with_$ac_useropt=no ;;
1142
1143   --x)
1144     # Obsolete; use --with-x.
1145     with_x=yes ;;
1146
1147   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148   | --x-incl | --x-inc | --x-in | --x-i)
1149     ac_prev=x_includes ;;
1150   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152     x_includes=$ac_optarg ;;
1153
1154   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156     ac_prev=x_libraries ;;
1157   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159     x_libraries=$ac_optarg ;;
1160
1161   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163     ;;
1164
1165   *=*)
1166     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167     # Reject names that are not valid shell variable names.
1168     case $ac_envvar in #(
1169       '' | [0-9]* | *[!_$as_cr_alnum]* )
1170       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171     esac
1172     eval $ac_envvar=\$ac_optarg
1173     export $ac_envvar ;;
1174
1175   *)
1176     # FIXME: should be removed in autoconf 3.0.
1177     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181     ;;
1182
1183   esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188   as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192   case $enable_option_checking in
1193     no) ;;
1194     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196   esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201                 datadir sysconfdir sharedstatedir localstatedir includedir \
1202                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203                 libdir localedir mandir
1204 do
1205   eval ac_val=\$$ac_var
1206   # Remove trailing slashes.
1207   case $ac_val in
1208     */ )
1209       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210       eval $ac_var=\$ac_val;;
1211   esac
1212   # Be sure to have absolute directory names.
1213   case $ac_val in
1214     [\\/$]* | ?:[\\/]* )  continue;;
1215     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216   esac
1217   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231   elif test "x$build_alias" != "x$host_alias"; then
1232     cross_compiling=yes
1233   fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245   as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247   as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$as_myself" : 'X\(//\)[^/]' \| \
1257          X"$as_myself" : 'X\(//\)$' \| \
1258          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291         pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294   srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_env_${ac_var}_value=\$${ac_var}
1305   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313   # Omit some internal or obsolete options to make the list less imposing.
1314   # This message is too long to be a string in the A/UX 3.1 sh.
1315   cat <<_ACEOF
1316 \`configure' configures this package to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE.  See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326   -h, --help              display this help and exit
1327       --help=short        display options specific to this package
1328       --help=recursive    display the short help of all the included packages
1329   -V, --version           display version information and exit
1330   -q, --quiet, --silent   do not print \`checking ...' messages
1331       --cache-file=FILE   cache test results in FILE [disabled]
1332   -C, --config-cache      alias for \`--cache-file=config.cache'
1333   -n, --no-create         do not create output files
1334       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337   --prefix=PREFIX         install architecture-independent files in PREFIX
1338                           [$ac_default_prefix]
1339   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1340                           [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350   --bindir=DIR            user executables [EPREFIX/bin]
1351   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1352   --libexecdir=DIR        program executables [EPREFIX/libexec]
1353   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1354   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1355   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1356   --libdir=DIR            object code libraries [EPREFIX/lib]
1357   --includedir=DIR        C header files [PREFIX/include]
1358   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1359   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1360   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1361   --infodir=DIR           info documentation [DATAROOTDIR/info]
1362   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1363   --mandir=DIR            man documentation [DATAROOTDIR/man]
1364   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1365   --htmldir=DIR           html documentation [DOCDIR]
1366   --dvidir=DIR            dvi documentation [DOCDIR]
1367   --pdfdir=DIR            pdf documentation [DOCDIR]
1368   --psdir=DIR             ps documentation [DOCDIR]
1369 _ACEOF
1370
1371   cat <<\_ACEOF
1372
1373 System types:
1374   --build=BUILD     configure for building on BUILD [guessed]
1375   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1376 _ACEOF
1377 fi
1378
1379 if test -n "$ac_init_help"; then
1380
1381   cat <<\_ACEOF
1382
1383 Optional Features:
1384   --disable-option-checking  ignore unrecognized --enable/--with options
1385   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1386   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1387   --enable-shared[=PKGS]  build shared libraries [default=yes]
1388   --enable-static[=PKGS]  build static libraries [default=yes]
1389   --enable-fast-install[=PKGS]
1390                           optimize for fast installation [default=yes]
1391   --disable-libtool-lock  avoid locking (might break parallel builds)
1392  --enable-shared=yes/no Enable use of shared libraries default=yes
1393  --enable-gettext=yes/no Enable alternate language support default=yes
1394  --enable-lib64=yes/no Enable lib64 support default=no
1395
1396 Optional Packages:
1397   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1400                           both]
1401   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1402   --with-sysroot=DIR Search for dependent libraries within DIR
1403                         (or the compiler's sysroot if not specified).
1404
1405 Some influential environment variables:
1406   CC          C compiler command
1407   CFLAGS      C compiler flags
1408   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1409               nonstandard directory <lib dir>
1410   LIBS        libraries to pass to the linker, e.g. -l<library>
1411   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1412               you have headers in a nonstandard directory <include dir>
1413   CPP         C preprocessor
1414
1415 Use these variables to override the choices made by `configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1417
1418 Report bugs to the package provider.
1419 _ACEOF
1420 ac_status=$?
1421 fi
1422
1423 if test "$ac_init_help" = "recursive"; then
1424   # If there are subdirs, report their specific --help.
1425   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1426     test -d "$ac_dir" ||
1427       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428       continue
1429     ac_builddir=.
1430
1431 case "$ac_dir" in
1432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *)
1434   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1435   # A ".." for each directory in $ac_dir_suffix.
1436   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1437   case $ac_top_builddir_sub in
1438   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1440   esac ;;
1441 esac
1442 ac_abs_top_builddir=$ac_pwd
1443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1444 # for backward compatibility:
1445 ac_top_builddir=$ac_top_build_prefix
1446
1447 case $srcdir in
1448   .)  # We are building in place.
1449     ac_srcdir=.
1450     ac_top_srcdir=$ac_top_builddir_sub
1451     ac_abs_top_srcdir=$ac_pwd ;;
1452   [\\/]* | ?:[\\/]* )  # Absolute name.
1453     ac_srcdir=$srcdir$ac_dir_suffix;
1454     ac_top_srcdir=$srcdir
1455     ac_abs_top_srcdir=$srcdir ;;
1456   *) # Relative name.
1457     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1458     ac_top_srcdir=$ac_top_build_prefix$srcdir
1459     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1460 esac
1461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462
1463     cd "$ac_dir" || { ac_status=$?; continue; }
1464     # Check for guested configure.
1465     if test -f "$ac_srcdir/configure.gnu"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1468     elif test -f "$ac_srcdir/configure"; then
1469       echo &&
1470       $SHELL "$ac_srcdir/configure" --help=recursive
1471     else
1472       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1473     fi || ac_status=$?
1474     cd "$ac_pwd" || { ac_status=$?; break; }
1475   done
1476 fi
1477
1478 test -n "$ac_init_help" && exit $ac_status
1479 if $ac_init_version; then
1480   cat <<\_ACEOF
1481 configure
1482 generated by GNU Autoconf 2.69
1483
1484 Copyright (C) 2012 Free Software Foundation, Inc.
1485 This configure script is free software; the Free Software Foundation
1486 gives unlimited permission to copy, distribute and modify it.
1487 _ACEOF
1488   exit
1489 fi
1490
1491 ## ------------------------ ##
1492 ## Autoconf initialization. ##
1493 ## ------------------------ ##
1494
1495 # ac_fn_c_try_compile LINENO
1496 # --------------------------
1497 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1498 ac_fn_c_try_compile ()
1499 {
1500   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1501   rm -f conftest.$ac_objext
1502   if { { ac_try="$ac_compile"
1503 case "(($ac_try" in
1504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1505   *) ac_try_echo=$ac_try;;
1506 esac
1507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1508 $as_echo "$ac_try_echo"; } >&5
1509   (eval "$ac_compile") 2>conftest.err
1510   ac_status=$?
1511   if test -s conftest.err; then
1512     grep -v '^ *+' conftest.err >conftest.er1
1513     cat conftest.er1 >&5
1514     mv -f conftest.er1 conftest.err
1515   fi
1516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1517   test $ac_status = 0; } && {
1518          test -z "$ac_c_werror_flag" ||
1519          test ! -s conftest.err
1520        } && test -s conftest.$ac_objext; then :
1521   ac_retval=0
1522 else
1523   $as_echo "$as_me: failed program was:" >&5
1524 sed 's/^/| /' conftest.$ac_ext >&5
1525
1526         ac_retval=1
1527 fi
1528   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1529   as_fn_set_status $ac_retval
1530
1531 } # ac_fn_c_try_compile
1532
1533 # ac_fn_c_try_link LINENO
1534 # -----------------------
1535 # Try to link conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_link ()
1537 {
1538   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539   rm -f conftest.$ac_objext conftest$ac_exeext
1540   if { { ac_try="$ac_link"
1541 case "(($ac_try" in
1542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543   *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547   (eval "$ac_link") 2>conftest.err
1548   ac_status=$?
1549   if test -s conftest.err; then
1550     grep -v '^ *+' conftest.err >conftest.er1
1551     cat conftest.er1 >&5
1552     mv -f conftest.er1 conftest.err
1553   fi
1554   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555   test $ac_status = 0; } && {
1556          test -z "$ac_c_werror_flag" ||
1557          test ! -s conftest.err
1558        } && test -s conftest$ac_exeext && {
1559          test "$cross_compiling" = yes ||
1560          test -x conftest$ac_exeext
1561        }; then :
1562   ac_retval=0
1563 else
1564   $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567         ac_retval=1
1568 fi
1569   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1570   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1571   # interfere with the next link command; also delete a directory that is
1572   # left behind by Apple's compiler.  We do this before executing the actions.
1573   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1574   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575   as_fn_set_status $ac_retval
1576
1577 } # ac_fn_c_try_link
1578
1579 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1580 # -------------------------------------------------------
1581 # Tests whether HEADER exists and can be compiled using the include files in
1582 # INCLUDES, setting the cache variable VAR accordingly.
1583 ac_fn_c_check_header_compile ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1587 $as_echo_n "checking for $2... " >&6; }
1588 if eval \${$3+:} false; then :
1589   $as_echo_n "(cached) " >&6
1590 else
1591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1592 /* end confdefs.h.  */
1593 $4
1594 #include <$2>
1595 _ACEOF
1596 if ac_fn_c_try_compile "$LINENO"; then :
1597   eval "$3=yes"
1598 else
1599   eval "$3=no"
1600 fi
1601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1602 fi
1603 eval ac_res=\$$3
1604                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1606   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
1608 } # ac_fn_c_check_header_compile
1609
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } > conftest.i && {
1632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        }; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640     ac_retval=1
1641 fi
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_cpp
1646
1647 # ac_fn_c_try_run LINENO
1648 # ----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650 # that executables *can* be run.
1651 ac_fn_c_try_run ()
1652 {
1653   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654   if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_link") 2>&5
1662   ac_status=$?
1663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665   { { case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_try") 2>&5
1672   ac_status=$?
1673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674   test $ac_status = 0; }; }; then :
1675   ac_retval=0
1676 else
1677   $as_echo "$as_me: program exited with status $ac_status" >&5
1678        $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681        ac_retval=$ac_status
1682 fi
1683   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_run
1688
1689 # ac_fn_c_check_func LINENO FUNC VAR
1690 # ----------------------------------
1691 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1692 ac_fn_c_check_func ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698   $as_echo_n "(cached) " >&6
1699 else
1700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h.  */
1702 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1703    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1704 #define $2 innocuous_$2
1705
1706 /* System header to define __stub macros and hopefully few prototypes,
1707     which can conflict with char $2 (); below.
1708     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1709     <limits.h> exists even on freestanding compilers.  */
1710
1711 #ifdef __STDC__
1712 # include <limits.h>
1713 #else
1714 # include <assert.h>
1715 #endif
1716
1717 #undef $2
1718
1719 /* Override any GCC internal prototype to avoid an error.
1720    Use char because int might match the return type of a GCC
1721    builtin and then its argument prototype would still apply.  */
1722 #ifdef __cplusplus
1723 extern "C"
1724 #endif
1725 char $2 ();
1726 /* The GNU C library defines this for functions which it implements
1727     to always fail with ENOSYS.  Some functions are actually named
1728     something starting with __ and the normal name is an alias.  */
1729 #if defined __stub_$2 || defined __stub___$2
1730 choke me
1731 #endif
1732
1733 int
1734 main ()
1735 {
1736 return $2 ();
1737   ;
1738   return 0;
1739 }
1740 _ACEOF
1741 if ac_fn_c_try_link "$LINENO"; then :
1742   eval "$3=yes"
1743 else
1744   eval "$3=no"
1745 fi
1746 rm -f core conftest.err conftest.$ac_objext \
1747     conftest$ac_exeext conftest.$ac_ext
1748 fi
1749 eval ac_res=\$$3
1750                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751 $as_echo "$ac_res" >&6; }
1752   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
1754 } # ac_fn_c_check_func
1755
1756 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1757 # -------------------------------------------------------
1758 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1759 # the include files in INCLUDES and setting the cache variable VAR
1760 # accordingly.
1761 ac_fn_c_check_header_mongrel ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   if eval \${$3+:} false; then :
1765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768   $as_echo_n "(cached) " >&6
1769 fi
1770 eval ac_res=\$$3
1771                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 $as_echo "$ac_res" >&6; }
1773 else
1774   # Is the header compilable?
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1776 $as_echo_n "checking $2 usability... " >&6; }
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h.  */
1779 $4
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_compile "$LINENO"; then :
1783   ac_header_compiler=yes
1784 else
1785   ac_header_compiler=no
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1789 $as_echo "$ac_header_compiler" >&6; }
1790
1791 # Is the header present?
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1793 $as_echo_n "checking $2 presence... " >&6; }
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h.  */
1796 #include <$2>
1797 _ACEOF
1798 if ac_fn_c_try_cpp "$LINENO"; then :
1799   ac_header_preproc=yes
1800 else
1801   ac_header_preproc=no
1802 fi
1803 rm -f conftest.err conftest.i conftest.$ac_ext
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1805 $as_echo "$ac_header_preproc" >&6; }
1806
1807 # So?  What about this header?
1808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1809   yes:no: )
1810     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1811 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1812     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1813 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1814     ;;
1815   no:yes:* )
1816     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1817 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1818     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1819 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1820     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1821 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1823 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826     ;;
1827 esac
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   eval "$3=\$ac_header_compiler"
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838 fi
1839   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_header_mongrel
1842 cat >config.log <<_ACEOF
1843 This file contains any messages produced by compilers while
1844 running configure, to aid debugging if configure makes a mistake.
1845
1846 It was created by $as_me, which was
1847 generated by GNU Autoconf 2.69.  Invocation command line was
1848
1849   $ $0 $@
1850
1851 _ACEOF
1852 exec 5>>config.log
1853 {
1854 cat <<_ASUNAME
1855 ## --------- ##
1856 ## Platform. ##
1857 ## --------- ##
1858
1859 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1860 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1861 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1862 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1863 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1864
1865 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1866 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1867
1868 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1869 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1870 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1871 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1872 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1873 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1874 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1875
1876 _ASUNAME
1877
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1880 do
1881   IFS=$as_save_IFS
1882   test -z "$as_dir" && as_dir=.
1883     $as_echo "PATH: $as_dir"
1884   done
1885 IFS=$as_save_IFS
1886
1887 } >&5
1888
1889 cat >&5 <<_ACEOF
1890
1891
1892 ## ----------- ##
1893 ## Core tests. ##
1894 ## ----------- ##
1895
1896 _ACEOF
1897
1898
1899 # Keep a trace of the command line.
1900 # Strip out --no-create and --no-recursion so they do not pile up.
1901 # Strip out --silent because we don't want to record it for future runs.
1902 # Also quote any args containing shell meta-characters.
1903 # Make two passes to allow for proper duplicate-argument suppression.
1904 ac_configure_args=
1905 ac_configure_args0=
1906 ac_configure_args1=
1907 ac_must_keep_next=false
1908 for ac_pass in 1 2
1909 do
1910   for ac_arg
1911   do
1912     case $ac_arg in
1913     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1914     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1915     | -silent | --silent | --silen | --sile | --sil)
1916       continue ;;
1917     *\'*)
1918       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1919     esac
1920     case $ac_pass in
1921     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1922     2)
1923       as_fn_append ac_configure_args1 " '$ac_arg'"
1924       if test $ac_must_keep_next = true; then
1925         ac_must_keep_next=false # Got value, back to normal.
1926       else
1927         case $ac_arg in
1928           *=* | --config-cache | -C | -disable-* | --disable-* \
1929           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1930           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1931           | -with-* | --with-* | -without-* | --without-* | --x)
1932             case "$ac_configure_args0 " in
1933               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1934             esac
1935             ;;
1936           -* ) ac_must_keep_next=true ;;
1937         esac
1938       fi
1939       as_fn_append ac_configure_args " '$ac_arg'"
1940       ;;
1941     esac
1942   done
1943 done
1944 { ac_configure_args0=; unset ac_configure_args0;}
1945 { ac_configure_args1=; unset ac_configure_args1;}
1946
1947 # When interrupted or exit'd, cleanup temporary files, and complete
1948 # config.log.  We remove comments because anyway the quotes in there
1949 # would cause problems or look ugly.
1950 # WARNING: Use '\'' to represent an apostrophe within the trap.
1951 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1952 trap 'exit_status=$?
1953   # Save into config.log some information that might help in debugging.
1954   {
1955     echo
1956
1957     $as_echo "## ---------------- ##
1958 ## Cache variables. ##
1959 ## ---------------- ##"
1960     echo
1961     # The following way of writing the cache mishandles newlines in values,
1962 (
1963   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1964     eval ac_val=\$$ac_var
1965     case $ac_val in #(
1966     *${as_nl}*)
1967       case $ac_var in #(
1968       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1970       esac
1971       case $ac_var in #(
1972       _ | IFS | as_nl) ;; #(
1973       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1974       *) { eval $ac_var=; unset $ac_var;} ;;
1975       esac ;;
1976     esac
1977   done
1978   (set) 2>&1 |
1979     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1980     *${as_nl}ac_space=\ *)
1981       sed -n \
1982         "s/'\''/'\''\\\\'\'''\''/g;
1983           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1984       ;; #(
1985     *)
1986       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1987       ;;
1988     esac |
1989     sort
1990 )
1991     echo
1992
1993     $as_echo "## ----------------- ##
1994 ## Output variables. ##
1995 ## ----------------- ##"
1996     echo
1997     for ac_var in $ac_subst_vars
1998     do
1999       eval ac_val=\$$ac_var
2000       case $ac_val in
2001       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002       esac
2003       $as_echo "$ac_var='\''$ac_val'\''"
2004     done | sort
2005     echo
2006
2007     if test -n "$ac_subst_files"; then
2008       $as_echo "## ------------------- ##
2009 ## File substitutions. ##
2010 ## ------------------- ##"
2011       echo
2012       for ac_var in $ac_subst_files
2013       do
2014         eval ac_val=\$$ac_var
2015         case $ac_val in
2016         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2017         esac
2018         $as_echo "$ac_var='\''$ac_val'\''"
2019       done | sort
2020       echo
2021     fi
2022
2023     if test -s confdefs.h; then
2024       $as_echo "## ----------- ##
2025 ## confdefs.h. ##
2026 ## ----------- ##"
2027       echo
2028       cat confdefs.h
2029       echo
2030     fi
2031     test "$ac_signal" != 0 &&
2032       $as_echo "$as_me: caught signal $ac_signal"
2033     $as_echo "$as_me: exit $exit_status"
2034   } >&5
2035   rm -f core *.core core.conftest.* &&
2036     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2037     exit $exit_status
2038 ' 0
2039 for ac_signal in 1 2 13 15; do
2040   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2041 done
2042 ac_signal=0
2043
2044 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2045 rm -f -r conftest* confdefs.h
2046
2047 $as_echo "/* confdefs.h */" > confdefs.h
2048
2049 # Predefined preprocessor variables.
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_NAME "$PACKAGE_NAME"
2053 _ACEOF
2054
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2057 _ACEOF
2058
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2061 _ACEOF
2062
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_STRING "$PACKAGE_STRING"
2065 _ACEOF
2066
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2069 _ACEOF
2070
2071 cat >>confdefs.h <<_ACEOF
2072 #define PACKAGE_URL "$PACKAGE_URL"
2073 _ACEOF
2074
2075
2076 # Let the site file select an alternate cache file if it wants to.
2077 # Prefer an explicitly selected file to automatically selected ones.
2078 ac_site_file1=NONE
2079 ac_site_file2=NONE
2080 if test -n "$CONFIG_SITE"; then
2081   # We do not want a PATH search for config.site.
2082   case $CONFIG_SITE in #((
2083     -*)  ac_site_file1=./$CONFIG_SITE;;
2084     */*) ac_site_file1=$CONFIG_SITE;;
2085     *)   ac_site_file1=./$CONFIG_SITE;;
2086   esac
2087 elif test "x$prefix" != xNONE; then
2088   ac_site_file1=$prefix/share/config.site
2089   ac_site_file2=$prefix/etc/config.site
2090 else
2091   ac_site_file1=$ac_default_prefix/share/config.site
2092   ac_site_file2=$ac_default_prefix/etc/config.site
2093 fi
2094 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2095 do
2096   test "x$ac_site_file" = xNONE && continue
2097   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2098     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2099 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2100     sed 's/^/| /' "$ac_site_file" >&5
2101     . "$ac_site_file" \
2102       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2104 as_fn_error $? "failed to load site script $ac_site_file
2105 See \`config.log' for more details" "$LINENO" 5; }
2106   fi
2107 done
2108
2109 if test -r "$cache_file"; then
2110   # Some versions of bash will fail to source /dev/null (special files
2111   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2112   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2114 $as_echo "$as_me: loading cache $cache_file" >&6;}
2115     case $cache_file in
2116       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2117       *)                      . "./$cache_file";;
2118     esac
2119   fi
2120 else
2121   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2122 $as_echo "$as_me: creating cache $cache_file" >&6;}
2123   >$cache_file
2124 fi
2125
2126 # Check that the precious variables saved in the cache have kept the same
2127 # value.
2128 ac_cache_corrupted=false
2129 for ac_var in $ac_precious_vars; do
2130   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2131   eval ac_new_set=\$ac_env_${ac_var}_set
2132   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2133   eval ac_new_val=\$ac_env_${ac_var}_value
2134   case $ac_old_set,$ac_new_set in
2135     set,)
2136       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2138       ac_cache_corrupted=: ;;
2139     ,set)
2140       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2141 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2142       ac_cache_corrupted=: ;;
2143     ,);;
2144     *)
2145       if test "x$ac_old_val" != "x$ac_new_val"; then
2146         # differences in whitespace do not lead to failure.
2147         ac_old_val_w=`echo x $ac_old_val`
2148         ac_new_val_w=`echo x $ac_new_val`
2149         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2150           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2151 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2152           ac_cache_corrupted=:
2153         else
2154           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2155 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2156           eval $ac_var=\$ac_old_val
2157         fi
2158         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2159 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2160         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2161 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2162       fi;;
2163   esac
2164   # Pass precious variables to config.status.
2165   if test "$ac_new_set" = set; then
2166     case $ac_new_val in
2167     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2168     *) ac_arg=$ac_var=$ac_new_val ;;
2169     esac
2170     case " $ac_configure_args " in
2171       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2172       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2173     esac
2174   fi
2175 done
2176 if $ac_cache_corrupted; then
2177   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2179   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2180 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2182 fi
2183 ## -------------------- ##
2184 ## Main body of script. ##
2185 ## -------------------- ##
2186
2187 ac_ext=c
2188 ac_cpp='$CPP $CPPFLAGS'
2189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2192
2193
2194 ac_aux_dir=
2195 for ac_dir in . "$srcdir"/.; do
2196   if test -f "$ac_dir/install-sh"; then
2197     ac_aux_dir=$ac_dir
2198     ac_install_sh="$ac_aux_dir/install-sh -c"
2199     break
2200   elif test -f "$ac_dir/install.sh"; then
2201     ac_aux_dir=$ac_dir
2202     ac_install_sh="$ac_aux_dir/install.sh -c"
2203     break
2204   elif test -f "$ac_dir/shtool"; then
2205     ac_aux_dir=$ac_dir
2206     ac_install_sh="$ac_aux_dir/shtool install -c"
2207     break
2208   fi
2209 done
2210 if test -z "$ac_aux_dir"; then
2211   as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2212 fi
2213
2214 # These three variables are undocumented and unsupported,
2215 # and are intended to be withdrawn in a future Autoconf release.
2216 # They can cause serious problems if a builder's source tree is in a directory
2217 # whose full name contains unusual characters.
2218 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2219 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2220 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2221
2222
2223
2224 ac_config_headers="$ac_config_headers include/config.h"
2225
2226
2227
2228 case `pwd` in
2229   *\ * | *\     *)
2230     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2231 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2232 esac
2233
2234
2235
2236 macro_version='2.4.2'
2237 macro_revision='1.3337'
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251 ltmain="$ac_aux_dir/ltmain.sh"
2252
2253 # Make sure we can run config.sub.
2254 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2255   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2256
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2258 $as_echo_n "checking build system type... " >&6; }
2259 if ${ac_cv_build+:} false; then :
2260   $as_echo_n "(cached) " >&6
2261 else
2262   ac_build_alias=$build_alias
2263 test "x$ac_build_alias" = x &&
2264   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2265 test "x$ac_build_alias" = x &&
2266   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2267 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2268   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2269
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2272 $as_echo "$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2274 *-*-*) ;;
2275 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2276 esac
2277 build=$ac_cv_build
2278 ac_save_IFS=$IFS; IFS='-'
2279 set x $ac_cv_build
2280 shift
2281 build_cpu=$1
2282 build_vendor=$2
2283 shift; shift
2284 # Remember, the first character of IFS is used to create $*,
2285 # except with old shells:
2286 build_os=$*
2287 IFS=$ac_save_IFS
2288 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2289
2290
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292 $as_echo_n "checking host system type... " >&6; }
2293 if ${ac_cv_host+:} false; then :
2294   $as_echo_n "(cached) " >&6
2295 else
2296   if test "x$host_alias" = x; then
2297   ac_cv_host=$ac_cv_build
2298 else
2299   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2301 fi
2302
2303 fi
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305 $as_echo "$ac_cv_host" >&6; }
2306 case $ac_cv_host in
2307 *-*-*) ;;
2308 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2309 esac
2310 host=$ac_cv_host
2311 ac_save_IFS=$IFS; IFS='-'
2312 set x $ac_cv_host
2313 shift
2314 host_cpu=$1
2315 host_vendor=$2
2316 shift; shift
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2319 host_os=$*
2320 IFS=$ac_save_IFS
2321 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2322
2323
2324 # Backslashify metacharacters that are still active within
2325 # double-quoted strings.
2326 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2327
2328 # Same as above, but do not quote variable references.
2329 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2330
2331 # Sed substitution to delay expansion of an escaped shell variable in a
2332 # double_quote_subst'ed string.
2333 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2334
2335 # Sed substitution to delay expansion of an escaped single quote.
2336 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2337
2338 # Sed substitution to avoid accidental globbing in evaled expressions
2339 no_glob_subst='s/\*/\\\*/g'
2340
2341 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2342 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2343 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2344
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2346 $as_echo_n "checking how to print strings... " >&6; }
2347 # Test print first, because it will be a builtin if present.
2348 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2349    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2350   ECHO='print -r --'
2351 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2352   ECHO='printf %s\n'
2353 else
2354   # Use this function as a fallback that always works.
2355   func_fallback_echo ()
2356   {
2357     eval 'cat <<_LTECHO_EOF
2358 $1
2359 _LTECHO_EOF'
2360   }
2361   ECHO='func_fallback_echo'
2362 fi
2363
2364 # func_echo_all arg...
2365 # Invoke $ECHO with all args, space-separated.
2366 func_echo_all ()
2367 {
2368     $ECHO ""
2369 }
2370
2371 case "$ECHO" in
2372   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2373 $as_echo "printf" >&6; } ;;
2374   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2375 $as_echo "print -r" >&6; } ;;
2376   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2377 $as_echo "cat" >&6; } ;;
2378 esac
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393 ac_ext=c
2394 ac_cpp='$CPP $CPPFLAGS'
2395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 if test -n "$ac_tool_prefix"; then
2399   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_CC+:} false; then :
2404   $as_echo_n "(cached) " >&6
2405 else
2406   if test -n "$CC"; then
2407   ac_cv_prog_CC="$CC" # Let the user override the test.
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412   IFS=$as_save_IFS
2413   test -z "$as_dir" && as_dir=.
2414     for ac_exec_ext in '' $ac_executable_extensions; do
2415   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418     break 2
2419   fi
2420 done
2421   done
2422 IFS=$as_save_IFS
2423
2424 fi
2425 fi
2426 CC=$ac_cv_prog_CC
2427 if test -n "$CC"; then
2428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2429 $as_echo "$CC" >&6; }
2430 else
2431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2433 fi
2434
2435
2436 fi
2437 if test -z "$ac_cv_prog_CC"; then
2438   ac_ct_CC=$CC
2439   # Extract the first word of "gcc", so it can be a program name with args.
2440 set dummy gcc; ac_word=$2
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2442 $as_echo_n "checking for $ac_word... " >&6; }
2443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2444   $as_echo_n "(cached) " >&6
2445 else
2446   if test -n "$ac_ct_CC"; then
2447   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2448 else
2449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 for as_dir in $PATH
2451 do
2452   IFS=$as_save_IFS
2453   test -z "$as_dir" && as_dir=.
2454     for ac_exec_ext in '' $ac_executable_extensions; do
2455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2456     ac_cv_prog_ac_ct_CC="gcc"
2457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458     break 2
2459   fi
2460 done
2461   done
2462 IFS=$as_save_IFS
2463
2464 fi
2465 fi
2466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467 if test -n "$ac_ct_CC"; then
2468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2469 $as_echo "$ac_ct_CC" >&6; }
2470 else
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2472 $as_echo "no" >&6; }
2473 fi
2474
2475   if test "x$ac_ct_CC" = x; then
2476     CC=""
2477   else
2478     case $cross_compiling:$ac_tool_warned in
2479 yes:)
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2482 ac_tool_warned=yes ;;
2483 esac
2484     CC=$ac_ct_CC
2485   fi
2486 else
2487   CC="$ac_cv_prog_CC"
2488 fi
2489
2490 if test -z "$CC"; then
2491           if test -n "$ac_tool_prefix"; then
2492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2495 $as_echo_n "checking for $ac_word... " >&6; }
2496 if ${ac_cv_prog_CC+:} false; then :
2497   $as_echo_n "(cached) " >&6
2498 else
2499   if test -n "$CC"; then
2500   ac_cv_prog_CC="$CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507     for ac_exec_ext in '' $ac_executable_extensions; do
2508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2509     ac_cv_prog_CC="${ac_tool_prefix}cc"
2510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514   done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 CC=$ac_cv_prog_CC
2520 if test -n "$CC"; then
2521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2522 $as_echo "$CC" >&6; }
2523 else
2524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2525 $as_echo "no" >&6; }
2526 fi
2527
2528
2529   fi
2530 fi
2531 if test -z "$CC"; then
2532   # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_CC+:} false; then :
2537   $as_echo_n "(cached) " >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542   ac_prog_rejected=no
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548     for ac_exec_ext in '' $ac_executable_extensions; do
2549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551        ac_prog_rejected=yes
2552        continue
2553      fi
2554     ac_cv_prog_CC="cc"
2555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559   done
2560 IFS=$as_save_IFS
2561
2562 if test $ac_prog_rejected = yes; then
2563   # We found a bogon in the path, so make sure we never use it.
2564   set dummy $ac_cv_prog_CC
2565   shift
2566   if test $# != 0; then
2567     # We chose a different compiler from the bogus one.
2568     # However, it has the same basename, so the bogon will be chosen
2569     # first if we set CC to just the basename; use the full file name.
2570     shift
2571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572   fi
2573 fi
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2579 $as_echo "$CC" >&6; }
2580 else
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 fi
2587 if test -z "$CC"; then
2588   if test -n "$ac_tool_prefix"; then
2589   for ac_prog in cl.exe
2590   do
2591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if ${ac_cv_prog_CC+:} false; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   if test -n "$CC"; then
2599   ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606     for ac_exec_ext in '' $ac_executable_extensions; do
2607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613   done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621 $as_echo "$CC" >&6; }
2622 else
2623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2625 fi
2626
2627
2628     test -n "$CC" && break
2629   done
2630 fi
2631 if test -z "$CC"; then
2632   ac_ct_CC=$CC
2633   for ac_prog in cl.exe
2634 do
2635   # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2640   $as_echo_n "(cached) " >&6
2641 else
2642   if test -n "$ac_ct_CC"; then
2643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650     for ac_exec_ext in '' $ac_executable_extensions; do
2651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2652     ac_cv_prog_ac_ct_CC="$ac_prog"
2653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657   done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2665 $as_echo "$ac_ct_CC" >&6; }
2666 else
2667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2668 $as_echo "no" >&6; }
2669 fi
2670
2671
2672   test -n "$ac_ct_CC" && break
2673 done
2674
2675   if test "x$ac_ct_CC" = x; then
2676     CC=""
2677   else
2678     case $cross_compiling:$ac_tool_warned in
2679 yes:)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2682 ac_tool_warned=yes ;;
2683 esac
2684     CC=$ac_ct_CC
2685   fi
2686 fi
2687
2688 fi
2689
2690
2691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details" "$LINENO" 5; }
2695
2696 # Provide some information about the compiler.
2697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2698 set X $ac_compile
2699 ac_compiler=$2
2700 for ac_option in --version -v -V -qversion; do
2701   { { ac_try="$ac_compiler $ac_option >&5"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2707 $as_echo "$ac_try_echo"; } >&5
2708   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2709   ac_status=$?
2710   if test -s conftest.err; then
2711     sed '10a\
2712 ... rest of stderr output deleted ...
2713          10q' conftest.err >conftest.er1
2714     cat conftest.er1 >&5
2715   fi
2716   rm -f conftest.er1 conftest.err
2717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718   test $ac_status = 0; }
2719 done
2720
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h.  */
2723
2724 int
2725 main ()
2726 {
2727
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 ac_clean_files_save=$ac_clean_files
2733 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2734 # Try to create an executable without -o first, disregard a.out.
2735 # It will help us diagnose broken compilers, and finding out an intuition
2736 # of exeext.
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2738 $as_echo_n "checking whether the C compiler works... " >&6; }
2739 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2740
2741 # The possible output files:
2742 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2743
2744 ac_rmfiles=
2745 for ac_file in $ac_files
2746 do
2747   case $ac_file in
2748     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2749     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2750   esac
2751 done
2752 rm -f $ac_rmfiles
2753
2754 if { { ac_try="$ac_link_default"
2755 case "(($ac_try" in
2756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2757   *) ac_try_echo=$ac_try;;
2758 esac
2759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2760 $as_echo "$ac_try_echo"; } >&5
2761   (eval "$ac_link_default") 2>&5
2762   ac_status=$?
2763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764   test $ac_status = 0; }; then :
2765   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2766 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2767 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2768 # so that the user can short-circuit this test for compilers unknown to
2769 # Autoconf.
2770 for ac_file in $ac_files ''
2771 do
2772   test -f "$ac_file" || continue
2773   case $ac_file in
2774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2775         ;;
2776     [ab].out )
2777         # We found the default executable, but exeext='' is most
2778         # certainly right.
2779         break;;
2780     *.* )
2781         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2782         then :; else
2783            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2784         fi
2785         # We set ac_cv_exeext here because the later test for it is not
2786         # safe: cross compilers may not add the suffix if given an `-o'
2787         # argument, so we may need to know it at that point already.
2788         # Even if this section looks crufty: it has the advantage of
2789         # actually working.
2790         break;;
2791     * )
2792         break;;
2793   esac
2794 done
2795 test "$ac_cv_exeext" = no && ac_cv_exeext=
2796
2797 else
2798   ac_file=''
2799 fi
2800 if test -z "$ac_file"; then :
2801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2803 $as_echo "$as_me: failed program was:" >&5
2804 sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2808 as_fn_error 77 "C compiler cannot create executables
2809 See \`config.log' for more details" "$LINENO" 5; }
2810 else
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2815 $as_echo_n "checking for C compiler default output file name... " >&6; }
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2817 $as_echo "$ac_file" >&6; }
2818 ac_exeext=$ac_cv_exeext
2819
2820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2821 ac_clean_files=$ac_clean_files_save
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2823 $as_echo_n "checking for suffix of executables... " >&6; }
2824 if { { ac_try="$ac_link"
2825 case "(($ac_try" in
2826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2827   *) ac_try_echo=$ac_try;;
2828 esac
2829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2830 $as_echo "$ac_try_echo"; } >&5
2831   (eval "$ac_link") 2>&5
2832   ac_status=$?
2833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2834   test $ac_status = 0; }; then :
2835   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2836 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2837 # work properly (i.e., refer to `conftest.exe'), while it won't with
2838 # `rm'.
2839 for ac_file in conftest.exe conftest conftest.*; do
2840   test -f "$ac_file" || continue
2841   case $ac_file in
2842     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2843     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844           break;;
2845     * ) break;;
2846   esac
2847 done
2848 else
2849   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2852 See \`config.log' for more details" "$LINENO" 5; }
2853 fi
2854 rm -f conftest conftest$ac_cv_exeext
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2856 $as_echo "$ac_cv_exeext" >&6; }
2857
2858 rm -f conftest.$ac_ext
2859 EXEEXT=$ac_cv_exeext
2860 ac_exeext=$EXEEXT
2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2862 /* end confdefs.h.  */
2863 #include <stdio.h>
2864 int
2865 main ()
2866 {
2867 FILE *f = fopen ("conftest.out", "w");
2868  return ferror (f) || fclose (f) != 0;
2869
2870   ;
2871   return 0;
2872 }
2873 _ACEOF
2874 ac_clean_files="$ac_clean_files conftest.out"
2875 # Check that the compiler produces executables we can run.  If not, either
2876 # the compiler is broken, or we cross compile.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2878 $as_echo_n "checking whether we are cross compiling... " >&6; }
2879 if test "$cross_compiling" != yes; then
2880   { { ac_try="$ac_link"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2886 $as_echo "$ac_try_echo"; } >&5
2887   (eval "$ac_link") 2>&5
2888   ac_status=$?
2889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890   test $ac_status = 0; }
2891   if { ac_try='./conftest$ac_cv_exeext'
2892   { { case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2897 $as_echo "$ac_try_echo"; } >&5
2898   (eval "$ac_try") 2>&5
2899   ac_status=$?
2900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2901   test $ac_status = 0; }; }; then
2902     cross_compiling=no
2903   else
2904     if test "$cross_compiling" = maybe; then
2905         cross_compiling=yes
2906     else
2907         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 as_fn_error $? "cannot run C compiled programs.
2910 If you meant to cross compile, use \`--host'.
2911 See \`config.log' for more details" "$LINENO" 5; }
2912     fi
2913   fi
2914 fi
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2916 $as_echo "$cross_compiling" >&6; }
2917
2918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2919 ac_clean_files=$ac_clean_files_save
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2921 $as_echo_n "checking for suffix of object files... " >&6; }
2922 if ${ac_cv_objext+:} false; then :
2923   $as_echo_n "(cached) " >&6
2924 else
2925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2926 /* end confdefs.h.  */
2927
2928 int
2929 main ()
2930 {
2931
2932   ;
2933   return 0;
2934 }
2935 _ACEOF
2936 rm -f conftest.o conftest.obj
2937 if { { ac_try="$ac_compile"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2943 $as_echo "$ac_try_echo"; } >&5
2944   (eval "$ac_compile") 2>&5
2945   ac_status=$?
2946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2947   test $ac_status = 0; }; then :
2948   for ac_file in conftest.o conftest.obj conftest.*; do
2949   test -f "$ac_file" || continue;
2950   case $ac_file in
2951     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2952     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2953        break;;
2954   esac
2955 done
2956 else
2957   $as_echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2962 as_fn_error $? "cannot compute suffix of object files: cannot compile
2963 See \`config.log' for more details" "$LINENO" 5; }
2964 fi
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 fi
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2968 $as_echo "$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2973 if ${ac_cv_c_compiler_gnu+:} false; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h.  */
2978
2979 int
2980 main ()
2981 {
2982 #ifndef __GNUC__
2983        choke me
2984 #endif
2985
2986   ;
2987   return 0;
2988 }
2989 _ACEOF
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991   ac_compiler_gnu=yes
2992 else
2993   ac_compiler_gnu=no
2994 fi
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2997
2998 fi
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3001 if test $ac_compiler_gnu = yes; then
3002   GCC=yes
3003 else
3004   GCC=
3005 fi
3006 ac_test_CFLAGS=${CFLAGS+set}
3007 ac_save_CFLAGS=$CFLAGS
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3010 if ${ac_cv_prog_cc_g+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   ac_save_c_werror_flag=$ac_c_werror_flag
3014    ac_c_werror_flag=yes
3015    ac_cv_prog_cc_g=no
3016    CFLAGS="-g"
3017    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h.  */
3019
3020 int
3021 main ()
3022 {
3023
3024   ;
3025   return 0;
3026 }
3027 _ACEOF
3028 if ac_fn_c_try_compile "$LINENO"; then :
3029   ac_cv_prog_cc_g=yes
3030 else
3031   CFLAGS=""
3032       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h.  */
3034
3035 int
3036 main ()
3037 {
3038
3039   ;
3040   return 0;
3041 }
3042 _ACEOF
3043 if ac_fn_c_try_compile "$LINENO"; then :
3044
3045 else
3046   ac_c_werror_flag=$ac_save_c_werror_flag
3047          CFLAGS="-g"
3048          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h.  */
3050
3051 int
3052 main ()
3053 {
3054
3055   ;
3056   return 0;
3057 }
3058 _ACEOF
3059 if ac_fn_c_try_compile "$LINENO"; then :
3060   ac_cv_prog_cc_g=yes
3061 fi
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 fi
3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 fi
3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3067    ac_c_werror_flag=$ac_save_c_werror_flag
3068 fi
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3070 $as_echo "$ac_cv_prog_cc_g" >&6; }
3071 if test "$ac_test_CFLAGS" = set; then
3072   CFLAGS=$ac_save_CFLAGS
3073 elif test $ac_cv_prog_cc_g = yes; then
3074   if test "$GCC" = yes; then
3075     CFLAGS="-g -O2"
3076   else
3077     CFLAGS="-g"
3078   fi
3079 else
3080   if test "$GCC" = yes; then
3081     CFLAGS="-O2"
3082   else
3083     CFLAGS=
3084   fi
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3088 if ${ac_cv_prog_cc_c89+:} false; then :
3089   $as_echo_n "(cached) " >&6
3090 else
3091   ac_cv_prog_cc_c89=no
3092 ac_save_CC=$CC
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h.  */
3095 #include <stdarg.h>
3096 #include <stdio.h>
3097 struct stat;
3098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3099 struct buf { int x; };
3100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3101 static char *e (p, i)
3102      char **p;
3103      int i;
3104 {
3105   return p[i];
3106 }
3107 static char *f (char * (*g) (char **, int), char **p, ...)
3108 {
3109   char *s;
3110   va_list v;
3111   va_start (v,p);
3112   s = g (p, va_arg (v,int));
3113   va_end (v);
3114   return s;
3115 }
3116
3117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3118    function prototypes and stuff, but not '\xHH' hex character constants.
3119    These don't provoke an error unfortunately, instead are silently treated
3120    as 'x'.  The following induces an error, until -std is added to get
3121    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3122    array size at least.  It's necessary to write '\x00'==0 to get something
3123    that's true only with -std.  */
3124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3125
3126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3127    inside strings and character constants.  */
3128 #define FOO(x) 'x'
3129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3130
3131 int test (int i, double x);
3132 struct s1 {int (*f) (int a);};
3133 struct s2 {int (*f) (double a);};
3134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3135 int argc;
3136 char **argv;
3137 int
3138 main ()
3139 {
3140 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3141   ;
3142   return 0;
3143 }
3144 _ACEOF
3145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3146         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3147 do
3148   CC="$ac_save_CC $ac_arg"
3149   if ac_fn_c_try_compile "$LINENO"; then :
3150   ac_cv_prog_cc_c89=$ac_arg
3151 fi
3152 rm -f core conftest.err conftest.$ac_objext
3153   test "x$ac_cv_prog_cc_c89" != "xno" && break
3154 done
3155 rm -f conftest.$ac_ext
3156 CC=$ac_save_CC
3157
3158 fi
3159 # AC_CACHE_VAL
3160 case "x$ac_cv_prog_cc_c89" in
3161   x)
3162     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3163 $as_echo "none needed" >&6; } ;;
3164   xno)
3165     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3166 $as_echo "unsupported" >&6; } ;;
3167   *)
3168     CC="$CC $ac_cv_prog_cc_c89"
3169     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3171 esac
3172 if test "x$ac_cv_prog_cc_c89" != xno; then :
3173
3174 fi
3175
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3183 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3184 if ${ac_cv_path_SED+:} false; then :
3185   $as_echo_n "(cached) " >&6
3186 else
3187             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3188      for ac_i in 1 2 3 4 5 6 7; do
3189        ac_script="$ac_script$as_nl$ac_script"
3190      done
3191      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3192      { ac_script=; unset ac_script;}
3193      if test -z "$SED"; then
3194   ac_path_SED_found=false
3195   # Loop through the user's path and test for each of PROGNAME-LIST
3196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201     for ac_prog in sed gsed; do
3202     for ac_exec_ext in '' $ac_executable_extensions; do
3203       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3204       as_fn_executable_p "$ac_path_SED" || continue
3205 # Check for GNU ac_path_SED and select it if it is found.
3206   # Check for GNU $ac_path_SED
3207 case `"$ac_path_SED" --version 2>&1` in
3208 *GNU*)
3209   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3210 *)
3211   ac_count=0
3212   $as_echo_n 0123456789 >"conftest.in"
3213   while :
3214   do
3215     cat "conftest.in" "conftest.in" >"conftest.tmp"
3216     mv "conftest.tmp" "conftest.in"
3217     cp "conftest.in" "conftest.nl"
3218     $as_echo '' >> "conftest.nl"
3219     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3220     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3221     as_fn_arith $ac_count + 1 && ac_count=$as_val
3222     if test $ac_count -gt ${ac_path_SED_max-0}; then
3223       # Best one so far, save it but keep looking for a better one
3224       ac_cv_path_SED="$ac_path_SED"
3225       ac_path_SED_max=$ac_count
3226     fi
3227     # 10*(2^10) chars as input seems more than enough
3228     test $ac_count -gt 10 && break
3229   done
3230   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3231 esac
3232
3233       $ac_path_SED_found && break 3
3234     done
3235   done
3236   done
3237 IFS=$as_save_IFS
3238   if test -z "$ac_cv_path_SED"; then
3239     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3240   fi
3241 else
3242   ac_cv_path_SED=$SED
3243 fi
3244
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3247 $as_echo "$ac_cv_path_SED" >&6; }
3248  SED="$ac_cv_path_SED"
3249   rm -f conftest.sed
3250
3251 test -z "$SED" && SED=sed
3252 Xsed="$SED -e 1s/^X//"
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3265 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3266 if ${ac_cv_path_GREP+:} false; then :
3267   $as_echo_n "(cached) " >&6
3268 else
3269   if test -z "$GREP"; then
3270   ac_path_GREP_found=false
3271   # Loop through the user's path and test for each of PROGNAME-LIST
3272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3274 do
3275   IFS=$as_save_IFS
3276   test -z "$as_dir" && as_dir=.
3277     for ac_prog in grep ggrep; do
3278     for ac_exec_ext in '' $ac_executable_extensions; do
3279       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3280       as_fn_executable_p "$ac_path_GREP" || continue
3281 # Check for GNU ac_path_GREP and select it if it is found.
3282   # Check for GNU $ac_path_GREP
3283 case `"$ac_path_GREP" --version 2>&1` in
3284 *GNU*)
3285   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3286 *)
3287   ac_count=0
3288   $as_echo_n 0123456789 >"conftest.in"
3289   while :
3290   do
3291     cat "conftest.in" "conftest.in" >"conftest.tmp"
3292     mv "conftest.tmp" "conftest.in"
3293     cp "conftest.in" "conftest.nl"
3294     $as_echo 'GREP' >> "conftest.nl"
3295     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3296     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3297     as_fn_arith $ac_count + 1 && ac_count=$as_val
3298     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3299       # Best one so far, save it but keep looking for a better one
3300       ac_cv_path_GREP="$ac_path_GREP"
3301       ac_path_GREP_max=$ac_count
3302     fi
3303     # 10*(2^10) chars as input seems more than enough
3304     test $ac_count -gt 10 && break
3305   done
3306   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3307 esac
3308
3309       $ac_path_GREP_found && break 3
3310     done
3311   done
3312   done
3313 IFS=$as_save_IFS
3314   if test -z "$ac_cv_path_GREP"; then
3315     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3316   fi
3317 else
3318   ac_cv_path_GREP=$GREP
3319 fi
3320
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3323 $as_echo "$ac_cv_path_GREP" >&6; }
3324  GREP="$ac_cv_path_GREP"
3325
3326
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3328 $as_echo_n "checking for egrep... " >&6; }
3329 if ${ac_cv_path_EGREP+:} false; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3333    then ac_cv_path_EGREP="$GREP -E"
3334    else
3335      if test -z "$EGREP"; then
3336   ac_path_EGREP_found=false
3337   # Loop through the user's path and test for each of PROGNAME-LIST
3338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3340 do
3341   IFS=$as_save_IFS
3342   test -z "$as_dir" && as_dir=.
3343     for ac_prog in egrep; do
3344     for ac_exec_ext in '' $ac_executable_extensions; do
3345       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3346       as_fn_executable_p "$ac_path_EGREP" || continue
3347 # Check for GNU ac_path_EGREP and select it if it is found.
3348   # Check for GNU $ac_path_EGREP
3349 case `"$ac_path_EGREP" --version 2>&1` in
3350 *GNU*)
3351   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3352 *)
3353   ac_count=0
3354   $as_echo_n 0123456789 >"conftest.in"
3355   while :
3356   do
3357     cat "conftest.in" "conftest.in" >"conftest.tmp"
3358     mv "conftest.tmp" "conftest.in"
3359     cp "conftest.in" "conftest.nl"
3360     $as_echo 'EGREP' >> "conftest.nl"
3361     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3362     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3363     as_fn_arith $ac_count + 1 && ac_count=$as_val
3364     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3365       # Best one so far, save it but keep looking for a better one
3366       ac_cv_path_EGREP="$ac_path_EGREP"
3367       ac_path_EGREP_max=$ac_count
3368     fi
3369     # 10*(2^10) chars as input seems more than enough
3370     test $ac_count -gt 10 && break
3371   done
3372   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3373 esac
3374
3375       $ac_path_EGREP_found && break 3
3376     done
3377   done
3378   done
3379 IFS=$as_save_IFS
3380   if test -z "$ac_cv_path_EGREP"; then
3381     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3382   fi
3383 else
3384   ac_cv_path_EGREP=$EGREP
3385 fi
3386
3387    fi
3388 fi
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3390 $as_echo "$ac_cv_path_EGREP" >&6; }
3391  EGREP="$ac_cv_path_EGREP"
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3395 $as_echo_n "checking for fgrep... " >&6; }
3396 if ${ac_cv_path_FGREP+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3400    then ac_cv_path_FGREP="$GREP -F"
3401    else
3402      if test -z "$FGREP"; then
3403   ac_path_FGREP_found=false
3404   # Loop through the user's path and test for each of PROGNAME-LIST
3405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3407 do
3408   IFS=$as_save_IFS
3409   test -z "$as_dir" && as_dir=.
3410     for ac_prog in fgrep; do
3411     for ac_exec_ext in '' $ac_executable_extensions; do
3412       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3413       as_fn_executable_p "$ac_path_FGREP" || continue
3414 # Check for GNU ac_path_FGREP and select it if it is found.
3415   # Check for GNU $ac_path_FGREP
3416 case `"$ac_path_FGREP" --version 2>&1` in
3417 *GNU*)
3418   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3419 *)
3420   ac_count=0
3421   $as_echo_n 0123456789 >"conftest.in"
3422   while :
3423   do
3424     cat "conftest.in" "conftest.in" >"conftest.tmp"
3425     mv "conftest.tmp" "conftest.in"
3426     cp "conftest.in" "conftest.nl"
3427     $as_echo 'FGREP' >> "conftest.nl"
3428     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3429     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3430     as_fn_arith $ac_count + 1 && ac_count=$as_val
3431     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3432       # Best one so far, save it but keep looking for a better one
3433       ac_cv_path_FGREP="$ac_path_FGREP"
3434       ac_path_FGREP_max=$ac_count
3435     fi
3436     # 10*(2^10) chars as input seems more than enough
3437     test $ac_count -gt 10 && break
3438   done
3439   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3440 esac
3441
3442       $ac_path_FGREP_found && break 3
3443     done
3444   done
3445   done
3446 IFS=$as_save_IFS
3447   if test -z "$ac_cv_path_FGREP"; then
3448     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3449   fi
3450 else
3451   ac_cv_path_FGREP=$FGREP
3452 fi
3453
3454    fi
3455 fi
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3457 $as_echo "$ac_cv_path_FGREP" >&6; }
3458  FGREP="$ac_cv_path_FGREP"
3459
3460
3461 test -z "$GREP" && GREP=grep
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481 # Check whether --with-gnu-ld was given.
3482 if test "${with_gnu_ld+set}" = set; then :
3483   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3484 else
3485   with_gnu_ld=no
3486 fi
3487
3488 ac_prog=ld
3489 if test "$GCC" = yes; then
3490   # Check if gcc -print-prog-name=ld gives a path.
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3492 $as_echo_n "checking for ld used by $CC... " >&6; }
3493   case $host in
3494   *-*-mingw*)
3495     # gcc leaves a trailing carriage return which upsets mingw
3496     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3497   *)
3498     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3499   esac
3500   case $ac_prog in
3501     # Accept absolute paths.
3502     [\\/]* | ?:[\\/]*)
3503       re_direlt='/[^/][^/]*/\.\./'
3504       # Canonicalize the pathname of ld
3505       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3506       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3507         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3508       done
3509       test -z "$LD" && LD="$ac_prog"
3510       ;;
3511   "")
3512     # If it fails, then pretend we aren't using GCC.
3513     ac_prog=ld
3514     ;;
3515   *)
3516     # If it is relative, then search for the first ld in PATH.
3517     with_gnu_ld=unknown
3518     ;;
3519   esac
3520 elif test "$with_gnu_ld" = yes; then
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3522 $as_echo_n "checking for GNU ld... " >&6; }
3523 else
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3525 $as_echo_n "checking for non-GNU ld... " >&6; }
3526 fi
3527 if ${lt_cv_path_LD+:} false; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -z "$LD"; then
3531   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3532   for ac_dir in $PATH; do
3533     IFS="$lt_save_ifs"
3534     test -z "$ac_dir" && ac_dir=.
3535     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3536       lt_cv_path_LD="$ac_dir/$ac_prog"
3537       # Check to see if the program is GNU ld.  I'd rather use --version,
3538       # but apparently some variants of GNU ld only accept -v.
3539       # Break only if it was the GNU/non-GNU ld that we prefer.
3540       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3541       *GNU* | *'with BFD'*)
3542         test "$with_gnu_ld" != no && break
3543         ;;
3544       *)
3545         test "$with_gnu_ld" != yes && break
3546         ;;
3547       esac
3548     fi
3549   done
3550   IFS="$lt_save_ifs"
3551 else
3552   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3553 fi
3554 fi
3555
3556 LD="$lt_cv_path_LD"
3557 if test -n "$LD"; then
3558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3559 $as_echo "$LD" >&6; }
3560 else
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 fi
3564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3566 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3567 if ${lt_cv_prog_gnu_ld+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3571 case `$LD -v 2>&1 </dev/null` in
3572 *GNU* | *'with BFD'*)
3573   lt_cv_prog_gnu_ld=yes
3574   ;;
3575 *)
3576   lt_cv_prog_gnu_ld=no
3577   ;;
3578 esac
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3581 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3582 with_gnu_ld=$lt_cv_prog_gnu_ld
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3593 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3594 if ${lt_cv_path_NM+:} false; then :
3595   $as_echo_n "(cached) " >&6
3596 else
3597   if test -n "$NM"; then
3598   # Let the user override the test.
3599   lt_cv_path_NM="$NM"
3600 else
3601   lt_nm_to_check="${ac_tool_prefix}nm"
3602   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3603     lt_nm_to_check="$lt_nm_to_check nm"
3604   fi
3605   for lt_tmp_nm in $lt_nm_to_check; do
3606     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3607     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3608       IFS="$lt_save_ifs"
3609       test -z "$ac_dir" && ac_dir=.
3610       tmp_nm="$ac_dir/$lt_tmp_nm"
3611       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3612         # Check to see if the nm accepts a BSD-compat flag.
3613         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3614         #   nm: unknown option "B" ignored
3615         # Tru64's nm complains that /dev/null is an invalid object file
3616         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3617         */dev/null* | *'Invalid file or object type'*)
3618           lt_cv_path_NM="$tmp_nm -B"
3619           break
3620           ;;
3621         *)
3622           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3623           */dev/null*)
3624             lt_cv_path_NM="$tmp_nm -p"
3625             break
3626             ;;
3627           *)
3628             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3629             continue # so that we can try to find one that supports BSD flags
3630             ;;
3631           esac
3632           ;;
3633         esac
3634       fi
3635     done
3636     IFS="$lt_save_ifs"
3637   done
3638   : ${lt_cv_path_NM=no}
3639 fi
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3642 $as_echo "$lt_cv_path_NM" >&6; }
3643 if test "$lt_cv_path_NM" != "no"; then
3644   NM="$lt_cv_path_NM"
3645 else
3646   # Didn't find any BSD compatible name lister, look for dumpbin.
3647   if test -n "$DUMPBIN"; then :
3648     # Let the user override the test.
3649   else
3650     if test -n "$ac_tool_prefix"; then
3651   for ac_prog in dumpbin "link -dump"
3652   do
3653     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if ${ac_cv_prog_DUMPBIN+:} false; then :
3658   $as_echo_n "(cached) " >&6
3659 else
3660   if test -n "$DUMPBIN"; then
3661   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666   IFS=$as_save_IFS
3667   test -z "$as_dir" && as_dir=.
3668     for ac_exec_ext in '' $ac_executable_extensions; do
3669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672     break 2
3673   fi
3674 done
3675   done
3676 IFS=$as_save_IFS
3677
3678 fi
3679 fi
3680 DUMPBIN=$ac_cv_prog_DUMPBIN
3681 if test -n "$DUMPBIN"; then
3682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3683 $as_echo "$DUMPBIN" >&6; }
3684 else
3685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3687 fi
3688
3689
3690     test -n "$DUMPBIN" && break
3691   done
3692 fi
3693 if test -z "$DUMPBIN"; then
3694   ac_ct_DUMPBIN=$DUMPBIN
3695   for ac_prog in dumpbin "link -dump"
3696 do
3697   # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3702   $as_echo_n "(cached) " >&6
3703 else
3704   if test -n "$ac_ct_DUMPBIN"; then
3705   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712     for ac_exec_ext in '' $ac_executable_extensions; do
3713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719   done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3725 if test -n "$ac_ct_DUMPBIN"; then
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3727 $as_echo "$ac_ct_DUMPBIN" >&6; }
3728 else
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3732
3733
3734   test -n "$ac_ct_DUMPBIN" && break
3735 done
3736
3737   if test "x$ac_ct_DUMPBIN" = x; then
3738     DUMPBIN=":"
3739   else
3740     case $cross_compiling:$ac_tool_warned in
3741 yes:)
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744 ac_tool_warned=yes ;;
3745 esac
3746     DUMPBIN=$ac_ct_DUMPBIN
3747   fi
3748 fi
3749
3750     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3751     *COFF*)
3752       DUMPBIN="$DUMPBIN -symbols"
3753       ;;
3754     *)
3755       DUMPBIN=:
3756       ;;
3757     esac
3758   fi
3759
3760   if test "$DUMPBIN" != ":"; then
3761     NM="$DUMPBIN"
3762   fi
3763 fi
3764 test -z "$NM" && NM=nm
3765
3766
3767
3768
3769
3770
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3772 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3773 if ${lt_cv_nm_interface+:} false; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   lt_cv_nm_interface="BSD nm"
3777   echo "int some_variable = 0;" > conftest.$ac_ext
3778   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
3779   (eval "$ac_compile" 2>conftest.err)
3780   cat conftest.err >&5
3781   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3782   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3783   cat conftest.err >&5
3784   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
3785   cat conftest.out >&5
3786   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3787     lt_cv_nm_interface="MS dumpbin"
3788   fi
3789   rm -f conftest*
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3792 $as_echo "$lt_cv_nm_interface" >&6; }
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3795 $as_echo_n "checking whether ln -s works... " >&6; }
3796 LN_S=$as_ln_s
3797 if test "$LN_S" = "ln -s"; then
3798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799 $as_echo "yes" >&6; }
3800 else
3801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3802 $as_echo "no, using $LN_S" >&6; }
3803 fi
3804
3805 # find the maximum length of command line arguments
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3807 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3808 if ${lt_cv_sys_max_cmd_len+:} false; then :
3809   $as_echo_n "(cached) " >&6
3810 else
3811     i=0
3812   teststring="ABCD"
3813
3814   case $build_os in
3815   msdosdjgpp*)
3816     # On DJGPP, this test can blow up pretty badly due to problems in libc
3817     # (any single argument exceeding 2000 bytes causes a buffer overrun
3818     # during glob expansion).  Even if it were fixed, the result of this
3819     # check would be larger than it should be.
3820     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3821     ;;
3822
3823   gnu*)
3824     # Under GNU Hurd, this test is not required because there is
3825     # no limit to the length of command line arguments.
3826     # Libtool will interpret -1 as no limit whatsoever
3827     lt_cv_sys_max_cmd_len=-1;
3828     ;;
3829
3830   cygwin* | mingw* | cegcc*)
3831     # On Win9x/ME, this test blows up -- it succeeds, but takes
3832     # about 5 minutes as the teststring grows exponentially.
3833     # Worse, since 9x/ME are not pre-emptively multitasking,
3834     # you end up with a "frozen" computer, even though with patience
3835     # the test eventually succeeds (with a max line length of 256k).
3836     # Instead, let's just punt: use the minimum linelength reported by
3837     # all of the supported platforms: 8192 (on NT/2K/XP).
3838     lt_cv_sys_max_cmd_len=8192;
3839     ;;
3840
3841   mint*)
3842     # On MiNT this can take a long time and run out of memory.
3843     lt_cv_sys_max_cmd_len=8192;
3844     ;;
3845
3846   amigaos*)
3847     # On AmigaOS with pdksh, this test takes hours, literally.
3848     # So we just punt and use a minimum line length of 8192.
3849     lt_cv_sys_max_cmd_len=8192;
3850     ;;
3851
3852   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3853     # This has been around since 386BSD, at least.  Likely further.
3854     if test -x /sbin/sysctl; then
3855       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3856     elif test -x /usr/sbin/sysctl; then
3857       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3858     else
3859       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
3860     fi
3861     # And add a safety zone
3862     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3863     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3864     ;;
3865
3866   interix*)
3867     # We know the value 262144 and hardcode it with a safety zone (like BSD)
3868     lt_cv_sys_max_cmd_len=196608
3869     ;;
3870
3871   os2*)
3872     # The test takes a long time on OS/2.
3873     lt_cv_sys_max_cmd_len=8192
3874     ;;
3875
3876   osf*)
3877     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3878     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3879     # nice to cause kernel panics so lets avoid the loop below.
3880     # First set a reasonable default.
3881     lt_cv_sys_max_cmd_len=16384
3882     #
3883     if test -x /sbin/sysconfig; then
3884       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3885         *1*) lt_cv_sys_max_cmd_len=-1 ;;
3886       esac
3887     fi
3888     ;;
3889   sco3.2v5*)
3890     lt_cv_sys_max_cmd_len=102400
3891     ;;
3892   sysv5* | sco5v6* | sysv4.2uw2*)
3893     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3894     if test -n "$kargmax"; then
3895       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
3896     else
3897       lt_cv_sys_max_cmd_len=32768
3898     fi
3899     ;;
3900   *)
3901     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3902     if test -n "$lt_cv_sys_max_cmd_len"; then
3903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3904       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3905     else
3906       # Make teststring a little bigger before we do anything with it.
3907       # a 1K string should be a reasonable start.
3908       for i in 1 2 3 4 5 6 7 8 ; do
3909         teststring=$teststring$teststring
3910       done
3911       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3912       # If test is not a shell built-in, we'll probably end up computing a
3913       # maximum length that is only half of the actual maximum length, but
3914       # we can't tell.
3915       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
3916                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
3917               test $i != 17 # 1/2 MB should be enough
3918       do
3919         i=`expr $i + 1`
3920         teststring=$teststring$teststring
3921       done
3922       # Only check the string length outside the loop.
3923       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3924       teststring=
3925       # Add a significant safety factor because C++ compilers can tack on
3926       # massive amounts of additional arguments before passing them to the
3927       # linker.  It appears as though 1/2 is a usable value.
3928       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3929     fi
3930     ;;
3931   esac
3932
3933 fi
3934
3935 if test -n $lt_cv_sys_max_cmd_len ; then
3936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
3937 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3938 else
3939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
3940 $as_echo "none" >&6; }
3941 fi
3942 max_cmd_len=$lt_cv_sys_max_cmd_len
3943
3944
3945
3946
3947
3948
3949 : ${CP="cp -f"}
3950 : ${MV="mv -f"}
3951 : ${RM="rm -f"}
3952
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
3954 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3955 # Try some XSI features
3956 xsi_shell=no
3957 ( _lt_dummy="a/b/c"
3958   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
3959       = c,a/b,b/c, \
3960     && eval 'test $(( 1 + 1 )) -eq 2 \
3961     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3962   && xsi_shell=yes
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
3964 $as_echo "$xsi_shell" >&6; }
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
3968 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3969 lt_shell_append=no
3970 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3971     >/dev/null 2>&1 \
3972   && lt_shell_append=yes
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
3974 $as_echo "$lt_shell_append" >&6; }
3975
3976
3977 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3978   lt_unset=unset
3979 else
3980   lt_unset=false
3981 fi
3982
3983
3984
3985
3986
3987 # test EBCDIC or ASCII
3988 case `echo X|tr X '\101'` in
3989  A) # ASCII based system
3990     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3991   lt_SP2NL='tr \040 \012'
3992   lt_NL2SP='tr \015\012 \040\040'
3993   ;;
3994  *) # EBCDIC based system
3995   lt_SP2NL='tr \100 \n'
3996   lt_NL2SP='tr \r\n \100\100'
3997   ;;
3998 esac
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4009 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4010 if ${lt_cv_to_host_file_cmd+:} false; then :
4011   $as_echo_n "(cached) " >&6
4012 else
4013   case $host in
4014   *-*-mingw* )
4015     case $build in
4016       *-*-mingw* ) # actually msys
4017         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4018         ;;
4019       *-*-cygwin* )
4020         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4021         ;;
4022       * ) # otherwise, assume *nix
4023         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4024         ;;
4025     esac
4026     ;;
4027   *-*-cygwin* )
4028     case $build in
4029       *-*-mingw* ) # actually msys
4030         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4031         ;;
4032       *-*-cygwin* )
4033         lt_cv_to_host_file_cmd=func_convert_file_noop
4034         ;;
4035       * ) # otherwise, assume *nix
4036         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4037         ;;
4038     esac
4039     ;;
4040   * ) # unhandled hosts (and "normal" native builds)
4041     lt_cv_to_host_file_cmd=func_convert_file_noop
4042     ;;
4043 esac
4044
4045 fi
4046
4047 to_host_file_cmd=$lt_cv_to_host_file_cmd
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4049 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4050
4051
4052
4053
4054
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4056 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4057 if ${lt_cv_to_tool_file_cmd+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   #assume ordinary cross tools, or native build.
4061 lt_cv_to_tool_file_cmd=func_convert_file_noop
4062 case $host in
4063   *-*-mingw* )
4064     case $build in
4065       *-*-mingw* ) # actually msys
4066         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4067         ;;
4068     esac
4069     ;;
4070 esac
4071
4072 fi
4073
4074 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4076 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4077
4078
4079
4080
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4083 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4084 if ${lt_cv_ld_reload_flag+:} false; then :
4085   $as_echo_n "(cached) " >&6
4086 else
4087   lt_cv_ld_reload_flag='-r'
4088 fi
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4090 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4091 reload_flag=$lt_cv_ld_reload_flag
4092 case $reload_flag in
4093 "" | " "*) ;;
4094 *) reload_flag=" $reload_flag" ;;
4095 esac
4096 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4097 case $host_os in
4098   cygwin* | mingw* | pw32* | cegcc*)
4099     if test "$GCC" != yes; then
4100       reload_cmds=false
4101     fi
4102     ;;
4103   darwin*)
4104     if test "$GCC" = yes; then
4105       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4106     else
4107       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4108     fi
4109     ;;
4110 esac
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120 if test -n "$ac_tool_prefix"; then
4121   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4122 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_OBJDUMP+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -n "$OBJDUMP"; then
4129   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 OBJDUMP=$ac_cv_prog_OBJDUMP
4149 if test -n "$OBJDUMP"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4151 $as_echo "$OBJDUMP" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157
4158 fi
4159 if test -z "$ac_cv_prog_OBJDUMP"; then
4160   ac_ct_OBJDUMP=$OBJDUMP
4161   # Extract the first word of "objdump", so it can be a program name with args.
4162 set dummy objdump; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   if test -n "$ac_ct_OBJDUMP"; then
4169   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4170 else
4171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172 for as_dir in $PATH
4173 do
4174   IFS=$as_save_IFS
4175   test -z "$as_dir" && as_dir=.
4176     for ac_exec_ext in '' $ac_executable_extensions; do
4177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180     break 2
4181   fi
4182 done
4183   done
4184 IFS=$as_save_IFS
4185
4186 fi
4187 fi
4188 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4189 if test -n "$ac_ct_OBJDUMP"; then
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4191 $as_echo "$ac_ct_OBJDUMP" >&6; }
4192 else
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 $as_echo "no" >&6; }
4195 fi
4196
4197   if test "x$ac_ct_OBJDUMP" = x; then
4198     OBJDUMP="false"
4199   else
4200     case $cross_compiling:$ac_tool_warned in
4201 yes:)
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4205 esac
4206     OBJDUMP=$ac_ct_OBJDUMP
4207   fi
4208 else
4209   OBJDUMP="$ac_cv_prog_OBJDUMP"
4210 fi
4211
4212 test -z "$OBJDUMP" && OBJDUMP=objdump
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4223 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4224 if ${lt_cv_deplibs_check_method+:} false; then :
4225   $as_echo_n "(cached) " >&6
4226 else
4227   lt_cv_file_magic_cmd='$MAGIC_CMD'
4228 lt_cv_file_magic_test_file=
4229 lt_cv_deplibs_check_method='unknown'
4230 # Need to set the preceding variable on all platforms that support
4231 # interlibrary dependencies.
4232 # 'none' -- dependencies not supported.
4233 # `unknown' -- same as none, but documents that we really don't know.
4234 # 'pass_all' -- all dependencies passed with no checks.
4235 # 'test_compile' -- check by making test program.
4236 # 'file_magic [[regex]]' -- check by looking for files in library path
4237 # which responds to the $file_magic_cmd with a given extended regex.
4238 # If you have `file' or equivalent on your system and you're not sure
4239 # whether `pass_all' will *always* work, you probably want this one.
4240
4241 case $host_os in
4242 aix[4-9]*)
4243   lt_cv_deplibs_check_method=pass_all
4244   ;;
4245
4246 beos*)
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249
4250 bsdi[45]*)
4251   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4252   lt_cv_file_magic_cmd='/usr/bin/file -L'
4253   lt_cv_file_magic_test_file=/shlib/libc.so
4254   ;;
4255
4256 cygwin*)
4257   # func_win32_libid is a shell function defined in ltmain.sh
4258   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4259   lt_cv_file_magic_cmd='func_win32_libid'
4260   ;;
4261
4262 mingw* | pw32*)
4263   # Base MSYS/MinGW do not provide the 'file' command needed by
4264   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4265   # unless we find 'file', for example because we are cross-compiling.
4266   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4267   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4268     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4269     lt_cv_file_magic_cmd='func_win32_libid'
4270   else
4271     # Keep this pattern in sync with the one in func_win32_libid.
4272     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4273     lt_cv_file_magic_cmd='$OBJDUMP -f'
4274   fi
4275   ;;
4276
4277 cegcc*)
4278   # use the weaker test based on 'objdump'. See mingw*.
4279   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4280   lt_cv_file_magic_cmd='$OBJDUMP -f'
4281   ;;
4282
4283 darwin* | rhapsody*)
4284   lt_cv_deplibs_check_method=pass_all
4285   ;;
4286
4287 freebsd* | dragonfly*)
4288   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4289     case $host_cpu in
4290     i*86 )
4291       # Not sure whether the presence of OpenBSD here was a mistake.
4292       # Let's accept both of them until this is cleared up.
4293       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4294       lt_cv_file_magic_cmd=/usr/bin/file
4295       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4296       ;;
4297     esac
4298   else
4299     lt_cv_deplibs_check_method=pass_all
4300   fi
4301   ;;
4302
4303 gnu*)
4304   lt_cv_deplibs_check_method=pass_all
4305   ;;
4306
4307 haiku*)
4308   lt_cv_deplibs_check_method=pass_all
4309   ;;
4310
4311 hpux10.20* | hpux11*)
4312   lt_cv_file_magic_cmd=/usr/bin/file
4313   case $host_cpu in
4314   ia64*)
4315     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4316     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4317     ;;
4318   hppa*64*)
4319     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]'
4320     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4321     ;;
4322   *)
4323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4324     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4325     ;;
4326   esac
4327   ;;
4328
4329 interix[3-9]*)
4330   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4331   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4332   ;;
4333
4334 irix5* | irix6* | nonstopux*)
4335   case $LD in
4336   *-32|*"-32 ") libmagic=32-bit;;
4337   *-n32|*"-n32 ") libmagic=N32;;
4338   *-64|*"-64 ") libmagic=64-bit;;
4339   *) libmagic=never-match;;
4340   esac
4341   lt_cv_deplibs_check_method=pass_all
4342   ;;
4343
4344 # This must be glibc/ELF.
4345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4346   lt_cv_deplibs_check_method=pass_all
4347   ;;
4348
4349 netbsd*)
4350   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4351     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4352   else
4353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4354   fi
4355   ;;
4356
4357 newos6*)
4358   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4359   lt_cv_file_magic_cmd=/usr/bin/file
4360   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4361   ;;
4362
4363 *nto* | *qnx*)
4364   lt_cv_deplibs_check_method=pass_all
4365   ;;
4366
4367 openbsd*)
4368   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4369     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4370   else
4371     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4372   fi
4373   ;;
4374
4375 osf3* | osf4* | osf5*)
4376   lt_cv_deplibs_check_method=pass_all
4377   ;;
4378
4379 rdos*)
4380   lt_cv_deplibs_check_method=pass_all
4381   ;;
4382
4383 solaris*)
4384   lt_cv_deplibs_check_method=pass_all
4385   ;;
4386
4387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4388   lt_cv_deplibs_check_method=pass_all
4389   ;;
4390
4391 sysv4 | sysv4.3*)
4392   case $host_vendor in
4393   motorola)
4394     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]'
4395     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4396     ;;
4397   ncr)
4398     lt_cv_deplibs_check_method=pass_all
4399     ;;
4400   sequent)
4401     lt_cv_file_magic_cmd='/bin/file'
4402     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4403     ;;
4404   sni)
4405     lt_cv_file_magic_cmd='/bin/file'
4406     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4407     lt_cv_file_magic_test_file=/lib/libc.so
4408     ;;
4409   siemens)
4410     lt_cv_deplibs_check_method=pass_all
4411     ;;
4412   pc)
4413     lt_cv_deplibs_check_method=pass_all
4414     ;;
4415   esac
4416   ;;
4417
4418 tpf*)
4419   lt_cv_deplibs_check_method=pass_all
4420   ;;
4421 esac
4422
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4426
4427 file_magic_glob=
4428 want_nocaseglob=no
4429 if test "$build" = "$host"; then
4430   case $host_os in
4431   mingw* | pw32*)
4432     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4433       want_nocaseglob=yes
4434     else
4435       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4436     fi
4437     ;;
4438   esac
4439 fi
4440
4441 file_magic_cmd=$lt_cv_file_magic_cmd
4442 deplibs_check_method=$lt_cv_deplibs_check_method
4443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466 if test -n "$ac_tool_prefix"; then
4467   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if ${ac_cv_prog_DLLTOOL+:} false; then :
4472   $as_echo_n "(cached) " >&6
4473 else
4474   if test -n "$DLLTOOL"; then
4475   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482     for ac_exec_ext in '' $ac_executable_extensions; do
4483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4484     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489   done
4490 IFS=$as_save_IFS
4491
4492 fi
4493 fi
4494 DLLTOOL=$ac_cv_prog_DLLTOOL
4495 if test -n "$DLLTOOL"; then
4496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4497 $as_echo "$DLLTOOL" >&6; }
4498 else
4499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 fi
4502
4503
4504 fi
4505 if test -z "$ac_cv_prog_DLLTOOL"; then
4506   ac_ct_DLLTOOL=$DLLTOOL
4507   # Extract the first word of "dlltool", so it can be a program name with args.
4508 set dummy dlltool; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   if test -n "$ac_ct_DLLTOOL"; then
4515   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522     for ac_exec_ext in '' $ac_executable_extensions; do
4523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526     break 2
4527   fi
4528 done
4529   done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4535 if test -n "$ac_ct_DLLTOOL"; then
4536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4537 $as_echo "$ac_ct_DLLTOOL" >&6; }
4538 else
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543   if test "x$ac_ct_DLLTOOL" = x; then
4544     DLLTOOL="false"
4545   else
4546     case $cross_compiling:$ac_tool_warned in
4547 yes:)
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4551 esac
4552     DLLTOOL=$ac_ct_DLLTOOL
4553   fi
4554 else
4555   DLLTOOL="$ac_cv_prog_DLLTOOL"
4556 fi
4557
4558 test -z "$DLLTOOL" && DLLTOOL=dlltool
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4570 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4571 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   lt_cv_sharedlib_from_linklib_cmd='unknown'
4575
4576 case $host_os in
4577 cygwin* | mingw* | pw32* | cegcc*)
4578   # two different shell functions defined in ltmain.sh
4579   # decide which to use based on capabilities of $DLLTOOL
4580   case `$DLLTOOL --help 2>&1` in
4581   *--identify-strict*)
4582     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4583     ;;
4584   *)
4585     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4586     ;;
4587   esac
4588   ;;
4589 *)
4590   # fallback: assume linklib IS sharedlib
4591   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4592   ;;
4593 esac
4594
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
4597 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
4598 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4599 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4600
4601
4602
4603
4604
4605
4606
4607
4608 if test -n "$ac_tool_prefix"; then
4609   for ac_prog in ar
4610   do
4611     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if ${ac_cv_prog_AR+:} false; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -n "$AR"; then
4619   ac_cv_prog_AR="$AR" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633   done
4634 IFS=$as_save_IFS
4635
4636 fi
4637 fi
4638 AR=$ac_cv_prog_AR
4639 if test -n "$AR"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4641 $as_echo "$AR" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648     test -n "$AR" && break
4649   done
4650 fi
4651 if test -z "$AR"; then
4652   ac_ct_AR=$AR
4653   for ac_prog in ar
4654 do
4655   # Extract the first word of "$ac_prog", so it can be a program name with args.
4656 set dummy $ac_prog; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4660   $as_echo_n "(cached) " >&6
4661 else
4662   if test -n "$ac_ct_AR"; then
4663   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4667 do
4668   IFS=$as_save_IFS
4669   test -z "$as_dir" && as_dir=.
4670     for ac_exec_ext in '' $ac_executable_extensions; do
4671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672     ac_cv_prog_ac_ct_AR="$ac_prog"
4673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674     break 2
4675   fi
4676 done
4677   done
4678 IFS=$as_save_IFS
4679
4680 fi
4681 fi
4682 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4683 if test -n "$ac_ct_AR"; then
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4685 $as_echo "$ac_ct_AR" >&6; }
4686 else
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4689 fi
4690
4691
4692   test -n "$ac_ct_AR" && break
4693 done
4694
4695   if test "x$ac_ct_AR" = x; then
4696     AR="false"
4697   else
4698     case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704     AR=$ac_ct_AR
4705   fi
4706 fi
4707
4708 : ${AR=ar}
4709 : ${AR_FLAGS=cru}
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
4722 $as_echo_n "checking for archiver @FILE support... " >&6; }
4723 if ${lt_cv_ar_at_file+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   lt_cv_ar_at_file=no
4727    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729
4730 int
4731 main ()
4732 {
4733
4734   ;
4735   return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739   echo conftest.$ac_objext > conftest.lst
4740       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
4741       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4742   (eval $lt_ar_try) 2>&5
4743   ac_status=$?
4744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4745   test $ac_status = 0; }
4746       if test "$ac_status" -eq 0; then
4747         # Ensure the archiver fails upon bogus file names.
4748         rm -f conftest.$ac_objext libconftest.a
4749         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
4750   (eval $lt_ar_try) 2>&5
4751   ac_status=$?
4752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4753   test $ac_status = 0; }
4754         if test "$ac_status" -ne 0; then
4755           lt_cv_ar_at_file=@
4756         fi
4757       fi
4758       rm -f conftest.* libconftest.a
4759
4760 fi
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
4765 $as_echo "$lt_cv_ar_at_file" >&6; }
4766
4767 if test "x$lt_cv_ar_at_file" = xno; then
4768   archiver_list_spec=
4769 else
4770   archiver_list_spec=$lt_cv_ar_at_file
4771 fi
4772
4773
4774
4775
4776
4777
4778
4779 if test -n "$ac_tool_prefix"; then
4780   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4781 set dummy ${ac_tool_prefix}strip; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_prog_STRIP+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   if test -n "$STRIP"; then
4788   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795     for ac_exec_ext in '' $ac_executable_extensions; do
4796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4797     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802   done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 STRIP=$ac_cv_prog_STRIP
4808 if test -n "$STRIP"; then
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4810 $as_echo "$STRIP" >&6; }
4811 else
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817 fi
4818 if test -z "$ac_cv_prog_STRIP"; then
4819   ac_ct_STRIP=$STRIP
4820   # Extract the first word of "strip", so it can be a program name with args.
4821 set dummy strip; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   if test -n "$ac_ct_STRIP"; then
4828   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835     for ac_exec_ext in '' $ac_executable_extensions; do
4836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837     ac_cv_prog_ac_ct_STRIP="strip"
4838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842   done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4848 if test -n "$ac_ct_STRIP"; then
4849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4850 $as_echo "$ac_ct_STRIP" >&6; }
4851 else
4852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856   if test "x$ac_ct_STRIP" = x; then
4857     STRIP=":"
4858   else
4859     case $cross_compiling:$ac_tool_warned in
4860 yes:)
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4863 ac_tool_warned=yes ;;
4864 esac
4865     STRIP=$ac_ct_STRIP
4866   fi
4867 else
4868   STRIP="$ac_cv_prog_STRIP"
4869 fi
4870
4871 test -z "$STRIP" && STRIP=:
4872
4873
4874
4875
4876
4877
4878 if test -n "$ac_tool_prefix"; then
4879   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4880 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
4884   $as_echo_n "(cached) " >&6
4885 else
4886   if test -n "$RANLIB"; then
4887   ac_cv_prog_RANLIB="$RANLIB" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4896     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
4907 if test -n "$RANLIB"; then
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4909 $as_echo "$RANLIB" >&6; }
4910 else
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4912 $as_echo "no" >&6; }
4913 fi
4914
4915
4916 fi
4917 if test -z "$ac_cv_prog_RANLIB"; then
4918   ac_ct_RANLIB=$RANLIB
4919   # Extract the first word of "ranlib", so it can be a program name with args.
4920 set dummy ranlib; ac_word=$2
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 $as_echo_n "checking for $ac_word... " >&6; }
4923 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4924   $as_echo_n "(cached) " >&6
4925 else
4926   if test -n "$ac_ct_RANLIB"; then
4927   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936     ac_cv_prog_ac_ct_RANLIB="ranlib"
4937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941   done
4942 IFS=$as_save_IFS
4943
4944 fi
4945 fi
4946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4947 if test -n "$ac_ct_RANLIB"; then
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4949 $as_echo "$ac_ct_RANLIB" >&6; }
4950 else
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4952 $as_echo "no" >&6; }
4953 fi
4954
4955   if test "x$ac_ct_RANLIB" = x; then
4956     RANLIB=":"
4957   else
4958     case $cross_compiling:$ac_tool_warned in
4959 yes:)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4962 ac_tool_warned=yes ;;
4963 esac
4964     RANLIB=$ac_ct_RANLIB
4965   fi
4966 else
4967   RANLIB="$ac_cv_prog_RANLIB"
4968 fi
4969
4970 test -z "$RANLIB" && RANLIB=:
4971
4972
4973
4974
4975
4976
4977 # Determine commands to create old-style static archives.
4978 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4979 old_postinstall_cmds='chmod 644 $oldlib'
4980 old_postuninstall_cmds=
4981
4982 if test -n "$RANLIB"; then
4983   case $host_os in
4984   openbsd*)
4985     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
4986     ;;
4987   *)
4988     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
4989     ;;
4990   esac
4991   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
4992 fi
4993
4994 case $host_os in
4995   darwin*)
4996     lock_old_archive_extraction=yes ;;
4997   *)
4998     lock_old_archive_extraction=no ;;
4999 esac
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 for ac_prog in gawk mawk nawk awk
5022 do
5023   # Extract the first word of "$ac_prog", so it can be a program name with args.
5024 set dummy $ac_prog; 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_AWK+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   if test -n "$AWK"; then
5031   ac_cv_prog_AWK="$AWK" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040     ac_cv_prog_AWK="$ac_prog"
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 AWK=$ac_cv_prog_AWK
5051 if test -n "$AWK"; then
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5053 $as_echo "$AWK" >&6; }
5054 else
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5057 fi
5058
5059
5060   test -n "$AWK" && break
5061 done
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081 # If no C compiler was specified, use CC.
5082 LTCC=${LTCC-"$CC"}
5083
5084 # If no C compiler flags were specified, use CFLAGS.
5085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5086
5087 # Allow CC to be a program name with arguments.
5088 compiler=$CC
5089
5090
5091 # Check for command to grab the raw symbol name followed by C symbol from nm.
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5095   $as_echo_n "(cached) " >&6
5096 else
5097
5098 # These are sane defaults that work on at least a few old systems.
5099 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5100
5101 # Character class describing NM global symbol codes.
5102 symcode='[BCDEGRST]'
5103
5104 # Regexp to match symbols that can be accessed directly from C.
5105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5106
5107 # Define system-specific variables.
5108 case $host_os in
5109 aix*)
5110   symcode='[BCDT]'
5111   ;;
5112 cygwin* | mingw* | pw32* | cegcc*)
5113   symcode='[ABCDGISTW]'
5114   ;;
5115 hpux*)
5116   if test "$host_cpu" = ia64; then
5117     symcode='[ABCDEGRST]'
5118   fi
5119   ;;
5120 irix* | nonstopux*)
5121   symcode='[BCDEGRST]'
5122   ;;
5123 osf*)
5124   symcode='[BCDEGQRST]'
5125   ;;
5126 solaris*)
5127   symcode='[BDRT]'
5128   ;;
5129 sco3.2v5*)
5130   symcode='[DT]'
5131   ;;
5132 sysv4.2uw2*)
5133   symcode='[DT]'
5134   ;;
5135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5136   symcode='[ABDT]'
5137   ;;
5138 sysv4)
5139   symcode='[DFNSTU]'
5140   ;;
5141 esac
5142
5143 # If we're using GNU nm, then use its standard symbol codes.
5144 case `$NM -V 2>&1` in
5145 *GNU* | *'with BFD'*)
5146   symcode='[ABCDGIRSTW]' ;;
5147 esac
5148
5149 # Transform an extracted symbol line into a proper C declaration.
5150 # Some systems (esp. on ia64) link data and code symbols differently,
5151 # so use this general approach.
5152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5153
5154 # Transform an extracted symbol line into symbol name and symbol address
5155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5156 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'"
5157
5158 # Handle CRLF in mingw tool chain
5159 opt_cr=
5160 case $build_os in
5161 mingw*)
5162   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5163   ;;
5164 esac
5165
5166 # Try without a prefix underscore, then with it.
5167 for ac_symprfx in "" "_"; do
5168
5169   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5170   symxfrm="\\1 $ac_symprfx\\2 \\2"
5171
5172   # Write the raw and C identifiers.
5173   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5174     # Fake it for dumpbin and say T for any non-static function
5175     # and D for any global variable.
5176     # Also find C++ and __fastcall symbols from MSVC++,
5177     # which start with @ or ?.
5178     lt_cv_sys_global_symbol_pipe="$AWK '"\
5179 "     {last_section=section; section=\$ 3};"\
5180 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5181 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5182 "     \$ 0!~/External *\|/{next};"\
5183 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5184 "     {if(hide[section]) next};"\
5185 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5186 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5187 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5188 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5189 "     ' prfx=^$ac_symprfx"
5190   else
5191     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5192   fi
5193   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5194
5195   # Check to see that the pipe works correctly.
5196   pipe_works=no
5197
5198   rm -f conftest*
5199   cat > conftest.$ac_ext <<_LT_EOF
5200 #ifdef __cplusplus
5201 extern "C" {
5202 #endif
5203 char nm_test_var;
5204 void nm_test_func(void);
5205 void nm_test_func(void){}
5206 #ifdef __cplusplus
5207 }
5208 #endif
5209 int main(){nm_test_var='a';nm_test_func();return(0);}
5210 _LT_EOF
5211
5212   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5213   (eval $ac_compile) 2>&5
5214   ac_status=$?
5215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5216   test $ac_status = 0; }; then
5217     # Now try to grab the symbols.
5218     nlist=conftest.nm
5219     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5220   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5221   ac_status=$?
5222   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223   test $ac_status = 0; } && test -s "$nlist"; then
5224       # Try sorting and uniquifying the output.
5225       if sort "$nlist" | uniq > "$nlist"T; then
5226         mv -f "$nlist"T "$nlist"
5227       else
5228         rm -f "$nlist"T
5229       fi
5230
5231       # Make sure that we snagged all the symbols we need.
5232       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5233         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5234           cat <<_LT_EOF > conftest.$ac_ext
5235 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5236 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5237 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5238    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5239 # define LT_DLSYM_CONST
5240 #elif defined(__osf__)
5241 /* This system does not cope well with relocations in const data.  */
5242 # define LT_DLSYM_CONST
5243 #else
5244 # define LT_DLSYM_CONST const
5245 #endif
5246
5247 #ifdef __cplusplus
5248 extern "C" {
5249 #endif
5250
5251 _LT_EOF
5252           # Now generate the symbol file.
5253           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5254
5255           cat <<_LT_EOF >> conftest.$ac_ext
5256
5257 /* The mapping between symbol names and symbols.  */
5258 LT_DLSYM_CONST struct {
5259   const char *name;
5260   void       *address;
5261 }
5262 lt__PROGRAM__LTX_preloaded_symbols[] =
5263 {
5264   { "@PROGRAM@", (void *) 0 },
5265 _LT_EOF
5266           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5267           cat <<\_LT_EOF >> conftest.$ac_ext
5268   {0, (void *) 0}
5269 };
5270
5271 /* This works around a problem in FreeBSD linker */
5272 #ifdef FREEBSD_WORKAROUND
5273 static const void *lt_preloaded_setup() {
5274   return lt__PROGRAM__LTX_preloaded_symbols;
5275 }
5276 #endif
5277
5278 #ifdef __cplusplus
5279 }
5280 #endif
5281 _LT_EOF
5282           # Now try linking the two files.
5283           mv conftest.$ac_objext conftstm.$ac_objext
5284           lt_globsym_save_LIBS=$LIBS
5285           lt_globsym_save_CFLAGS=$CFLAGS
5286           LIBS="conftstm.$ac_objext"
5287           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5288           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5289   (eval $ac_link) 2>&5
5290   ac_status=$?
5291   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5293             pipe_works=yes
5294           fi
5295           LIBS=$lt_globsym_save_LIBS
5296           CFLAGS=$lt_globsym_save_CFLAGS
5297         else
5298           echo "cannot find nm_test_func in $nlist" >&5
5299         fi
5300       else
5301         echo "cannot find nm_test_var in $nlist" >&5
5302       fi
5303     else
5304       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5305     fi
5306   else
5307     echo "$progname: failed program was:" >&5
5308     cat conftest.$ac_ext >&5
5309   fi
5310   rm -rf conftest* conftst*
5311
5312   # Do not use the global_symbol_pipe unless it works.
5313   if test "$pipe_works" = yes; then
5314     break
5315   else
5316     lt_cv_sys_global_symbol_pipe=
5317   fi
5318 done
5319
5320 fi
5321
5322 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5323   lt_cv_sys_global_symbol_to_cdecl=
5324 fi
5325 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5327 $as_echo "failed" >&6; }
5328 else
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5330 $as_echo "ok" >&6; }
5331 fi
5332
5333 # Response file support.
5334 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5335   nm_file_list_spec='@'
5336 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5337   nm_file_list_spec='@'
5338 fi
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5367 $as_echo_n "checking for sysroot... " >&6; }
5368
5369 # Check whether --with-sysroot was given.
5370 if test "${with_sysroot+set}" = set; then :
5371   withval=$with_sysroot;
5372 else
5373   with_sysroot=no
5374 fi
5375
5376
5377 lt_sysroot=
5378 case ${with_sysroot} in #(
5379  yes)
5380    if test "$GCC" = yes; then
5381      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5382    fi
5383    ;; #(
5384  /*)
5385    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5386    ;; #(
5387  no|'')
5388    ;; #(
5389  *)
5390    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5391 $as_echo "${with_sysroot}" >&6; }
5392    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5393    ;;
5394 esac
5395
5396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5397 $as_echo "${lt_sysroot:-no}" >&6; }
5398
5399
5400
5401
5402
5403 # Check whether --enable-libtool-lock was given.
5404 if test "${enable_libtool_lock+set}" = set; then :
5405   enableval=$enable_libtool_lock;
5406 fi
5407
5408 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5409
5410 # Some flags need to be propagated to the compiler or linker for good
5411 # libtool support.
5412 case $host in
5413 ia64-*-hpux*)
5414   # Find out which ABI we are using.
5415   echo 'int i;' > conftest.$ac_ext
5416   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5417   (eval $ac_compile) 2>&5
5418   ac_status=$?
5419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5420   test $ac_status = 0; }; then
5421     case `/usr/bin/file conftest.$ac_objext` in
5422       *ELF-32*)
5423         HPUX_IA64_MODE="32"
5424         ;;
5425       *ELF-64*)
5426         HPUX_IA64_MODE="64"
5427         ;;
5428     esac
5429   fi
5430   rm -rf conftest*
5431   ;;
5432 *-*-irix6*)
5433   # Find out which ABI we are using.
5434   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5435   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5436   (eval $ac_compile) 2>&5
5437   ac_status=$?
5438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5439   test $ac_status = 0; }; then
5440     if test "$lt_cv_prog_gnu_ld" = yes; then
5441       case `/usr/bin/file conftest.$ac_objext` in
5442         *32-bit*)
5443           LD="${LD-ld} -melf32bsmip"
5444           ;;
5445         *N32*)
5446           LD="${LD-ld} -melf32bmipn32"
5447           ;;
5448         *64-bit*)
5449           LD="${LD-ld} -melf64bmip"
5450         ;;
5451       esac
5452     else
5453       case `/usr/bin/file conftest.$ac_objext` in
5454         *32-bit*)
5455           LD="${LD-ld} -32"
5456           ;;
5457         *N32*)
5458           LD="${LD-ld} -n32"
5459           ;;
5460         *64-bit*)
5461           LD="${LD-ld} -64"
5462           ;;
5463       esac
5464     fi
5465   fi
5466   rm -rf conftest*
5467   ;;
5468
5469 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5470 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5471   # Find out which ABI we are using.
5472   echo 'int i;' > conftest.$ac_ext
5473   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5474   (eval $ac_compile) 2>&5
5475   ac_status=$?
5476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5477   test $ac_status = 0; }; then
5478     case `/usr/bin/file conftest.o` in
5479       *32-bit*)
5480         case $host in
5481           x86_64-*kfreebsd*-gnu)
5482             LD="${LD-ld} -m elf_i386_fbsd"
5483             ;;
5484           x86_64-*linux*)
5485             LD="${LD-ld} -m elf_i386"
5486             ;;
5487           ppc64-*linux*|powerpc64-*linux*)
5488             LD="${LD-ld} -m elf32ppclinux"
5489             ;;
5490           s390x-*linux*)
5491             LD="${LD-ld} -m elf_s390"
5492             ;;
5493           sparc64-*linux*)
5494             LD="${LD-ld} -m elf32_sparc"
5495             ;;
5496         esac
5497         ;;
5498       *64-bit*)
5499         case $host in
5500           x86_64-*kfreebsd*-gnu)
5501             LD="${LD-ld} -m elf_x86_64_fbsd"
5502             ;;
5503           x86_64-*linux*)
5504             LD="${LD-ld} -m elf_x86_64"
5505             ;;
5506           ppc*-*linux*|powerpc*-*linux*)
5507             LD="${LD-ld} -m elf64ppc"
5508             ;;
5509           s390*-*linux*|s390*-*tpf*)
5510             LD="${LD-ld} -m elf64_s390"
5511             ;;
5512           sparc*-*linux*)
5513             LD="${LD-ld} -m elf64_sparc"
5514             ;;
5515         esac
5516         ;;
5517     esac
5518   fi
5519   rm -rf conftest*
5520   ;;
5521
5522 *-*-sco3.2v5*)
5523   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5524   SAVE_CFLAGS="$CFLAGS"
5525   CFLAGS="$CFLAGS -belf"
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5527 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5528 if ${lt_cv_cc_needs_belf+:} false; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   ac_ext=c
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536
5537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5538 /* end confdefs.h.  */
5539
5540 int
5541 main ()
5542 {
5543
5544   ;
5545   return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_link "$LINENO"; then :
5549   lt_cv_cc_needs_belf=yes
5550 else
5551   lt_cv_cc_needs_belf=no
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext \
5554     conftest$ac_exeext conftest.$ac_ext
5555      ac_ext=c
5556 ac_cpp='$CPP $CPPFLAGS'
5557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5560
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5563 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5564   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5565     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5566     CFLAGS="$SAVE_CFLAGS"
5567   fi
5568   ;;
5569 *-*solaris*)
5570   # Find out which ABI we are using.
5571   echo 'int i;' > conftest.$ac_ext
5572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5573   (eval $ac_compile) 2>&5
5574   ac_status=$?
5575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576   test $ac_status = 0; }; then
5577     case `/usr/bin/file conftest.o` in
5578     *64-bit*)
5579       case $lt_cv_prog_gnu_ld in
5580       yes*)
5581         case $host in
5582         i?86-*-solaris*)
5583           LD="${LD-ld} -m elf_x86_64"
5584           ;;
5585         sparc*-*-solaris*)
5586           LD="${LD-ld} -m elf64_sparc"
5587           ;;
5588         esac
5589         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
5590         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
5591           LD="${LD-ld}_sol2"
5592         fi
5593         ;;
5594       *)
5595         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5596           LD="${LD-ld} -64"
5597         fi
5598         ;;
5599       esac
5600       ;;
5601     esac
5602   fi
5603   rm -rf conftest*
5604   ;;
5605 esac
5606
5607 need_locks="$enable_libtool_lock"
5608
5609 if test -n "$ac_tool_prefix"; then
5610   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
5611 set dummy ${ac_tool_prefix}mt; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
5615   $as_echo_n "(cached) " >&6
5616 else
5617   if test -n "$MANIFEST_TOOL"; then
5618   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
5619 else
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH
5622 do
5623   IFS=$as_save_IFS
5624   test -z "$as_dir" && as_dir=.
5625     for ac_exec_ext in '' $ac_executable_extensions; do
5626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
5628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629     break 2
5630   fi
5631 done
5632   done
5633 IFS=$as_save_IFS
5634
5635 fi
5636 fi
5637 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
5638 if test -n "$MANIFEST_TOOL"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
5640 $as_echo "$MANIFEST_TOOL" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645
5646
5647 fi
5648 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
5649   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
5650   # Extract the first word of "mt", so it can be a program name with args.
5651 set dummy mt; ac_word=$2
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5653 $as_echo_n "checking for $ac_word... " >&6; }
5654 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
5655   $as_echo_n "(cached) " >&6
5656 else
5657   if test -n "$ac_ct_MANIFEST_TOOL"; then
5658   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
5659 else
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 for as_dir in $PATH
5662 do
5663   IFS=$as_save_IFS
5664   test -z "$as_dir" && as_dir=.
5665     for ac_exec_ext in '' $ac_executable_extensions; do
5666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5667     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
5668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669     break 2
5670   fi
5671 done
5672   done
5673 IFS=$as_save_IFS
5674
5675 fi
5676 fi
5677 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
5678 if test -n "$ac_ct_MANIFEST_TOOL"; then
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
5680 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
5681 else
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 fi
5685
5686   if test "x$ac_ct_MANIFEST_TOOL" = x; then
5687     MANIFEST_TOOL=":"
5688   else
5689     case $cross_compiling:$ac_tool_warned in
5690 yes:)
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5693 ac_tool_warned=yes ;;
5694 esac
5695     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
5696   fi
5697 else
5698   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
5699 fi
5700
5701 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
5703 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
5704 if ${lt_cv_path_mainfest_tool+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   lt_cv_path_mainfest_tool=no
5708   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
5709   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
5710   cat conftest.err >&5
5711   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
5712     lt_cv_path_mainfest_tool=yes
5713   fi
5714   rm -f conftest*
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
5717 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
5718 if test "x$lt_cv_path_mainfest_tool" != xyes; then
5719   MANIFEST_TOOL=:
5720 fi
5721
5722
5723
5724
5725
5726
5727   case $host_os in
5728     rhapsody* | darwin*)
5729     if test -n "$ac_tool_prefix"; then
5730   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   if test -n "$DSYMUTIL"; then
5738   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5739 else
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 for as_dir in $PATH
5742 do
5743   IFS=$as_save_IFS
5744   test -z "$as_dir" && as_dir=.
5745     for ac_exec_ext in '' $ac_executable_extensions; do
5746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749     break 2
5750   fi
5751 done
5752   done
5753 IFS=$as_save_IFS
5754
5755 fi
5756 fi
5757 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5758 if test -n "$DSYMUTIL"; then
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5760 $as_echo "$DSYMUTIL" >&6; }
5761 else
5762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 $as_echo "no" >&6; }
5764 fi
5765
5766
5767 fi
5768 if test -z "$ac_cv_prog_DSYMUTIL"; then
5769   ac_ct_DSYMUTIL=$DSYMUTIL
5770   # Extract the first word of "dsymutil", so it can be a program name with args.
5771 set dummy dsymutil; ac_word=$2
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5773 $as_echo_n "checking for $ac_word... " >&6; }
5774 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5775   $as_echo_n "(cached) " >&6
5776 else
5777   if test -n "$ac_ct_DSYMUTIL"; then
5778   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5779 else
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785     for ac_exec_ext in '' $ac_executable_extensions; do
5786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5787     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789     break 2
5790   fi
5791 done
5792   done
5793 IFS=$as_save_IFS
5794
5795 fi
5796 fi
5797 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5798 if test -n "$ac_ct_DSYMUTIL"; then
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5800 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5801 else
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5803 $as_echo "no" >&6; }
5804 fi
5805
5806   if test "x$ac_ct_DSYMUTIL" = x; then
5807     DSYMUTIL=":"
5808   else
5809     case $cross_compiling:$ac_tool_warned in
5810 yes:)
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5813 ac_tool_warned=yes ;;
5814 esac
5815     DSYMUTIL=$ac_ct_DSYMUTIL
5816   fi
5817 else
5818   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5819 fi
5820
5821     if test -n "$ac_tool_prefix"; then
5822   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_NMEDIT+:} false; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   if test -n "$NMEDIT"; then
5830   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837     for ac_exec_ext in '' $ac_executable_extensions; do
5838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844   done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 NMEDIT=$ac_cv_prog_NMEDIT
5850 if test -n "$NMEDIT"; then
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5852 $as_echo "$NMEDIT" >&6; }
5853 else
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858
5859 fi
5860 if test -z "$ac_cv_prog_NMEDIT"; then
5861   ac_ct_NMEDIT=$NMEDIT
5862   # Extract the first word of "nmedit", so it can be a program name with args.
5863 set dummy nmedit; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$ac_ct_NMEDIT"; then
5870   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5890 if test -n "$ac_ct_NMEDIT"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5892 $as_echo "$ac_ct_NMEDIT" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898   if test "x$ac_ct_NMEDIT" = x; then
5899     NMEDIT=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907     NMEDIT=$ac_ct_NMEDIT
5908   fi
5909 else
5910   NMEDIT="$ac_cv_prog_NMEDIT"
5911 fi
5912
5913     if test -n "$ac_tool_prefix"; then
5914   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_LIPO+:} false; then :
5919   $as_echo_n "(cached) " >&6
5920 else
5921   if test -n "$LIPO"; then
5922   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5926 do
5927   IFS=$as_save_IFS
5928   test -z "$as_dir" && as_dir=.
5929     for ac_exec_ext in '' $ac_executable_extensions; do
5930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933     break 2
5934   fi
5935 done
5936   done
5937 IFS=$as_save_IFS
5938
5939 fi
5940 fi
5941 LIPO=$ac_cv_prog_LIPO
5942 if test -n "$LIPO"; then
5943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5944 $as_echo "$LIPO" >&6; }
5945 else
5946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5948 fi
5949
5950
5951 fi
5952 if test -z "$ac_cv_prog_LIPO"; then
5953   ac_ct_LIPO=$LIPO
5954   # Extract the first word of "lipo", so it can be a program name with args.
5955 set dummy lipo; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5959   $as_echo_n "(cached) " >&6
5960 else
5961   if test -n "$ac_ct_LIPO"; then
5962   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969     for ac_exec_ext in '' $ac_executable_extensions; do
5970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971     ac_cv_prog_ac_ct_LIPO="lipo"
5972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976   done
5977 IFS=$as_save_IFS
5978
5979 fi
5980 fi
5981 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5982 if test -n "$ac_ct_LIPO"; then
5983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5984 $as_echo "$ac_ct_LIPO" >&6; }
5985 else
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5988 fi
5989
5990   if test "x$ac_ct_LIPO" = x; then
5991     LIPO=":"
5992   else
5993     case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
5998 esac
5999     LIPO=$ac_ct_LIPO
6000   fi
6001 else
6002   LIPO="$ac_cv_prog_LIPO"
6003 fi
6004
6005     if test -n "$ac_tool_prefix"; then
6006   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}otool; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if ${ac_cv_prog_OTOOL+:} false; then :
6011   $as_echo_n "(cached) " >&6
6012 else
6013   if test -n "$OTOOL"; then
6014   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019   IFS=$as_save_IFS
6020   test -z "$as_dir" && as_dir=.
6021     for ac_exec_ext in '' $ac_executable_extensions; do
6022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025     break 2
6026   fi
6027 done
6028   done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 OTOOL=$ac_cv_prog_OTOOL
6034 if test -n "$OTOOL"; then
6035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6036 $as_echo "$OTOOL" >&6; }
6037 else
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6040 fi
6041
6042
6043 fi
6044 if test -z "$ac_cv_prog_OTOOL"; then
6045   ac_ct_OTOOL=$OTOOL
6046   # Extract the first word of "otool", so it can be a program name with args.
6047 set dummy otool; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6051   $as_echo_n "(cached) " >&6
6052 else
6053   if test -n "$ac_ct_OTOOL"; then
6054   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6058 do
6059   IFS=$as_save_IFS
6060   test -z "$as_dir" && as_dir=.
6061     for ac_exec_ext in '' $ac_executable_extensions; do
6062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063     ac_cv_prog_ac_ct_OTOOL="otool"
6064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065     break 2
6066   fi
6067 done
6068   done
6069 IFS=$as_save_IFS
6070
6071 fi
6072 fi
6073 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6074 if test -n "$ac_ct_OTOOL"; then
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6076 $as_echo "$ac_ct_OTOOL" >&6; }
6077 else
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082   if test "x$ac_ct_OTOOL" = x; then
6083     OTOOL=":"
6084   else
6085     case $cross_compiling:$ac_tool_warned in
6086 yes:)
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6090 esac
6091     OTOOL=$ac_ct_OTOOL
6092   fi
6093 else
6094   OTOOL="$ac_cv_prog_OTOOL"
6095 fi
6096
6097     if test -n "$ac_tool_prefix"; then
6098   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_prog_OTOOL64+:} false; then :
6103   $as_echo_n "(cached) " >&6
6104 else
6105   if test -n "$OTOOL64"; then
6106   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113     for ac_exec_ext in '' $ac_executable_extensions; do
6114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120   done
6121 IFS=$as_save_IFS
6122
6123 fi
6124 fi
6125 OTOOL64=$ac_cv_prog_OTOOL64
6126 if test -n "$OTOOL64"; then
6127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6128 $as_echo "$OTOOL64" >&6; }
6129 else
6130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6132 fi
6133
6134
6135 fi
6136 if test -z "$ac_cv_prog_OTOOL64"; then
6137   ac_ct_OTOOL64=$OTOOL64
6138   # Extract the first word of "otool64", so it can be a program name with args.
6139 set dummy otool64; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6143   $as_echo_n "(cached) " >&6
6144 else
6145   if test -n "$ac_ct_OTOOL64"; then
6146   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153     for ac_exec_ext in '' $ac_executable_extensions; do
6154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6155     ac_cv_prog_ac_ct_OTOOL64="otool64"
6156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157     break 2
6158   fi
6159 done
6160   done
6161 IFS=$as_save_IFS
6162
6163 fi
6164 fi
6165 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6166 if test -n "$ac_ct_OTOOL64"; then
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6168 $as_echo "$ac_ct_OTOOL64" >&6; }
6169 else
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6172 fi
6173
6174   if test "x$ac_ct_OTOOL64" = x; then
6175     OTOOL64=":"
6176   else
6177     case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183     OTOOL64=$ac_ct_OTOOL64
6184   fi
6185 else
6186   OTOOL64="$ac_cv_prog_OTOOL64"
6187 fi
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6216 $as_echo_n "checking for -single_module linker flag... " >&6; }
6217 if ${lt_cv_apple_cc_single_mod+:} false; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   lt_cv_apple_cc_single_mod=no
6221       if test -z "${LT_MULTI_MODULE}"; then
6222         # By default we will add the -single_module flag. You can override
6223         # by either setting the environment variable LT_MULTI_MODULE
6224         # non-empty at configure time, or by adding -multi_module to the
6225         # link flags.
6226         rm -rf libconftest.dylib*
6227         echo "int foo(void){return 1;}" > conftest.c
6228         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6229 -dynamiclib -Wl,-single_module conftest.c" >&5
6230         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6231           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6232         _lt_result=$?
6233         # If there is a non-empty error log, and "single_module"
6234         # appears in it, assume the flag caused a linker warning
6235         if test -s conftest.err && $GREP single_module conftest.err; then
6236           cat conftest.err >&5
6237         # Otherwise, if the output was created with a 0 exit code from
6238         # the compiler, it worked.
6239         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6240           lt_cv_apple_cc_single_mod=yes
6241         else
6242           cat conftest.err >&5
6243         fi
6244         rm -rf libconftest.dylib*
6245         rm -f conftest.*
6246       fi
6247 fi
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6249 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6250
6251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6252 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6253 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   lt_cv_ld_exported_symbols_list=no
6257       save_LDFLAGS=$LDFLAGS
6258       echo "_main" > conftest.sym
6259       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6260       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h.  */
6262
6263 int
6264 main ()
6265 {
6266
6267   ;
6268   return 0;
6269 }
6270 _ACEOF
6271 if ac_fn_c_try_link "$LINENO"; then :
6272   lt_cv_ld_exported_symbols_list=yes
6273 else
6274   lt_cv_ld_exported_symbols_list=no
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext \
6277     conftest$ac_exeext conftest.$ac_ext
6278         LDFLAGS="$save_LDFLAGS"
6279
6280 fi
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6282 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6283
6284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6285 $as_echo_n "checking for -force_load linker flag... " >&6; }
6286 if ${lt_cv_ld_force_load+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   lt_cv_ld_force_load=no
6290       cat > conftest.c << _LT_EOF
6291 int forced_loaded() { return 2;}
6292 _LT_EOF
6293       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6294       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6295       echo "$AR cru libconftest.a conftest.o" >&5
6296       $AR cru libconftest.a conftest.o 2>&5
6297       echo "$RANLIB libconftest.a" >&5
6298       $RANLIB libconftest.a 2>&5
6299       cat > conftest.c << _LT_EOF
6300 int main() { return 0;}
6301 _LT_EOF
6302       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6303       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6304       _lt_result=$?
6305       if test -s conftest.err && $GREP force_load conftest.err; then
6306         cat conftest.err >&5
6307       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6308         lt_cv_ld_force_load=yes
6309       else
6310         cat conftest.err >&5
6311       fi
6312         rm -f conftest.err libconftest.a conftest conftest.c
6313         rm -rf conftest.dSYM
6314
6315 fi
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6317 $as_echo "$lt_cv_ld_force_load" >&6; }
6318     case $host_os in
6319     rhapsody* | darwin1.[012])
6320       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6321     darwin1.*)
6322       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6323     darwin*) # darwin 5.x on
6324       # if running on 10.5 or later, the deployment target defaults
6325       # to the OS version, if on x86, and 10.4, the deployment
6326       # target defaults to 10.4. Don't you love it?
6327       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6328         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6329           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6330         10.[012]*)
6331           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6332         10.*)
6333           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6334       esac
6335     ;;
6336   esac
6337     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6338       _lt_dar_single_mod='$single_module'
6339     fi
6340     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6341       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6342     else
6343       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6344     fi
6345     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6346       _lt_dsymutil='~$DSYMUTIL $lib || :'
6347     else
6348       _lt_dsymutil=
6349     fi
6350     ;;
6351   esac
6352
6353 ac_ext=c
6354 ac_cpp='$CPP $CPPFLAGS'
6355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6359 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6360 # On Suns, sometimes $CPP names a directory.
6361 if test -n "$CPP" && test -d "$CPP"; then
6362   CPP=
6363 fi
6364 if test -z "$CPP"; then
6365   if ${ac_cv_prog_CPP+:} false; then :
6366   $as_echo_n "(cached) " >&6
6367 else
6368       # Double quotes because CPP needs to be expanded
6369     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6370     do
6371       ac_preproc_ok=false
6372 for ac_c_preproc_warn_flag in '' yes
6373 do
6374   # Use a header file that comes with gcc, so configuring glibc
6375   # with a fresh cross-compiler works.
6376   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377   # <limits.h> exists even on freestanding compilers.
6378   # On the NeXT, cc -E runs the code through the compiler's parser,
6379   # not just through cpp. "Syntax error" is here to catch this case.
6380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h.  */
6382 #ifdef __STDC__
6383 # include <limits.h>
6384 #else
6385 # include <assert.h>
6386 #endif
6387                      Syntax error
6388 _ACEOF
6389 if ac_fn_c_try_cpp "$LINENO"; then :
6390
6391 else
6392   # Broken: fails on valid input.
6393 continue
6394 fi
6395 rm -f conftest.err conftest.i conftest.$ac_ext
6396
6397   # OK, works on sane cases.  Now check whether nonexistent headers
6398   # can be detected and how.
6399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h.  */
6401 #include <ac_nonexistent.h>
6402 _ACEOF
6403 if ac_fn_c_try_cpp "$LINENO"; then :
6404   # Broken: success on invalid input.
6405 continue
6406 else
6407   # Passes both tests.
6408 ac_preproc_ok=:
6409 break
6410 fi
6411 rm -f conftest.err conftest.i conftest.$ac_ext
6412
6413 done
6414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6415 rm -f conftest.i conftest.err conftest.$ac_ext
6416 if $ac_preproc_ok; then :
6417   break
6418 fi
6419
6420     done
6421     ac_cv_prog_CPP=$CPP
6422
6423 fi
6424   CPP=$ac_cv_prog_CPP
6425 else
6426   ac_cv_prog_CPP=$CPP
6427 fi
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6429 $as_echo "$CPP" >&6; }
6430 ac_preproc_ok=false
6431 for ac_c_preproc_warn_flag in '' yes
6432 do
6433   # Use a header file that comes with gcc, so configuring glibc
6434   # with a fresh cross-compiler works.
6435   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6436   # <limits.h> exists even on freestanding compilers.
6437   # On the NeXT, cc -E runs the code through the compiler's parser,
6438   # not just through cpp. "Syntax error" is here to catch this case.
6439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h.  */
6441 #ifdef __STDC__
6442 # include <limits.h>
6443 #else
6444 # include <assert.h>
6445 #endif
6446                      Syntax error
6447 _ACEOF
6448 if ac_fn_c_try_cpp "$LINENO"; then :
6449
6450 else
6451   # Broken: fails on valid input.
6452 continue
6453 fi
6454 rm -f conftest.err conftest.i conftest.$ac_ext
6455
6456   # OK, works on sane cases.  Now check whether nonexistent headers
6457   # can be detected and how.
6458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h.  */
6460 #include <ac_nonexistent.h>
6461 _ACEOF
6462 if ac_fn_c_try_cpp "$LINENO"; then :
6463   # Broken: success on invalid input.
6464 continue
6465 else
6466   # Passes both tests.
6467 ac_preproc_ok=:
6468 break
6469 fi
6470 rm -f conftest.err conftest.i conftest.$ac_ext
6471
6472 done
6473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6474 rm -f conftest.i conftest.err conftest.$ac_ext
6475 if $ac_preproc_ok; then :
6476
6477 else
6478   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6480 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6481 See \`config.log' for more details" "$LINENO" 5; }
6482 fi
6483
6484 ac_ext=c
6485 ac_cpp='$CPP $CPPFLAGS'
6486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6489
6490
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6492 $as_echo_n "checking for ANSI C header files... " >&6; }
6493 if ${ac_cv_header_stdc+:} false; then :
6494   $as_echo_n "(cached) " >&6
6495 else
6496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h.  */
6498 #include <stdlib.h>
6499 #include <stdarg.h>
6500 #include <string.h>
6501 #include <float.h>
6502
6503 int
6504 main ()
6505 {
6506
6507   ;
6508   return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_compile "$LINENO"; then :
6512   ac_cv_header_stdc=yes
6513 else
6514   ac_cv_header_stdc=no
6515 fi
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517
6518 if test $ac_cv_header_stdc = yes; then
6519   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h.  */
6522 #include <string.h>
6523
6524 _ACEOF
6525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526   $EGREP "memchr" >/dev/null 2>&1; then :
6527
6528 else
6529   ac_cv_header_stdc=no
6530 fi
6531 rm -f conftest*
6532
6533 fi
6534
6535 if test $ac_cv_header_stdc = yes; then
6536   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h.  */
6539 #include <stdlib.h>
6540
6541 _ACEOF
6542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6543   $EGREP "free" >/dev/null 2>&1; then :
6544
6545 else
6546   ac_cv_header_stdc=no
6547 fi
6548 rm -f conftest*
6549
6550 fi
6551
6552 if test $ac_cv_header_stdc = yes; then
6553   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6554   if test "$cross_compiling" = yes; then :
6555   :
6556 else
6557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h.  */
6559 #include <ctype.h>
6560 #include <stdlib.h>
6561 #if ((' ' & 0x0FF) == 0x020)
6562 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6563 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6564 #else
6565 # define ISLOWER(c) \
6566                    (('a' <= (c) && (c) <= 'i') \
6567                      || ('j' <= (c) && (c) <= 'r') \
6568                      || ('s' <= (c) && (c) <= 'z'))
6569 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6570 #endif
6571
6572 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6573 int
6574 main ()
6575 {
6576   int i;
6577   for (i = 0; i < 256; i++)
6578     if (XOR (islower (i), ISLOWER (i))
6579         || toupper (i) != TOUPPER (i))
6580       return 2;
6581   return 0;
6582 }
6583 _ACEOF
6584 if ac_fn_c_try_run "$LINENO"; then :
6585
6586 else
6587   ac_cv_header_stdc=no
6588 fi
6589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6590   conftest.$ac_objext conftest.beam conftest.$ac_ext
6591 fi
6592
6593 fi
6594 fi
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6596 $as_echo "$ac_cv_header_stdc" >&6; }
6597 if test $ac_cv_header_stdc = yes; then
6598
6599 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6600
6601 fi
6602
6603 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6605                   inttypes.h stdint.h unistd.h
6606 do :
6607   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6608 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6609 "
6610 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6611   cat >>confdefs.h <<_ACEOF
6612 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613 _ACEOF
6614
6615 fi
6616
6617 done
6618
6619
6620 for ac_header in dlfcn.h
6621 do :
6622   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6623 "
6624 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6625   cat >>confdefs.h <<_ACEOF
6626 #define HAVE_DLFCN_H 1
6627 _ACEOF
6628
6629 fi
6630
6631 done
6632
6633
6634
6635
6636
6637 # Set options
6638
6639
6640
6641         enable_dlopen=no
6642
6643
6644   enable_win32_dll=no
6645
6646
6647             # Check whether --enable-shared was given.
6648 if test "${enable_shared+set}" = set; then :
6649   enableval=$enable_shared; p=${PACKAGE-default}
6650     case $enableval in
6651     yes) enable_shared=yes ;;
6652     no) enable_shared=no ;;
6653     *)
6654       enable_shared=no
6655       # Look at the argument we got.  We use all the common list separators.
6656       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6657       for pkg in $enableval; do
6658         IFS="$lt_save_ifs"
6659         if test "X$pkg" = "X$p"; then
6660           enable_shared=yes
6661         fi
6662       done
6663       IFS="$lt_save_ifs"
6664       ;;
6665     esac
6666 else
6667   enable_shared=yes
6668 fi
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678   # Check whether --enable-static was given.
6679 if test "${enable_static+set}" = set; then :
6680   enableval=$enable_static; p=${PACKAGE-default}
6681     case $enableval in
6682     yes) enable_static=yes ;;
6683     no) enable_static=no ;;
6684     *)
6685      enable_static=no
6686       # Look at the argument we got.  We use all the common list separators.
6687       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6688       for pkg in $enableval; do
6689         IFS="$lt_save_ifs"
6690         if test "X$pkg" = "X$p"; then
6691           enable_static=yes
6692         fi
6693       done
6694       IFS="$lt_save_ifs"
6695       ;;
6696     esac
6697 else
6698   enable_static=yes
6699 fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710 # Check whether --with-pic was given.
6711 if test "${with_pic+set}" = set; then :
6712   withval=$with_pic; lt_p=${PACKAGE-default}
6713     case $withval in
6714     yes|no) pic_mode=$withval ;;
6715     *)
6716       pic_mode=default
6717       # Look at the argument we got.  We use all the common list separators.
6718       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6719       for lt_pkg in $withval; do
6720         IFS="$lt_save_ifs"
6721         if test "X$lt_pkg" = "X$lt_p"; then
6722           pic_mode=yes
6723         fi
6724       done
6725       IFS="$lt_save_ifs"
6726       ;;
6727     esac
6728 else
6729   pic_mode=default
6730 fi
6731
6732
6733 test -z "$pic_mode" && pic_mode=default
6734
6735
6736
6737
6738
6739
6740
6741   # Check whether --enable-fast-install was given.
6742 if test "${enable_fast_install+set}" = set; then :
6743   enableval=$enable_fast_install; p=${PACKAGE-default}
6744     case $enableval in
6745     yes) enable_fast_install=yes ;;
6746     no) enable_fast_install=no ;;
6747     *)
6748       enable_fast_install=no
6749       # Look at the argument we got.  We use all the common list separators.
6750       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6751       for pkg in $enableval; do
6752         IFS="$lt_save_ifs"
6753         if test "X$pkg" = "X$p"; then
6754           enable_fast_install=yes
6755         fi
6756       done
6757       IFS="$lt_save_ifs"
6758       ;;
6759     esac
6760 else
6761   enable_fast_install=yes
6762 fi
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 # This can be used to rebuild libtool when needed
6775 LIBTOOL_DEPS="$ltmain"
6776
6777 # Always use our own libtool.
6778 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809 test -z "$LN_S" && LN_S="ln -s"
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 if test -n "${ZSH_VERSION+set}" ; then
6825    setopt NO_GLOB_SUBST
6826 fi
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6829 $as_echo_n "checking for objdir... " >&6; }
6830 if ${lt_cv_objdir+:} false; then :
6831   $as_echo_n "(cached) " >&6
6832 else
6833   rm -f .libs 2>/dev/null
6834 mkdir .libs 2>/dev/null
6835 if test -d .libs; then
6836   lt_cv_objdir=.libs
6837 else
6838   # MS-DOS does not allow filenames that begin with a dot.
6839   lt_cv_objdir=_libs
6840 fi
6841 rmdir .libs 2>/dev/null
6842 fi
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6844 $as_echo "$lt_cv_objdir" >&6; }
6845 objdir=$lt_cv_objdir
6846
6847
6848
6849
6850
6851 cat >>confdefs.h <<_ACEOF
6852 #define LT_OBJDIR "$lt_cv_objdir/"
6853 _ACEOF
6854
6855
6856
6857
6858 case $host_os in
6859 aix3*)
6860   # AIX sometimes has problems with the GCC collect2 program.  For some
6861   # reason, if we set the COLLECT_NAMES environment variable, the problems
6862   # vanish in a puff of smoke.
6863   if test "X${COLLECT_NAMES+set}" != Xset; then
6864     COLLECT_NAMES=
6865     export COLLECT_NAMES
6866   fi
6867   ;;
6868 esac
6869
6870 # Global variables:
6871 ofile=libtool
6872 can_build_shared=yes
6873
6874 # All known linkers require a `.a' archive for static linking (except MSVC,
6875 # which needs '.lib').
6876 libext=a
6877
6878 with_gnu_ld="$lt_cv_prog_gnu_ld"
6879
6880 old_CC="$CC"
6881 old_CFLAGS="$CFLAGS"
6882
6883 # Set sane defaults for various variables
6884 test -z "$CC" && CC=cc
6885 test -z "$LTCC" && LTCC=$CC
6886 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6887 test -z "$LD" && LD=ld
6888 test -z "$ac_objext" && ac_objext=o
6889
6890 for cc_temp in $compiler""; do
6891   case $cc_temp in
6892     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6893     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6894     \-*) ;;
6895     *) break;;
6896   esac
6897 done
6898 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6899
6900
6901 # Only perform the check for file, if the check method requires it
6902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6903 case $deplibs_check_method in
6904 file_magic*)
6905   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6907 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6908 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   case $MAGIC_CMD in
6912 [\\/*] |  ?:[\\/]*)
6913   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6914   ;;
6915 *)
6916   lt_save_MAGIC_CMD="$MAGIC_CMD"
6917   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6918   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6919   for ac_dir in $ac_dummy; do
6920     IFS="$lt_save_ifs"
6921     test -z "$ac_dir" && ac_dir=.
6922     if test -f $ac_dir/${ac_tool_prefix}file; then
6923       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6924       if test -n "$file_magic_test_file"; then
6925         case $deplibs_check_method in
6926         "file_magic "*)
6927           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6928           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6929           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6930             $EGREP "$file_magic_regex" > /dev/null; then
6931             :
6932           else
6933             cat <<_LT_EOF 1>&2
6934
6935 *** Warning: the command libtool uses to detect shared libraries,
6936 *** $file_magic_cmd, produces output that libtool cannot recognize.
6937 *** The result is that libtool may fail to recognize shared libraries
6938 *** as such.  This will affect the creation of libtool libraries that
6939 *** depend on shared libraries, but programs linked with such libtool
6940 *** libraries will work regardless of this problem.  Nevertheless, you
6941 *** may want to report the problem to your system manager and/or to
6942 *** bug-libtool@gnu.org
6943
6944 _LT_EOF
6945           fi ;;
6946         esac
6947       fi
6948       break
6949     fi
6950   done
6951   IFS="$lt_save_ifs"
6952   MAGIC_CMD="$lt_save_MAGIC_CMD"
6953   ;;
6954 esac
6955 fi
6956
6957 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6958 if test -n "$MAGIC_CMD"; then
6959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6960 $as_echo "$MAGIC_CMD" >&6; }
6961 else
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6963 $as_echo "no" >&6; }
6964 fi
6965
6966
6967
6968
6969
6970 if test -z "$lt_cv_path_MAGIC_CMD"; then
6971   if test -n "$ac_tool_prefix"; then
6972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6973 $as_echo_n "checking for file... " >&6; }
6974 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6975   $as_echo_n "(cached) " >&6
6976 else
6977   case $MAGIC_CMD in
6978 [\\/*] |  ?:[\\/]*)
6979   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6980   ;;
6981 *)
6982   lt_save_MAGIC_CMD="$MAGIC_CMD"
6983   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6984   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6985   for ac_dir in $ac_dummy; do
6986     IFS="$lt_save_ifs"
6987     test -z "$ac_dir" && ac_dir=.
6988     if test -f $ac_dir/file; then
6989       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6990       if test -n "$file_magic_test_file"; then
6991         case $deplibs_check_method in
6992         "file_magic "*)
6993           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6994           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6996             $EGREP "$file_magic_regex" > /dev/null; then
6997             :
6998           else
6999             cat <<_LT_EOF 1>&2
7000
7001 *** Warning: the command libtool uses to detect shared libraries,
7002 *** $file_magic_cmd, produces output that libtool cannot recognize.
7003 *** The result is that libtool may fail to recognize shared libraries
7004 *** as such.  This will affect the creation of libtool libraries that
7005 *** depend on shared libraries, but programs linked with such libtool
7006 *** libraries will work regardless of this problem.  Nevertheless, you
7007 *** may want to report the problem to your system manager and/or to
7008 *** bug-libtool@gnu.org
7009
7010 _LT_EOF
7011           fi ;;
7012         esac
7013       fi
7014       break
7015     fi
7016   done
7017   IFS="$lt_save_ifs"
7018   MAGIC_CMD="$lt_save_MAGIC_CMD"
7019   ;;
7020 esac
7021 fi
7022
7023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024 if test -n "$MAGIC_CMD"; then
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7026 $as_echo "$MAGIC_CMD" >&6; }
7027 else
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032
7033   else
7034     MAGIC_CMD=:
7035   fi
7036 fi
7037
7038   fi
7039   ;;
7040 esac
7041
7042 # Use C for the default configuration in the libtool script
7043
7044 lt_save_CC="$CC"
7045 ac_ext=c
7046 ac_cpp='$CPP $CPPFLAGS'
7047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7050
7051
7052 # Source file extension for C test sources.
7053 ac_ext=c
7054
7055 # Object file extension for compiled C test sources.
7056 objext=o
7057 objext=$objext
7058
7059 # Code to be used in simple compile tests
7060 lt_simple_compile_test_code="int some_variable = 0;"
7061
7062 # Code to be used in simple link tests
7063 lt_simple_link_test_code='int main(){return(0);}'
7064
7065
7066
7067
7068
7069
7070
7071 # If no C compiler was specified, use CC.
7072 LTCC=${LTCC-"$CC"}
7073
7074 # If no C compiler flags were specified, use CFLAGS.
7075 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7076
7077 # Allow CC to be a program name with arguments.
7078 compiler=$CC
7079
7080 # Save the default compiler, since it gets overwritten when the other
7081 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7082 compiler_DEFAULT=$CC
7083
7084 # save warnings/boilerplate of simple test code
7085 ac_outfile=conftest.$ac_objext
7086 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7087 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7088 _lt_compiler_boilerplate=`cat conftest.err`
7089 $RM conftest*
7090
7091 ac_outfile=conftest.$ac_objext
7092 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7093 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7094 _lt_linker_boilerplate=`cat conftest.err`
7095 $RM -r conftest*
7096
7097
7098 ## CAVEAT EMPTOR:
7099 ## There is no encapsulation within the following macros, do not change
7100 ## the running order or otherwise move them around unless you know exactly
7101 ## what you are doing...
7102 if test -n "$compiler"; then
7103
7104 lt_prog_compiler_no_builtin_flag=
7105
7106 if test "$GCC" = yes; then
7107   case $cc_basename in
7108   nvcc*)
7109     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7110   *)
7111     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7112   esac
7113
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7115 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7116 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7117   $as_echo_n "(cached) " >&6
7118 else
7119   lt_cv_prog_compiler_rtti_exceptions=no
7120    ac_outfile=conftest.$ac_objext
7121    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7122    lt_compiler_flag="-fno-rtti -fno-exceptions"
7123    # Insert the option either (1) after the last *FLAGS variable, or
7124    # (2) before a word containing "conftest.", or (3) at the end.
7125    # Note that $ac_compile itself does not contain backslashes and begins
7126    # with a dollar sign (not a hyphen), so the echo should work correctly.
7127    # The option is referenced via a variable to avoid confusing sed.
7128    lt_compile=`echo "$ac_compile" | $SED \
7129    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7130    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7131    -e 's:$: $lt_compiler_flag:'`
7132    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7133    (eval "$lt_compile" 2>conftest.err)
7134    ac_status=$?
7135    cat conftest.err >&5
7136    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137    if (exit $ac_status) && test -s "$ac_outfile"; then
7138      # The compiler can only warn and ignore the option if not recognized
7139      # So say no if there are warnings other than the usual output.
7140      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7141      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7142      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7143        lt_cv_prog_compiler_rtti_exceptions=yes
7144      fi
7145    fi
7146    $RM conftest*
7147
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7150 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7151
7152 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7153     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7154 else
7155     :
7156 fi
7157
7158 fi
7159
7160
7161
7162
7163
7164
7165   lt_prog_compiler_wl=
7166 lt_prog_compiler_pic=
7167 lt_prog_compiler_static=
7168
7169
7170   if test "$GCC" = yes; then
7171     lt_prog_compiler_wl='-Wl,'
7172     lt_prog_compiler_static='-static'
7173
7174     case $host_os in
7175       aix*)
7176       # All AIX code is PIC.
7177       if test "$host_cpu" = ia64; then
7178         # AIX 5 now supports IA64 processor
7179         lt_prog_compiler_static='-Bstatic'
7180       fi
7181       ;;
7182
7183     amigaos*)
7184       case $host_cpu in
7185       powerpc)
7186             # see comment about AmigaOS4 .so support
7187             lt_prog_compiler_pic='-fPIC'
7188         ;;
7189       m68k)
7190             # FIXME: we need at least 68020 code to build shared libraries, but
7191             # adding the `-m68020' flag to GCC prevents building anything better,
7192             # like `-m68040'.
7193             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7194         ;;
7195       esac
7196       ;;
7197
7198     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7199       # PIC is the default for these OSes.
7200       ;;
7201
7202     mingw* | cygwin* | pw32* | os2* | cegcc*)
7203       # This hack is so that the source file can tell whether it is being
7204       # built for inclusion in a dll (and should export symbols for example).
7205       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7206       # (--disable-auto-import) libraries
7207       lt_prog_compiler_pic='-DDLL_EXPORT'
7208       ;;
7209
7210     darwin* | rhapsody*)
7211       # PIC is the default on this platform
7212       # Common symbols not allowed in MH_DYLIB files
7213       lt_prog_compiler_pic='-fno-common'
7214       ;;
7215
7216     haiku*)
7217       # PIC is the default for Haiku.
7218       # The "-static" flag exists, but is broken.
7219       lt_prog_compiler_static=
7220       ;;
7221
7222     hpux*)
7223       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7224       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7225       # sets the default TLS model and affects inlining.
7226       case $host_cpu in
7227       hppa*64*)
7228         # +Z the default
7229         ;;
7230       *)
7231         lt_prog_compiler_pic='-fPIC'
7232         ;;
7233       esac
7234       ;;
7235
7236     interix[3-9]*)
7237       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7238       # Instead, we relocate shared libraries at runtime.
7239       ;;
7240
7241     msdosdjgpp*)
7242       # Just because we use GCC doesn't mean we suddenly get shared libraries
7243       # on systems that don't support them.
7244       lt_prog_compiler_can_build_shared=no
7245       enable_shared=no
7246       ;;
7247
7248     *nto* | *qnx*)
7249       # QNX uses GNU C++, but need to define -shared option too, otherwise
7250       # it will coredump.
7251       lt_prog_compiler_pic='-fPIC -shared'
7252       ;;
7253
7254     sysv4*MP*)
7255       if test -d /usr/nec; then
7256         lt_prog_compiler_pic=-Kconform_pic
7257       fi
7258       ;;
7259
7260     *)
7261       lt_prog_compiler_pic='-fPIC'
7262       ;;
7263     esac
7264
7265     case $cc_basename in
7266     nvcc*) # Cuda Compiler Driver 2.2
7267       lt_prog_compiler_wl='-Xlinker '
7268       if test -n "$lt_prog_compiler_pic"; then
7269         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7270       fi
7271       ;;
7272     esac
7273   else
7274     # PORTME Check for flag to pass linker flags through the system compiler.
7275     case $host_os in
7276     aix*)
7277       lt_prog_compiler_wl='-Wl,'
7278       if test "$host_cpu" = ia64; then
7279         # AIX 5 now supports IA64 processor
7280         lt_prog_compiler_static='-Bstatic'
7281       else
7282         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7283       fi
7284       ;;
7285
7286     mingw* | cygwin* | pw32* | os2* | cegcc*)
7287       # This hack is so that the source file can tell whether it is being
7288       # built for inclusion in a dll (and should export symbols for example).
7289       lt_prog_compiler_pic='-DDLL_EXPORT'
7290       ;;
7291
7292     hpux9* | hpux10* | hpux11*)
7293       lt_prog_compiler_wl='-Wl,'
7294       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7295       # not for PA HP-UX.
7296       case $host_cpu in
7297       hppa*64*|ia64*)
7298         # +Z the default
7299         ;;
7300       *)
7301         lt_prog_compiler_pic='+Z'
7302         ;;
7303       esac
7304       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7305       lt_prog_compiler_static='${wl}-a ${wl}archive'
7306       ;;
7307
7308     irix5* | irix6* | nonstopux*)
7309       lt_prog_compiler_wl='-Wl,'
7310       # PIC (with -KPIC) is the default.
7311       lt_prog_compiler_static='-non_shared'
7312       ;;
7313
7314     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7315       case $cc_basename in
7316       # old Intel for x86_64 which still supported -KPIC.
7317       ecc*)
7318         lt_prog_compiler_wl='-Wl,'
7319         lt_prog_compiler_pic='-KPIC'
7320         lt_prog_compiler_static='-static'
7321         ;;
7322       # icc used to be incompatible with GCC.
7323       # ICC 10 doesn't accept -KPIC any more.
7324       icc* | ifort*)
7325         lt_prog_compiler_wl='-Wl,'
7326         lt_prog_compiler_pic='-fPIC'
7327         lt_prog_compiler_static='-static'
7328         ;;
7329       # Lahey Fortran 8.1.
7330       lf95*)
7331         lt_prog_compiler_wl='-Wl,'
7332         lt_prog_compiler_pic='--shared'
7333         lt_prog_compiler_static='--static'
7334         ;;
7335       nagfor*)
7336         # NAG Fortran compiler
7337         lt_prog_compiler_wl='-Wl,-Wl,,'
7338         lt_prog_compiler_pic='-PIC'
7339         lt_prog_compiler_static='-Bstatic'
7340         ;;
7341       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7342         # Portland Group compilers (*not* the Pentium gcc compiler,
7343         # which looks to be a dead project)
7344         lt_prog_compiler_wl='-Wl,'
7345         lt_prog_compiler_pic='-fpic'
7346         lt_prog_compiler_static='-Bstatic'
7347         ;;
7348       ccc*)
7349         lt_prog_compiler_wl='-Wl,'
7350         # All Alpha code is PIC.
7351         lt_prog_compiler_static='-non_shared'
7352         ;;
7353       xl* | bgxl* | bgf* | mpixl*)
7354         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7355         lt_prog_compiler_wl='-Wl,'
7356         lt_prog_compiler_pic='-qpic'
7357         lt_prog_compiler_static='-qstaticlink'
7358         ;;
7359       *)
7360         case `$CC -V 2>&1 | sed 5q` in
7361         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7362           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7363           lt_prog_compiler_pic='-KPIC'
7364           lt_prog_compiler_static='-Bstatic'
7365           lt_prog_compiler_wl=''
7366           ;;
7367         *Sun\ F* | *Sun*Fortran*)
7368           lt_prog_compiler_pic='-KPIC'
7369           lt_prog_compiler_static='-Bstatic'
7370           lt_prog_compiler_wl='-Qoption ld '
7371           ;;
7372         *Sun\ C*)
7373           # Sun C 5.9
7374           lt_prog_compiler_pic='-KPIC'
7375           lt_prog_compiler_static='-Bstatic'
7376           lt_prog_compiler_wl='-Wl,'
7377           ;;
7378         *Intel*\ [CF]*Compiler*)
7379           lt_prog_compiler_wl='-Wl,'
7380           lt_prog_compiler_pic='-fPIC'
7381           lt_prog_compiler_static='-static'
7382           ;;
7383         *Portland\ Group*)
7384           lt_prog_compiler_wl='-Wl,'
7385           lt_prog_compiler_pic='-fpic'
7386           lt_prog_compiler_static='-Bstatic'
7387           ;;
7388         esac
7389         ;;
7390       esac
7391       ;;
7392
7393     newsos6)
7394       lt_prog_compiler_pic='-KPIC'
7395       lt_prog_compiler_static='-Bstatic'
7396       ;;
7397
7398     *nto* | *qnx*)
7399       # QNX uses GNU C++, but need to define -shared option too, otherwise
7400       # it will coredump.
7401       lt_prog_compiler_pic='-fPIC -shared'
7402       ;;
7403
7404     osf3* | osf4* | osf5*)
7405       lt_prog_compiler_wl='-Wl,'
7406       # All OSF/1 code is PIC.
7407       lt_prog_compiler_static='-non_shared'
7408       ;;
7409
7410     rdos*)
7411       lt_prog_compiler_static='-non_shared'
7412       ;;
7413
7414     solaris*)
7415       lt_prog_compiler_pic='-KPIC'
7416       lt_prog_compiler_static='-Bstatic'
7417       case $cc_basename in
7418       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7419         lt_prog_compiler_wl='-Qoption ld ';;
7420       *)
7421         lt_prog_compiler_wl='-Wl,';;
7422       esac
7423       ;;
7424
7425     sunos4*)
7426       lt_prog_compiler_wl='-Qoption ld '
7427       lt_prog_compiler_pic='-PIC'
7428       lt_prog_compiler_static='-Bstatic'
7429       ;;
7430
7431     sysv4 | sysv4.2uw2* | sysv4.3*)
7432       lt_prog_compiler_wl='-Wl,'
7433       lt_prog_compiler_pic='-KPIC'
7434       lt_prog_compiler_static='-Bstatic'
7435       ;;
7436
7437     sysv4*MP*)
7438       if test -d /usr/nec ;then
7439         lt_prog_compiler_pic='-Kconform_pic'
7440         lt_prog_compiler_static='-Bstatic'
7441       fi
7442       ;;
7443
7444     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7445       lt_prog_compiler_wl='-Wl,'
7446       lt_prog_compiler_pic='-KPIC'
7447       lt_prog_compiler_static='-Bstatic'
7448       ;;
7449
7450     unicos*)
7451       lt_prog_compiler_wl='-Wl,'
7452       lt_prog_compiler_can_build_shared=no
7453       ;;
7454
7455     uts4*)
7456       lt_prog_compiler_pic='-pic'
7457       lt_prog_compiler_static='-Bstatic'
7458       ;;
7459
7460     *)
7461       lt_prog_compiler_can_build_shared=no
7462       ;;
7463     esac
7464   fi
7465
7466 case $host_os in
7467   # For platforms which do not support PIC, -DPIC is meaningless:
7468   *djgpp*)
7469     lt_prog_compiler_pic=
7470     ;;
7471   *)
7472     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7473     ;;
7474 esac
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7477 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7478 if ${lt_cv_prog_compiler_pic+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7484 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7485 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7486
7487 #
7488 # Check to make sure the PIC flag actually works.
7489 #
7490 if test -n "$lt_prog_compiler_pic"; then
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7492 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7493 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7494   $as_echo_n "(cached) " >&6
7495 else
7496   lt_cv_prog_compiler_pic_works=no
7497    ac_outfile=conftest.$ac_objext
7498    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7499    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7500    # Insert the option either (1) after the last *FLAGS variable, or
7501    # (2) before a word containing "conftest.", or (3) at the end.
7502    # Note that $ac_compile itself does not contain backslashes and begins
7503    # with a dollar sign (not a hyphen), so the echo should work correctly.
7504    # The option is referenced via a variable to avoid confusing sed.
7505    lt_compile=`echo "$ac_compile" | $SED \
7506    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7507    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7508    -e 's:$: $lt_compiler_flag:'`
7509    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7510    (eval "$lt_compile" 2>conftest.err)
7511    ac_status=$?
7512    cat conftest.err >&5
7513    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514    if (exit $ac_status) && test -s "$ac_outfile"; then
7515      # The compiler can only warn and ignore the option if not recognized
7516      # So say no if there are warnings other than the usual output.
7517      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7518      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7519      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7520        lt_cv_prog_compiler_pic_works=yes
7521      fi
7522    fi
7523    $RM conftest*
7524
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7527 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7528
7529 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7530     case $lt_prog_compiler_pic in
7531      "" | " "*) ;;
7532      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7533      esac
7534 else
7535     lt_prog_compiler_pic=
7536      lt_prog_compiler_can_build_shared=no
7537 fi
7538
7539 fi
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551 #
7552 # Check to make sure the static flag actually works.
7553 #
7554 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7556 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7557 if ${lt_cv_prog_compiler_static_works+:} false; then :
7558   $as_echo_n "(cached) " >&6
7559 else
7560   lt_cv_prog_compiler_static_works=no
7561    save_LDFLAGS="$LDFLAGS"
7562    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7563    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7564    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7565      # The linker can only warn and ignore the option if not recognized
7566      # So say no if there are warnings
7567      if test -s conftest.err; then
7568        # Append any errors to the config.log.
7569        cat conftest.err 1>&5
7570        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7571        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572        if diff conftest.exp conftest.er2 >/dev/null; then
7573          lt_cv_prog_compiler_static_works=yes
7574        fi
7575      else
7576        lt_cv_prog_compiler_static_works=yes
7577      fi
7578    fi
7579    $RM -r conftest*
7580    LDFLAGS="$save_LDFLAGS"
7581
7582 fi
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7584 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7585
7586 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7587     :
7588 else
7589     lt_prog_compiler_static=
7590 fi
7591
7592
7593
7594
7595
7596
7597
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7600 if ${lt_cv_prog_compiler_c_o+:} false; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   lt_cv_prog_compiler_c_o=no
7604    $RM -r conftest 2>/dev/null
7605    mkdir conftest
7606    cd conftest
7607    mkdir out
7608    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7609
7610    lt_compiler_flag="-o out/conftest2.$ac_objext"
7611    # Insert the option either (1) after the last *FLAGS variable, or
7612    # (2) before a word containing "conftest.", or (3) at the end.
7613    # Note that $ac_compile itself does not contain backslashes and begins
7614    # with a dollar sign (not a hyphen), so the echo should work correctly.
7615    lt_compile=`echo "$ac_compile" | $SED \
7616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7618    -e 's:$: $lt_compiler_flag:'`
7619    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7620    (eval "$lt_compile" 2>out/conftest.err)
7621    ac_status=$?
7622    cat out/conftest.err >&5
7623    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7625    then
7626      # The compiler can only warn and ignore the option if not recognized
7627      # So say no if there are warnings
7628      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7629      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7630      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7631        lt_cv_prog_compiler_c_o=yes
7632      fi
7633    fi
7634    chmod u+w . 2>&5
7635    $RM conftest*
7636    # SGI C++ compiler will create directory out/ii_files/ for
7637    # template instantiation
7638    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7639    $RM out/* && rmdir out
7640    cd ..
7641    $RM -r conftest
7642    $RM conftest*
7643
7644 fi
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7647
7648
7649
7650
7651
7652
7653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7655 if ${lt_cv_prog_compiler_c_o+:} false; then :
7656   $as_echo_n "(cached) " >&6
7657 else
7658   lt_cv_prog_compiler_c_o=no
7659    $RM -r conftest 2>/dev/null
7660    mkdir conftest
7661    cd conftest
7662    mkdir out
7663    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7664
7665    lt_compiler_flag="-o out/conftest2.$ac_objext"
7666    # Insert the option either (1) after the last *FLAGS variable, or
7667    # (2) before a word containing "conftest.", or (3) at the end.
7668    # Note that $ac_compile itself does not contain backslashes and begins
7669    # with a dollar sign (not a hyphen), so the echo should work correctly.
7670    lt_compile=`echo "$ac_compile" | $SED \
7671    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7672    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7673    -e 's:$: $lt_compiler_flag:'`
7674    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7675    (eval "$lt_compile" 2>out/conftest.err)
7676    ac_status=$?
7677    cat out/conftest.err >&5
7678    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7680    then
7681      # The compiler can only warn and ignore the option if not recognized
7682      # So say no if there are warnings
7683      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7684      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7685      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7686        lt_cv_prog_compiler_c_o=yes
7687      fi
7688    fi
7689    chmod u+w . 2>&5
7690    $RM conftest*
7691    # SGI C++ compiler will create directory out/ii_files/ for
7692    # template instantiation
7693    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7694    $RM out/* && rmdir out
7695    cd ..
7696    $RM -r conftest
7697    $RM conftest*
7698
7699 fi
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7701 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7702
7703
7704
7705
7706 hard_links="nottested"
7707 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7708   # do not overwrite the value of need_locks provided by the user
7709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7710 $as_echo_n "checking if we can lock with hard links... " >&6; }
7711   hard_links=yes
7712   $RM conftest*
7713   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7714   touch conftest.a
7715   ln conftest.a conftest.b 2>&5 || hard_links=no
7716   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7718 $as_echo "$hard_links" >&6; }
7719   if test "$hard_links" = no; then
7720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7721 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7722     need_locks=warn
7723   fi
7724 else
7725   need_locks=no
7726 fi
7727
7728
7729
7730
7731
7732
7733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7734 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7735
7736   runpath_var=
7737   allow_undefined_flag=
7738   always_export_symbols=no
7739   archive_cmds=
7740   archive_expsym_cmds=
7741   compiler_needs_object=no
7742   enable_shared_with_static_runtimes=no
7743   export_dynamic_flag_spec=
7744   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7745   hardcode_automatic=no
7746   hardcode_direct=no
7747   hardcode_direct_absolute=no
7748   hardcode_libdir_flag_spec=
7749   hardcode_libdir_separator=
7750   hardcode_minus_L=no
7751   hardcode_shlibpath_var=unsupported
7752   inherit_rpath=no
7753   link_all_deplibs=unknown
7754   module_cmds=
7755   module_expsym_cmds=
7756   old_archive_from_new_cmds=
7757   old_archive_from_expsyms_cmds=
7758   thread_safe_flag_spec=
7759   whole_archive_flag_spec=
7760   # include_expsyms should be a list of space-separated symbols to be *always*
7761   # included in the symbol list
7762   include_expsyms=
7763   # exclude_expsyms can be an extended regexp of symbols to exclude
7764   # it will be wrapped by ` (' and `)$', so one must not match beginning or
7765   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7766   # as well as any symbol that contains `d'.
7767   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7768   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7769   # platforms (ab)use it in PIC code, but their linkers get confused if
7770   # the symbol is explicitly referenced.  Since portable code cannot
7771   # rely on this symbol name, it's probably fine to never include it in
7772   # preloaded symbol tables.
7773   # Exclude shared library initialization/finalization symbols.
7774   extract_expsyms_cmds=
7775
7776   case $host_os in
7777   cygwin* | mingw* | pw32* | cegcc*)
7778     # FIXME: the MSVC++ port hasn't been tested in a loooong time
7779     # When not using gcc, we currently assume that we are using
7780     # Microsoft Visual C++.
7781     if test "$GCC" != yes; then
7782       with_gnu_ld=no
7783     fi
7784     ;;
7785   interix*)
7786     # we just hope/assume this is gcc and not c89 (= MSVC++)
7787     with_gnu_ld=yes
7788     ;;
7789   openbsd*)
7790     with_gnu_ld=no
7791     ;;
7792   esac
7793
7794   ld_shlibs=yes
7795
7796   # On some targets, GNU ld is compatible enough with the native linker
7797   # that we're better off using the native interface for both.
7798   lt_use_gnu_ld_interface=no
7799   if test "$with_gnu_ld" = yes; then
7800     case $host_os in
7801       aix*)
7802         # The AIX port of GNU ld has always aspired to compatibility
7803         # with the native linker.  However, as the warning in the GNU ld
7804         # block says, versions before 2.19.5* couldn't really create working
7805         # shared libraries, regardless of the interface used.
7806         case `$LD -v 2>&1` in
7807           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7808           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7809           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7810           *)
7811             lt_use_gnu_ld_interface=yes
7812             ;;
7813         esac
7814         ;;
7815       *)
7816         lt_use_gnu_ld_interface=yes
7817         ;;
7818     esac
7819   fi
7820
7821   if test "$lt_use_gnu_ld_interface" = yes; then
7822     # If archive_cmds runs LD, not CC, wlarc should be empty
7823     wlarc='${wl}'
7824
7825     # Set some defaults for GNU ld with shared library support. These
7826     # are reset later if shared libraries are not supported. Putting them
7827     # here allows them to be overridden if necessary.
7828     runpath_var=LD_RUN_PATH
7829     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7830     export_dynamic_flag_spec='${wl}--export-dynamic'
7831     # ancient GNU ld didn't support --whole-archive et. al.
7832     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7833       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7834     else
7835       whole_archive_flag_spec=
7836     fi
7837     supports_anon_versioning=no
7838     case `$LD -v 2>&1` in
7839       *GNU\ gold*) supports_anon_versioning=yes ;;
7840       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7841       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7842       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7843       *\ 2.11.*) ;; # other 2.11 versions
7844       *) supports_anon_versioning=yes ;;
7845     esac
7846
7847     # See if GNU ld supports shared libraries.
7848     case $host_os in
7849     aix[3-9]*)
7850       # On AIX/PPC, the GNU linker is very broken
7851       if test "$host_cpu" != ia64; then
7852         ld_shlibs=no
7853         cat <<_LT_EOF 1>&2
7854
7855 *** Warning: the GNU linker, at least up to release 2.19, is reported
7856 *** to be unable to reliably create shared libraries on AIX.
7857 *** Therefore, libtool is disabling shared libraries support.  If you
7858 *** really care for shared libraries, you may want to install binutils
7859 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7860 *** You will then need to restart the configuration process.
7861
7862 _LT_EOF
7863       fi
7864       ;;
7865
7866     amigaos*)
7867       case $host_cpu in
7868       powerpc)
7869             # see comment about AmigaOS4 .so support
7870             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7871             archive_expsym_cmds=''
7872         ;;
7873       m68k)
7874             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)'
7875             hardcode_libdir_flag_spec='-L$libdir'
7876             hardcode_minus_L=yes
7877         ;;
7878       esac
7879       ;;
7880
7881     beos*)
7882       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7883         allow_undefined_flag=unsupported
7884         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7885         # support --undefined.  This deserves some investigation.  FIXME
7886         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7887       else
7888         ld_shlibs=no
7889       fi
7890       ;;
7891
7892     cygwin* | mingw* | pw32* | cegcc*)
7893       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7894       # as there is no search path for DLLs.
7895       hardcode_libdir_flag_spec='-L$libdir'
7896       export_dynamic_flag_spec='${wl}--export-all-symbols'
7897       allow_undefined_flag=unsupported
7898       always_export_symbols=no
7899       enable_shared_with_static_runtimes=yes
7900       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'
7901       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
7902
7903       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7904         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7905         # If the export-symbols file already is a .def file (1st line
7906         # is EXPORTS), use it as is; otherwise, prepend...
7907         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7908           cp $export_symbols $output_objdir/$soname.def;
7909         else
7910           echo EXPORTS > $output_objdir/$soname.def;
7911           cat $export_symbols >> $output_objdir/$soname.def;
7912         fi~
7913         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7914       else
7915         ld_shlibs=no
7916       fi
7917       ;;
7918
7919     haiku*)
7920       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7921       link_all_deplibs=yes
7922       ;;
7923
7924     interix[3-9]*)
7925       hardcode_direct=no
7926       hardcode_shlibpath_var=no
7927       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7928       export_dynamic_flag_spec='${wl}-E'
7929       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7930       # Instead, shared libraries are loaded at an image base (0x10000000 by
7931       # default) and relocated if they conflict, which is a slow very memory
7932       # consuming and fragmenting process.  To avoid this, we pick a random,
7933       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7934       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7935       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7936       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'
7937       ;;
7938
7939     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7940       tmp_diet=no
7941       if test "$host_os" = linux-dietlibc; then
7942         case $cc_basename in
7943           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
7944         esac
7945       fi
7946       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7947          && test "$tmp_diet" = no
7948       then
7949         tmp_addflag=' $pic_flag'
7950         tmp_sharedflag='-shared'
7951         case $cc_basename,$host_cpu in
7952         pgcc*)                          # Portland Group C compiler
7953           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'
7954           tmp_addflag=' $pic_flag'
7955           ;;
7956         pgf77* | pgf90* | pgf95* | pgfortran*)
7957                                         # Portland Group f77 and f90 compilers
7958           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'
7959           tmp_addflag=' $pic_flag -Mnomain' ;;
7960         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
7961           tmp_addflag=' -i_dynamic' ;;
7962         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7963           tmp_addflag=' -i_dynamic -nofor_main' ;;
7964         ifc* | ifort*)                  # Intel Fortran compiler
7965           tmp_addflag=' -nofor_main' ;;
7966         lf95*)                          # Lahey Fortran 8.1
7967           whole_archive_flag_spec=
7968           tmp_sharedflag='--shared' ;;
7969         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7970           tmp_sharedflag='-qmkshrobj'
7971           tmp_addflag= ;;
7972         nvcc*)  # Cuda Compiler Driver 2.2
7973           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'
7974           compiler_needs_object=yes
7975           ;;
7976         esac
7977         case `$CC -V 2>&1 | sed 5q` in
7978         *Sun\ C*)                       # Sun C 5.9
7979           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'
7980           compiler_needs_object=yes
7981           tmp_sharedflag='-G' ;;
7982         *Sun\ F*)                       # Sun Fortran 8.3
7983           tmp_sharedflag='-G' ;;
7984         esac
7985         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7986
7987         if test "x$supports_anon_versioning" = xyes; then
7988           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7989             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7990             echo "local: *; };" >> $output_objdir/$libname.ver~
7991             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7992         fi
7993
7994         case $cc_basename in
7995         xlf* | bgf* | bgxlf* | mpixlf*)
7996           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7997           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7998           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7999           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8000           if test "x$supports_anon_versioning" = xyes; then
8001             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8002               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8003               echo "local: *; };" >> $output_objdir/$libname.ver~
8004               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8005           fi
8006           ;;
8007         esac
8008       else
8009         ld_shlibs=no
8010       fi
8011       ;;
8012
8013     netbsd*)
8014       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8015         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8016         wlarc=
8017       else
8018         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8019         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8020       fi
8021       ;;
8022
8023     solaris*)
8024       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8025         ld_shlibs=no
8026         cat <<_LT_EOF 1>&2
8027
8028 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8029 *** create shared libraries on Solaris systems.  Therefore, libtool
8030 *** is disabling shared libraries support.  We urge you to upgrade GNU
8031 *** binutils to release 2.9.1 or newer.  Another option is to modify
8032 *** your PATH or compiler configuration so that the native linker is
8033 *** used, and then restart.
8034
8035 _LT_EOF
8036       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8037         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8038         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8039       else
8040         ld_shlibs=no
8041       fi
8042       ;;
8043
8044     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8045       case `$LD -v 2>&1` in
8046         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8047         ld_shlibs=no
8048         cat <<_LT_EOF 1>&2
8049
8050 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8051 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8052 *** is disabling shared libraries support.  We urge you to upgrade GNU
8053 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8054 *** your PATH or compiler configuration so that the native linker is
8055 *** used, and then restart.
8056
8057 _LT_EOF
8058         ;;
8059         *)
8060           # For security reasons, it is highly recommended that you always
8061           # use absolute paths for naming shared libraries, and exclude the
8062           # DT_RUNPATH tag from executables and libraries.  But doing so
8063           # requires that you compile everything twice, which is a pain.
8064           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8065             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8066             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8067             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8068           else
8069             ld_shlibs=no
8070           fi
8071         ;;
8072       esac
8073       ;;
8074
8075     sunos4*)
8076       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8077       wlarc=
8078       hardcode_direct=yes
8079       hardcode_shlibpath_var=no
8080       ;;
8081
8082     *)
8083       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8084         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8085         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8086       else
8087         ld_shlibs=no
8088       fi
8089       ;;
8090     esac
8091
8092     if test "$ld_shlibs" = no; then
8093       runpath_var=
8094       hardcode_libdir_flag_spec=
8095       export_dynamic_flag_spec=
8096       whole_archive_flag_spec=
8097     fi
8098   else
8099     # PORTME fill in a description of your system's linker (not GNU ld)
8100     case $host_os in
8101     aix3*)
8102       allow_undefined_flag=unsupported
8103       always_export_symbols=yes
8104       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'
8105       # Note: this linker hardcodes the directories in LIBPATH if there
8106       # are no directories specified by -L.
8107       hardcode_minus_L=yes
8108       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8109         # Neither direct hardcoding nor static linking is supported with a
8110         # broken collect2.
8111         hardcode_direct=unsupported
8112       fi
8113       ;;
8114
8115     aix[4-9]*)
8116       if test "$host_cpu" = ia64; then
8117         # On IA64, the linker does run time linking by default, so we don't
8118         # have to do anything special.
8119         aix_use_runtimelinking=no
8120         exp_sym_flag='-Bexport'
8121         no_entry_flag=""
8122       else
8123         # If we're using GNU nm, then we don't want the "-C" option.
8124         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8125         # Also, AIX nm treats weak defined symbols like other global
8126         # defined symbols, whereas GNU nm marks them as "W".
8127         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8128           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'
8129         else
8130           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'
8131         fi
8132         aix_use_runtimelinking=no
8133
8134         # Test if we are trying to use run time linking or normal
8135         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8136         # need to do runtime linking.
8137         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8138           for ld_flag in $LDFLAGS; do
8139           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8140             aix_use_runtimelinking=yes
8141             break
8142           fi
8143           done
8144           ;;
8145         esac
8146
8147         exp_sym_flag='-bexport'
8148         no_entry_flag='-bnoentry'
8149       fi
8150
8151       # When large executables or shared objects are built, AIX ld can
8152       # have problems creating the table of contents.  If linking a library
8153       # or program results in "error TOC overflow" add -mminimal-toc to
8154       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8155       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8156
8157       archive_cmds=''
8158       hardcode_direct=yes
8159       hardcode_direct_absolute=yes
8160       hardcode_libdir_separator=':'
8161       link_all_deplibs=yes
8162       file_list_spec='${wl}-f,'
8163
8164       if test "$GCC" = yes; then
8165         case $host_os in aix4.[012]|aix4.[012].*)
8166         # We only want to do this on AIX 4.2 and lower, the check
8167         # below for broken collect2 doesn't work under 4.3+
8168           collect2name=`${CC} -print-prog-name=collect2`
8169           if test -f "$collect2name" &&
8170            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8171           then
8172           # We have reworked collect2
8173           :
8174           else
8175           # We have old collect2
8176           hardcode_direct=unsupported
8177           # It fails to find uninstalled libraries when the uninstalled
8178           # path is not listed in the libpath.  Setting hardcode_minus_L
8179           # to unsupported forces relinking
8180           hardcode_minus_L=yes
8181           hardcode_libdir_flag_spec='-L$libdir'
8182           hardcode_libdir_separator=
8183           fi
8184           ;;
8185         esac
8186         shared_flag='-shared'
8187         if test "$aix_use_runtimelinking" = yes; then
8188           shared_flag="$shared_flag "'${wl}-G'
8189         fi
8190       else
8191         # not using gcc
8192         if test "$host_cpu" = ia64; then
8193         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8194         # chokes on -Wl,-G. The following line is correct:
8195           shared_flag='-G'
8196         else
8197           if test "$aix_use_runtimelinking" = yes; then
8198             shared_flag='${wl}-G'
8199           else
8200             shared_flag='${wl}-bM:SRE'
8201           fi
8202         fi
8203       fi
8204
8205       export_dynamic_flag_spec='${wl}-bexpall'
8206       # It seems that -bexpall does not export symbols beginning with
8207       # underscore (_), so it is better to generate a list of symbols to export.
8208       always_export_symbols=yes
8209       if test "$aix_use_runtimelinking" = yes; then
8210         # Warning - without using the other runtime loading flags (-brtl),
8211         # -berok will link without error, but may produce a broken library.
8212         allow_undefined_flag='-berok'
8213         # Determine the default libpath from the value encoded in an
8214         # empty executable.
8215         if test "${lt_cv_aix_libpath+set}" = set; then
8216   aix_libpath=$lt_cv_aix_libpath
8217 else
8218   if ${lt_cv_aix_libpath_+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h.  */
8223
8224 int
8225 main ()
8226 {
8227
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233
8234   lt_aix_libpath_sed='
8235       /Import File Strings/,/^$/ {
8236           /^0/ {
8237               s/^0  *\([^ ]*\) *$/\1/
8238               p
8239           }
8240       }'
8241   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8242   # Check for a 64-bit object if we didn't find anything.
8243   if test -z "$lt_cv_aix_libpath_"; then
8244     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8245   fi
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248     conftest$ac_exeext conftest.$ac_ext
8249   if test -z "$lt_cv_aix_libpath_"; then
8250     lt_cv_aix_libpath_="/usr/lib:/lib"
8251   fi
8252
8253 fi
8254
8255   aix_libpath=$lt_cv_aix_libpath_
8256 fi
8257
8258         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8259         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"
8260       else
8261         if test "$host_cpu" = ia64; then
8262           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8263           allow_undefined_flag="-z nodefs"
8264           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"
8265         else
8266          # Determine the default libpath from the value encoded in an
8267          # empty executable.
8268          if test "${lt_cv_aix_libpath+set}" = set; then
8269   aix_libpath=$lt_cv_aix_libpath
8270 else
8271   if ${lt_cv_aix_libpath_+:} false; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h.  */
8276
8277 int
8278 main ()
8279 {
8280
8281   ;
8282   return 0;
8283 }
8284 _ACEOF
8285 if ac_fn_c_try_link "$LINENO"; then :
8286
8287   lt_aix_libpath_sed='
8288       /Import File Strings/,/^$/ {
8289           /^0/ {
8290               s/^0  *\([^ ]*\) *$/\1/
8291               p
8292           }
8293       }'
8294   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8295   # Check for a 64-bit object if we didn't find anything.
8296   if test -z "$lt_cv_aix_libpath_"; then
8297     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8298   fi
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext \
8301     conftest$ac_exeext conftest.$ac_ext
8302   if test -z "$lt_cv_aix_libpath_"; then
8303     lt_cv_aix_libpath_="/usr/lib:/lib"
8304   fi
8305
8306 fi
8307
8308   aix_libpath=$lt_cv_aix_libpath_
8309 fi
8310
8311          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8312           # Warning - without using the other run time loading flags,
8313           # -berok will link without error, but may produce a broken library.
8314           no_undefined_flag=' ${wl}-bernotok'
8315           allow_undefined_flag=' ${wl}-berok'
8316           if test "$with_gnu_ld" = yes; then
8317             # We only use this code for GNU lds that support --whole-archive.
8318             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8319           else
8320             # Exported symbols can be pulled into shared objects from archives
8321             whole_archive_flag_spec='$convenience'
8322           fi
8323           archive_cmds_need_lc=yes
8324           # This is similar to how AIX traditionally builds its shared libraries.
8325           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'
8326         fi
8327       fi
8328       ;;
8329
8330     amigaos*)
8331       case $host_cpu in
8332       powerpc)
8333             # see comment about AmigaOS4 .so support
8334             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335             archive_expsym_cmds=''
8336         ;;
8337       m68k)
8338             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)'
8339             hardcode_libdir_flag_spec='-L$libdir'
8340             hardcode_minus_L=yes
8341         ;;
8342       esac
8343       ;;
8344
8345     bsdi[45]*)
8346       export_dynamic_flag_spec=-rdynamic
8347       ;;
8348
8349     cygwin* | mingw* | pw32* | cegcc*)
8350       # When not using gcc, we currently assume that we are using
8351       # Microsoft Visual C++.
8352       # hardcode_libdir_flag_spec is actually meaningless, as there is
8353       # no search path for DLLs.
8354       case $cc_basename in
8355       cl*)
8356         # Native MSVC
8357         hardcode_libdir_flag_spec=' '
8358         allow_undefined_flag=unsupported
8359         always_export_symbols=yes
8360         file_list_spec='@'
8361         # Tell ltmain to make .lib files, not .a files.
8362         libext=lib
8363         # Tell ltmain to make .dll files, not .so files.
8364         shrext_cmds=".dll"
8365         # FIXME: Setting linknames here is a bad hack.
8366         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8367         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8368             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8369           else
8370             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8371           fi~
8372           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8373           linknames='
8374         # The linker will not automatically build a static lib if we build a DLL.
8375         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8376         enable_shared_with_static_runtimes=yes
8377         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8378         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8379         # Don't use ranlib
8380         old_postinstall_cmds='chmod 644 $oldlib'
8381         postlink_cmds='lt_outputfile="@OUTPUT@"~
8382           lt_tool_outputfile="@TOOL_OUTPUT@"~
8383           case $lt_outputfile in
8384             *.exe|*.EXE) ;;
8385             *)
8386               lt_outputfile="$lt_outputfile.exe"
8387               lt_tool_outputfile="$lt_tool_outputfile.exe"
8388               ;;
8389           esac~
8390           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8391             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8392             $RM "$lt_outputfile.manifest";
8393           fi'
8394         ;;
8395       *)
8396         # Assume MSVC wrapper
8397         hardcode_libdir_flag_spec=' '
8398         allow_undefined_flag=unsupported
8399         # Tell ltmain to make .lib files, not .a files.
8400         libext=lib
8401         # Tell ltmain to make .dll files, not .so files.
8402         shrext_cmds=".dll"
8403         # FIXME: Setting linknames here is a bad hack.
8404         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8405         # The linker will automatically build a .lib file if we build a DLL.
8406         old_archive_from_new_cmds='true'
8407         # FIXME: Should let the user specify the lib program.
8408         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8409         enable_shared_with_static_runtimes=yes
8410         ;;
8411       esac
8412       ;;
8413
8414     darwin* | rhapsody*)
8415
8416
8417   archive_cmds_need_lc=no
8418   hardcode_direct=no
8419   hardcode_automatic=yes
8420   hardcode_shlibpath_var=unsupported
8421   if test "$lt_cv_ld_force_load" = "yes"; then
8422     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\"`'
8423
8424   else
8425     whole_archive_flag_spec=''
8426   fi
8427   link_all_deplibs=yes
8428   allow_undefined_flag="$_lt_dar_allow_undefined"
8429   case $cc_basename in
8430      ifort*) _lt_dar_can_shared=yes ;;
8431      *) _lt_dar_can_shared=$GCC ;;
8432   esac
8433   if test "$_lt_dar_can_shared" = "yes"; then
8434     output_verbose_link_cmd=func_echo_all
8435     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8436     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8437     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}"
8438     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}"
8439
8440   else
8441   ld_shlibs=no
8442   fi
8443
8444       ;;
8445
8446     dgux*)
8447       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8448       hardcode_libdir_flag_spec='-L$libdir'
8449       hardcode_shlibpath_var=no
8450       ;;
8451
8452     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8453     # support.  Future versions do this automatically, but an explicit c++rt0.o
8454     # does not break anything, and helps significantly (at the cost of a little
8455     # extra space).
8456     freebsd2.2*)
8457       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8458       hardcode_libdir_flag_spec='-R$libdir'
8459       hardcode_direct=yes
8460       hardcode_shlibpath_var=no
8461       ;;
8462
8463     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8464     freebsd2.*)
8465       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8466       hardcode_direct=yes
8467       hardcode_minus_L=yes
8468       hardcode_shlibpath_var=no
8469       ;;
8470
8471     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8472     freebsd* | dragonfly*)
8473       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8474       hardcode_libdir_flag_spec='-R$libdir'
8475       hardcode_direct=yes
8476       hardcode_shlibpath_var=no
8477       ;;
8478
8479     hpux9*)
8480       if test "$GCC" = yes; then
8481         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'
8482       else
8483         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'
8484       fi
8485       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486       hardcode_libdir_separator=:
8487       hardcode_direct=yes
8488
8489       # hardcode_minus_L: Not really in the search PATH,
8490       # but as the default location of the library.
8491       hardcode_minus_L=yes
8492       export_dynamic_flag_spec='${wl}-E'
8493       ;;
8494
8495     hpux10*)
8496       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8497         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8498       else
8499         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8500       fi
8501       if test "$with_gnu_ld" = no; then
8502         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8503         hardcode_libdir_separator=:
8504         hardcode_direct=yes
8505         hardcode_direct_absolute=yes
8506         export_dynamic_flag_spec='${wl}-E'
8507         # hardcode_minus_L: Not really in the search PATH,
8508         # but as the default location of the library.
8509         hardcode_minus_L=yes
8510       fi
8511       ;;
8512
8513     hpux11*)
8514       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8515         case $host_cpu in
8516         hppa*64*)
8517           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8518           ;;
8519         ia64*)
8520           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8521           ;;
8522         *)
8523           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8524           ;;
8525         esac
8526       else
8527         case $host_cpu in
8528         hppa*64*)
8529           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8530           ;;
8531         ia64*)
8532           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8533           ;;
8534         *)
8535
8536           # Older versions of the 11.00 compiler do not understand -b yet
8537           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8538           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8539 $as_echo_n "checking if $CC understands -b... " >&6; }
8540 if ${lt_cv_prog_compiler__b+:} false; then :
8541   $as_echo_n "(cached) " >&6
8542 else
8543   lt_cv_prog_compiler__b=no
8544    save_LDFLAGS="$LDFLAGS"
8545    LDFLAGS="$LDFLAGS -b"
8546    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8547    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8548      # The linker can only warn and ignore the option if not recognized
8549      # So say no if there are warnings
8550      if test -s conftest.err; then
8551        # Append any errors to the config.log.
8552        cat conftest.err 1>&5
8553        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8554        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555        if diff conftest.exp conftest.er2 >/dev/null; then
8556          lt_cv_prog_compiler__b=yes
8557        fi
8558      else
8559        lt_cv_prog_compiler__b=yes
8560      fi
8561    fi
8562    $RM -r conftest*
8563    LDFLAGS="$save_LDFLAGS"
8564
8565 fi
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8567 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8568
8569 if test x"$lt_cv_prog_compiler__b" = xyes; then
8570     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8571 else
8572     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8573 fi
8574
8575           ;;
8576         esac
8577       fi
8578       if test "$with_gnu_ld" = no; then
8579         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580         hardcode_libdir_separator=:
8581
8582         case $host_cpu in
8583         hppa*64*|ia64*)
8584           hardcode_direct=no
8585           hardcode_shlibpath_var=no
8586           ;;
8587         *)
8588           hardcode_direct=yes
8589           hardcode_direct_absolute=yes
8590           export_dynamic_flag_spec='${wl}-E'
8591
8592           # hardcode_minus_L: Not really in the search PATH,
8593           # but as the default location of the library.
8594           hardcode_minus_L=yes
8595           ;;
8596         esac
8597       fi
8598       ;;
8599
8600     irix5* | irix6* | nonstopux*)
8601       if test "$GCC" = yes; then
8602         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'
8603         # Try to use the -exported_symbol ld option, if it does not
8604         # work, assume that -exports_file does not work either and
8605         # implicitly export all symbols.
8606         # This should be the same for all languages, so no per-tag cache variable.
8607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
8608 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
8609 if ${lt_cv_irix_exported_symbol+:} false; then :
8610   $as_echo_n "(cached) " >&6
8611 else
8612   save_LDFLAGS="$LDFLAGS"
8613            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8614            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h.  */
8616 int foo (void) { return 0; }
8617 _ACEOF
8618 if ac_fn_c_try_link "$LINENO"; then :
8619   lt_cv_irix_exported_symbol=yes
8620 else
8621   lt_cv_irix_exported_symbol=no
8622 fi
8623 rm -f core conftest.err conftest.$ac_objext \
8624     conftest$ac_exeext conftest.$ac_ext
8625            LDFLAGS="$save_LDFLAGS"
8626 fi
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
8628 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
8629         if test "$lt_cv_irix_exported_symbol" = yes; then
8630           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'
8631         fi
8632       else
8633         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'
8634         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'
8635       fi
8636       archive_cmds_need_lc='no'
8637       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8638       hardcode_libdir_separator=:
8639       inherit_rpath=yes
8640       link_all_deplibs=yes
8641       ;;
8642
8643     netbsd*)
8644       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8645         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8646       else
8647         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8648       fi
8649       hardcode_libdir_flag_spec='-R$libdir'
8650       hardcode_direct=yes
8651       hardcode_shlibpath_var=no
8652       ;;
8653
8654     newsos6)
8655       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656       hardcode_direct=yes
8657       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8658       hardcode_libdir_separator=:
8659       hardcode_shlibpath_var=no
8660       ;;
8661
8662     *nto* | *qnx*)
8663       ;;
8664
8665     openbsd*)
8666       if test -f /usr/libexec/ld.so; then
8667         hardcode_direct=yes
8668         hardcode_shlibpath_var=no
8669         hardcode_direct_absolute=yes
8670         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8671           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8672           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8673           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8674           export_dynamic_flag_spec='${wl}-E'
8675         else
8676           case $host_os in
8677            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8678              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8679              hardcode_libdir_flag_spec='-R$libdir'
8680              ;;
8681            *)
8682              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8683              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684              ;;
8685           esac
8686         fi
8687       else
8688         ld_shlibs=no
8689       fi
8690       ;;
8691
8692     os2*)
8693       hardcode_libdir_flag_spec='-L$libdir'
8694       hardcode_minus_L=yes
8695       allow_undefined_flag=unsupported
8696       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'
8697       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8698       ;;
8699
8700     osf3*)
8701       if test "$GCC" = yes; then
8702         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8703         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'
8704       else
8705         allow_undefined_flag=' -expect_unresolved \*'
8706         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'
8707       fi
8708       archive_cmds_need_lc='no'
8709       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710       hardcode_libdir_separator=:
8711       ;;
8712
8713     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8714       if test "$GCC" = yes; then
8715         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8716         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'
8717         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8718       else
8719         allow_undefined_flag=' -expect_unresolved \*'
8720         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'
8721         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~
8722         $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'
8723
8724         # Both c and cxx compiler support -rpath directly
8725         hardcode_libdir_flag_spec='-rpath $libdir'
8726       fi
8727       archive_cmds_need_lc='no'
8728       hardcode_libdir_separator=:
8729       ;;
8730
8731     solaris*)
8732       no_undefined_flag=' -z defs'
8733       if test "$GCC" = yes; then
8734         wlarc='${wl}'
8735         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8736         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8737           $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'
8738       else
8739         case `$CC -V 2>&1` in
8740         *"Compilers 5.0"*)
8741           wlarc=''
8742           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8744           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8745           ;;
8746         *)
8747           wlarc='${wl}'
8748           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8749           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8750           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8751           ;;
8752         esac
8753       fi
8754       hardcode_libdir_flag_spec='-R$libdir'
8755       hardcode_shlibpath_var=no
8756       case $host_os in
8757       solaris2.[0-5] | solaris2.[0-5].*) ;;
8758       *)
8759         # The compiler driver will combine and reorder linker options,
8760         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8761         # but is careful enough not to reorder.
8762         # Supported since Solaris 2.6 (maybe 2.5.1?)
8763         if test "$GCC" = yes; then
8764           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8765         else
8766           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8767         fi
8768         ;;
8769       esac
8770       link_all_deplibs=yes
8771       ;;
8772
8773     sunos4*)
8774       if test "x$host_vendor" = xsequent; then
8775         # Use $CC to link under sequent, because it throws in some extra .o
8776         # files that make .init and .fini sections work.
8777         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8778       else
8779         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8780       fi
8781       hardcode_libdir_flag_spec='-L$libdir'
8782       hardcode_direct=yes
8783       hardcode_minus_L=yes
8784       hardcode_shlibpath_var=no
8785       ;;
8786
8787     sysv4)
8788       case $host_vendor in
8789         sni)
8790           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8791           hardcode_direct=yes # is this really true???
8792         ;;
8793         siemens)
8794           ## LD is ld it makes a PLAMLIB
8795           ## CC just makes a GrossModule.
8796           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8797           reload_cmds='$CC -r -o $output$reload_objs'
8798           hardcode_direct=no
8799         ;;
8800         motorola)
8801           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8802           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8803         ;;
8804       esac
8805       runpath_var='LD_RUN_PATH'
8806       hardcode_shlibpath_var=no
8807       ;;
8808
8809     sysv4.3*)
8810       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811       hardcode_shlibpath_var=no
8812       export_dynamic_flag_spec='-Bexport'
8813       ;;
8814
8815     sysv4*MP*)
8816       if test -d /usr/nec; then
8817         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818         hardcode_shlibpath_var=no
8819         runpath_var=LD_RUN_PATH
8820         hardcode_runpath_var=yes
8821         ld_shlibs=yes
8822       fi
8823       ;;
8824
8825     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8826       no_undefined_flag='${wl}-z,text'
8827       archive_cmds_need_lc=no
8828       hardcode_shlibpath_var=no
8829       runpath_var='LD_RUN_PATH'
8830
8831       if test "$GCC" = yes; then
8832         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8833         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8834       else
8835         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8836         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8837       fi
8838       ;;
8839
8840     sysv5* | sco3.2v5* | sco5v6*)
8841       # Note: We can NOT use -z defs as we might desire, because we do not
8842       # link with -lc, and that would cause any symbols used from libc to
8843       # always be unresolved, which means just about no library would
8844       # ever link correctly.  If we're not using GNU ld we use -z text
8845       # though, which does catch some bad symbols but isn't as heavy-handed
8846       # as -z defs.
8847       no_undefined_flag='${wl}-z,text'
8848       allow_undefined_flag='${wl}-z,nodefs'
8849       archive_cmds_need_lc=no
8850       hardcode_shlibpath_var=no
8851       hardcode_libdir_flag_spec='${wl}-R,$libdir'
8852       hardcode_libdir_separator=':'
8853       link_all_deplibs=yes
8854       export_dynamic_flag_spec='${wl}-Bexport'
8855       runpath_var='LD_RUN_PATH'
8856
8857       if test "$GCC" = yes; then
8858         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8859         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8860       else
8861         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8862         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8863       fi
8864       ;;
8865
8866     uts4*)
8867       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8868       hardcode_libdir_flag_spec='-L$libdir'
8869       hardcode_shlibpath_var=no
8870       ;;
8871
8872     *)
8873       ld_shlibs=no
8874       ;;
8875     esac
8876
8877     if test x$host_vendor = xsni; then
8878       case $host in
8879       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8880         export_dynamic_flag_spec='${wl}-Blargedynsym'
8881         ;;
8882       esac
8883     fi
8884   fi
8885
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8887 $as_echo "$ld_shlibs" >&6; }
8888 test "$ld_shlibs" = no && can_build_shared=no
8889
8890 with_gnu_ld=$with_gnu_ld
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906 #
8907 # Do we need to explicitly link libc?
8908 #
8909 case "x$archive_cmds_need_lc" in
8910 x|xyes)
8911   # Assume -lc should be added
8912   archive_cmds_need_lc=yes
8913
8914   if test "$enable_shared" = yes && test "$GCC" = yes; then
8915     case $archive_cmds in
8916     *'~'*)
8917       # FIXME: we may have to deal with multi-command sequences.
8918       ;;
8919     '$CC '*)
8920       # Test whether the compiler implicitly links with -lc since on some
8921       # systems, -lgcc has to come before -lc. If gcc already passes -lc
8922       # to ld, don't add -lc before -lgcc.
8923       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8924 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8925 if ${lt_cv_archive_cmds_need_lc+:} false; then :
8926   $as_echo_n "(cached) " >&6
8927 else
8928   $RM conftest*
8929         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8930
8931         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8932   (eval $ac_compile) 2>&5
8933   ac_status=$?
8934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8935   test $ac_status = 0; } 2>conftest.err; then
8936           soname=conftest
8937           lib=conftest
8938           libobjs=conftest.$ac_objext
8939           deplibs=
8940           wl=$lt_prog_compiler_wl
8941           pic_flag=$lt_prog_compiler_pic
8942           compiler_flags=-v
8943           linker_flags=-v
8944           verstring=
8945           output_objdir=.
8946           libname=conftest
8947           lt_save_allow_undefined_flag=$allow_undefined_flag
8948           allow_undefined_flag=
8949           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8950   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8951   ac_status=$?
8952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8953   test $ac_status = 0; }
8954           then
8955             lt_cv_archive_cmds_need_lc=no
8956           else
8957             lt_cv_archive_cmds_need_lc=yes
8958           fi
8959           allow_undefined_flag=$lt_save_allow_undefined_flag
8960         else
8961           cat conftest.err 1>&5
8962         fi
8963         $RM conftest*
8964
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8967 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8968       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8969       ;;
8970     esac
8971   fi
8972   ;;
8973 esac
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9127 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9128
9129 if test "$GCC" = yes; then
9130   case $host_os in
9131     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9132     *) lt_awk_arg="/^libraries:/" ;;
9133   esac
9134   case $host_os in
9135     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9136     *) lt_sed_strip_eq="s,=/,/,g" ;;
9137   esac
9138   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9139   case $lt_search_path_spec in
9140   *\;*)
9141     # if the path contains ";" then we assume it to be the separator
9142     # otherwise default to the standard path separator (i.e. ":") - it is
9143     # assumed that no part of a normal pathname contains ";" but that should
9144     # okay in the real world where ";" in dirpaths is itself problematic.
9145     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9146     ;;
9147   *)
9148     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9149     ;;
9150   esac
9151   # Ok, now we have the path, separated by spaces, we can step through it
9152   # and add multilib dir if necessary.
9153   lt_tmp_lt_search_path_spec=
9154   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9155   for lt_sys_path in $lt_search_path_spec; do
9156     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9157       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9158     else
9159       test -d "$lt_sys_path" && \
9160         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9161     fi
9162   done
9163   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9164 BEGIN {RS=" "; FS="/|\n";} {
9165   lt_foo="";
9166   lt_count=0;
9167   for (lt_i = NF; lt_i > 0; lt_i--) {
9168     if ($lt_i != "" && $lt_i != ".") {
9169       if ($lt_i == "..") {
9170         lt_count++;
9171       } else {
9172         if (lt_count == 0) {
9173           lt_foo="/" $lt_i lt_foo;
9174         } else {
9175           lt_count--;
9176         }
9177       }
9178     }
9179   }
9180   if (lt_foo != "") { lt_freq[lt_foo]++; }
9181   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9182 }'`
9183   # AWK program above erroneously prepends '/' to C:/dos/paths
9184   # for these hosts.
9185   case $host_os in
9186     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9187       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9188   esac
9189   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9190 else
9191   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9192 fi
9193 library_names_spec=
9194 libname_spec='lib$name'
9195 soname_spec=
9196 shrext_cmds=".so"
9197 postinstall_cmds=
9198 postuninstall_cmds=
9199 finish_cmds=
9200 finish_eval=
9201 shlibpath_var=
9202 shlibpath_overrides_runpath=unknown
9203 version_type=none
9204 dynamic_linker="$host_os ld.so"
9205 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9206 need_lib_prefix=unknown
9207 hardcode_into_libs=no
9208
9209 # when you set need_version to no, make sure it does not cause -set_version
9210 # flags to be left without arguments
9211 need_version=unknown
9212
9213 case $host_os in
9214 aix3*)
9215   version_type=linux # correct to gnu/linux during the next big refactor
9216   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9217   shlibpath_var=LIBPATH
9218
9219   # AIX 3 has no versioning support, so we append a major version to the name.
9220   soname_spec='${libname}${release}${shared_ext}$major'
9221   ;;
9222
9223 aix[4-9]*)
9224   version_type=linux # correct to gnu/linux during the next big refactor
9225   need_lib_prefix=no
9226   need_version=no
9227   hardcode_into_libs=yes
9228   if test "$host_cpu" = ia64; then
9229     # AIX 5 supports IA64
9230     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9231     shlibpath_var=LD_LIBRARY_PATH
9232   else
9233     # With GCC up to 2.95.x, collect2 would create an import file
9234     # for dependence libraries.  The import file would start with
9235     # the line `#! .'.  This would cause the generated library to
9236     # depend on `.', always an invalid library.  This was fixed in
9237     # development snapshots of GCC prior to 3.0.
9238     case $host_os in
9239       aix4 | aix4.[01] | aix4.[01].*)
9240       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9241            echo ' yes '
9242            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9243         :
9244       else
9245         can_build_shared=no
9246       fi
9247       ;;
9248     esac
9249     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9250     # soname into executable. Probably we can add versioning support to
9251     # collect2, so additional links can be useful in future.
9252     if test "$aix_use_runtimelinking" = yes; then
9253       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9254       # instead of lib<name>.a to let people know that these are not
9255       # typical AIX shared libraries.
9256       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9257     else
9258       # We preserve .a as extension for shared libraries through AIX4.2
9259       # and later when we are not doing run time linking.
9260       library_names_spec='${libname}${release}.a $libname.a'
9261       soname_spec='${libname}${release}${shared_ext}$major'
9262     fi
9263     shlibpath_var=LIBPATH
9264   fi
9265   ;;
9266
9267 amigaos*)
9268   case $host_cpu in
9269   powerpc)
9270     # Since July 2007 AmigaOS4 officially supports .so libraries.
9271     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9272     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9273     ;;
9274   m68k)
9275     library_names_spec='$libname.ixlibrary $libname.a'
9276     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9277     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'
9278     ;;
9279   esac
9280   ;;
9281
9282 beos*)
9283   library_names_spec='${libname}${shared_ext}'
9284   dynamic_linker="$host_os ld.so"
9285   shlibpath_var=LIBRARY_PATH
9286   ;;
9287
9288 bsdi[45]*)
9289   version_type=linux # correct to gnu/linux during the next big refactor
9290   need_version=no
9291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9292   soname_spec='${libname}${release}${shared_ext}$major'
9293   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9294   shlibpath_var=LD_LIBRARY_PATH
9295   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9296   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9297   # the default ld.so.conf also contains /usr/contrib/lib and
9298   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9299   # libtool to hard-code these into programs
9300   ;;
9301
9302 cygwin* | mingw* | pw32* | cegcc*)
9303   version_type=windows
9304   shrext_cmds=".dll"
9305   need_version=no
9306   need_lib_prefix=no
9307
9308   case $GCC,$cc_basename in
9309   yes,*)
9310     # gcc
9311     library_names_spec='$libname.dll.a'
9312     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9313     postinstall_cmds='base_file=`basename \${file}`~
9314       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9315       dldir=$destdir/`dirname \$dlpath`~
9316       test -d \$dldir || mkdir -p \$dldir~
9317       $install_prog $dir/$dlname \$dldir/$dlname~
9318       chmod a+x \$dldir/$dlname~
9319       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9320         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9321       fi'
9322     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9323       dlpath=$dir/\$dldll~
9324        $RM \$dlpath'
9325     shlibpath_overrides_runpath=yes
9326
9327     case $host_os in
9328     cygwin*)
9329       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9330       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9331
9332       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9333       ;;
9334     mingw* | cegcc*)
9335       # MinGW DLLs use traditional 'lib' prefix
9336       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9337       ;;
9338     pw32*)
9339       # pw32 DLLs use 'pw' prefix rather than 'lib'
9340       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9341       ;;
9342     esac
9343     dynamic_linker='Win32 ld.exe'
9344     ;;
9345
9346   *,cl*)
9347     # Native MSVC
9348     libname_spec='$name'
9349     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9350     library_names_spec='${libname}.dll.lib'
9351
9352     case $build_os in
9353     mingw*)
9354       sys_lib_search_path_spec=
9355       lt_save_ifs=$IFS
9356       IFS=';'
9357       for lt_path in $LIB
9358       do
9359         IFS=$lt_save_ifs
9360         # Let DOS variable expansion print the short 8.3 style file name.
9361         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9362         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9363       done
9364       IFS=$lt_save_ifs
9365       # Convert to MSYS style.
9366       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9367       ;;
9368     cygwin*)
9369       # Convert to unix form, then to dos form, then back to unix form
9370       # but this time dos style (no spaces!) so that the unix form looks
9371       # like /cygdrive/c/PROGRA~1:/cygdr...
9372       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9373       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9374       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9375       ;;
9376     *)
9377       sys_lib_search_path_spec="$LIB"
9378       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9379         # It is most probably a Windows format PATH.
9380         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9381       else
9382         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9383       fi
9384       # FIXME: find the short name or the path components, as spaces are
9385       # common. (e.g. "Program Files" -> "PROGRA~1")
9386       ;;
9387     esac
9388
9389     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9390     postinstall_cmds='base_file=`basename \${file}`~
9391       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9392       dldir=$destdir/`dirname \$dlpath`~
9393       test -d \$dldir || mkdir -p \$dldir~
9394       $install_prog $dir/$dlname \$dldir/$dlname'
9395     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9396       dlpath=$dir/\$dldll~
9397        $RM \$dlpath'
9398     shlibpath_overrides_runpath=yes
9399     dynamic_linker='Win32 link.exe'
9400     ;;
9401
9402   *)
9403     # Assume MSVC wrapper
9404     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9405     dynamic_linker='Win32 ld.exe'
9406     ;;
9407   esac
9408   # FIXME: first we should search . and the directory the executable is in
9409   shlibpath_var=PATH
9410   ;;
9411
9412 darwin* | rhapsody*)
9413   dynamic_linker="$host_os dyld"
9414   version_type=darwin
9415   need_lib_prefix=no
9416   need_version=no
9417   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9418   soname_spec='${libname}${release}${major}$shared_ext'
9419   shlibpath_overrides_runpath=yes
9420   shlibpath_var=DYLD_LIBRARY_PATH
9421   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9422
9423   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9424   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9425   ;;
9426
9427 dgux*)
9428   version_type=linux # correct to gnu/linux during the next big refactor
9429   need_lib_prefix=no
9430   need_version=no
9431   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9432   soname_spec='${libname}${release}${shared_ext}$major'
9433   shlibpath_var=LD_LIBRARY_PATH
9434   ;;
9435
9436 freebsd* | dragonfly*)
9437   # DragonFly does not have aout.  When/if they implement a new
9438   # versioning mechanism, adjust this.
9439   if test -x /usr/bin/objformat; then
9440     objformat=`/usr/bin/objformat`
9441   else
9442     case $host_os in
9443     freebsd[23].*) objformat=aout ;;
9444     *) objformat=elf ;;
9445     esac
9446   fi
9447   version_type=freebsd-$objformat
9448   case $version_type in
9449     freebsd-elf*)
9450       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9451       need_version=no
9452       need_lib_prefix=no
9453       ;;
9454     freebsd-*)
9455       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9456       need_version=yes
9457       ;;
9458   esac
9459   shlibpath_var=LD_LIBRARY_PATH
9460   case $host_os in
9461   freebsd2.*)
9462     shlibpath_overrides_runpath=yes
9463     ;;
9464   freebsd3.[01]* | freebsdelf3.[01]*)
9465     shlibpath_overrides_runpath=yes
9466     hardcode_into_libs=yes
9467     ;;
9468   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9469   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9470     shlibpath_overrides_runpath=no
9471     hardcode_into_libs=yes
9472     ;;
9473   *) # from 4.6 on, and DragonFly
9474     shlibpath_overrides_runpath=yes
9475     hardcode_into_libs=yes
9476     ;;
9477   esac
9478   ;;
9479
9480 gnu*)
9481   version_type=linux # correct to gnu/linux during the next big refactor
9482   need_lib_prefix=no
9483   need_version=no
9484   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9485   soname_spec='${libname}${release}${shared_ext}$major'
9486   shlibpath_var=LD_LIBRARY_PATH
9487   shlibpath_overrides_runpath=no
9488   hardcode_into_libs=yes
9489   ;;
9490
9491 haiku*)
9492   version_type=linux # correct to gnu/linux during the next big refactor
9493   need_lib_prefix=no
9494   need_version=no
9495   dynamic_linker="$host_os runtime_loader"
9496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9497   soname_spec='${libname}${release}${shared_ext}$major'
9498   shlibpath_var=LIBRARY_PATH
9499   shlibpath_overrides_runpath=yes
9500   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9501   hardcode_into_libs=yes
9502   ;;
9503
9504 hpux9* | hpux10* | hpux11*)
9505   # Give a soname corresponding to the major version so that dld.sl refuses to
9506   # link against other versions.
9507   version_type=sunos
9508   need_lib_prefix=no
9509   need_version=no
9510   case $host_cpu in
9511   ia64*)
9512     shrext_cmds='.so'
9513     hardcode_into_libs=yes
9514     dynamic_linker="$host_os dld.so"
9515     shlibpath_var=LD_LIBRARY_PATH
9516     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9517     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9518     soname_spec='${libname}${release}${shared_ext}$major'
9519     if test "X$HPUX_IA64_MODE" = X32; then
9520       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9521     else
9522       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9523     fi
9524     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9525     ;;
9526   hppa*64*)
9527     shrext_cmds='.sl'
9528     hardcode_into_libs=yes
9529     dynamic_linker="$host_os dld.sl"
9530     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9531     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533     soname_spec='${libname}${release}${shared_ext}$major'
9534     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9535     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9536     ;;
9537   *)
9538     shrext_cmds='.sl'
9539     dynamic_linker="$host_os dld.sl"
9540     shlibpath_var=SHLIB_PATH
9541     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543     soname_spec='${libname}${release}${shared_ext}$major'
9544     ;;
9545   esac
9546   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9547   postinstall_cmds='chmod 555 $lib'
9548   # or fails outright, so override atomically:
9549   install_override_mode=555
9550   ;;
9551
9552 interix[3-9]*)
9553   version_type=linux # correct to gnu/linux during the next big refactor
9554   need_lib_prefix=no
9555   need_version=no
9556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9557   soname_spec='${libname}${release}${shared_ext}$major'
9558   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9559   shlibpath_var=LD_LIBRARY_PATH
9560   shlibpath_overrides_runpath=no
9561   hardcode_into_libs=yes
9562   ;;
9563
9564 irix5* | irix6* | nonstopux*)
9565   case $host_os in
9566     nonstopux*) version_type=nonstopux ;;
9567     *)
9568         if test "$lt_cv_prog_gnu_ld" = yes; then
9569                 version_type=linux # correct to gnu/linux during the next big refactor
9570         else
9571                 version_type=irix
9572         fi ;;
9573   esac
9574   need_lib_prefix=no
9575   need_version=no
9576   soname_spec='${libname}${release}${shared_ext}$major'
9577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9578   case $host_os in
9579   irix5* | nonstopux*)
9580     libsuff= shlibsuff=
9581     ;;
9582   *)
9583     case $LD in # libtool.m4 will add one of these switches to LD
9584     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9585       libsuff= shlibsuff= libmagic=32-bit;;
9586     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9587       libsuff=32 shlibsuff=N32 libmagic=N32;;
9588     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9589       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9590     *) libsuff= shlibsuff= libmagic=never-match;;
9591     esac
9592     ;;
9593   esac
9594   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9595   shlibpath_overrides_runpath=no
9596   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9597   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9598   hardcode_into_libs=yes
9599   ;;
9600
9601 # No shared lib support for Linux oldld, aout, or coff.
9602 linux*oldld* | linux*aout* | linux*coff*)
9603   dynamic_linker=no
9604   ;;
9605
9606 # This must be glibc/ELF.
9607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9608   version_type=linux # correct to gnu/linux during the next big refactor
9609   need_lib_prefix=no
9610   need_version=no
9611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612   soname_spec='${libname}${release}${shared_ext}$major'
9613   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9614   shlibpath_var=LD_LIBRARY_PATH
9615   shlibpath_overrides_runpath=no
9616
9617   # Some binutils ld are patched to set DT_RUNPATH
9618   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
9619   $as_echo_n "(cached) " >&6
9620 else
9621   lt_cv_shlibpath_overrides_runpath=no
9622     save_LDFLAGS=$LDFLAGS
9623     save_libdir=$libdir
9624     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9625          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9626     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h.  */
9628
9629 int
9630 main ()
9631 {
9632
9633   ;
9634   return 0;
9635 }
9636 _ACEOF
9637 if ac_fn_c_try_link "$LINENO"; then :
9638   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9639   lt_cv_shlibpath_overrides_runpath=yes
9640 fi
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext \
9643     conftest$ac_exeext conftest.$ac_ext
9644     LDFLAGS=$save_LDFLAGS
9645     libdir=$save_libdir
9646
9647 fi
9648
9649   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9650
9651   # This implies no fast_install, which is unacceptable.
9652   # Some rework will be needed to allow for fast_install
9653   # before this can be enabled.
9654   hardcode_into_libs=yes
9655
9656   # Add ABI-specific directories to the system library path.
9657   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
9658
9659   # Append ld.so.conf contents to the search path
9660   if test -f /etc/ld.so.conf; then
9661     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' ' '`
9662     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9663
9664   fi
9665
9666   # We used to test for /lib/ld.so.1 and disable shared libraries on
9667   # powerpc, because MkLinux only supported shared libraries with the
9668   # GNU dynamic linker.  Since this was broken with cross compilers,
9669   # most powerpc-linux boxes support dynamic linking these days and
9670   # people can always --disable-shared, the test was removed, and we
9671   # assume the GNU/Linux dynamic linker is in use.
9672   dynamic_linker='GNU/Linux ld.so'
9673   ;;
9674
9675 netbsd*)
9676   version_type=sunos
9677   need_lib_prefix=no
9678   need_version=no
9679   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9681     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9682     dynamic_linker='NetBSD (a.out) ld.so'
9683   else
9684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9685     soname_spec='${libname}${release}${shared_ext}$major'
9686     dynamic_linker='NetBSD ld.elf_so'
9687   fi
9688   shlibpath_var=LD_LIBRARY_PATH
9689   shlibpath_overrides_runpath=yes
9690   hardcode_into_libs=yes
9691   ;;
9692
9693 newsos6)
9694   version_type=linux # correct to gnu/linux during the next big refactor
9695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9696   shlibpath_var=LD_LIBRARY_PATH
9697   shlibpath_overrides_runpath=yes
9698   ;;
9699
9700 *nto* | *qnx*)
9701   version_type=qnx
9702   need_lib_prefix=no
9703   need_version=no
9704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705   soname_spec='${libname}${release}${shared_ext}$major'
9706   shlibpath_var=LD_LIBRARY_PATH
9707   shlibpath_overrides_runpath=no
9708   hardcode_into_libs=yes
9709   dynamic_linker='ldqnx.so'
9710   ;;
9711
9712 openbsd*)
9713   version_type=sunos
9714   sys_lib_dlsearch_path_spec="/usr/lib"
9715   need_lib_prefix=no
9716   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9717   case $host_os in
9718     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9719     *)                          need_version=no  ;;
9720   esac
9721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9722   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9723   shlibpath_var=LD_LIBRARY_PATH
9724   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9725     case $host_os in
9726       openbsd2.[89] | openbsd2.[89].*)
9727         shlibpath_overrides_runpath=no
9728         ;;
9729       *)
9730         shlibpath_overrides_runpath=yes
9731         ;;
9732       esac
9733   else
9734     shlibpath_overrides_runpath=yes
9735   fi
9736   ;;
9737
9738 os2*)
9739   libname_spec='$name'
9740   shrext_cmds=".dll"
9741   need_lib_prefix=no
9742   library_names_spec='$libname${shared_ext} $libname.a'
9743   dynamic_linker='OS/2 ld.exe'
9744   shlibpath_var=LIBPATH
9745   ;;
9746
9747 osf3* | osf4* | osf5*)
9748   version_type=osf
9749   need_lib_prefix=no
9750   need_version=no
9751   soname_spec='${libname}${release}${shared_ext}$major'
9752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753   shlibpath_var=LD_LIBRARY_PATH
9754   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9755   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9756   ;;
9757
9758 rdos*)
9759   dynamic_linker=no
9760   ;;
9761
9762 solaris*)
9763   version_type=linux # correct to gnu/linux during the next big refactor
9764   need_lib_prefix=no
9765   need_version=no
9766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9767   soname_spec='${libname}${release}${shared_ext}$major'
9768   shlibpath_var=LD_LIBRARY_PATH
9769   shlibpath_overrides_runpath=yes
9770   hardcode_into_libs=yes
9771   # ldd complains unless libraries are executable
9772   postinstall_cmds='chmod +x $lib'
9773   ;;
9774
9775 sunos4*)
9776   version_type=sunos
9777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9778   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9779   shlibpath_var=LD_LIBRARY_PATH
9780   shlibpath_overrides_runpath=yes
9781   if test "$with_gnu_ld" = yes; then
9782     need_lib_prefix=no
9783   fi
9784   need_version=yes
9785   ;;
9786
9787 sysv4 | sysv4.3*)
9788   version_type=linux # correct to gnu/linux during the next big refactor
9789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790   soname_spec='${libname}${release}${shared_ext}$major'
9791   shlibpath_var=LD_LIBRARY_PATH
9792   case $host_vendor in
9793     sni)
9794       shlibpath_overrides_runpath=no
9795       need_lib_prefix=no
9796       runpath_var=LD_RUN_PATH
9797       ;;
9798     siemens)
9799       need_lib_prefix=no
9800       ;;
9801     motorola)
9802       need_lib_prefix=no
9803       need_version=no
9804       shlibpath_overrides_runpath=no
9805       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9806       ;;
9807   esac
9808   ;;
9809
9810 sysv4*MP*)
9811   if test -d /usr/nec ;then
9812     version_type=linux # correct to gnu/linux during the next big refactor
9813     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9814     soname_spec='$libname${shared_ext}.$major'
9815     shlibpath_var=LD_LIBRARY_PATH
9816   fi
9817   ;;
9818
9819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9820   version_type=freebsd-elf
9821   need_lib_prefix=no
9822   need_version=no
9823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9824   soname_spec='${libname}${release}${shared_ext}$major'
9825   shlibpath_var=LD_LIBRARY_PATH
9826   shlibpath_overrides_runpath=yes
9827   hardcode_into_libs=yes
9828   if test "$with_gnu_ld" = yes; then
9829     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9830   else
9831     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9832     case $host_os in
9833       sco3.2v5*)
9834         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9835         ;;
9836     esac
9837   fi
9838   sys_lib_dlsearch_path_spec='/usr/lib'
9839   ;;
9840
9841 tpf*)
9842   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9843   version_type=linux # correct to gnu/linux during the next big refactor
9844   need_lib_prefix=no
9845   need_version=no
9846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847   shlibpath_var=LD_LIBRARY_PATH
9848   shlibpath_overrides_runpath=no
9849   hardcode_into_libs=yes
9850   ;;
9851
9852 uts4*)
9853   version_type=linux # correct to gnu/linux during the next big refactor
9854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9855   soname_spec='${libname}${release}${shared_ext}$major'
9856   shlibpath_var=LD_LIBRARY_PATH
9857   ;;
9858
9859 *)
9860   dynamic_linker=no
9861   ;;
9862 esac
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9864 $as_echo "$dynamic_linker" >&6; }
9865 test "$dynamic_linker" = no && can_build_shared=no
9866
9867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9868 if test "$GCC" = yes; then
9869   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9870 fi
9871
9872 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9873   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9874 fi
9875 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9876   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9877 fi
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9971 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9972 hardcode_action=
9973 if test -n "$hardcode_libdir_flag_spec" ||
9974    test -n "$runpath_var" ||
9975    test "X$hardcode_automatic" = "Xyes" ; then
9976
9977   # We can hardcode non-existent directories.
9978   if test "$hardcode_direct" != no &&
9979      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9980      # have to relink, otherwise we might link with an installed library
9981      # when we should be linking with a yet-to-be-installed one
9982      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9983      test "$hardcode_minus_L" != no; then
9984     # Linking always hardcodes the temporary library directory.
9985     hardcode_action=relink
9986   else
9987     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9988     hardcode_action=immediate
9989   fi
9990 else
9991   # We cannot hardcode anything, or else we can only hardcode existing
9992   # directories.
9993   hardcode_action=unsupported
9994 fi
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9996 $as_echo "$hardcode_action" >&6; }
9997
9998 if test "$hardcode_action" = relink ||
9999    test "$inherit_rpath" = yes; then
10000   # Fast installation is not supported
10001   enable_fast_install=no
10002 elif test "$shlibpath_overrides_runpath" = yes ||
10003      test "$enable_shared" = no; then
10004   # Fast installation is not necessary
10005   enable_fast_install=needless
10006 fi
10007
10008
10009
10010
10011
10012
10013   if test "x$enable_dlopen" != xyes; then
10014   enable_dlopen=unknown
10015   enable_dlopen_self=unknown
10016   enable_dlopen_self_static=unknown
10017 else
10018   lt_cv_dlopen=no
10019   lt_cv_dlopen_libs=
10020
10021   case $host_os in
10022   beos*)
10023     lt_cv_dlopen="load_add_on"
10024     lt_cv_dlopen_libs=
10025     lt_cv_dlopen_self=yes
10026     ;;
10027
10028   mingw* | pw32* | cegcc*)
10029     lt_cv_dlopen="LoadLibrary"
10030     lt_cv_dlopen_libs=
10031     ;;
10032
10033   cygwin*)
10034     lt_cv_dlopen="dlopen"
10035     lt_cv_dlopen_libs=
10036     ;;
10037
10038   darwin*)
10039   # if libdl is installed we need to link against it
10040     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10041 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10042 if ${ac_cv_lib_dl_dlopen+:} false; then :
10043   $as_echo_n "(cached) " >&6
10044 else
10045   ac_check_lib_save_LIBS=$LIBS
10046 LIBS="-ldl  $LIBS"
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h.  */
10049
10050 /* Override any GCC internal prototype to avoid an error.
10051    Use char because int might match the return type of a GCC
10052    builtin and then its argument prototype would still apply.  */
10053 #ifdef __cplusplus
10054 extern "C"
10055 #endif
10056 char dlopen ();
10057 int
10058 main ()
10059 {
10060 return dlopen ();
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"; then :
10066   ac_cv_lib_dl_dlopen=yes
10067 else
10068   ac_cv_lib_dl_dlopen=no
10069 fi
10070 rm -f core conftest.err conftest.$ac_objext \
10071     conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10073 fi
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10075 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10076 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10077   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10078 else
10079
10080     lt_cv_dlopen="dyld"
10081     lt_cv_dlopen_libs=
10082     lt_cv_dlopen_self=yes
10083
10084 fi
10085
10086     ;;
10087
10088   *)
10089     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10090 if test "x$ac_cv_func_shl_load" = xyes; then :
10091   lt_cv_dlopen="shl_load"
10092 else
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10094 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10095 if ${ac_cv_lib_dld_shl_load+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   ac_check_lib_save_LIBS=$LIBS
10099 LIBS="-ldld  $LIBS"
10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 /* end confdefs.h.  */
10102
10103 /* Override any GCC internal prototype to avoid an error.
10104    Use char because int might match the return type of a GCC
10105    builtin and then its argument prototype would still apply.  */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char shl_load ();
10110 int
10111 main ()
10112 {
10113 return shl_load ();
10114   ;
10115   return 0;
10116 }
10117 _ACEOF
10118 if ac_fn_c_try_link "$LINENO"; then :
10119   ac_cv_lib_dld_shl_load=yes
10120 else
10121   ac_cv_lib_dld_shl_load=no
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext \
10124     conftest$ac_exeext conftest.$ac_ext
10125 LIBS=$ac_check_lib_save_LIBS
10126 fi
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10128 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10129 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10130   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10131 else
10132   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10133 if test "x$ac_cv_func_dlopen" = xyes; then :
10134   lt_cv_dlopen="dlopen"
10135 else
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10138 if ${ac_cv_lib_dl_dlopen+:} false; then :
10139   $as_echo_n "(cached) " >&6
10140 else
10141   ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-ldl  $LIBS"
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h.  */
10145
10146 /* Override any GCC internal prototype to avoid an error.
10147    Use char because int might match the return type of a GCC
10148    builtin and then its argument prototype would still apply.  */
10149 #ifdef __cplusplus
10150 extern "C"
10151 #endif
10152 char dlopen ();
10153 int
10154 main ()
10155 {
10156 return dlopen ();
10157   ;
10158   return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"; then :
10162   ac_cv_lib_dl_dlopen=yes
10163 else
10164   ac_cv_lib_dl_dlopen=no
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext \
10167     conftest$ac_exeext conftest.$ac_ext
10168 LIBS=$ac_check_lib_save_LIBS
10169 fi
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10173   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10174 else
10175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10176 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10177 if ${ac_cv_lib_svld_dlopen+:} false; then :
10178   $as_echo_n "(cached) " >&6
10179 else
10180   ac_check_lib_save_LIBS=$LIBS
10181 LIBS="-lsvld  $LIBS"
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h.  */
10184
10185 /* Override any GCC internal prototype to avoid an error.
10186    Use char because int might match the return type of a GCC
10187    builtin and then its argument prototype would still apply.  */
10188 #ifdef __cplusplus
10189 extern "C"
10190 #endif
10191 char dlopen ();
10192 int
10193 main ()
10194 {
10195 return dlopen ();
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 if ac_fn_c_try_link "$LINENO"; then :
10201   ac_cv_lib_svld_dlopen=yes
10202 else
10203   ac_cv_lib_svld_dlopen=no
10204 fi
10205 rm -f core conftest.err conftest.$ac_objext \
10206     conftest$ac_exeext conftest.$ac_ext
10207 LIBS=$ac_check_lib_save_LIBS
10208 fi
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10210 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10211 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10212   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10213 else
10214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10215 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10216 if ${ac_cv_lib_dld_dld_link+:} false; then :
10217   $as_echo_n "(cached) " >&6
10218 else
10219   ac_check_lib_save_LIBS=$LIBS
10220 LIBS="-ldld  $LIBS"
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h.  */
10223
10224 /* Override any GCC internal prototype to avoid an error.
10225    Use char because int might match the return type of a GCC
10226    builtin and then its argument prototype would still apply.  */
10227 #ifdef __cplusplus
10228 extern "C"
10229 #endif
10230 char dld_link ();
10231 int
10232 main ()
10233 {
10234 return dld_link ();
10235   ;
10236   return 0;
10237 }
10238 _ACEOF
10239 if ac_fn_c_try_link "$LINENO"; then :
10240   ac_cv_lib_dld_dld_link=yes
10241 else
10242   ac_cv_lib_dld_dld_link=no
10243 fi
10244 rm -f core conftest.err conftest.$ac_objext \
10245     conftest$ac_exeext conftest.$ac_ext
10246 LIBS=$ac_check_lib_save_LIBS
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10249 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10250 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10251   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10252 fi
10253
10254
10255 fi
10256
10257
10258 fi
10259
10260
10261 fi
10262
10263
10264 fi
10265
10266
10267 fi
10268
10269     ;;
10270   esac
10271
10272   if test "x$lt_cv_dlopen" != xno; then
10273     enable_dlopen=yes
10274   else
10275     enable_dlopen=no
10276   fi
10277
10278   case $lt_cv_dlopen in
10279   dlopen)
10280     save_CPPFLAGS="$CPPFLAGS"
10281     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10282
10283     save_LDFLAGS="$LDFLAGS"
10284     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10285
10286     save_LIBS="$LIBS"
10287     LIBS="$lt_cv_dlopen_libs $LIBS"
10288
10289     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10290 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10291 if ${lt_cv_dlopen_self+:} false; then :
10292   $as_echo_n "(cached) " >&6
10293 else
10294           if test "$cross_compiling" = yes; then :
10295   lt_cv_dlopen_self=cross
10296 else
10297   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10298   lt_status=$lt_dlunknown
10299   cat > conftest.$ac_ext <<_LT_EOF
10300 #line $LINENO "configure"
10301 #include "confdefs.h"
10302
10303 #if HAVE_DLFCN_H
10304 #include <dlfcn.h>
10305 #endif
10306
10307 #include <stdio.h>
10308
10309 #ifdef RTLD_GLOBAL
10310 #  define LT_DLGLOBAL           RTLD_GLOBAL
10311 #else
10312 #  ifdef DL_GLOBAL
10313 #    define LT_DLGLOBAL         DL_GLOBAL
10314 #  else
10315 #    define LT_DLGLOBAL         0
10316 #  endif
10317 #endif
10318
10319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10320    find out it does not work in some platform. */
10321 #ifndef LT_DLLAZY_OR_NOW
10322 #  ifdef RTLD_LAZY
10323 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10324 #  else
10325 #    ifdef DL_LAZY
10326 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10327 #    else
10328 #      ifdef RTLD_NOW
10329 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10330 #      else
10331 #        ifdef DL_NOW
10332 #          define LT_DLLAZY_OR_NOW      DL_NOW
10333 #        else
10334 #          define LT_DLLAZY_OR_NOW      0
10335 #        endif
10336 #      endif
10337 #    endif
10338 #  endif
10339 #endif
10340
10341 /* When -fvisbility=hidden is used, assume the code has been annotated
10342    correspondingly for the symbols needed.  */
10343 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10344 int fnord () __attribute__((visibility("default")));
10345 #endif
10346
10347 int fnord () { return 42; }
10348 int main ()
10349 {
10350   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351   int status = $lt_dlunknown;
10352
10353   if (self)
10354     {
10355       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10356       else
10357         {
10358           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10359           else puts (dlerror ());
10360         }
10361       /* dlclose (self); */
10362     }
10363   else
10364     puts (dlerror ());
10365
10366   return status;
10367 }
10368 _LT_EOF
10369   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10370   (eval $ac_link) 2>&5
10371   ac_status=$?
10372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10373   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10374     (./conftest; exit; ) >&5 2>/dev/null
10375     lt_status=$?
10376     case x$lt_status in
10377       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10378       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10379       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10380     esac
10381   else :
10382     # compilation failed
10383     lt_cv_dlopen_self=no
10384   fi
10385 fi
10386 rm -fr conftest*
10387
10388
10389 fi
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10391 $as_echo "$lt_cv_dlopen_self" >&6; }
10392
10393     if test "x$lt_cv_dlopen_self" = xyes; then
10394       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10395       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10396 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10397 if ${lt_cv_dlopen_self_static+:} false; then :
10398   $as_echo_n "(cached) " >&6
10399 else
10400           if test "$cross_compiling" = yes; then :
10401   lt_cv_dlopen_self_static=cross
10402 else
10403   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10404   lt_status=$lt_dlunknown
10405   cat > conftest.$ac_ext <<_LT_EOF
10406 #line $LINENO "configure"
10407 #include "confdefs.h"
10408
10409 #if HAVE_DLFCN_H
10410 #include <dlfcn.h>
10411 #endif
10412
10413 #include <stdio.h>
10414
10415 #ifdef RTLD_GLOBAL
10416 #  define LT_DLGLOBAL           RTLD_GLOBAL
10417 #else
10418 #  ifdef DL_GLOBAL
10419 #    define LT_DLGLOBAL         DL_GLOBAL
10420 #  else
10421 #    define LT_DLGLOBAL         0
10422 #  endif
10423 #endif
10424
10425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10426    find out it does not work in some platform. */
10427 #ifndef LT_DLLAZY_OR_NOW
10428 #  ifdef RTLD_LAZY
10429 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10430 #  else
10431 #    ifdef DL_LAZY
10432 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10433 #    else
10434 #      ifdef RTLD_NOW
10435 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10436 #      else
10437 #        ifdef DL_NOW
10438 #          define LT_DLLAZY_OR_NOW      DL_NOW
10439 #        else
10440 #          define LT_DLLAZY_OR_NOW      0
10441 #        endif
10442 #      endif
10443 #    endif
10444 #  endif
10445 #endif
10446
10447 /* When -fvisbility=hidden is used, assume the code has been annotated
10448    correspondingly for the symbols needed.  */
10449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10450 int fnord () __attribute__((visibility("default")));
10451 #endif
10452
10453 int fnord () { return 42; }
10454 int main ()
10455 {
10456   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10457   int status = $lt_dlunknown;
10458
10459   if (self)
10460     {
10461       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10462       else
10463         {
10464           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10465           else puts (dlerror ());
10466         }
10467       /* dlclose (self); */
10468     }
10469   else
10470     puts (dlerror ());
10471
10472   return status;
10473 }
10474 _LT_EOF
10475   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10476   (eval $ac_link) 2>&5
10477   ac_status=$?
10478   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10480     (./conftest; exit; ) >&5 2>/dev/null
10481     lt_status=$?
10482     case x$lt_status in
10483       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10484       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10485       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10486     esac
10487   else :
10488     # compilation failed
10489     lt_cv_dlopen_self_static=no
10490   fi
10491 fi
10492 rm -fr conftest*
10493
10494
10495 fi
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10497 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10498     fi
10499
10500     CPPFLAGS="$save_CPPFLAGS"
10501     LDFLAGS="$save_LDFLAGS"
10502     LIBS="$save_LIBS"
10503     ;;
10504   esac
10505
10506   case $lt_cv_dlopen_self in
10507   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10508   *) enable_dlopen_self=unknown ;;
10509   esac
10510
10511   case $lt_cv_dlopen_self_static in
10512   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10513   *) enable_dlopen_self_static=unknown ;;
10514   esac
10515 fi
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533 striplib=
10534 old_striplib=
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10536 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10538   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10539   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10541 $as_echo "yes" >&6; }
10542 else
10543 # FIXME - insert some real tests, host_os isn't really good enough
10544   case $host_os in
10545   darwin*)
10546     if test -n "$STRIP" ; then
10547       striplib="$STRIP -x"
10548       old_striplib="$STRIP -S"
10549       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10550 $as_echo "yes" >&6; }
10551     else
10552       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10554     fi
10555     ;;
10556   *)
10557     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10559     ;;
10560   esac
10561 fi
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574   # Report which library types will actually be built
10575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10576 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10578 $as_echo "$can_build_shared" >&6; }
10579
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10581 $as_echo_n "checking whether to build shared libraries... " >&6; }
10582   test "$can_build_shared" = "no" && enable_shared=no
10583
10584   # On AIX, shared libraries and static libraries use the same namespace, and
10585   # are all built from PIC.
10586   case $host_os in
10587   aix3*)
10588     test "$enable_shared" = yes && enable_static=no
10589     if test -n "$RANLIB"; then
10590       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10591       postinstall_cmds='$RANLIB $lib'
10592     fi
10593     ;;
10594
10595   aix[4-9]*)
10596     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10597       test "$enable_shared" = yes && enable_static=no
10598     fi
10599     ;;
10600   esac
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10602 $as_echo "$enable_shared" >&6; }
10603
10604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10605 $as_echo_n "checking whether to build static libraries... " >&6; }
10606   # Make sure either enable_shared or enable_static is yes.
10607   test "$enable_shared" = yes || enable_static=yes
10608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10609 $as_echo "$enable_static" >&6; }
10610
10611
10612
10613
10614 fi
10615 ac_ext=c
10616 ac_cpp='$CPP $CPPFLAGS'
10617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10620
10621 CC="$lt_save_CC"
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637         ac_config_commands="$ac_config_commands libtool"
10638
10639
10640
10641
10642 # Only expand once:
10643
10644
10645
10646 # Check whether --enable-shared was given.
10647 if test "${enable_shared+set}" = set; then :
10648   enableval=$enable_shared;
10649 else
10650   enable_shared=yes
10651 fi
10652
10653
10654
10655 # Check whether --enable-gettext was given.
10656 if test "${enable_gettext+set}" = set; then :
10657   enableval=$enable_gettext;
10658 else
10659   enable_gettext=yes
10660 fi
10661
10662
10663
10664 # Check whether --enable-lib64 was given.
10665 if test "${enable_lib64+set}" = set; then :
10666   enableval=$enable_lib64;
10667 else
10668   enable_lib64=no
10669 fi
10670
10671
10672
10673  pkg_name="acl"
10674
10675
10676     ac_ext=c
10677 ac_cpp='$CPP $CPPFLAGS'
10678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10681 if test -n "$ac_tool_prefix"; then
10682   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10683 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685 $as_echo_n "checking for $ac_word... " >&6; }
10686 if ${ac_cv_prog_CC+:} false; then :
10687   $as_echo_n "(cached) " >&6
10688 else
10689   if test -n "$CC"; then
10690   ac_cv_prog_CC="$CC" # Let the user override the test.
10691 else
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10694 do
10695   IFS=$as_save_IFS
10696   test -z "$as_dir" && as_dir=.
10697     for ac_exec_ext in '' $ac_executable_extensions; do
10698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701     break 2
10702   fi
10703 done
10704   done
10705 IFS=$as_save_IFS
10706
10707 fi
10708 fi
10709 CC=$ac_cv_prog_CC
10710 if test -n "$CC"; then
10711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10712 $as_echo "$CC" >&6; }
10713 else
10714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715 $as_echo "no" >&6; }
10716 fi
10717
10718
10719 fi
10720 if test -z "$ac_cv_prog_CC"; then
10721   ac_ct_CC=$CC
10722   # Extract the first word of "gcc", so it can be a program name with args.
10723 set dummy gcc; ac_word=$2
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10725 $as_echo_n "checking for $ac_word... " >&6; }
10726 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10727   $as_echo_n "(cached) " >&6
10728 else
10729   if test -n "$ac_ct_CC"; then
10730   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10731 else
10732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10734 do
10735   IFS=$as_save_IFS
10736   test -z "$as_dir" && as_dir=.
10737     for ac_exec_ext in '' $ac_executable_extensions; do
10738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739     ac_cv_prog_ac_ct_CC="gcc"
10740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741     break 2
10742   fi
10743 done
10744   done
10745 IFS=$as_save_IFS
10746
10747 fi
10748 fi
10749 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10750 if test -n "$ac_ct_CC"; then
10751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10752 $as_echo "$ac_ct_CC" >&6; }
10753 else
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10756 fi
10757
10758   if test "x$ac_ct_CC" = x; then
10759     CC=""
10760   else
10761     case $cross_compiling:$ac_tool_warned in
10762 yes:)
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10765 ac_tool_warned=yes ;;
10766 esac
10767     CC=$ac_ct_CC
10768   fi
10769 else
10770   CC="$ac_cv_prog_CC"
10771 fi
10772
10773 if test -z "$CC"; then
10774           if test -n "$ac_tool_prefix"; then
10775     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10776 set dummy ${ac_tool_prefix}cc; ac_word=$2
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778 $as_echo_n "checking for $ac_word... " >&6; }
10779 if ${ac_cv_prog_CC+:} false; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782   if test -n "$CC"; then
10783   ac_cv_prog_CC="$CC" # Let the user override the test.
10784 else
10785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786 for as_dir in $PATH
10787 do
10788   IFS=$as_save_IFS
10789   test -z "$as_dir" && as_dir=.
10790     for ac_exec_ext in '' $ac_executable_extensions; do
10791   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10792     ac_cv_prog_CC="${ac_tool_prefix}cc"
10793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794     break 2
10795   fi
10796 done
10797   done
10798 IFS=$as_save_IFS
10799
10800 fi
10801 fi
10802 CC=$ac_cv_prog_CC
10803 if test -n "$CC"; then
10804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10805 $as_echo "$CC" >&6; }
10806 else
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808 $as_echo "no" >&6; }
10809 fi
10810
10811
10812   fi
10813 fi
10814 if test -z "$CC"; then
10815   # Extract the first word of "cc", so it can be a program name with args.
10816 set dummy cc; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10818 $as_echo_n "checking for $ac_word... " >&6; }
10819 if ${ac_cv_prog_CC+:} false; then :
10820   $as_echo_n "(cached) " >&6
10821 else
10822   if test -n "$CC"; then
10823   ac_cv_prog_CC="$CC" # Let the user override the test.
10824 else
10825   ac_prog_rejected=no
10826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827 for as_dir in $PATH
10828 do
10829   IFS=$as_save_IFS
10830   test -z "$as_dir" && as_dir=.
10831     for ac_exec_ext in '' $ac_executable_extensions; do
10832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10833     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10834        ac_prog_rejected=yes
10835        continue
10836      fi
10837     ac_cv_prog_CC="cc"
10838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839     break 2
10840   fi
10841 done
10842   done
10843 IFS=$as_save_IFS
10844
10845 if test $ac_prog_rejected = yes; then
10846   # We found a bogon in the path, so make sure we never use it.
10847   set dummy $ac_cv_prog_CC
10848   shift
10849   if test $# != 0; then
10850     # We chose a different compiler from the bogus one.
10851     # However, it has the same basename, so the bogon will be chosen
10852     # first if we set CC to just the basename; use the full file name.
10853     shift
10854     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10855   fi
10856 fi
10857 fi
10858 fi
10859 CC=$ac_cv_prog_CC
10860 if test -n "$CC"; then
10861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10862 $as_echo "$CC" >&6; }
10863 else
10864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10865 $as_echo "no" >&6; }
10866 fi
10867
10868
10869 fi
10870 if test -z "$CC"; then
10871   if test -n "$ac_tool_prefix"; then
10872   for ac_prog in cl.exe
10873   do
10874     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10877 $as_echo_n "checking for $ac_word... " >&6; }
10878 if ${ac_cv_prog_CC+:} false; then :
10879   $as_echo_n "(cached) " >&6
10880 else
10881   if test -n "$CC"; then
10882   ac_cv_prog_CC="$CC" # Let the user override the test.
10883 else
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10886 do
10887   IFS=$as_save_IFS
10888   test -z "$as_dir" && as_dir=.
10889     for ac_exec_ext in '' $ac_executable_extensions; do
10890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10891     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10893     break 2
10894   fi
10895 done
10896   done
10897 IFS=$as_save_IFS
10898
10899 fi
10900 fi
10901 CC=$ac_cv_prog_CC
10902 if test -n "$CC"; then
10903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10904 $as_echo "$CC" >&6; }
10905 else
10906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10907 $as_echo "no" >&6; }
10908 fi
10909
10910
10911     test -n "$CC" && break
10912   done
10913 fi
10914 if test -z "$CC"; then
10915   ac_ct_CC=$CC
10916   for ac_prog in cl.exe
10917 do
10918   # Extract the first word of "$ac_prog", so it can be a program name with args.
10919 set dummy $ac_prog; ac_word=$2
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10921 $as_echo_n "checking for $ac_word... " >&6; }
10922 if ${ac_cv_prog_ac_ct_CC+:} false; then :
10923   $as_echo_n "(cached) " >&6
10924 else
10925   if test -n "$ac_ct_CC"; then
10926   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10927 else
10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929 for as_dir in $PATH
10930 do
10931   IFS=$as_save_IFS
10932   test -z "$as_dir" && as_dir=.
10933     for ac_exec_ext in '' $ac_executable_extensions; do
10934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10935     ac_cv_prog_ac_ct_CC="$ac_prog"
10936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10937     break 2
10938   fi
10939 done
10940   done
10941 IFS=$as_save_IFS
10942
10943 fi
10944 fi
10945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10946 if test -n "$ac_ct_CC"; then
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10948 $as_echo "$ac_ct_CC" >&6; }
10949 else
10950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951 $as_echo "no" >&6; }
10952 fi
10953
10954
10955   test -n "$ac_ct_CC" && break
10956 done
10957
10958   if test "x$ac_ct_CC" = x; then
10959     CC=""
10960   else
10961     case $cross_compiling:$ac_tool_warned in
10962 yes:)
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10965 ac_tool_warned=yes ;;
10966 esac
10967     CC=$ac_ct_CC
10968   fi
10969 fi
10970
10971 fi
10972
10973
10974 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10976 as_fn_error $? "no acceptable C compiler found in \$PATH
10977 See \`config.log' for more details" "$LINENO" 5; }
10978
10979 # Provide some information about the compiler.
10980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10981 set X $ac_compile
10982 ac_compiler=$2
10983 for ac_option in --version -v -V -qversion; do
10984   { { ac_try="$ac_compiler $ac_option >&5"
10985 case "(($ac_try" in
10986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987   *) ac_try_echo=$ac_try;;
10988 esac
10989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10990 $as_echo "$ac_try_echo"; } >&5
10991   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10992   ac_status=$?
10993   if test -s conftest.err; then
10994     sed '10a\
10995 ... rest of stderr output deleted ...
10996          10q' conftest.err >conftest.er1
10997     cat conftest.er1 >&5
10998   fi
10999   rm -f conftest.er1 conftest.err
11000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11001   test $ac_status = 0; }
11002 done
11003
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11005 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11006 if ${ac_cv_c_compiler_gnu+:} false; then :
11007   $as_echo_n "(cached) " >&6
11008 else
11009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11010 /* end confdefs.h.  */
11011
11012 int
11013 main ()
11014 {
11015 #ifndef __GNUC__
11016        choke me
11017 #endif
11018
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 if ac_fn_c_try_compile "$LINENO"; then :
11024   ac_compiler_gnu=yes
11025 else
11026   ac_compiler_gnu=no
11027 fi
11028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11030
11031 fi
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11033 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11034 if test $ac_compiler_gnu = yes; then
11035   GCC=yes
11036 else
11037   GCC=
11038 fi
11039 ac_test_CFLAGS=${CFLAGS+set}
11040 ac_save_CFLAGS=$CFLAGS
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11042 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11043 if ${ac_cv_prog_cc_g+:} false; then :
11044   $as_echo_n "(cached) " >&6
11045 else
11046   ac_save_c_werror_flag=$ac_c_werror_flag
11047    ac_c_werror_flag=yes
11048    ac_cv_prog_cc_g=no
11049    CFLAGS="-g"
11050    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h.  */
11052
11053 int
11054 main ()
11055 {
11056
11057   ;
11058   return 0;
11059 }
11060 _ACEOF
11061 if ac_fn_c_try_compile "$LINENO"; then :
11062   ac_cv_prog_cc_g=yes
11063 else
11064   CFLAGS=""
11065       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h.  */
11067
11068 int
11069 main ()
11070 {
11071
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_compile "$LINENO"; then :
11077
11078 else
11079   ac_c_werror_flag=$ac_save_c_werror_flag
11080          CFLAGS="-g"
11081          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11082 /* end confdefs.h.  */
11083
11084 int
11085 main ()
11086 {
11087
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_compile "$LINENO"; then :
11093   ac_cv_prog_cc_g=yes
11094 fi
11095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098 fi
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100    ac_c_werror_flag=$ac_save_c_werror_flag
11101 fi
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11103 $as_echo "$ac_cv_prog_cc_g" >&6; }
11104 if test "$ac_test_CFLAGS" = set; then
11105   CFLAGS=$ac_save_CFLAGS
11106 elif test $ac_cv_prog_cc_g = yes; then
11107   if test "$GCC" = yes; then
11108     CFLAGS="-g -O2"
11109   else
11110     CFLAGS="-g"
11111   fi
11112 else
11113   if test "$GCC" = yes; then
11114     CFLAGS="-O2"
11115   else
11116     CFLAGS=
11117   fi
11118 fi
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11120 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11121 if ${ac_cv_prog_cc_c89+:} false; then :
11122   $as_echo_n "(cached) " >&6
11123 else
11124   ac_cv_prog_cc_c89=no
11125 ac_save_CC=$CC
11126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h.  */
11128 #include <stdarg.h>
11129 #include <stdio.h>
11130 struct stat;
11131 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11132 struct buf { int x; };
11133 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11134 static char *e (p, i)
11135      char **p;
11136      int i;
11137 {
11138   return p[i];
11139 }
11140 static char *f (char * (*g) (char **, int), char **p, ...)
11141 {
11142   char *s;
11143   va_list v;
11144   va_start (v,p);
11145   s = g (p, va_arg (v,int));
11146   va_end (v);
11147   return s;
11148 }
11149
11150 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11151    function prototypes and stuff, but not '\xHH' hex character constants.
11152    These don't provoke an error unfortunately, instead are silently treated
11153    as 'x'.  The following induces an error, until -std is added to get
11154    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11155    array size at least.  It's necessary to write '\x00'==0 to get something
11156    that's true only with -std.  */
11157 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11158
11159 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11160    inside strings and character constants.  */
11161 #define FOO(x) 'x'
11162 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11163
11164 int test (int i, double x);
11165 struct s1 {int (*f) (int a);};
11166 struct s2 {int (*f) (double a);};
11167 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11168 int argc;
11169 char **argv;
11170 int
11171 main ()
11172 {
11173 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11174   ;
11175   return 0;
11176 }
11177 _ACEOF
11178 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11179         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11180 do
11181   CC="$ac_save_CC $ac_arg"
11182   if ac_fn_c_try_compile "$LINENO"; then :
11183   ac_cv_prog_cc_c89=$ac_arg
11184 fi
11185 rm -f core conftest.err conftest.$ac_objext
11186   test "x$ac_cv_prog_cc_c89" != "xno" && break
11187 done
11188 rm -f conftest.$ac_ext
11189 CC=$ac_save_CC
11190
11191 fi
11192 # AC_CACHE_VAL
11193 case "x$ac_cv_prog_cc_c89" in
11194   x)
11195     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11196 $as_echo "none needed" >&6; } ;;
11197   xno)
11198     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11199 $as_echo "unsupported" >&6; } ;;
11200   *)
11201     CC="$CC $ac_cv_prog_cc_c89"
11202     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11203 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11204 esac
11205 if test "x$ac_cv_prog_cc_c89" != xno; then :
11206
11207 fi
11208
11209 ac_ext=c
11210 ac_cpp='$CPP $CPPFLAGS'
11211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214
11215
11216     . ./VERSION
11217     pkg_version=${PKG_MAJOR}.${PKG_MINOR}.${PKG_REVISION}
11218
11219     pkg_release=$PKG_BUILD
11220     test -z "$BUILD_VERSION" || pkg_release="$BUILD_VERSION"
11221
11222
11223     DEBUG=${DEBUG:-'-DDEBUG'}               debug_build="$DEBUG"
11224
11225
11226     OPTIMIZER=${OPTIMIZER:-'-g -O2'}
11227     opt_build="$OPTIMIZER"
11228
11229
11230     MALLOCLIB=${MALLOCLIB:-''}              malloc_lib="$MALLOCLIB"
11231
11232
11233     pkg_user=`id -u -n`
11234     test -z "$INSTALL_USER" || pkg_user="$INSTALL_USER"
11235
11236
11237     pkg_group=`id -g -n`
11238     test -z "$INSTALL_GROUP" || pkg_group="$INSTALL_GROUP"
11239
11240
11241     pkg_distribution=`uname -s`
11242     test -z "$DISTRIBUTION" || pkg_distribution="$DISTRIBUTION"
11243
11244
11245     pkg_platform=`uname -s | tr 'A-Z' 'a-z' | sed -e 's/irix64/irix/'`
11246     test -z "$PLATFORM" || pkg_platform="$PLATFORM"
11247
11248
11249  ac_ext=c
11250 ac_cpp='$CPP $CPPFLAGS'
11251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11254 if test -n "$ac_tool_prefix"; then
11255   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11256 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11258 $as_echo_n "checking for $ac_word... " >&6; }
11259 if ${ac_cv_prog_CC+:} false; then :
11260   $as_echo_n "(cached) " >&6
11261 else
11262   if test -n "$CC"; then
11263   ac_cv_prog_CC="$CC" # Let the user override the test.
11264 else
11265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11267 do
11268   IFS=$as_save_IFS
11269   test -z "$as_dir" && as_dir=.
11270     for ac_exec_ext in '' $ac_executable_extensions; do
11271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274     break 2
11275   fi
11276 done
11277   done
11278 IFS=$as_save_IFS
11279
11280 fi
11281 fi
11282 CC=$ac_cv_prog_CC
11283 if test -n "$CC"; then
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11285 $as_echo "$CC" >&6; }
11286 else
11287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11288 $as_echo "no" >&6; }
11289 fi
11290
11291
11292 fi
11293 if test -z "$ac_cv_prog_CC"; then
11294   ac_ct_CC=$CC
11295   # Extract the first word of "gcc", so it can be a program name with args.
11296 set dummy gcc; ac_word=$2
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298 $as_echo_n "checking for $ac_word... " >&6; }
11299 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11300   $as_echo_n "(cached) " >&6
11301 else
11302   if test -n "$ac_ct_CC"; then
11303   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11304 else
11305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11306 for as_dir in $PATH
11307 do
11308   IFS=$as_save_IFS
11309   test -z "$as_dir" && as_dir=.
11310     for ac_exec_ext in '' $ac_executable_extensions; do
11311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11312     ac_cv_prog_ac_ct_CC="gcc"
11313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11314     break 2
11315   fi
11316 done
11317   done
11318 IFS=$as_save_IFS
11319
11320 fi
11321 fi
11322 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11323 if test -n "$ac_ct_CC"; then
11324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11325 $as_echo "$ac_ct_CC" >&6; }
11326 else
11327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11328 $as_echo "no" >&6; }
11329 fi
11330
11331   if test "x$ac_ct_CC" = x; then
11332     CC=""
11333   else
11334     case $cross_compiling:$ac_tool_warned in
11335 yes:)
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11338 ac_tool_warned=yes ;;
11339 esac
11340     CC=$ac_ct_CC
11341   fi
11342 else
11343   CC="$ac_cv_prog_CC"
11344 fi
11345
11346 if test -z "$CC"; then
11347           if test -n "$ac_tool_prefix"; then
11348     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11349 set dummy ${ac_tool_prefix}cc; ac_word=$2
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351 $as_echo_n "checking for $ac_word... " >&6; }
11352 if ${ac_cv_prog_CC+:} false; then :
11353   $as_echo_n "(cached) " >&6
11354 else
11355   if test -n "$CC"; then
11356   ac_cv_prog_CC="$CC" # Let the user override the test.
11357 else
11358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359 for as_dir in $PATH
11360 do
11361   IFS=$as_save_IFS
11362   test -z "$as_dir" && as_dir=.
11363     for ac_exec_ext in '' $ac_executable_extensions; do
11364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365     ac_cv_prog_CC="${ac_tool_prefix}cc"
11366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367     break 2
11368   fi
11369 done
11370   done
11371 IFS=$as_save_IFS
11372
11373 fi
11374 fi
11375 CC=$ac_cv_prog_CC
11376 if test -n "$CC"; then
11377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11378 $as_echo "$CC" >&6; }
11379 else
11380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11382 fi
11383
11384
11385   fi
11386 fi
11387 if test -z "$CC"; then
11388   # Extract the first word of "cc", so it can be a program name with args.
11389 set dummy cc; ac_word=$2
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11391 $as_echo_n "checking for $ac_word... " >&6; }
11392 if ${ac_cv_prog_CC+:} false; then :
11393   $as_echo_n "(cached) " >&6
11394 else
11395   if test -n "$CC"; then
11396   ac_cv_prog_CC="$CC" # Let the user override the test.
11397 else
11398   ac_prog_rejected=no
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11401 do
11402   IFS=$as_save_IFS
11403   test -z "$as_dir" && as_dir=.
11404     for ac_exec_ext in '' $ac_executable_extensions; do
11405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11407        ac_prog_rejected=yes
11408        continue
11409      fi
11410     ac_cv_prog_CC="cc"
11411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11412     break 2
11413   fi
11414 done
11415   done
11416 IFS=$as_save_IFS
11417
11418 if test $ac_prog_rejected = yes; then
11419   # We found a bogon in the path, so make sure we never use it.
11420   set dummy $ac_cv_prog_CC
11421   shift
11422   if test $# != 0; then
11423     # We chose a different compiler from the bogus one.
11424     # However, it has the same basename, so the bogon will be chosen
11425     # first if we set CC to just the basename; use the full file name.
11426     shift
11427     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11428   fi
11429 fi
11430 fi
11431 fi
11432 CC=$ac_cv_prog_CC
11433 if test -n "$CC"; then
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11435 $as_echo "$CC" >&6; }
11436 else
11437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; }
11439 fi
11440
11441
11442 fi
11443 if test -z "$CC"; then
11444   if test -n "$ac_tool_prefix"; then
11445   for ac_prog in cl.exe
11446   do
11447     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450 $as_echo_n "checking for $ac_word... " >&6; }
11451 if ${ac_cv_prog_CC+:} false; then :
11452   $as_echo_n "(cached) " >&6
11453 else
11454   if test -n "$CC"; then
11455   ac_cv_prog_CC="$CC" # Let the user override the test.
11456 else
11457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458 for as_dir in $PATH
11459 do
11460   IFS=$as_save_IFS
11461   test -z "$as_dir" && as_dir=.
11462     for ac_exec_ext in '' $ac_executable_extensions; do
11463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11464     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466     break 2
11467   fi
11468 done
11469   done
11470 IFS=$as_save_IFS
11471
11472 fi
11473 fi
11474 CC=$ac_cv_prog_CC
11475 if test -n "$CC"; then
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11477 $as_echo "$CC" >&6; }
11478 else
11479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11481 fi
11482
11483
11484     test -n "$CC" && break
11485   done
11486 fi
11487 if test -z "$CC"; then
11488   ac_ct_CC=$CC
11489   for ac_prog in cl.exe
11490 do
11491   # Extract the first word of "$ac_prog", so it can be a program name with args.
11492 set dummy $ac_prog; ac_word=$2
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11494 $as_echo_n "checking for $ac_word... " >&6; }
11495 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11496   $as_echo_n "(cached) " >&6
11497 else
11498   if test -n "$ac_ct_CC"; then
11499   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11500 else
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11503 do
11504   IFS=$as_save_IFS
11505   test -z "$as_dir" && as_dir=.
11506     for ac_exec_ext in '' $ac_executable_extensions; do
11507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508     ac_cv_prog_ac_ct_CC="$ac_prog"
11509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11510     break 2
11511   fi
11512 done
11513   done
11514 IFS=$as_save_IFS
11515
11516 fi
11517 fi
11518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11519 if test -n "$ac_ct_CC"; then
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11521 $as_echo "$ac_ct_CC" >&6; }
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11525 fi
11526
11527
11528   test -n "$ac_ct_CC" && break
11529 done
11530
11531   if test "x$ac_ct_CC" = x; then
11532     CC=""
11533   else
11534     case $cross_compiling:$ac_tool_warned in
11535 yes:)
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11538 ac_tool_warned=yes ;;
11539 esac
11540     CC=$ac_ct_CC
11541   fi
11542 fi
11543
11544 fi
11545
11546
11547 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11549 as_fn_error $? "no acceptable C compiler found in \$PATH
11550 See \`config.log' for more details" "$LINENO" 5; }
11551
11552 # Provide some information about the compiler.
11553 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11554 set X $ac_compile
11555 ac_compiler=$2
11556 for ac_option in --version -v -V -qversion; do
11557   { { ac_try="$ac_compiler $ac_option >&5"
11558 case "(($ac_try" in
11559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560   *) ac_try_echo=$ac_try;;
11561 esac
11562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11563 $as_echo "$ac_try_echo"; } >&5
11564   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11565   ac_status=$?
11566   if test -s conftest.err; then
11567     sed '10a\
11568 ... rest of stderr output deleted ...
11569          10q' conftest.err >conftest.er1
11570     cat conftest.er1 >&5
11571   fi
11572   rm -f conftest.er1 conftest.err
11573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574   test $ac_status = 0; }
11575 done
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11578 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11579 if ${ac_cv_c_compiler_gnu+:} false; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584
11585 int
11586 main ()
11587 {
11588 #ifndef __GNUC__
11589        choke me
11590 #endif
11591
11592   ;
11593   return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_compile "$LINENO"; then :
11597   ac_compiler_gnu=yes
11598 else
11599   ac_compiler_gnu=no
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11603
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11607 if test $ac_compiler_gnu = yes; then
11608   GCC=yes
11609 else
11610   GCC=
11611 fi
11612 ac_test_CFLAGS=${CFLAGS+set}
11613 ac_save_CFLAGS=$CFLAGS
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11615 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11616 if ${ac_cv_prog_cc_g+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   ac_save_c_werror_flag=$ac_c_werror_flag
11620    ac_c_werror_flag=yes
11621    ac_cv_prog_cc_g=no
11622    CFLAGS="-g"
11623    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11624 /* end confdefs.h.  */
11625
11626 int
11627 main ()
11628 {
11629
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 if ac_fn_c_try_compile "$LINENO"; then :
11635   ac_cv_prog_cc_g=yes
11636 else
11637   CFLAGS=""
11638       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639 /* end confdefs.h.  */
11640
11641 int
11642 main ()
11643 {
11644
11645   ;
11646   return 0;
11647 }
11648 _ACEOF
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650
11651 else
11652   ac_c_werror_flag=$ac_save_c_werror_flag
11653          CFLAGS="-g"
11654          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h.  */
11656
11657 int
11658 main ()
11659 {
11660
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 if ac_fn_c_try_compile "$LINENO"; then :
11666   ac_cv_prog_cc_g=yes
11667 fi
11668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11669 fi
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 fi
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673    ac_c_werror_flag=$ac_save_c_werror_flag
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11676 $as_echo "$ac_cv_prog_cc_g" >&6; }
11677 if test "$ac_test_CFLAGS" = set; then
11678   CFLAGS=$ac_save_CFLAGS
11679 elif test $ac_cv_prog_cc_g = yes; then
11680   if test "$GCC" = yes; then
11681     CFLAGS="-g -O2"
11682   else
11683     CFLAGS="-g"
11684   fi
11685 else
11686   if test "$GCC" = yes; then
11687     CFLAGS="-O2"
11688   else
11689     CFLAGS=
11690   fi
11691 fi
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11693 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11694 if ${ac_cv_prog_cc_c89+:} false; then :
11695   $as_echo_n "(cached) " >&6
11696 else
11697   ac_cv_prog_cc_c89=no
11698 ac_save_CC=$CC
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h.  */
11701 #include <stdarg.h>
11702 #include <stdio.h>
11703 struct stat;
11704 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11705 struct buf { int x; };
11706 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11707 static char *e (p, i)
11708      char **p;
11709      int i;
11710 {
11711   return p[i];
11712 }
11713 static char *f (char * (*g) (char **, int), char **p, ...)
11714 {
11715   char *s;
11716   va_list v;
11717   va_start (v,p);
11718   s = g (p, va_arg (v,int));
11719   va_end (v);
11720   return s;
11721 }
11722
11723 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11724    function prototypes and stuff, but not '\xHH' hex character constants.
11725    These don't provoke an error unfortunately, instead are silently treated
11726    as 'x'.  The following induces an error, until -std is added to get
11727    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11728    array size at least.  It's necessary to write '\x00'==0 to get something
11729    that's true only with -std.  */
11730 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11731
11732 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11733    inside strings and character constants.  */
11734 #define FOO(x) 'x'
11735 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11736
11737 int test (int i, double x);
11738 struct s1 {int (*f) (int a);};
11739 struct s2 {int (*f) (double a);};
11740 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11741 int argc;
11742 char **argv;
11743 int
11744 main ()
11745 {
11746 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11752         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11753 do
11754   CC="$ac_save_CC $ac_arg"
11755   if ac_fn_c_try_compile "$LINENO"; then :
11756   ac_cv_prog_cc_c89=$ac_arg
11757 fi
11758 rm -f core conftest.err conftest.$ac_objext
11759   test "x$ac_cv_prog_cc_c89" != "xno" && break
11760 done
11761 rm -f conftest.$ac_ext
11762 CC=$ac_save_CC
11763
11764 fi
11765 # AC_CACHE_VAL
11766 case "x$ac_cv_prog_cc_c89" in
11767   x)
11768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11769 $as_echo "none needed" >&6; } ;;
11770   xno)
11771     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11772 $as_echo "unsupported" >&6; } ;;
11773   *)
11774     CC="$CC $ac_cv_prog_cc_c89"
11775     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11776 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11777 esac
11778 if test "x$ac_cv_prog_cc_c89" != xno; then :
11779
11780 fi
11781
11782 ac_ext=c
11783 ac_cpp='$CPP $CPPFLAGS'
11784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11787
11788     cc="$CC"
11789
11790      if test -z ""$cc""; then
11791         echo
11792         echo FATAL ERROR: cc does not seem to be installed.
11793         echo acl cannot be built without a working C compiler installation.
11794         exit 1
11795     fi
11796
11797
11798     search_path="$PATH$PATH_SEPARATOR/usr/freeware/bin$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin"
11799
11800     for ac_prog in gmake make
11801 do
11802   # Extract the first word of "$ac_prog", so it can be a program name with args.
11803 set dummy $ac_prog; ac_word=$2
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 $as_echo_n "checking for $ac_word... " >&6; }
11806 if ${ac_cv_path_MAKE+:} false; then :
11807   $as_echo_n "(cached) " >&6
11808 else
11809   case $MAKE in
11810   [\\/]* | ?:[\\/]*)
11811   ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
11812   ;;
11813   *)
11814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $search_path
11816 do
11817   IFS=$as_save_IFS
11818   test -z "$as_dir" && as_dir=.
11819     for ac_exec_ext in '' $ac_executable_extensions; do
11820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11821     ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
11822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11823     break 2
11824   fi
11825 done
11826   done
11827 IFS=$as_save_IFS
11828
11829   ;;
11830 esac
11831 fi
11832 MAKE=$ac_cv_path_MAKE
11833 if test -n "$MAKE"; then
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
11835 $as_echo "$MAKE" >&6; }
11836 else
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840
11841
11842   test -n "$MAKE" && break
11843 done
11844
11845     make=$MAKE
11846
11847      if test -z ""$make""; then
11848         echo
11849         echo FATAL ERROR: make does not seem to be installed.
11850         echo acl cannot be built without a working GNU make installation.
11851         exit 1
11852     fi
11853
11854
11855     # Extract the first word of "tar", so it can be a program name with args.
11856 set dummy tar; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_path_TAR+:} false; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   case $TAR in
11863   [\\/]* | ?:[\\/]*)
11864   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
11865   ;;
11866   *)
11867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868 for as_dir in $search_path
11869 do
11870   IFS=$as_save_IFS
11871   test -z "$as_dir" && as_dir=.
11872     for ac_exec_ext in '' $ac_executable_extensions; do
11873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11874     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
11875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876     break 2
11877   fi
11878 done
11879   done
11880 IFS=$as_save_IFS
11881
11882   ;;
11883 esac
11884 fi
11885 TAR=$ac_cv_path_TAR
11886 if test -n "$TAR"; then
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
11888 $as_echo "$TAR" >&6; }
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894
11895     tar=$TAR
11896
11897
11898     # Extract the first word of "gzip", so it can be a program name with args.
11899 set dummy gzip; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_path_ZIP+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   case $ZIP in
11906   [\\/]* | ?:[\\/]*)
11907   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
11908   ;;
11909   *)
11910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $search_path
11912 do
11913   IFS=$as_save_IFS
11914   test -z "$as_dir" && as_dir=.
11915     for ac_exec_ext in '' $ac_executable_extensions; do
11916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11917     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
11918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11919     break 2
11920   fi
11921 done
11922   done
11923 IFS=$as_save_IFS
11924
11925   ;;
11926 esac
11927 fi
11928 ZIP=$ac_cv_path_ZIP
11929 if test -n "$ZIP"; then
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
11931 $as_echo "$ZIP" >&6; }
11932 else
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11935 fi
11936
11937
11938     zip=$ZIP
11939
11940
11941     # Extract the first word of "makedepend", so it can be a program name with args.
11942 set dummy makedepend; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944 $as_echo_n "checking for $ac_word... " >&6; }
11945 if ${ac_cv_path_MAKEDEPEND+:} false; then :
11946   $as_echo_n "(cached) " >&6
11947 else
11948   case $MAKEDEPEND in
11949   [\\/]* | ?:[\\/]*)
11950   ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
11951   ;;
11952   *)
11953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954 for as_dir in $PATH
11955 do
11956   IFS=$as_save_IFS
11957   test -z "$as_dir" && as_dir=.
11958     for ac_exec_ext in '' $ac_executable_extensions; do
11959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11960     ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
11961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11962     break 2
11963   fi
11964 done
11965   done
11966 IFS=$as_save_IFS
11967
11968   test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="/bin/true"
11969   ;;
11970 esac
11971 fi
11972 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
11973 if test -n "$MAKEDEPEND"; then
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
11975 $as_echo "$MAKEDEPEND" >&6; }
11976 else
11977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979 fi
11980
11981
11982     makedepend=$MAKEDEPEND
11983
11984
11985     # Extract the first word of "awk", so it can be a program name with args.
11986 set dummy awk; ac_word=$2
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11988 $as_echo_n "checking for $ac_word... " >&6; }
11989 if ${ac_cv_path_AWK+:} false; then :
11990   $as_echo_n "(cached) " >&6
11991 else
11992   case $AWK in
11993   [\\/]* | ?:[\\/]*)
11994   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11995   ;;
11996   *)
11997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11998 for as_dir in $search_path
11999 do
12000   IFS=$as_save_IFS
12001   test -z "$as_dir" && as_dir=.
12002     for ac_exec_ext in '' $ac_executable_extensions; do
12003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12004     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
12005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12006     break 2
12007   fi
12008 done
12009   done
12010 IFS=$as_save_IFS
12011
12012   ;;
12013 esac
12014 fi
12015 AWK=$ac_cv_path_AWK
12016 if test -n "$AWK"; then
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12018 $as_echo "$AWK" >&6; }
12019 else
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12022 fi
12023
12024
12025     awk=$AWK
12026
12027
12028     # Extract the first word of "sed", so it can be a program name with args.
12029 set dummy sed; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_SED+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   case $SED in
12036   [\\/]* | ?:[\\/]*)
12037   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12038   ;;
12039   *)
12040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $search_path
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045     for ac_exec_ext in '' $ac_executable_extensions; do
12046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052   done
12053 IFS=$as_save_IFS
12054
12055   ;;
12056 esac
12057 fi
12058 SED=$ac_cv_path_SED
12059 if test -n "$SED"; then
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12061 $as_echo "$SED" >&6; }
12062 else
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066
12067
12068     sed=$SED
12069
12070
12071     # Extract the first word of "echo", so it can be a program name with args.
12072 set dummy echo; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_path_ECHO+:} false; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   case $ECHO in
12079   [\\/]* | ?:[\\/]*)
12080   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
12081   ;;
12082   *)
12083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084 for as_dir in $search_path
12085 do
12086   IFS=$as_save_IFS
12087   test -z "$as_dir" && as_dir=.
12088     for ac_exec_ext in '' $ac_executable_extensions; do
12089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
12091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092     break 2
12093   fi
12094 done
12095   done
12096 IFS=$as_save_IFS
12097
12098   ;;
12099 esac
12100 fi
12101 ECHO=$ac_cv_path_ECHO
12102 if test -n "$ECHO"; then
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
12104 $as_echo "$ECHO" >&6; }
12105 else
12106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12107 $as_echo "no" >&6; }
12108 fi
12109
12110
12111     echo=$ECHO
12112
12113
12114     # Extract the first word of "sort", so it can be a program name with args.
12115 set dummy sort; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_path_SORT+:} false; then :
12119   $as_echo_n "(cached) " >&6
12120 else
12121   case $SORT in
12122   [\\/]* | ?:[\\/]*)
12123   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
12124   ;;
12125   *)
12126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127 for as_dir in $search_path
12128 do
12129   IFS=$as_save_IFS
12130   test -z "$as_dir" && as_dir=.
12131     for ac_exec_ext in '' $ac_executable_extensions; do
12132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12133     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
12134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12135     break 2
12136   fi
12137 done
12138   done
12139 IFS=$as_save_IFS
12140
12141   ;;
12142 esac
12143 fi
12144 SORT=$ac_cv_path_SORT
12145 if test -n "$SORT"; then
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
12147 $as_echo "$SORT" >&6; }
12148 else
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152
12153
12154     sort=$SORT
12155
12156
12157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12158 $as_echo_n "checking whether ln -s works... " >&6; }
12159 LN_S=$as_ln_s
12160 if test "$LN_S" = "ln -s"; then
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12162 $as_echo "yes" >&6; }
12163 else
12164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12165 $as_echo "no, using $LN_S" >&6; }
12166 fi
12167
12168
12169     if test "$enable_gettext" = yes; then
12170         # Extract the first word of "msgfmt", so it can be a program name with args.
12171 set dummy msgfmt; ac_word=$2
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173 $as_echo_n "checking for $ac_word... " >&6; }
12174 if ${ac_cv_path_MSGFMT+:} false; then :
12175   $as_echo_n "(cached) " >&6
12176 else
12177   case $MSGFMT in
12178   [\\/]* | ?:[\\/]*)
12179   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12180   ;;
12181   *)
12182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12183 for as_dir in $search_path
12184 do
12185   IFS=$as_save_IFS
12186   test -z "$as_dir" && as_dir=.
12187     for ac_exec_ext in '' $ac_executable_extensions; do
12188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12189     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12191     break 2
12192   fi
12193 done
12194   done
12195 IFS=$as_save_IFS
12196
12197   ;;
12198 esac
12199 fi
12200 MSGFMT=$ac_cv_path_MSGFMT
12201 if test -n "$MSGFMT"; then
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12203 $as_echo "$MSGFMT" >&6; }
12204 else
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12207 fi
12208
12209
12210         msgfmt=$MSGFMT
12211
12212          if test -z ""$msgfmt""; then
12213         echo
12214         echo FATAL ERROR: msgfmt does not seem to be installed.
12215         echo acl cannot be built without a working gettext installation.
12216         exit 1
12217     fi
12218
12219
12220         # Extract the first word of "msgmerge", so it can be a program name with args.
12221 set dummy msgmerge; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if ${ac_cv_path_MSGMERGE+:} false; then :
12225   $as_echo_n "(cached) " >&6
12226 else
12227   case $MSGMERGE in
12228   [\\/]* | ?:[\\/]*)
12229   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12230   ;;
12231   *)
12232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $search_path
12234 do
12235   IFS=$as_save_IFS
12236   test -z "$as_dir" && as_dir=.
12237     for ac_exec_ext in '' $ac_executable_extensions; do
12238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239     ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241     break 2
12242   fi
12243 done
12244   done
12245 IFS=$as_save_IFS
12246
12247   ;;
12248 esac
12249 fi
12250 MSGMERGE=$ac_cv_path_MSGMERGE
12251 if test -n "$MSGMERGE"; then
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12253 $as_echo "$MSGMERGE" >&6; }
12254 else
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12257 fi
12258
12259
12260         msgmerge=$MSGMERGE
12261
12262          if test -z ""$msgmerge""; then
12263         echo
12264         echo FATAL ERROR: msgmerge does not seem to be installed.
12265         echo acl cannot be built without a working gettext installation.
12266         exit 1
12267     fi
12268
12269
12270         # Extract the first word of "xgettext", so it can be a program name with args.
12271 set dummy xgettext; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_path_XGETTEXT+:} false; then :
12275   $as_echo_n "(cached) " >&6
12276 else
12277   case $XGETTEXT in
12278   [\\/]* | ?:[\\/]*)
12279   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12280   ;;
12281   *)
12282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $search_path
12284 do
12285   IFS=$as_save_IFS
12286   test -z "$as_dir" && as_dir=.
12287     for ac_exec_ext in '' $ac_executable_extensions; do
12288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12289     ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291     break 2
12292   fi
12293 done
12294   done
12295 IFS=$as_save_IFS
12296
12297   ;;
12298 esac
12299 fi
12300 XGETTEXT=$ac_cv_path_XGETTEXT
12301 if test -n "$XGETTEXT"; then
12302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12303 $as_echo "$XGETTEXT" >&6; }
12304 else
12305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12307 fi
12308
12309
12310         xgettext=$XGETTEXT
12311
12312          if test -z ""$xgettext""; then
12313         echo
12314         echo FATAL ERROR: xgettext does not seem to be installed.
12315         echo acl cannot be built without a working gettext installation.
12316         exit 1
12317     fi
12318
12319
12320
12321 $as_echo "#define ENABLE_GETTEXT 1" >>confdefs.h
12322
12323     fi
12324
12325     # Extract the first word of "rpm", so it can be a program name with args.
12326 set dummy rpm; ac_word=$2
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12328 $as_echo_n "checking for $ac_word... " >&6; }
12329 if ${ac_cv_path_RPM+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   case $RPM in
12333   [\\/]* | ?:[\\/]*)
12334   ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
12335   ;;
12336   *)
12337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $search_path
12339 do
12340   IFS=$as_save_IFS
12341   test -z "$as_dir" && as_dir=.
12342     for ac_exec_ext in '' $ac_executable_extensions; do
12343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12344     ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
12345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346     break 2
12347   fi
12348 done
12349   done
12350 IFS=$as_save_IFS
12351
12352   ;;
12353 esac
12354 fi
12355 RPM=$ac_cv_path_RPM
12356 if test -n "$RPM"; then
12357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
12358 $as_echo "$RPM" >&6; }
12359 else
12360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12362 fi
12363
12364
12365     rpm=$RPM
12366
12367
12368         rpm_version=0
12369     test -n "$RPM" && test -x "$RPM" && rpm_version=`$RPM --version \
12370                         | awk '{print $NF}' | awk -F. '{V=1; print $V}'`
12371
12372                 if test $rpm_version -ge 4; then
12373         # Extract the first word of "rpmbuild", so it can be a program name with args.
12374 set dummy rpmbuild; ac_word=$2
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12376 $as_echo_n "checking for $ac_word... " >&6; }
12377 if ${ac_cv_path_RPMBUILD+:} false; then :
12378   $as_echo_n "(cached) " >&6
12379 else
12380   case $RPMBUILD in
12381   [\\/]* | ?:[\\/]*)
12382   ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
12383   ;;
12384   *)
12385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12387 do
12388   IFS=$as_save_IFS
12389   test -z "$as_dir" && as_dir=.
12390     for ac_exec_ext in '' $ac_executable_extensions; do
12391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392     ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
12393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394     break 2
12395   fi
12396 done
12397   done
12398 IFS=$as_save_IFS
12399
12400   ;;
12401 esac
12402 fi
12403 RPMBUILD=$ac_cv_path_RPMBUILD
12404 if test -n "$RPMBUILD"; then
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
12406 $as_echo "$RPMBUILD" >&6; }
12407 else
12408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12410 fi
12411
12412
12413         rpmbuild=$RPMBUILD
12414     else
12415         rpmbuild=$RPM
12416     fi
12417
12418
12419  for ac_header in attr/xattr.h
12420 do :
12421   ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
12422 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
12423   cat >>confdefs.h <<_ACEOF
12424 #define HAVE_ATTR_XATTR_H 1
12425 _ACEOF
12426
12427 fi
12428
12429 done
12430
12431     if test "$ac_cv_header_attr_xattr_h" != "yes"; then
12432         echo
12433         echo 'FATAL ERROR: attr/xattr.h does not exist.'
12434         echo 'Install the extended attributes (attr) development package.'
12435         echo 'Alternatively, run "make install-dev" from the attr source.'
12436         exit 1
12437     fi
12438
12439  for ac_header in attr/error_context.h
12440 do :
12441   ac_fn_c_check_header_mongrel "$LINENO" "attr/error_context.h" "ac_cv_header_attr_error_context_h" "$ac_includes_default"
12442 if test "x$ac_cv_header_attr_error_context_h" = xyes; then :
12443   cat >>confdefs.h <<_ACEOF
12444 #define HAVE_ATTR_ERROR_CONTEXT_H 1
12445 _ACEOF
12446
12447 fi
12448
12449 done
12450
12451     if test "$ac_cv_header_attr_error_context_h" != "yes"; then
12452         echo
12453         echo 'FATAL ERROR: attr/error_context.h does not exist.'
12454         echo 'Install the extended attributes (attr) development package.'
12455         echo 'Alternatively, run "make install-dev" from the attr source.'
12456         exit 1
12457     fi
12458
12459
12460                   enable_lib64="$enable_lib64"
12461   libdirsuffix=""
12462   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12463   if test "$enable_lib64" = "yes" -a -n "$searchpath"; then
12464     save_IFS="${IFS=    }"; IFS=":"
12465     for searchdir in $searchpath; do
12466       if test -d "$searchdir"; then
12467         case "$searchdir" in
12468           */lib64/ | */lib64 ) libdirsuffix=64 ;;
12469           *) searchdir=`cd "$searchdir" && pwd`
12470              case "$searchdir" in
12471                */lib64 ) libdirsuffix=64 ;;
12472              esac ;;
12473         esac
12474       fi
12475     done
12476     IFS="$save_IFS"
12477   fi
12478
12479
12480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
12481 $as_echo_n "checking for getxattr in -lattr... " >&6; }
12482 if ${ac_cv_lib_attr_getxattr+:} false; then :
12483   $as_echo_n "(cached) " >&6
12484 else
12485   ac_check_lib_save_LIBS=$LIBS
12486 LIBS="-lattr  $LIBS"
12487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489
12490 /* Override any GCC internal prototype to avoid an error.
12491    Use char because int might match the return type of a GCC
12492    builtin and then its argument prototype would still apply.  */
12493 #ifdef __cplusplus
12494 extern "C"
12495 #endif
12496 char getxattr ();
12497 int
12498 main ()
12499 {
12500 return getxattr ();
12501   ;
12502   return 0;
12503 }
12504 _ACEOF
12505 if ac_fn_c_try_link "$LINENO"; then :
12506   ac_cv_lib_attr_getxattr=yes
12507 else
12508   ac_cv_lib_attr_getxattr=no
12509 fi
12510 rm -f core conftest.err conftest.$ac_objext \
12511     conftest$ac_exeext conftest.$ac_ext
12512 LIBS=$ac_check_lib_save_LIBS
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
12515 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
12516 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
12517   cat >>confdefs.h <<_ACEOF
12518 #define HAVE_LIBATTR 1
12519 _ACEOF
12520
12521   LIBS="-lattr $LIBS"
12522
12523 else
12524
12525         echo
12526         echo 'FATAL ERROR: could not find a valid Extended Attributes library.'
12527         echo 'Install the extended attributes (attr) development package.'
12528         echo 'Alternatively, run "make install-lib" from the attr source.'
12529         exit 1
12530
12531 fi
12532
12533     libattr="-lattr"
12534     test -f `pwd`/../attr/libattr/libattr.la && \
12535         libattr="`pwd`/../attr/libattr/libattr.la"
12536
12537
12538  have_zipped_manpages=false
12539     for d in ${prefix}/share/man ${prefix}/man ; do
12540         if test -f $d/man1/man.1.gz
12541         then
12542             have_zipped_manpages=true
12543             break
12544         fi
12545     done
12546
12547
12548
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
12550 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
12551 if ${libc_cv_visibility_attribute+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   cat > conftest.c <<EOF
12555                    int foo __attribute__ ((visibility ("hidden"))) = 1;
12556                    int bar __attribute__ ((visibility ("protected"))) = 1;
12557 EOF
12558                   libc_cv_visibility_attribute=no
12559                   if ${CC-cc} -Werror -S conftest.c -o conftest.s \
12560                         >/dev/null 2>&1; then
12561                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
12562                       if grep '\.protected.*bar' conftest.s >/dev/null; then
12563                         libc_cv_visibility_attribute=yes
12564                       fi
12565                     fi
12566                   fi
12567                   rm -f conftest.cs
12568
12569 fi
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
12571 $as_echo "$libc_cv_visibility_attribute" >&6; }
12572    if test $libc_cv_visibility_attribute = yes; then
12573
12574 $as_echo "#define HAVE_VISIBILITY_ATTRIBUTE /**/" >>confdefs.h
12575
12576    fi
12577
12578
12579 ac_config_files="$ac_config_files include/builddefs"
12580
12581 cat >confcache <<\_ACEOF
12582 # This file is a shell script that caches the results of configure
12583 # tests run on this system so they can be shared between configure
12584 # scripts and configure runs, see configure's option --config-cache.
12585 # It is not useful on other systems.  If it contains results you don't
12586 # want to keep, you may remove or edit it.
12587 #
12588 # config.status only pays attention to the cache file if you give it
12589 # the --recheck option to rerun configure.
12590 #
12591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12593 # following values.
12594
12595 _ACEOF
12596
12597 # The following way of writing the cache mishandles newlines in values,
12598 # but we know of no workaround that is simple, portable, and efficient.
12599 # So, we kill variables containing newlines.
12600 # Ultrix sh set writes to stderr and can't be redirected directly,
12601 # and sets the high bit in the cache file unless we assign to the vars.
12602 (
12603   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12604     eval ac_val=\$$ac_var
12605     case $ac_val in #(
12606     *${as_nl}*)
12607       case $ac_var in #(
12608       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12610       esac
12611       case $ac_var in #(
12612       _ | IFS | as_nl) ;; #(
12613       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12614       *) { eval $ac_var=; unset $ac_var;} ;;
12615       esac ;;
12616     esac
12617   done
12618
12619   (set) 2>&1 |
12620     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12621     *${as_nl}ac_space=\ *)
12622       # `set' does not quote correctly, so add quotes: double-quote
12623       # substitution turns \\\\ into \\, and sed turns \\ into \.
12624       sed -n \
12625         "s/'/'\\\\''/g;
12626           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12627       ;; #(
12628     *)
12629       # `set' quotes correctly as required by POSIX, so do not add quotes.
12630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12631       ;;
12632     esac |
12633     sort
12634 ) |
12635   sed '
12636      /^ac_cv_env_/b end
12637      t clear
12638      :clear
12639      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12640      t end
12641      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12642      :end' >>confcache
12643 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12644   if test -w "$cache_file"; then
12645     if test "x$cache_file" != "x/dev/null"; then
12646       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12647 $as_echo "$as_me: updating cache $cache_file" >&6;}
12648       if test ! -f "$cache_file" || test -h "$cache_file"; then
12649         cat confcache >"$cache_file"
12650       else
12651         case $cache_file in #(
12652         */* | ?:*)
12653           mv -f confcache "$cache_file"$$ &&
12654           mv -f "$cache_file"$$ "$cache_file" ;; #(
12655         *)
12656           mv -f confcache "$cache_file" ;;
12657         esac
12658       fi
12659     fi
12660   else
12661     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12662 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12663   fi
12664 fi
12665 rm -f confcache
12666
12667 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12668 # Let make expand exec_prefix.
12669 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12670
12671 DEFS=-DHAVE_CONFIG_H
12672
12673 ac_libobjs=
12674 ac_ltlibobjs=
12675 U=
12676 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12677   # 1. Remove the extension, and $U if already installed.
12678   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12679   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12680   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12681   #    will be set to the directory where LIBOBJS objects are built.
12682   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12683   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12684 done
12685 LIBOBJS=$ac_libobjs
12686
12687 LTLIBOBJS=$ac_ltlibobjs
12688
12689
12690
12691 : "${CONFIG_STATUS=./config.status}"
12692 ac_write_fail=0
12693 ac_clean_files_save=$ac_clean_files
12694 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12696 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12697 as_write_fail=0
12698 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12699 #! $SHELL
12700 # Generated by $as_me.
12701 # Run this file to recreate the current configuration.
12702 # Compiler output produced by configure, useful for debugging
12703 # configure, is in config.log if it exists.
12704
12705 debug=false
12706 ac_cs_recheck=false
12707 ac_cs_silent=false
12708
12709 SHELL=\${CONFIG_SHELL-$SHELL}
12710 export SHELL
12711 _ASEOF
12712 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12713 ## -------------------- ##
12714 ## M4sh Initialization. ##
12715 ## -------------------- ##
12716
12717 # Be more Bourne compatible
12718 DUALCASE=1; export DUALCASE # for MKS sh
12719 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12720   emulate sh
12721   NULLCMD=:
12722   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12723   # is contrary to our usage.  Disable this feature.
12724   alias -g '${1+"$@"}'='"$@"'
12725   setopt NO_GLOB_SUBST
12726 else
12727   case `(set -o) 2>/dev/null` in #(
12728   *posix*) :
12729     set -o posix ;; #(
12730   *) :
12731      ;;
12732 esac
12733 fi
12734
12735
12736 as_nl='
12737 '
12738 export as_nl
12739 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12740 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12741 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12743 # Prefer a ksh shell builtin over an external printf program on Solaris,
12744 # but without wasting forks for bash or zsh.
12745 if test -z "$BASH_VERSION$ZSH_VERSION" \
12746     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12747   as_echo='print -r --'
12748   as_echo_n='print -rn --'
12749 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12750   as_echo='printf %s\n'
12751   as_echo_n='printf %s'
12752 else
12753   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12754     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12755     as_echo_n='/usr/ucb/echo -n'
12756   else
12757     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12758     as_echo_n_body='eval
12759       arg=$1;
12760       case $arg in #(
12761       *"$as_nl"*)
12762         expr "X$arg" : "X\\(.*\\)$as_nl";
12763         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12764       esac;
12765       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12766     '
12767     export as_echo_n_body
12768     as_echo_n='sh -c $as_echo_n_body as_echo'
12769   fi
12770   export as_echo_body
12771   as_echo='sh -c $as_echo_body as_echo'
12772 fi
12773
12774 # The user is always right.
12775 if test "${PATH_SEPARATOR+set}" != set; then
12776   PATH_SEPARATOR=:
12777   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12778     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12779       PATH_SEPARATOR=';'
12780   }
12781 fi
12782
12783
12784 # IFS
12785 # We need space, tab and new line, in precisely that order.  Quoting is
12786 # there to prevent editors from complaining about space-tab.
12787 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12788 # splitting by setting IFS to empty value.)
12789 IFS=" ""        $as_nl"
12790
12791 # Find who we are.  Look in the path if we contain no directory separator.
12792 as_myself=
12793 case $0 in #((
12794   *[\\/]* ) as_myself=$0 ;;
12795   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12796 for as_dir in $PATH
12797 do
12798   IFS=$as_save_IFS
12799   test -z "$as_dir" && as_dir=.
12800     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12801   done
12802 IFS=$as_save_IFS
12803
12804      ;;
12805 esac
12806 # We did not find ourselves, most probably we were run as `sh COMMAND'
12807 # in which case we are not to be found in the path.
12808 if test "x$as_myself" = x; then
12809   as_myself=$0
12810 fi
12811 if test ! -f "$as_myself"; then
12812   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12813   exit 1
12814 fi
12815
12816 # Unset variables that we do not need and which cause bugs (e.g. in
12817 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12818 # suppresses any "Segmentation fault" message there.  '((' could
12819 # trigger a bug in pdksh 5.2.14.
12820 for as_var in BASH_ENV ENV MAIL MAILPATH
12821 do eval test x\${$as_var+set} = xset \
12822   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12823 done
12824 PS1='$ '
12825 PS2='> '
12826 PS4='+ '
12827
12828 # NLS nuisances.
12829 LC_ALL=C
12830 export LC_ALL
12831 LANGUAGE=C
12832 export LANGUAGE
12833
12834 # CDPATH.
12835 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12836
12837
12838 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12839 # ----------------------------------------
12840 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12841 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12842 # script with STATUS, using 1 if that was 0.
12843 as_fn_error ()
12844 {
12845   as_status=$1; test $as_status -eq 0 && as_status=1
12846   if test "$4"; then
12847     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12848     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12849   fi
12850   $as_echo "$as_me: error: $2" >&2
12851   as_fn_exit $as_status
12852 } # as_fn_error
12853
12854
12855 # as_fn_set_status STATUS
12856 # -----------------------
12857 # Set $? to STATUS, without forking.
12858 as_fn_set_status ()
12859 {
12860   return $1
12861 } # as_fn_set_status
12862
12863 # as_fn_exit STATUS
12864 # -----------------
12865 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12866 as_fn_exit ()
12867 {
12868   set +e
12869   as_fn_set_status $1
12870   exit $1
12871 } # as_fn_exit
12872
12873 # as_fn_unset VAR
12874 # ---------------
12875 # Portably unset VAR.
12876 as_fn_unset ()
12877 {
12878   { eval $1=; unset $1;}
12879 }
12880 as_unset=as_fn_unset
12881 # as_fn_append VAR VALUE
12882 # ----------------------
12883 # Append the text in VALUE to the end of the definition contained in VAR. Take
12884 # advantage of any shell optimizations that allow amortized linear growth over
12885 # repeated appends, instead of the typical quadratic growth present in naive
12886 # implementations.
12887 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12888   eval 'as_fn_append ()
12889   {
12890     eval $1+=\$2
12891   }'
12892 else
12893   as_fn_append ()
12894   {
12895     eval $1=\$$1\$2
12896   }
12897 fi # as_fn_append
12898
12899 # as_fn_arith ARG...
12900 # ------------------
12901 # Perform arithmetic evaluation on the ARGs, and store the result in the
12902 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12903 # must be portable across $(()) and expr.
12904 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12905   eval 'as_fn_arith ()
12906   {
12907     as_val=$(( $* ))
12908   }'
12909 else
12910   as_fn_arith ()
12911   {
12912     as_val=`expr "$@" || test $? -eq 1`
12913   }
12914 fi # as_fn_arith
12915
12916
12917 if expr a : '\(a\)' >/dev/null 2>&1 &&
12918    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12919   as_expr=expr
12920 else
12921   as_expr=false
12922 fi
12923
12924 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12925   as_basename=basename
12926 else
12927   as_basename=false
12928 fi
12929
12930 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12931   as_dirname=dirname
12932 else
12933   as_dirname=false
12934 fi
12935
12936 as_me=`$as_basename -- "$0" ||
12937 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12938          X"$0" : 'X\(//\)$' \| \
12939          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12940 $as_echo X/"$0" |
12941     sed '/^.*\/\([^/][^/]*\)\/*$/{
12942             s//\1/
12943             q
12944           }
12945           /^X\/\(\/\/\)$/{
12946             s//\1/
12947             q
12948           }
12949           /^X\/\(\/\).*/{
12950             s//\1/
12951             q
12952           }
12953           s/.*/./; q'`
12954
12955 # Avoid depending upon Character Ranges.
12956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12959 as_cr_digits='0123456789'
12960 as_cr_alnum=$as_cr_Letters$as_cr_digits
12961
12962 ECHO_C= ECHO_N= ECHO_T=
12963 case `echo -n x` in #(((((
12964 -n*)
12965   case `echo 'xy\c'` in
12966   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12967   xy)  ECHO_C='\c';;
12968   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12969        ECHO_T=' ';;
12970   esac;;
12971 *)
12972   ECHO_N='-n';;
12973 esac
12974
12975 rm -f conf$$ conf$$.exe conf$$.file
12976 if test -d conf$$.dir; then
12977   rm -f conf$$.dir/conf$$.file
12978 else
12979   rm -f conf$$.dir
12980   mkdir conf$$.dir 2>/dev/null
12981 fi
12982 if (echo >conf$$.file) 2>/dev/null; then
12983   if ln -s conf$$.file conf$$ 2>/dev/null; then
12984     as_ln_s='ln -s'
12985     # ... but there are two gotchas:
12986     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12987     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12988     # In both cases, we have to default to `cp -pR'.
12989     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12990       as_ln_s='cp -pR'
12991   elif ln conf$$.file conf$$ 2>/dev/null; then
12992     as_ln_s=ln
12993   else
12994     as_ln_s='cp -pR'
12995   fi
12996 else
12997   as_ln_s='cp -pR'
12998 fi
12999 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13000 rmdir conf$$.dir 2>/dev/null
13001
13002
13003 # as_fn_mkdir_p
13004 # -------------
13005 # Create "$as_dir" as a directory, including parents if necessary.
13006 as_fn_mkdir_p ()
13007 {
13008
13009   case $as_dir in #(
13010   -*) as_dir=./$as_dir;;
13011   esac
13012   test -d "$as_dir" || eval $as_mkdir_p || {
13013     as_dirs=
13014     while :; do
13015       case $as_dir in #(
13016       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13017       *) as_qdir=$as_dir;;
13018       esac
13019       as_dirs="'$as_qdir' $as_dirs"
13020       as_dir=`$as_dirname -- "$as_dir" ||
13021 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13022          X"$as_dir" : 'X\(//\)[^/]' \| \
13023          X"$as_dir" : 'X\(//\)$' \| \
13024          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13025 $as_echo X"$as_dir" |
13026     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13027             s//\1/
13028             q
13029           }
13030           /^X\(\/\/\)[^/].*/{
13031             s//\1/
13032             q
13033           }
13034           /^X\(\/\/\)$/{
13035             s//\1/
13036             q
13037           }
13038           /^X\(\/\).*/{
13039             s//\1/
13040             q
13041           }
13042           s/.*/./; q'`
13043       test -d "$as_dir" && break
13044     done
13045     test -z "$as_dirs" || eval "mkdir $as_dirs"
13046   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13047
13048
13049 } # as_fn_mkdir_p
13050 if mkdir -p . 2>/dev/null; then
13051   as_mkdir_p='mkdir -p "$as_dir"'
13052 else
13053   test -d ./-p && rmdir ./-p
13054   as_mkdir_p=false
13055 fi
13056
13057
13058 # as_fn_executable_p FILE
13059 # -----------------------
13060 # Test if FILE is an executable regular file.
13061 as_fn_executable_p ()
13062 {
13063   test -f "$1" && test -x "$1"
13064 } # as_fn_executable_p
13065 as_test_x='test -x'
13066 as_executable_p=as_fn_executable_p
13067
13068 # Sed expression to map a string onto a valid CPP name.
13069 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13070
13071 # Sed expression to map a string onto a valid variable name.
13072 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13073
13074
13075 exec 6>&1
13076 ## ----------------------------------- ##
13077 ## Main body of $CONFIG_STATUS script. ##
13078 ## ----------------------------------- ##
13079 _ASEOF
13080 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13081
13082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13083 # Save the log message, to keep $0 and so on meaningful, and to
13084 # report actual input values of CONFIG_FILES etc. instead of their
13085 # values after options handling.
13086 ac_log="
13087 This file was extended by $as_me, which was
13088 generated by GNU Autoconf 2.69.  Invocation command line was
13089
13090   CONFIG_FILES    = $CONFIG_FILES
13091   CONFIG_HEADERS  = $CONFIG_HEADERS
13092   CONFIG_LINKS    = $CONFIG_LINKS
13093   CONFIG_COMMANDS = $CONFIG_COMMANDS
13094   $ $0 $@
13095
13096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13097 "
13098
13099 _ACEOF
13100
13101 case $ac_config_files in *"
13102 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13103 esac
13104
13105 case $ac_config_headers in *"
13106 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13107 esac
13108
13109
13110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13111 # Files that config.status was made for.
13112 config_files="$ac_config_files"
13113 config_headers="$ac_config_headers"
13114 config_commands="$ac_config_commands"
13115
13116 _ACEOF
13117
13118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13119 ac_cs_usage="\
13120 \`$as_me' instantiates files and other configuration actions
13121 from templates according to the current configuration.  Unless the files
13122 and actions are specified as TAGs, all are instantiated by default.
13123
13124 Usage: $0 [OPTION]... [TAG]...
13125
13126   -h, --help       print this help, then exit
13127   -V, --version    print version number and configuration settings, then exit
13128       --config     print configuration, then exit
13129   -q, --quiet, --silent
13130                    do not print progress messages
13131   -d, --debug      don't remove temporary files
13132       --recheck    update $as_me by reconfiguring in the same conditions
13133       --file=FILE[:TEMPLATE]
13134                    instantiate the configuration file FILE
13135       --header=FILE[:TEMPLATE]
13136                    instantiate the configuration header FILE
13137
13138 Configuration files:
13139 $config_files
13140
13141 Configuration headers:
13142 $config_headers
13143
13144 Configuration commands:
13145 $config_commands
13146
13147 Report bugs to the package provider."
13148
13149 _ACEOF
13150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13151 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13152 ac_cs_version="\\
13153 config.status
13154 configured by $0, generated by GNU Autoconf 2.69,
13155   with options \\"\$ac_cs_config\\"
13156
13157 Copyright (C) 2012 Free Software Foundation, Inc.
13158 This config.status script is free software; the Free Software Foundation
13159 gives unlimited permission to copy, distribute and modify it."
13160
13161 ac_pwd='$ac_pwd'
13162 srcdir='$srcdir'
13163 AWK='$AWK'
13164 test -n "\$AWK" || AWK=awk
13165 _ACEOF
13166
13167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13168 # The default lists apply if the user does not specify any file.
13169 ac_need_defaults=:
13170 while test $# != 0
13171 do
13172   case $1 in
13173   --*=?*)
13174     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13175     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13176     ac_shift=:
13177     ;;
13178   --*=)
13179     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13180     ac_optarg=
13181     ac_shift=:
13182     ;;
13183   *)
13184     ac_option=$1
13185     ac_optarg=$2
13186     ac_shift=shift
13187     ;;
13188   esac
13189
13190   case $ac_option in
13191   # Handling of the options.
13192   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13193     ac_cs_recheck=: ;;
13194   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13195     $as_echo "$ac_cs_version"; exit ;;
13196   --config | --confi | --conf | --con | --co | --c )
13197     $as_echo "$ac_cs_config"; exit ;;
13198   --debug | --debu | --deb | --de | --d | -d )
13199     debug=: ;;
13200   --file | --fil | --fi | --f )
13201     $ac_shift
13202     case $ac_optarg in
13203     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13204     '') as_fn_error $? "missing file argument" ;;
13205     esac
13206     as_fn_append CONFIG_FILES " '$ac_optarg'"
13207     ac_need_defaults=false;;
13208   --header | --heade | --head | --hea )
13209     $ac_shift
13210     case $ac_optarg in
13211     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13212     esac
13213     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13214     ac_need_defaults=false;;
13215   --he | --h)
13216     # Conflict between --help and --header
13217     as_fn_error $? "ambiguous option: \`$1'
13218 Try \`$0 --help' for more information.";;
13219   --help | --hel | -h )
13220     $as_echo "$ac_cs_usage"; exit ;;
13221   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13222   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13223     ac_cs_silent=: ;;
13224
13225   # This is an error.
13226   -*) as_fn_error $? "unrecognized option: \`$1'
13227 Try \`$0 --help' for more information." ;;
13228
13229   *) as_fn_append ac_config_targets " $1"
13230      ac_need_defaults=false ;;
13231
13232   esac
13233   shift
13234 done
13235
13236 ac_configure_extra_args=
13237
13238 if $ac_cs_silent; then
13239   exec 6>/dev/null
13240   ac_configure_extra_args="$ac_configure_extra_args --silent"
13241 fi
13242
13243 _ACEOF
13244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13245 if \$ac_cs_recheck; then
13246   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13247   shift
13248   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13249   CONFIG_SHELL='$SHELL'
13250   export CONFIG_SHELL
13251   exec "\$@"
13252 fi
13253
13254 _ACEOF
13255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13256 exec 5>>config.log
13257 {
13258   echo
13259   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13260 ## Running $as_me. ##
13261 _ASBOX
13262   $as_echo "$ac_log"
13263 } >&5
13264
13265 _ACEOF
13266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13267 #
13268 # INIT-COMMANDS
13269 #
13270
13271
13272 # The HP-UX ksh and POSIX shell print the target directory to stdout
13273 # if CDPATH is set.
13274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13275
13276 sed_quote_subst='$sed_quote_subst'
13277 double_quote_subst='$double_quote_subst'
13278 delay_variable_subst='$delay_variable_subst'
13279 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13280 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13281 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13282 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13283 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13284 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13285 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13286 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13287 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13288 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13289 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13290 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13291 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13292 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13293 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13294 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13295 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13296 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13297 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13298 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13299 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13300 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13301 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13302 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13303 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13304 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13305 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13306 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13307 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13308 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13309 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13310 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13311 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13312 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13313 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13314 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13315 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13316 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13317 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13318 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13319 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13320 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13321 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13322 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13323 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13324 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13325 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13326 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13327 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13328 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13329 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13330 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13331 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13332 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13335 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"`'
13336 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13337 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13338 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13339 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13340 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13341 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13342 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13343 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13344 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13345 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13346 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13347 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13348 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13349 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13350 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13351 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13352 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13353 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13354 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13355 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13356 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13357 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13358 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13359 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13360 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13361 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13362 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13363 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13364 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13365 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13366 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13367 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13368 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13369 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13370 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13371 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13372 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13373 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13374 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13375 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13376 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13377 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13378 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13379 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13380 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13381 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13382 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13383 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13384 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13385 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13386 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13387 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13388 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13389 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13390 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13391 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13392 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13393 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13394 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13395 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13396 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13397 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13398 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13399 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13400 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13401 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13402 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13403 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13404 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13405 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13406 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13407 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13408 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13409
13410 LTCC='$LTCC'
13411 LTCFLAGS='$LTCFLAGS'
13412 compiler='$compiler_DEFAULT'
13413
13414 # A function that is used when there is no print builtin or printf.
13415 func_fallback_echo ()
13416 {
13417   eval 'cat <<_LTECHO_EOF
13418 \$1
13419 _LTECHO_EOF'
13420 }
13421
13422 # Quote evaled strings.
13423 for var in SHELL \
13424 ECHO \
13425 PATH_SEPARATOR \
13426 SED \
13427 GREP \
13428 EGREP \
13429 FGREP \
13430 LD \
13431 NM \
13432 LN_S \
13433 lt_SP2NL \
13434 lt_NL2SP \
13435 reload_flag \
13436 OBJDUMP \
13437 deplibs_check_method \
13438 file_magic_cmd \
13439 file_magic_glob \
13440 want_nocaseglob \
13441 DLLTOOL \
13442 sharedlib_from_linklib_cmd \
13443 AR \
13444 AR_FLAGS \
13445 archiver_list_spec \
13446 STRIP \
13447 RANLIB \
13448 CC \
13449 CFLAGS \
13450 compiler \
13451 lt_cv_sys_global_symbol_pipe \
13452 lt_cv_sys_global_symbol_to_cdecl \
13453 lt_cv_sys_global_symbol_to_c_name_address \
13454 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13455 nm_file_list_spec \
13456 lt_prog_compiler_no_builtin_flag \
13457 lt_prog_compiler_pic \
13458 lt_prog_compiler_wl \
13459 lt_prog_compiler_static \
13460 lt_cv_prog_compiler_c_o \
13461 need_locks \
13462 MANIFEST_TOOL \
13463 DSYMUTIL \
13464 NMEDIT \
13465 LIPO \
13466 OTOOL \
13467 OTOOL64 \
13468 shrext_cmds \
13469 export_dynamic_flag_spec \
13470 whole_archive_flag_spec \
13471 compiler_needs_object \
13472 with_gnu_ld \
13473 allow_undefined_flag \
13474 no_undefined_flag \
13475 hardcode_libdir_flag_spec \
13476 hardcode_libdir_separator \
13477 exclude_expsyms \
13478 include_expsyms \
13479 file_list_spec \
13480 variables_saved_for_relink \
13481 libname_spec \
13482 library_names_spec \
13483 soname_spec \
13484 install_override_mode \
13485 finish_eval \
13486 old_striplib \
13487 striplib; do
13488     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13489     *[\\\\\\\`\\"\\\$]*)
13490       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13491       ;;
13492     *)
13493       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13494       ;;
13495     esac
13496 done
13497
13498 # Double-quote double-evaled strings.
13499 for var in reload_cmds \
13500 old_postinstall_cmds \
13501 old_postuninstall_cmds \
13502 old_archive_cmds \
13503 extract_expsyms_cmds \
13504 old_archive_from_new_cmds \
13505 old_archive_from_expsyms_cmds \
13506 archive_cmds \
13507 archive_expsym_cmds \
13508 module_cmds \
13509 module_expsym_cmds \
13510 export_symbols_cmds \
13511 prelink_cmds \
13512 postlink_cmds \
13513 postinstall_cmds \
13514 postuninstall_cmds \
13515 finish_cmds \
13516 sys_lib_search_path_spec \
13517 sys_lib_dlsearch_path_spec; do
13518     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13519     *[\\\\\\\`\\"\\\$]*)
13520       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13521       ;;
13522     *)
13523       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13524       ;;
13525     esac
13526 done
13527
13528 ac_aux_dir='$ac_aux_dir'
13529 xsi_shell='$xsi_shell'
13530 lt_shell_append='$lt_shell_append'
13531
13532 # See if we are running on zsh, and set the options which allow our
13533 # commands through without removal of \ escapes INIT.
13534 if test -n "\${ZSH_VERSION+set}" ; then
13535    setopt NO_GLOB_SUBST
13536 fi
13537
13538
13539     PACKAGE='$PACKAGE'
13540     VERSION='$VERSION'
13541     TIMESTAMP='$TIMESTAMP'
13542     RM='$RM'
13543     ofile='$ofile'
13544
13545
13546
13547
13548 _ACEOF
13549
13550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13551
13552 # Handling of arguments.
13553 for ac_config_target in $ac_config_targets
13554 do
13555   case $ac_config_target in
13556     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
13557     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13558     "include/builddefs") CONFIG_FILES="$CONFIG_FILES include/builddefs" ;;
13559
13560   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13561   esac
13562 done
13563
13564
13565 # If the user did not use the arguments to specify the items to instantiate,
13566 # then the envvar interface is used.  Set only those that are not.
13567 # We use the long form for the default assignment because of an extremely
13568 # bizarre bug on SunOS 4.1.3.
13569 if $ac_need_defaults; then
13570   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13571   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13572   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13573 fi
13574
13575 # Have a temporary directory for convenience.  Make it in the build tree
13576 # simply because there is no reason against having it here, and in addition,
13577 # creating and moving files from /tmp can sometimes cause problems.
13578 # Hook for its removal unless debugging.
13579 # Note that there is a small window in which the directory will not be cleaned:
13580 # after its creation but before its name has been assigned to `$tmp'.
13581 $debug ||
13582 {
13583   tmp= ac_tmp=
13584   trap 'exit_status=$?
13585   : "${ac_tmp:=$tmp}"
13586   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13587 ' 0
13588   trap 'as_fn_exit 1' 1 2 13 15
13589 }
13590 # Create a (secure) tmp directory for tmp files.
13591
13592 {
13593   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13594   test -d "$tmp"
13595 }  ||
13596 {
13597   tmp=./conf$$-$RANDOM
13598   (umask 077 && mkdir "$tmp")
13599 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13600 ac_tmp=$tmp
13601
13602 # Set up the scripts for CONFIG_FILES section.
13603 # No need to generate them if there are no CONFIG_FILES.
13604 # This happens for instance with `./config.status config.h'.
13605 if test -n "$CONFIG_FILES"; then
13606
13607
13608 ac_cr=`echo X | tr X '\015'`
13609 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13610 # But we know of no other shell where ac_cr would be empty at this
13611 # point, so we can use a bashism as a fallback.
13612 if test "x$ac_cr" = x; then
13613   eval ac_cr=\$\'\\r\'
13614 fi
13615 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13616 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13617   ac_cs_awk_cr='\\r'
13618 else
13619   ac_cs_awk_cr=$ac_cr
13620 fi
13621
13622 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13623 _ACEOF
13624
13625
13626 {
13627   echo "cat >conf$$subs.awk <<_ACEOF" &&
13628   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13629   echo "_ACEOF"
13630 } >conf$$subs.sh ||
13631   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13632 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13633 ac_delim='%!_!# '
13634 for ac_last_try in false false false false false :; do
13635   . ./conf$$subs.sh ||
13636     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13637
13638   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13639   if test $ac_delim_n = $ac_delim_num; then
13640     break
13641   elif $ac_last_try; then
13642     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13643   else
13644     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13645   fi
13646 done
13647 rm -f conf$$subs.sh
13648
13649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13650 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13651 _ACEOF
13652 sed -n '
13653 h
13654 s/^/S["/; s/!.*/"]=/
13655 p
13656 g
13657 s/^[^!]*!//
13658 :repl
13659 t repl
13660 s/'"$ac_delim"'$//
13661 t delim
13662 :nl
13663 h
13664 s/\(.\{148\}\)..*/\1/
13665 t more1
13666 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13667 p
13668 n
13669 b repl
13670 :more1
13671 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13672 p
13673 g
13674 s/.\{148\}//
13675 t nl
13676 :delim
13677 h
13678 s/\(.\{148\}\)..*/\1/
13679 t more2
13680 s/["\\]/\\&/g; s/^/"/; s/$/"/
13681 p
13682 b
13683 :more2
13684 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13685 p
13686 g
13687 s/.\{148\}//
13688 t delim
13689 ' <conf$$subs.awk | sed '
13690 /^[^""]/{
13691   N
13692   s/\n//
13693 }
13694 ' >>$CONFIG_STATUS || ac_write_fail=1
13695 rm -f conf$$subs.awk
13696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13697 _ACAWK
13698 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13699   for (key in S) S_is_set[key] = 1
13700   FS = "\a"
13701
13702 }
13703 {
13704   line = $ 0
13705   nfields = split(line, field, "@")
13706   substed = 0
13707   len = length(field[1])
13708   for (i = 2; i < nfields; i++) {
13709     key = field[i]
13710     keylen = length(key)
13711     if (S_is_set[key]) {
13712       value = S[key]
13713       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13714       len += length(value) + length(field[++i])
13715       substed = 1
13716     } else
13717       len += 1 + keylen
13718   }
13719
13720   print line
13721 }
13722
13723 _ACAWK
13724 _ACEOF
13725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13726 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13727   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13728 else
13729   cat
13730 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13731   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13732 _ACEOF
13733
13734 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13735 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13736 # trailing colons and then remove the whole line if VPATH becomes empty
13737 # (actually we leave an empty line to preserve line numbers).
13738 if test "x$srcdir" = x.; then
13739   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13740 h
13741 s///
13742 s/^/:/
13743 s/[      ]*$/:/
13744 s/:\$(srcdir):/:/g
13745 s/:\${srcdir}:/:/g
13746 s/:@srcdir@:/:/g
13747 s/^:*//
13748 s/:*$//
13749 x
13750 s/\(=[   ]*\).*/\1/
13751 G
13752 s/\n//
13753 s/^[^=]*=[       ]*$//
13754 }'
13755 fi
13756
13757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758 fi # test -n "$CONFIG_FILES"
13759
13760 # Set up the scripts for CONFIG_HEADERS section.
13761 # No need to generate them if there are no CONFIG_HEADERS.
13762 # This happens for instance with `./config.status Makefile'.
13763 if test -n "$CONFIG_HEADERS"; then
13764 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13765 BEGIN {
13766 _ACEOF
13767
13768 # Transform confdefs.h into an awk script `defines.awk', embedded as
13769 # here-document in config.status, that substitutes the proper values into
13770 # config.h.in to produce config.h.
13771
13772 # Create a delimiter string that does not exist in confdefs.h, to ease
13773 # handling of long lines.
13774 ac_delim='%!_!# '
13775 for ac_last_try in false false :; do
13776   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13777   if test -z "$ac_tt"; then
13778     break
13779   elif $ac_last_try; then
13780     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13781   else
13782     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13783   fi
13784 done
13785
13786 # For the awk script, D is an array of macro values keyed by name,
13787 # likewise P contains macro parameters if any.  Preserve backslash
13788 # newline sequences.
13789
13790 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13791 sed -n '
13792 s/.\{148\}/&'"$ac_delim"'/g
13793 t rset
13794 :rset
13795 s/^[     ]*#[    ]*define[       ][      ]*/ /
13796 t def
13797 d
13798 :def
13799 s/\\$//
13800 t bsnl
13801 s/["\\]/\\&/g
13802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13803 D["\1"]=" \3"/p
13804 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13805 d
13806 :bsnl
13807 s/["\\]/\\&/g
13808 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13809 D["\1"]=" \3\\\\\\n"\\/p
13810 t cont
13811 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13812 t cont
13813 d
13814 :cont
13815 n
13816 s/.\{148\}/&'"$ac_delim"'/g
13817 t clear
13818 :clear
13819 s/\\$//
13820 t bsnlc
13821 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13822 d
13823 :bsnlc
13824 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13825 b cont
13826 ' <confdefs.h | sed '
13827 s/'"$ac_delim"'/"\\\
13828 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13829
13830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13831   for (key in D) D_is_set[key] = 1
13832   FS = "\a"
13833 }
13834 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13835   line = \$ 0
13836   split(line, arg, " ")
13837   if (arg[1] == "#") {
13838     defundef = arg[2]
13839     mac1 = arg[3]
13840   } else {
13841     defundef = substr(arg[1], 2)
13842     mac1 = arg[2]
13843   }
13844   split(mac1, mac2, "(") #)
13845   macro = mac2[1]
13846   prefix = substr(line, 1, index(line, defundef) - 1)
13847   if (D_is_set[macro]) {
13848     # Preserve the white space surrounding the "#".
13849     print prefix "define", macro P[macro] D[macro]
13850     next
13851   } else {
13852     # Replace #undef with comments.  This is necessary, for example,
13853     # in the case of _POSIX_SOURCE, which is predefined and required
13854     # on some systems where configure will not decide to define it.
13855     if (defundef == "undef") {
13856       print "/*", prefix defundef, macro, "*/"
13857       next
13858     }
13859   }
13860 }
13861 { print }
13862 _ACAWK
13863 _ACEOF
13864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13866 fi # test -n "$CONFIG_HEADERS"
13867
13868
13869 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13870 shift
13871 for ac_tag
13872 do
13873   case $ac_tag in
13874   :[FHLC]) ac_mode=$ac_tag; continue;;
13875   esac
13876   case $ac_mode$ac_tag in
13877   :[FHL]*:*);;
13878   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13879   :[FH]-) ac_tag=-:-;;
13880   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13881   esac
13882   ac_save_IFS=$IFS
13883   IFS=:
13884   set x $ac_tag
13885   IFS=$ac_save_IFS
13886   shift
13887   ac_file=$1
13888   shift
13889
13890   case $ac_mode in
13891   :L) ac_source=$1;;
13892   :[FH])
13893     ac_file_inputs=
13894     for ac_f
13895     do
13896       case $ac_f in
13897       -) ac_f="$ac_tmp/stdin";;
13898       *) # Look for the file first in the build tree, then in the source tree
13899          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13900          # because $ac_f cannot contain `:'.
13901          test -f "$ac_f" ||
13902            case $ac_f in
13903            [\\/$]*) false;;
13904            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13905            esac ||
13906            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13907       esac
13908       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13909       as_fn_append ac_file_inputs " '$ac_f'"
13910     done
13911
13912     # Let's still pretend it is `configure' which instantiates (i.e., don't
13913     # use $as_me), people would be surprised to read:
13914     #    /* config.h.  Generated by config.status.  */
13915     configure_input='Generated from '`
13916           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13917         `' by configure.'
13918     if test x"$ac_file" != x-; then
13919       configure_input="$ac_file.  $configure_input"
13920       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13921 $as_echo "$as_me: creating $ac_file" >&6;}
13922     fi
13923     # Neutralize special characters interpreted by sed in replacement strings.
13924     case $configure_input in #(
13925     *\&* | *\|* | *\\* )
13926        ac_sed_conf_input=`$as_echo "$configure_input" |
13927        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13928     *) ac_sed_conf_input=$configure_input;;
13929     esac
13930
13931     case $ac_tag in
13932     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13933       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13934     esac
13935     ;;
13936   esac
13937
13938   ac_dir=`$as_dirname -- "$ac_file" ||
13939 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13940          X"$ac_file" : 'X\(//\)[^/]' \| \
13941          X"$ac_file" : 'X\(//\)$' \| \
13942          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13943 $as_echo X"$ac_file" |
13944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13945             s//\1/
13946             q
13947           }
13948           /^X\(\/\/\)[^/].*/{
13949             s//\1/
13950             q
13951           }
13952           /^X\(\/\/\)$/{
13953             s//\1/
13954             q
13955           }
13956           /^X\(\/\).*/{
13957             s//\1/
13958             q
13959           }
13960           s/.*/./; q'`
13961   as_dir="$ac_dir"; as_fn_mkdir_p
13962   ac_builddir=.
13963
13964 case "$ac_dir" in
13965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13966 *)
13967   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13968   # A ".." for each directory in $ac_dir_suffix.
13969   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13970   case $ac_top_builddir_sub in
13971   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13972   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13973   esac ;;
13974 esac
13975 ac_abs_top_builddir=$ac_pwd
13976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13977 # for backward compatibility:
13978 ac_top_builddir=$ac_top_build_prefix
13979
13980 case $srcdir in
13981   .)  # We are building in place.
13982     ac_srcdir=.
13983     ac_top_srcdir=$ac_top_builddir_sub
13984     ac_abs_top_srcdir=$ac_pwd ;;
13985   [\\/]* | ?:[\\/]* )  # Absolute name.
13986     ac_srcdir=$srcdir$ac_dir_suffix;
13987     ac_top_srcdir=$srcdir
13988     ac_abs_top_srcdir=$srcdir ;;
13989   *) # Relative name.
13990     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13991     ac_top_srcdir=$ac_top_build_prefix$srcdir
13992     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13993 esac
13994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13995
13996
13997   case $ac_mode in
13998   :F)
13999   #
14000   # CONFIG_FILE
14001   #
14002
14003 _ACEOF
14004
14005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14006 # If the template does not know about datarootdir, expand it.
14007 # FIXME: This hack should be removed a few years after 2.60.
14008 ac_datarootdir_hack=; ac_datarootdir_seen=
14009 ac_sed_dataroot='
14010 /datarootdir/ {
14011   p
14012   q
14013 }
14014 /@datadir@/p
14015 /@docdir@/p
14016 /@infodir@/p
14017 /@localedir@/p
14018 /@mandir@/p'
14019 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14020 *datarootdir*) ac_datarootdir_seen=yes;;
14021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14022   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14023 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14024 _ACEOF
14025 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14026   ac_datarootdir_hack='
14027   s&@datadir@&$datadir&g
14028   s&@docdir@&$docdir&g
14029   s&@infodir@&$infodir&g
14030   s&@localedir@&$localedir&g
14031   s&@mandir@&$mandir&g
14032   s&\\\${datarootdir}&$datarootdir&g' ;;
14033 esac
14034 _ACEOF
14035
14036 # Neutralize VPATH when `$srcdir' = `.'.
14037 # Shell code in configure.ac might set extrasub.
14038 # FIXME: do we really want to maintain this feature?
14039 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14040 ac_sed_extra="$ac_vpsub
14041 $extrasub
14042 _ACEOF
14043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14044 :t
14045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14046 s|@configure_input@|$ac_sed_conf_input|;t t
14047 s&@top_builddir@&$ac_top_builddir_sub&;t t
14048 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14049 s&@srcdir@&$ac_srcdir&;t t
14050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14051 s&@top_srcdir@&$ac_top_srcdir&;t t
14052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14053 s&@builddir@&$ac_builddir&;t t
14054 s&@abs_builddir@&$ac_abs_builddir&;t t
14055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14056 $ac_datarootdir_hack
14057 "
14058 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14059   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14060
14061 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14062   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14063   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14064       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14065   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14066 which seems to be undefined.  Please make sure it is defined" >&5
14067 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14068 which seems to be undefined.  Please make sure it is defined" >&2;}
14069
14070   rm -f "$ac_tmp/stdin"
14071   case $ac_file in
14072   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14073   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14074   esac \
14075   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14076  ;;
14077   :H)
14078   #
14079   # CONFIG_HEADER
14080   #
14081   if test x"$ac_file" != x-; then
14082     {
14083       $as_echo "/* $configure_input  */" \
14084       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14085     } >"$ac_tmp/config.h" \
14086       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14087     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14088       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14089 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14090     else
14091       rm -f "$ac_file"
14092       mv "$ac_tmp/config.h" "$ac_file" \
14093         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14094     fi
14095   else
14096     $as_echo "/* $configure_input  */" \
14097       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14098       || as_fn_error $? "could not create -" "$LINENO" 5
14099   fi
14100  ;;
14101
14102   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14103 $as_echo "$as_me: executing $ac_file commands" >&6;}
14104  ;;
14105   esac
14106
14107
14108   case $ac_file$ac_mode in
14109     "libtool":C)
14110
14111     # See if we are running on zsh, and set the options which allow our
14112     # commands through without removal of \ escapes.
14113     if test -n "${ZSH_VERSION+set}" ; then
14114       setopt NO_GLOB_SUBST
14115     fi
14116
14117     cfgfile="${ofile}T"
14118     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14119     $RM "$cfgfile"
14120
14121     cat <<_LT_EOF >> "$cfgfile"
14122 #! $SHELL
14123
14124 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14125 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14127 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14128 #
14129 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14130 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14131 #                 Foundation, Inc.
14132 #   Written by Gordon Matzigkeit, 1996
14133 #
14134 #   This file is part of GNU Libtool.
14135 #
14136 # GNU Libtool is free software; you can redistribute it and/or
14137 # modify it under the terms of the GNU General Public License as
14138 # published by the Free Software Foundation; either version 2 of
14139 # the License, or (at your option) any later version.
14140 #
14141 # As a special exception to the GNU General Public License,
14142 # if you distribute this file as part of a program or library that
14143 # is built using GNU Libtool, you may include this file under the
14144 # same distribution terms that you use for the rest of that program.
14145 #
14146 # GNU Libtool is distributed in the hope that it will be useful,
14147 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14148 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14149 # GNU General Public License for more details.
14150 #
14151 # You should have received a copy of the GNU General Public License
14152 # along with GNU Libtool; see the file COPYING.  If not, a copy
14153 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14154 # obtained by writing to the Free Software Foundation, Inc.,
14155 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14156
14157
14158 # The names of the tagged configurations supported by this script.
14159 available_tags=""
14160
14161 # ### BEGIN LIBTOOL CONFIG
14162
14163 # Which release of libtool.m4 was used?
14164 macro_version=$macro_version
14165 macro_revision=$macro_revision
14166
14167 # Whether or not to build shared libraries.
14168 build_libtool_libs=$enable_shared
14169
14170 # Whether or not to build static libraries.
14171 build_old_libs=$enable_static
14172
14173 # What type of objects to build.
14174 pic_mode=$pic_mode
14175
14176 # Whether or not to optimize for fast installation.
14177 fast_install=$enable_fast_install
14178
14179 # Shell to use when invoking shell scripts.
14180 SHELL=$lt_SHELL
14181
14182 # An echo program that protects backslashes.
14183 ECHO=$lt_ECHO
14184
14185 # The PATH separator for the build system.
14186 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14187
14188 # The host system.
14189 host_alias=$host_alias
14190 host=$host
14191 host_os=$host_os
14192
14193 # The build system.
14194 build_alias=$build_alias
14195 build=$build
14196 build_os=$build_os
14197
14198 # A sed program that does not truncate output.
14199 SED=$lt_SED
14200
14201 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14202 Xsed="\$SED -e 1s/^X//"
14203
14204 # A grep program that handles long lines.
14205 GREP=$lt_GREP
14206
14207 # An ERE matcher.
14208 EGREP=$lt_EGREP
14209
14210 # A literal string matcher.
14211 FGREP=$lt_FGREP
14212
14213 # A BSD- or MS-compatible name lister.
14214 NM=$lt_NM
14215
14216 # Whether we need soft or hard links.
14217 LN_S=$lt_LN_S
14218
14219 # What is the maximum length of a command?
14220 max_cmd_len=$max_cmd_len
14221
14222 # Object file suffix (normally "o").
14223 objext=$ac_objext
14224
14225 # Executable file suffix (normally "").
14226 exeext=$exeext
14227
14228 # whether the shell understands "unset".
14229 lt_unset=$lt_unset
14230
14231 # turn spaces into newlines.
14232 SP2NL=$lt_lt_SP2NL
14233
14234 # turn newlines into spaces.
14235 NL2SP=$lt_lt_NL2SP
14236
14237 # convert \$build file names to \$host format.
14238 to_host_file_cmd=$lt_cv_to_host_file_cmd
14239
14240 # convert \$build files to toolchain format.
14241 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14242
14243 # An object symbol dumper.
14244 OBJDUMP=$lt_OBJDUMP
14245
14246 # Method to check whether dependent libraries are shared objects.
14247 deplibs_check_method=$lt_deplibs_check_method
14248
14249 # Command to use when deplibs_check_method = "file_magic".
14250 file_magic_cmd=$lt_file_magic_cmd
14251
14252 # How to find potential files when deplibs_check_method = "file_magic".
14253 file_magic_glob=$lt_file_magic_glob
14254
14255 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14256 want_nocaseglob=$lt_want_nocaseglob
14257
14258 # DLL creation program.
14259 DLLTOOL=$lt_DLLTOOL
14260
14261 # Command to associate shared and link libraries.
14262 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14263
14264 # The archiver.
14265 AR=$lt_AR
14266
14267 # Flags to create an archive.
14268 AR_FLAGS=$lt_AR_FLAGS
14269
14270 # How to feed a file listing to the archiver.
14271 archiver_list_spec=$lt_archiver_list_spec
14272
14273 # A symbol stripping program.
14274 STRIP=$lt_STRIP
14275
14276 # Commands used to install an old-style archive.
14277 RANLIB=$lt_RANLIB
14278 old_postinstall_cmds=$lt_old_postinstall_cmds
14279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14280
14281 # Whether to use a lock for old archive extraction.
14282 lock_old_archive_extraction=$lock_old_archive_extraction
14283
14284 # A C compiler.
14285 LTCC=$lt_CC
14286
14287 # LTCC compiler flags.
14288 LTCFLAGS=$lt_CFLAGS
14289
14290 # Take the output of nm and produce a listing of raw symbols and C names.
14291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14292
14293 # Transform the output of nm in a proper C declaration.
14294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14295
14296 # Transform the output of nm in a C name address pair.
14297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14298
14299 # Transform the output of nm in a C name address pair when lib prefix is needed.
14300 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14301
14302 # Specify filename containing input files for \$NM.
14303 nm_file_list_spec=$lt_nm_file_list_spec
14304
14305 # The root where to search for dependent libraries,and in which our libraries should be installed.
14306 lt_sysroot=$lt_sysroot
14307
14308 # The name of the directory that contains temporary libtool files.
14309 objdir=$objdir
14310
14311 # Used to examine libraries when file_magic_cmd begins with "file".
14312 MAGIC_CMD=$MAGIC_CMD
14313
14314 # Must we lock files when doing compilation?
14315 need_locks=$lt_need_locks
14316
14317 # Manifest tool.
14318 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14319
14320 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14321 DSYMUTIL=$lt_DSYMUTIL
14322
14323 # Tool to change global to local symbols on Mac OS X.
14324 NMEDIT=$lt_NMEDIT
14325
14326 # Tool to manipulate fat objects and archives on Mac OS X.
14327 LIPO=$lt_LIPO
14328
14329 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14330 OTOOL=$lt_OTOOL
14331
14332 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14333 OTOOL64=$lt_OTOOL64
14334
14335 # Old archive suffix (normally "a").
14336 libext=$libext
14337
14338 # Shared library suffix (normally ".so").
14339 shrext_cmds=$lt_shrext_cmds
14340
14341 # The commands to extract the exported symbol list from a shared archive.
14342 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14343
14344 # Variables whose values should be saved in libtool wrapper scripts and
14345 # restored at link time.
14346 variables_saved_for_relink=$lt_variables_saved_for_relink
14347
14348 # Do we need the "lib" prefix for modules?
14349 need_lib_prefix=$need_lib_prefix
14350
14351 # Do we need a version for libraries?
14352 need_version=$need_version
14353
14354 # Library versioning type.
14355 version_type=$version_type
14356
14357 # Shared library runtime path variable.
14358 runpath_var=$runpath_var
14359
14360 # Shared library path variable.
14361 shlibpath_var=$shlibpath_var
14362
14363 # Is shlibpath searched before the hard-coded library search path?
14364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14365
14366 # Format of library name prefix.
14367 libname_spec=$lt_libname_spec
14368
14369 # List of archive names.  First name is the real one, the rest are links.
14370 # The last name is the one that the linker finds with -lNAME
14371 library_names_spec=$lt_library_names_spec
14372
14373 # The coded name of the library, if different from the real name.
14374 soname_spec=$lt_soname_spec
14375
14376 # Permission mode override for installation of shared libraries.
14377 install_override_mode=$lt_install_override_mode
14378
14379 # Command to use after installation of a shared archive.
14380 postinstall_cmds=$lt_postinstall_cmds
14381
14382 # Command to use after uninstallation of a shared archive.
14383 postuninstall_cmds=$lt_postuninstall_cmds
14384
14385 # Commands used to finish a libtool library installation in a directory.
14386 finish_cmds=$lt_finish_cmds
14387
14388 # As "finish_cmds", except a single script fragment to be evaled but
14389 # not shown.
14390 finish_eval=$lt_finish_eval
14391
14392 # Whether we should hardcode library paths into libraries.
14393 hardcode_into_libs=$hardcode_into_libs
14394
14395 # Compile-time system search path for libraries.
14396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14397
14398 # Run-time system search path for libraries.
14399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14400
14401 # Whether dlopen is supported.
14402 dlopen_support=$enable_dlopen
14403
14404 # Whether dlopen of programs is supported.
14405 dlopen_self=$enable_dlopen_self
14406
14407 # Whether dlopen of statically linked programs is supported.
14408 dlopen_self_static=$enable_dlopen_self_static
14409
14410 # Commands to strip libraries.
14411 old_striplib=$lt_old_striplib
14412 striplib=$lt_striplib
14413
14414
14415 # The linker used to build libraries.
14416 LD=$lt_LD
14417
14418 # How to create reloadable object files.
14419 reload_flag=$lt_reload_flag
14420 reload_cmds=$lt_reload_cmds
14421
14422 # Commands used to build an old-style archive.
14423 old_archive_cmds=$lt_old_archive_cmds
14424
14425 # A language specific compiler.
14426 CC=$lt_compiler
14427
14428 # Is the compiler the GNU compiler?
14429 with_gcc=$GCC
14430
14431 # Compiler flag to turn off builtin functions.
14432 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14433
14434 # Additional compiler flags for building library objects.
14435 pic_flag=$lt_lt_prog_compiler_pic
14436
14437 # How to pass a linker flag through the compiler.
14438 wl=$lt_lt_prog_compiler_wl
14439
14440 # Compiler flag to prevent dynamic linking.
14441 link_static_flag=$lt_lt_prog_compiler_static
14442
14443 # Does compiler simultaneously support -c and -o options?
14444 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14445
14446 # Whether or not to add -lc for building shared libraries.
14447 build_libtool_need_lc=$archive_cmds_need_lc
14448
14449 # Whether or not to disallow shared libs when runtime libs are static.
14450 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14451
14452 # Compiler flag to allow reflexive dlopens.
14453 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14454
14455 # Compiler flag to generate shared objects directly from archives.
14456 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14457
14458 # Whether the compiler copes with passing no objects directly.
14459 compiler_needs_object=$lt_compiler_needs_object
14460
14461 # Create an old-style archive from a shared archive.
14462 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14463
14464 # Create a temporary old-style archive to link instead of a shared archive.
14465 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14466
14467 # Commands used to build a shared archive.
14468 archive_cmds=$lt_archive_cmds
14469 archive_expsym_cmds=$lt_archive_expsym_cmds
14470
14471 # Commands used to build a loadable module if different from building
14472 # a shared archive.
14473 module_cmds=$lt_module_cmds
14474 module_expsym_cmds=$lt_module_expsym_cmds
14475
14476 # Whether we are building with GNU ld or not.
14477 with_gnu_ld=$lt_with_gnu_ld
14478
14479 # Flag that allows shared libraries with undefined symbols to be built.
14480 allow_undefined_flag=$lt_allow_undefined_flag
14481
14482 # Flag that enforces no undefined symbols.
14483 no_undefined_flag=$lt_no_undefined_flag
14484
14485 # Flag to hardcode \$libdir into a binary during linking.
14486 # This must work even if \$libdir does not exist
14487 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14488
14489 # Whether we need a single "-rpath" flag with a separated argument.
14490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14491
14492 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14493 # DIR into the resulting binary.
14494 hardcode_direct=$hardcode_direct
14495
14496 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14497 # DIR into the resulting binary and the resulting library dependency is
14498 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14499 # library is relocated.
14500 hardcode_direct_absolute=$hardcode_direct_absolute
14501
14502 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14503 # into the resulting binary.
14504 hardcode_minus_L=$hardcode_minus_L
14505
14506 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14507 # into the resulting binary.
14508 hardcode_shlibpath_var=$hardcode_shlibpath_var
14509
14510 # Set to "yes" if building a shared library automatically hardcodes DIR
14511 # into the library and all subsequent libraries and executables linked
14512 # against it.
14513 hardcode_automatic=$hardcode_automatic
14514
14515 # Set to yes if linker adds runtime paths of dependent libraries
14516 # to runtime path list.
14517 inherit_rpath=$inherit_rpath
14518
14519 # Whether libtool must link a program against all its dependency libraries.
14520 link_all_deplibs=$link_all_deplibs
14521
14522 # Set to "yes" if exported symbols are required.
14523 always_export_symbols=$always_export_symbols
14524
14525 # The commands to list exported symbols.
14526 export_symbols_cmds=$lt_export_symbols_cmds
14527
14528 # Symbols that should not be listed in the preloaded symbols.
14529 exclude_expsyms=$lt_exclude_expsyms
14530
14531 # Symbols that must always be exported.
14532 include_expsyms=$lt_include_expsyms
14533
14534 # Commands necessary for linking programs (against libraries) with templates.
14535 prelink_cmds=$lt_prelink_cmds
14536
14537 # Commands necessary for finishing linking programs.
14538 postlink_cmds=$lt_postlink_cmds
14539
14540 # Specify filename containing input files.
14541 file_list_spec=$lt_file_list_spec
14542
14543 # How to hardcode a shared library path into an executable.
14544 hardcode_action=$hardcode_action
14545
14546 # ### END LIBTOOL CONFIG
14547
14548 _LT_EOF
14549
14550   case $host_os in
14551   aix3*)
14552     cat <<\_LT_EOF >> "$cfgfile"
14553 # AIX sometimes has problems with the GCC collect2 program.  For some
14554 # reason, if we set the COLLECT_NAMES environment variable, the problems
14555 # vanish in a puff of smoke.
14556 if test "X${COLLECT_NAMES+set}" != Xset; then
14557   COLLECT_NAMES=
14558   export COLLECT_NAMES
14559 fi
14560 _LT_EOF
14561     ;;
14562   esac
14563
14564
14565 ltmain="$ac_aux_dir/ltmain.sh"
14566
14567
14568   # We use sed instead of cat because bash on DJGPP gets confused if
14569   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14570   # text mode, it properly converts lines to CR/LF.  This bash problem
14571   # is reportedly fixed, but why not run on old versions too?
14572   sed '$q' "$ltmain" >> "$cfgfile" \
14573      || (rm -f "$cfgfile"; exit 1)
14574
14575   if test x"$xsi_shell" = xyes; then
14576   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14577 func_dirname ()\
14578 {\
14579 \    case ${1} in\
14580 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14581 \      *  ) func_dirname_result="${3}" ;;\
14582 \    esac\
14583 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14584   && mv -f "$cfgfile.tmp" "$cfgfile" \
14585     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14586 test 0 -eq $? || _lt_function_replace_fail=:
14587
14588
14589   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14590 func_basename ()\
14591 {\
14592 \    func_basename_result="${1##*/}"\
14593 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14594   && mv -f "$cfgfile.tmp" "$cfgfile" \
14595     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14596 test 0 -eq $? || _lt_function_replace_fail=:
14597
14598
14599   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14600 func_dirname_and_basename ()\
14601 {\
14602 \    case ${1} in\
14603 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14604 \      *  ) func_dirname_result="${3}" ;;\
14605 \    esac\
14606 \    func_basename_result="${1##*/}"\
14607 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14608   && mv -f "$cfgfile.tmp" "$cfgfile" \
14609     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14610 test 0 -eq $? || _lt_function_replace_fail=:
14611
14612
14613   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14614 func_stripname ()\
14615 {\
14616 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14617 \    # positional parameters, so assign one to ordinary parameter first.\
14618 \    func_stripname_result=${3}\
14619 \    func_stripname_result=${func_stripname_result#"${1}"}\
14620 \    func_stripname_result=${func_stripname_result%"${2}"}\
14621 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14622   && mv -f "$cfgfile.tmp" "$cfgfile" \
14623     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14624 test 0 -eq $? || _lt_function_replace_fail=:
14625
14626
14627   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14628 func_split_long_opt ()\
14629 {\
14630 \    func_split_long_opt_name=${1%%=*}\
14631 \    func_split_long_opt_arg=${1#*=}\
14632 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14633   && mv -f "$cfgfile.tmp" "$cfgfile" \
14634     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14635 test 0 -eq $? || _lt_function_replace_fail=:
14636
14637
14638   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14639 func_split_short_opt ()\
14640 {\
14641 \    func_split_short_opt_arg=${1#??}\
14642 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14643 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14644   && mv -f "$cfgfile.tmp" "$cfgfile" \
14645     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14646 test 0 -eq $? || _lt_function_replace_fail=:
14647
14648
14649   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14650 func_lo2o ()\
14651 {\
14652 \    case ${1} in\
14653 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14654 \      *)    func_lo2o_result=${1} ;;\
14655 \    esac\
14656 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14657   && mv -f "$cfgfile.tmp" "$cfgfile" \
14658     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659 test 0 -eq $? || _lt_function_replace_fail=:
14660
14661
14662   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14663 func_xform ()\
14664 {\
14665     func_xform_result=${1%.*}.lo\
14666 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14667   && mv -f "$cfgfile.tmp" "$cfgfile" \
14668     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14669 test 0 -eq $? || _lt_function_replace_fail=:
14670
14671
14672   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14673 func_arith ()\
14674 {\
14675     func_arith_result=$(( $* ))\
14676 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14677   && mv -f "$cfgfile.tmp" "$cfgfile" \
14678     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14679 test 0 -eq $? || _lt_function_replace_fail=:
14680
14681
14682   sed -e '/^func_len ()$/,/^} # func_len /c\
14683 func_len ()\
14684 {\
14685     func_len_result=${#1}\
14686 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14687   && mv -f "$cfgfile.tmp" "$cfgfile" \
14688     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14689 test 0 -eq $? || _lt_function_replace_fail=:
14690
14691 fi
14692
14693 if test x"$lt_shell_append" = xyes; then
14694   sed -e '/^func_append ()$/,/^} # func_append /c\
14695 func_append ()\
14696 {\
14697     eval "${1}+=\\${2}"\
14698 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14699   && mv -f "$cfgfile.tmp" "$cfgfile" \
14700     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14701 test 0 -eq $? || _lt_function_replace_fail=:
14702
14703
14704   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14705 func_append_quoted ()\
14706 {\
14707 \    func_quote_for_eval "${2}"\
14708 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14709 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14710   && mv -f "$cfgfile.tmp" "$cfgfile" \
14711     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14712 test 0 -eq $? || _lt_function_replace_fail=:
14713
14714
14715   # Save a `func_append' function call where possible by direct use of '+='
14716   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14717     && mv -f "$cfgfile.tmp" "$cfgfile" \
14718       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14719   test 0 -eq $? || _lt_function_replace_fail=:
14720 else
14721   # Save a `func_append' function call even when '+=' is not available
14722   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14723     && mv -f "$cfgfile.tmp" "$cfgfile" \
14724       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14725   test 0 -eq $? || _lt_function_replace_fail=:
14726 fi
14727
14728 if test x"$_lt_function_replace_fail" = x":"; then
14729   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14730 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14731 fi
14732
14733
14734    mv -f "$cfgfile" "$ofile" ||
14735     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14736   chmod +x "$ofile"
14737
14738  ;;
14739
14740   esac
14741 done # for ac_tag
14742
14743
14744 as_fn_exit 0
14745 _ACEOF
14746 ac_clean_files=$ac_clean_files_save
14747
14748 test $ac_write_fail = 0 ||
14749   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14750
14751
14752 # configure is writing to config.log, and then calls config.status.
14753 # config.status does its own redirection, appending to config.log.
14754 # Unfortunately, on DOS this fails, as config.log is still kept open
14755 # by configure, so config.status won't be able to write to it; its
14756 # output is simply discarded.  So we exec the FD to /dev/null,
14757 # effectively closing config.log, so it can be properly (re)opened and
14758 # appended to by config.status.  When coming back to configure, we
14759 # need to make the FD available again.
14760 if test "$no_create" != yes; then
14761   ac_cs_success=:
14762   ac_config_status_args=
14763   test "$silent" = yes &&
14764     ac_config_status_args="$ac_config_status_args --quiet"
14765   exec 5>/dev/null
14766   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14767   exec 5>>config.log
14768   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14769   # would make configure fail if this is the last instruction.
14770   $ac_cs_success || as_fn_exit 1
14771 fi
14772 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14773   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14774 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14775 fi
14776