]> andersk Git - test.git/blob - configure
Added an example for the SSH service option.
[test.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for shellinabox 2.9.
4 #
5 # Report bugs to <markus@shellinabox.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='shellinabox'
747 PACKAGE_TARNAME='shellinabox'
748 PACKAGE_VERSION='2.9'
749 PACKAGE_STRING='shellinabox 2.9'
750 PACKAGE_BUGREPORT='markus@shellinabox.com'
751
752 ac_c_werror_flag=
753 # Factoring default headers for most tests.
754 ac_includes_default="\
755 #include <stdio.h>
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
758 #endif
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
761 #endif
762 #ifdef STDC_HEADERS
763 # include <stdlib.h>
764 # include <stddef.h>
765 #else
766 # ifdef HAVE_STDLIB_H
767 #  include <stdlib.h>
768 # endif
769 #endif
770 #ifdef HAVE_STRING_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
772 #  include <memory.h>
773 # endif
774 # include <string.h>
775 #endif
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
778 #endif
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
781 #endif
782 #ifdef HAVE_STDINT_H
783 # include <stdint.h>
784 #endif
785 #ifdef HAVE_UNISTD_H
786 # include <unistd.h>
787 #endif"
788
789 ac_subst_vars='LTLIBOBJS
790 LIBOBJS
791 LIBTOOL_DEPS
792 CPP
793 OTOOL64
794 OTOOL
795 LIPO
796 NMEDIT
797 DSYMUTIL
798 lt_ECHO
799 RANLIB
800 AR
801 OBJDUMP
802 LN_S
803 NM
804 ac_ct_DUMPBIN
805 DUMPBIN
806 LD
807 FGREP
808 EGREP
809 GREP
810 SED
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 LIBTOOL
820 am__fastdepCC_FALSE
821 am__fastdepCC_TRUE
822 CCDEPMODE
823 AMDEPBACKSLASH
824 AMDEP_FALSE
825 AMDEP_TRUE
826 am__quote
827 am__include
828 DEPDIR
829 OBJEXT
830 EXEEXT
831 ac_ct_CC
832 CPPFLAGS
833 LDFLAGS
834 CFLAGS
835 CC
836 am__untar
837 am__tar
838 AMTAR
839 am__leading_dot
840 SET_MAKE
841 AWK
842 mkdir_p
843 MKDIR_P
844 INSTALL_STRIP_PROGRAM
845 STRIP
846 install_sh
847 MAKEINFO
848 AUTOHEADER
849 AUTOMAKE
850 AUTOCONF
851 ACLOCAL
852 VERSION
853 PACKAGE
854 CYGPATH_W
855 am__isrc
856 INSTALL_DATA
857 INSTALL_SCRIPT
858 INSTALL_PROGRAM
859 VCS_REVISION
860 target_alias
861 host_alias
862 build_alias
863 LIBS
864 ECHO_T
865 ECHO_N
866 ECHO_C
867 DEFS
868 mandir
869 localedir
870 libdir
871 psdir
872 pdfdir
873 dvidir
874 htmldir
875 infodir
876 docdir
877 oldincludedir
878 includedir
879 localstatedir
880 sharedstatedir
881 sysconfdir
882 datadir
883 datarootdir
884 libexecdir
885 sbindir
886 bindir
887 program_transform_name
888 prefix
889 exec_prefix
890 PACKAGE_BUGREPORT
891 PACKAGE_STRING
892 PACKAGE_VERSION
893 PACKAGE_TARNAME
894 PACKAGE_NAME
895 PATH_SEPARATOR
896 SHELL'
897 ac_subst_files=''
898 ac_user_opts='
899 enable_option_checking
900 enable_dependency_tracking
901 enable_shared
902 enable_static
903 with_pic
904 enable_fast_install
905 with_gnu_ld
906 enable_libtool_lock
907 enable_ssl
908 enable_pam
909 enable_runtime_loading
910 '
911       ac_precious_vars='build_alias
912 host_alias
913 target_alias
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974   # If the previous option needs an argument, assign it.
975   if test -n "$ac_prev"; then
976     eval $ac_prev=\$ac_option
977     ac_prev=
978     continue
979   fi
980
981   case $ac_option in
982   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983   *)    ac_optarg=yes ;;
984   esac
985
986   # Accept the important Cygnus configure options, so we can diagnose typos.
987
988   case $ac_dashdash$ac_option in
989   --)
990     ac_dashdash=yes ;;
991
992   -bindir | --bindir | --bindi | --bind | --bin | --bi)
993     ac_prev=bindir ;;
994   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995     bindir=$ac_optarg ;;
996
997   -build | --build | --buil | --bui | --bu)
998     ac_prev=build_alias ;;
999   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000     build_alias=$ac_optarg ;;
1001
1002   -cache-file | --cache-file | --cache-fil | --cache-fi \
1003   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004     ac_prev=cache_file ;;
1005   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007     cache_file=$ac_optarg ;;
1008
1009   --config-cache | -C)
1010     cache_file=config.cache ;;
1011
1012   -datadir | --datadir | --datadi | --datad)
1013     ac_prev=datadir ;;
1014   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015     datadir=$ac_optarg ;;
1016
1017   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018   | --dataroo | --dataro | --datar)
1019     ac_prev=datarootdir ;;
1020   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022     datarootdir=$ac_optarg ;;
1023
1024   -disable-* | --disable-*)
1025     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1029    { (exit 1); exit 1; }; }
1030     ac_useropt_orig=$ac_useropt
1031     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032     case $ac_user_opts in
1033       *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037          ac_unrecognized_sep=', ';;
1038     esac
1039     eval enable_$ac_useropt=no ;;
1040
1041   -docdir | --docdir | --docdi | --doc | --do)
1042     ac_prev=docdir ;;
1043   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044     docdir=$ac_optarg ;;
1045
1046   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047     ac_prev=dvidir ;;
1048   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049     dvidir=$ac_optarg ;;
1050
1051   -enable-* | --enable-*)
1052     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_useropt_orig=$ac_useropt
1058     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059     case $ac_user_opts in
1060       *"
1061 "enable_$ac_useropt"
1062 "*) ;;
1063       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1064          ac_unrecognized_sep=', ';;
1065     esac
1066     eval enable_$ac_useropt=\$ac_optarg ;;
1067
1068   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1069   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1070   | --exec | --exe | --ex)
1071     ac_prev=exec_prefix ;;
1072   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1073   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1074   | --exec=* | --exe=* | --ex=*)
1075     exec_prefix=$ac_optarg ;;
1076
1077   -gas | --gas | --ga | --g)
1078     # Obsolete; use --with-gas.
1079     with_gas=yes ;;
1080
1081   -help | --help | --hel | --he | -h)
1082     ac_init_help=long ;;
1083   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1084     ac_init_help=recursive ;;
1085   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1086     ac_init_help=short ;;
1087
1088   -host | --host | --hos | --ho)
1089     ac_prev=host_alias ;;
1090   -host=* | --host=* | --hos=* | --ho=*)
1091     host_alias=$ac_optarg ;;
1092
1093   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1094     ac_prev=htmldir ;;
1095   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1096   | --ht=*)
1097     htmldir=$ac_optarg ;;
1098
1099   -includedir | --includedir | --includedi | --included | --include \
1100   | --includ | --inclu | --incl | --inc)
1101     ac_prev=includedir ;;
1102   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1103   | --includ=* | --inclu=* | --incl=* | --inc=*)
1104     includedir=$ac_optarg ;;
1105
1106   -infodir | --infodir | --infodi | --infod | --info | --inf)
1107     ac_prev=infodir ;;
1108   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1109     infodir=$ac_optarg ;;
1110
1111   -libdir | --libdir | --libdi | --libd)
1112     ac_prev=libdir ;;
1113   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1114     libdir=$ac_optarg ;;
1115
1116   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1117   | --libexe | --libex | --libe)
1118     ac_prev=libexecdir ;;
1119   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1120   | --libexe=* | --libex=* | --libe=*)
1121     libexecdir=$ac_optarg ;;
1122
1123   -localedir | --localedir | --localedi | --localed | --locale)
1124     ac_prev=localedir ;;
1125   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1126     localedir=$ac_optarg ;;
1127
1128   -localstatedir | --localstatedir | --localstatedi | --localstated \
1129   | --localstate | --localstat | --localsta | --localst | --locals)
1130     ac_prev=localstatedir ;;
1131   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1132   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1133     localstatedir=$ac_optarg ;;
1134
1135   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1136     ac_prev=mandir ;;
1137   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1138     mandir=$ac_optarg ;;
1139
1140   -nfp | --nfp | --nf)
1141     # Obsolete; use --without-fp.
1142     with_fp=no ;;
1143
1144   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1145   | --no-cr | --no-c | -n)
1146     no_create=yes ;;
1147
1148   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1149   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1150     no_recursion=yes ;;
1151
1152   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1153   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1154   | --oldin | --oldi | --old | --ol | --o)
1155     ac_prev=oldincludedir ;;
1156   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1157   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1158   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1159     oldincludedir=$ac_optarg ;;
1160
1161   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1162     ac_prev=prefix ;;
1163   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1164     prefix=$ac_optarg ;;
1165
1166   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1167   | --program-pre | --program-pr | --program-p)
1168     ac_prev=program_prefix ;;
1169   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1170   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1171     program_prefix=$ac_optarg ;;
1172
1173   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1174   | --program-suf | --program-su | --program-s)
1175     ac_prev=program_suffix ;;
1176   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1177   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1178     program_suffix=$ac_optarg ;;
1179
1180   -program-transform-name | --program-transform-name \
1181   | --program-transform-nam | --program-transform-na \
1182   | --program-transform-n | --program-transform- \
1183   | --program-transform | --program-transfor \
1184   | --program-transfo | --program-transf \
1185   | --program-trans | --program-tran \
1186   | --progr-tra | --program-tr | --program-t)
1187     ac_prev=program_transform_name ;;
1188   -program-transform-name=* | --program-transform-name=* \
1189   | --program-transform-nam=* | --program-transform-na=* \
1190   | --program-transform-n=* | --program-transform-=* \
1191   | --program-transform=* | --program-transfor=* \
1192   | --program-transfo=* | --program-transf=* \
1193   | --program-trans=* | --program-tran=* \
1194   | --progr-tra=* | --program-tr=* | --program-t=*)
1195     program_transform_name=$ac_optarg ;;
1196
1197   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1198     ac_prev=pdfdir ;;
1199   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1200     pdfdir=$ac_optarg ;;
1201
1202   -psdir | --psdir | --psdi | --psd | --ps)
1203     ac_prev=psdir ;;
1204   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1205     psdir=$ac_optarg ;;
1206
1207   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1208   | -silent | --silent | --silen | --sile | --sil)
1209     silent=yes ;;
1210
1211   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1212     ac_prev=sbindir ;;
1213   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1214   | --sbi=* | --sb=*)
1215     sbindir=$ac_optarg ;;
1216
1217   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1218   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1219   | --sharedst | --shareds | --shared | --share | --shar \
1220   | --sha | --sh)
1221     ac_prev=sharedstatedir ;;
1222   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1223   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1224   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1225   | --sha=* | --sh=*)
1226     sharedstatedir=$ac_optarg ;;
1227
1228   -site | --site | --sit)
1229     ac_prev=site ;;
1230   -site=* | --site=* | --sit=*)
1231     site=$ac_optarg ;;
1232
1233   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1234     ac_prev=srcdir ;;
1235   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1236     srcdir=$ac_optarg ;;
1237
1238   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1239   | --syscon | --sysco | --sysc | --sys | --sy)
1240     ac_prev=sysconfdir ;;
1241   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1242   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1243     sysconfdir=$ac_optarg ;;
1244
1245   -target | --target | --targe | --targ | --tar | --ta | --t)
1246     ac_prev=target_alias ;;
1247   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1248     target_alias=$ac_optarg ;;
1249
1250   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1251     verbose=yes ;;
1252
1253   -version | --version | --versio | --versi | --vers | -V)
1254     ac_init_version=: ;;
1255
1256   -with-* | --with-*)
1257     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1258     # Reject names that are not valid shell variable names.
1259     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1261    { (exit 1); exit 1; }; }
1262     ac_useropt_orig=$ac_useropt
1263     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264     case $ac_user_opts in
1265       *"
1266 "with_$ac_useropt"
1267 "*) ;;
1268       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269          ac_unrecognized_sep=', ';;
1270     esac
1271     eval with_$ac_useropt=\$ac_optarg ;;
1272
1273   -without-* | --without-*)
1274     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275     # Reject names that are not valid shell variable names.
1276     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1278    { (exit 1); exit 1; }; }
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=no ;;
1289
1290   --x)
1291     # Obsolete; use --with-x.
1292     with_x=yes ;;
1293
1294   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295   | --x-incl | --x-inc | --x-in | --x-i)
1296     ac_prev=x_includes ;;
1297   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299     x_includes=$ac_optarg ;;
1300
1301   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303     ac_prev=x_libraries ;;
1304   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306     x_libraries=$ac_optarg ;;
1307
1308   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1309 Try \`$0 --help' for more information." >&2
1310    { (exit 1); exit 1; }; }
1311     ;;
1312
1313   *=*)
1314     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315     # Reject names that are not valid shell variable names.
1316     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1317       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1318    { (exit 1); exit 1; }; }
1319     eval $ac_envvar=\$ac_optarg
1320     export $ac_envvar ;;
1321
1322   *)
1323     # FIXME: should be removed in autoconf 3.0.
1324     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1328     ;;
1329
1330   esac
1331 done
1332
1333 if test -n "$ac_prev"; then
1334   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1336    { (exit 1); exit 1; }; }
1337 fi
1338
1339 if test -n "$ac_unrecognized_opts"; then
1340   case $enable_option_checking in
1341     no) ;;
1342     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1343    { (exit 1); exit 1; }; } ;;
1344     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1345   esac
1346 fi
1347
1348 # Check all directory arguments for consistency.
1349 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350                 datadir sysconfdir sharedstatedir localstatedir includedir \
1351                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352                 libdir localedir mandir
1353 do
1354   eval ac_val=\$$ac_var
1355   # Remove trailing slashes.
1356   case $ac_val in
1357     */ )
1358       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1359       eval $ac_var=\$ac_val;;
1360   esac
1361   # Be sure to have absolute directory names.
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$as_myself" ||
1409 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$as_myself" : 'X\(//\)[^/]' \| \
1411          X"$as_myself" : 'X\(//\)$' \| \
1412          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1413 $as_echo X"$as_myself" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures shellinabox 2.9 to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR            user executables [EPREFIX/bin]
1507   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR        program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR            object code libraries [EPREFIX/lib]
1513   --includedir=DIR        C header files [PREFIX/include]
1514   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR           info documentation [DATAROOTDIR/info]
1518   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR            man documentation [DATAROOTDIR/man]
1520   --docdir=DIR            documentation root [DATAROOTDIR/doc/shellinabox]
1521   --htmldir=DIR           html documentation [DOCDIR]
1522   --dvidir=DIR            dvi documentation [DOCDIR]
1523   --pdfdir=DIR            pdf documentation [DOCDIR]
1524   --psdir=DIR             ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 Program names:
1530   --program-prefix=PREFIX            prepend PREFIX to installed program names
1531   --program-suffix=SUFFIX            append SUFFIX to installed program names
1532   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537 _ACEOF
1538 fi
1539
1540 if test -n "$ac_init_help"; then
1541   case $ac_init_help in
1542      short | recursive ) echo "Configuration of shellinabox 2.9:";;
1543    esac
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-option-checking  ignore unrecognized --enable/--with options
1548   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1549   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1550   --disable-dependency-tracking  speeds up one-time build
1551   --enable-dependency-tracking   do not reject slow dependency extractors
1552   --enable-shared[=PKGS]  build shared libraries [default=yes]
1553   --enable-static[=PKGS]  build static libraries [default=yes]
1554   --enable-fast-install[=PKGS]
1555                           optimize for fast installation [default=yes]
1556   --disable-libtool-lock  avoid locking (might break parallel builds)
1557   --disable-ssl             if available at built-time, support for SSL
1558                             connections will be enabled. It can still be
1559                             disabled at run-time, either on the daemon's
1560                             command line or if the operating system does not
1561                             have the OpenSSL libraries available.
1562   --disable-pam             PAM support is necessary in order to authenticate
1563                             users for running programs other than their default
1564                             login shell.
1565   --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1566                             libraries at run-time, if it has been compiled with
1567                             support for these libraries, and if the operating
1568                             system supports dynamic loading of libraries. This
1569                             allows you to install the same binary on different
1570                             systems independent of whether they have OpenSSL
1571                             and PAM enabled.  If you would rather directly link
1572                             these libraries into the binary, thus making them a
1573                             hard dependency, then disable runtime-loading.
1574
1575 Optional Packages:
1576   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1577   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1578   --with-pic              try to use only PIC/non-PIC objects [default=use
1579                           both]
1580   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1581
1582 Some influential environment variables:
1583   CC          C compiler command
1584   CFLAGS      C compiler flags
1585   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1586               nonstandard directory <lib dir>
1587   LIBS        libraries to pass to the linker, e.g. -l<library>
1588   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1589               you have headers in a nonstandard directory <include dir>
1590   CPP         C preprocessor
1591
1592 Use these variables to override the choices made by `configure' or to help
1593 it to find libraries and programs with nonstandard names/locations.
1594
1595 Report bugs to <markus@shellinabox.com>.
1596 _ACEOF
1597 ac_status=$?
1598 fi
1599
1600 if test "$ac_init_help" = "recursive"; then
1601   # If there are subdirs, report their specific --help.
1602   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1603     test -d "$ac_dir" ||
1604       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605       continue
1606     ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612   # A ".." for each directory in $ac_dir_suffix.
1613   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614   case $ac_top_builddir_sub in
1615   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617   esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625   .)  # We are building in place.
1626     ac_srcdir=.
1627     ac_top_srcdir=$ac_top_builddir_sub
1628     ac_abs_top_srcdir=$ac_pwd ;;
1629   [\\/]* | ?:[\\/]* )  # Absolute name.
1630     ac_srcdir=$srcdir$ac_dir_suffix;
1631     ac_top_srcdir=$srcdir
1632     ac_abs_top_srcdir=$srcdir ;;
1633   *) # Relative name.
1634     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635     ac_top_srcdir=$ac_top_build_prefix$srcdir
1636     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640     cd "$ac_dir" || { ac_status=$?; continue; }
1641     # Check for guested configure.
1642     if test -f "$ac_srcdir/configure.gnu"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645     elif test -f "$ac_srcdir/configure"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure" --help=recursive
1648     else
1649       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650     fi || ac_status=$?
1651     cd "$ac_pwd" || { ac_status=$?; break; }
1652   done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657   cat <<\_ACEOF
1658 shellinabox configure 2.9
1659 generated by GNU Autoconf 2.63
1660
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666   exit
1667 fi
1668 cat >config.log <<_ACEOF
1669 This file contains any messages produced by compilers while
1670 running configure, to aid debugging if configure makes a mistake.
1671
1672 It was created by shellinabox $as_me 2.9, which was
1673 generated by GNU Autoconf 2.63.  Invocation command line was
1674
1675   $ $0 $@
1676
1677 _ACEOF
1678 exec 5>>config.log
1679 {
1680 cat <<_ASUNAME
1681 ## --------- ##
1682 ## Platform. ##
1683 ## --------- ##
1684
1685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690
1691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1693
1694 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1695 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1698 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1699 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1700 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1701
1702 _ASUNAME
1703
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   $as_echo "PATH: $as_dir"
1710 done
1711 IFS=$as_save_IFS
1712
1713 } >&5
1714
1715 cat >&5 <<_ACEOF
1716
1717
1718 ## ----------- ##
1719 ## Core tests. ##
1720 ## ----------- ##
1721
1722 _ACEOF
1723
1724
1725 # Keep a trace of the command line.
1726 # Strip out --no-create and --no-recursion so they do not pile up.
1727 # Strip out --silent because we don't want to record it for future runs.
1728 # Also quote any args containing shell meta-characters.
1729 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_configure_args=
1731 ac_configure_args0=
1732 ac_configure_args1=
1733 ac_must_keep_next=false
1734 for ac_pass in 1 2
1735 do
1736   for ac_arg
1737   do
1738     case $ac_arg in
1739     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741     | -silent | --silent | --silen | --sile | --sil)
1742       continue ;;
1743     *\'*)
1744       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745     esac
1746     case $ac_pass in
1747     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748     2)
1749       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750       if test $ac_must_keep_next = true; then
1751         ac_must_keep_next=false # Got value, back to normal.
1752       else
1753         case $ac_arg in
1754           *=* | --config-cache | -C | -disable-* | --disable-* \
1755           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757           | -with-* | --with-* | -without-* | --without-* | --x)
1758             case "$ac_configure_args0 " in
1759               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760             esac
1761             ;;
1762           -* ) ac_must_keep_next=true ;;
1763         esac
1764       fi
1765       ac_configure_args="$ac_configure_args '$ac_arg'"
1766       ;;
1767     esac
1768   done
1769 done
1770 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772
1773 # When interrupted or exit'd, cleanup temporary files, and complete
1774 # config.log.  We remove comments because anyway the quotes in there
1775 # would cause problems or look ugly.
1776 # WARNING: Use '\'' to represent an apostrophe within the trap.
1777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778 trap 'exit_status=$?
1779   # Save into config.log some information that might help in debugging.
1780   {
1781     echo
1782
1783     cat <<\_ASBOX
1784 ## ---------------- ##
1785 ## Cache variables. ##
1786 ## ---------------- ##
1787 _ASBOX
1788     echo
1789     # The following way of writing the cache mishandles newlines in values,
1790 (
1791   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792     eval ac_val=\$$ac_var
1793     case $ac_val in #(
1794     *${as_nl}*)
1795       case $ac_var in #(
1796       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1797 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1798       esac
1799       case $ac_var in #(
1800       _ | IFS | as_nl) ;; #(
1801       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1802       *) $as_unset $ac_var ;;
1803       esac ;;
1804     esac
1805   done
1806   (set) 2>&1 |
1807     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808     *${as_nl}ac_space=\ *)
1809       sed -n \
1810         "s/'\''/'\''\\\\'\'''\''/g;
1811           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812       ;; #(
1813     *)
1814       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1815       ;;
1816     esac |
1817     sort
1818 )
1819     echo
1820
1821     cat <<\_ASBOX
1822 ## ----------------- ##
1823 ## Output variables. ##
1824 ## ----------------- ##
1825 _ASBOX
1826     echo
1827     for ac_var in $ac_subst_vars
1828     do
1829       eval ac_val=\$$ac_var
1830       case $ac_val in
1831       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832       esac
1833       $as_echo "$ac_var='\''$ac_val'\''"
1834     done | sort
1835     echo
1836
1837     if test -n "$ac_subst_files"; then
1838       cat <<\_ASBOX
1839 ## ------------------- ##
1840 ## File substitutions. ##
1841 ## ------------------- ##
1842 _ASBOX
1843       echo
1844       for ac_var in $ac_subst_files
1845       do
1846         eval ac_val=\$$ac_var
1847         case $ac_val in
1848         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849         esac
1850         $as_echo "$ac_var='\''$ac_val'\''"
1851       done | sort
1852       echo
1853     fi
1854
1855     if test -s confdefs.h; then
1856       cat <<\_ASBOX
1857 ## ----------- ##
1858 ## confdefs.h. ##
1859 ## ----------- ##
1860 _ASBOX
1861       echo
1862       cat confdefs.h
1863       echo
1864     fi
1865     test "$ac_signal" != 0 &&
1866       $as_echo "$as_me: caught signal $ac_signal"
1867     $as_echo "$as_me: exit $exit_status"
1868   } >&5
1869   rm -f core *.core core.conftest.* &&
1870     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1871     exit $exit_status
1872 ' 0
1873 for ac_signal in 1 2 13 15; do
1874   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875 done
1876 ac_signal=0
1877
1878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1879 rm -f -r conftest* confdefs.h
1880
1881 # Predefined preprocessor variables.
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_NAME "$PACKAGE_NAME"
1885 _ACEOF
1886
1887
1888 cat >>confdefs.h <<_ACEOF
1889 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890 _ACEOF
1891
1892
1893 cat >>confdefs.h <<_ACEOF
1894 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1895 _ACEOF
1896
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_STRING "$PACKAGE_STRING"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905 _ACEOF
1906
1907
1908 # Let the site file select an alternate cache file if it wants to.
1909 # Prefer an explicitly selected file to automatically selected ones.
1910 ac_site_file1=NONE
1911 ac_site_file2=NONE
1912 if test -n "$CONFIG_SITE"; then
1913   ac_site_file1=$CONFIG_SITE
1914 elif test "x$prefix" != xNONE; then
1915   ac_site_file1=$prefix/share/config.site
1916   ac_site_file2=$prefix/etc/config.site
1917 else
1918   ac_site_file1=$ac_default_prefix/share/config.site
1919   ac_site_file2=$ac_default_prefix/etc/config.site
1920 fi
1921 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1922 do
1923   test "x$ac_site_file" = xNONE && continue
1924   if test -r "$ac_site_file"; then
1925     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1926 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1927     sed 's/^/| /' "$ac_site_file" >&5
1928     . "$ac_site_file"
1929   fi
1930 done
1931
1932 if test -r "$cache_file"; then
1933   # Some versions of bash will fail to source /dev/null (special
1934   # files actually), so we avoid doing that.
1935   if test -f "$cache_file"; then
1936     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1937 $as_echo "$as_me: loading cache $cache_file" >&6;}
1938     case $cache_file in
1939       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1940       *)                      . "./$cache_file";;
1941     esac
1942   fi
1943 else
1944   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1945 $as_echo "$as_me: creating cache $cache_file" >&6;}
1946   >$cache_file
1947 fi
1948
1949 # Check that the precious variables saved in the cache have kept the same
1950 # value.
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954   eval ac_new_set=\$ac_env_${ac_var}_set
1955   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956   eval ac_new_val=\$ac_env_${ac_var}_value
1957   case $ac_old_set,$ac_new_set in
1958     set,)
1959       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961       ac_cache_corrupted=: ;;
1962     ,set)
1963       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965       ac_cache_corrupted=: ;;
1966     ,);;
1967     *)
1968       if test "x$ac_old_val" != "x$ac_new_val"; then
1969         # differences in whitespace do not lead to failure.
1970         ac_old_val_w=`echo x $ac_old_val`
1971         ac_new_val_w=`echo x $ac_new_val`
1972         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975           ac_cache_corrupted=:
1976         else
1977           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979           eval $ac_var=\$ac_old_val
1980         fi
1981         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1982 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1983         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1985       fi;;
1986   esac
1987   # Pass precious variables to config.status.
1988   if test "$ac_new_set" = set; then
1989     case $ac_new_val in
1990     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991     *) ac_arg=$ac_var=$ac_new_val ;;
1992     esac
1993     case " $ac_configure_args " in
1994       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1995       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996     esac
1997   fi
1998 done
1999 if $ac_cache_corrupted; then
2000   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006    { (exit 1); exit 1; }; }
2007 fi
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038
2039
2040 VCS_REVISION=161
2041
2042
2043 cat >>confdefs.h <<_ACEOF
2044 #define VCS_REVISION "${VCS_REVISION}"
2045 _ACEOF
2046
2047
2048 CFLAGS="${CFLAGS:--Os}"
2049 am__api_version='1.10'
2050
2051 ac_aux_dir=
2052 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2053   if test -f "$ac_dir/install-sh"; then
2054     ac_aux_dir=$ac_dir
2055     ac_install_sh="$ac_aux_dir/install-sh -c"
2056     break
2057   elif test -f "$ac_dir/install.sh"; then
2058     ac_aux_dir=$ac_dir
2059     ac_install_sh="$ac_aux_dir/install.sh -c"
2060     break
2061   elif test -f "$ac_dir/shtool"; then
2062     ac_aux_dir=$ac_dir
2063     ac_install_sh="$ac_aux_dir/shtool install -c"
2064     break
2065   fi
2066 done
2067 if test -z "$ac_aux_dir"; then
2068   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2069 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2070    { (exit 1); exit 1; }; }
2071 fi
2072
2073 # These three variables are undocumented and unsupported,
2074 # and are intended to be withdrawn in a future Autoconf release.
2075 # They can cause serious problems if a builder's source tree is in a directory
2076 # whose full name contains unusual characters.
2077 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2078 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2079 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2080
2081
2082 # Find a good install program.  We prefer a C program (faster),
2083 # so one script is as good as another.  But avoid the broken or
2084 # incompatible versions:
2085 # SysV /etc/install, /usr/sbin/install
2086 # SunOS /usr/etc/install
2087 # IRIX /sbin/install
2088 # AIX /bin/install
2089 # AmigaOS /C/install, which installs bootblocks on floppy discs
2090 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2091 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2092 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2093 # OS/2's system install, which has a completely different semantic
2094 # ./install, which can be erroneously created by make from ./install.sh.
2095 # Reject install programs that cannot install multiple files.
2096 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2097 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2098 if test -z "$INSTALL"; then
2099 if test "${ac_cv_path_install+set}" = set; then
2100   $as_echo_n "(cached) " >&6
2101 else
2102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105   IFS=$as_save_IFS
2106   test -z "$as_dir" && as_dir=.
2107   # Account for people who put trailing slashes in PATH elements.
2108 case $as_dir/ in
2109   ./ | .// | /cC/* | \
2110   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2111   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2112   /usr/ucb/* ) ;;
2113   *)
2114     # OSF1 and SCO ODT 3.0 have their own names for install.
2115     # Don't use installbsd from OSF since it installs stuff as root
2116     # by default.
2117     for ac_prog in ginstall scoinst install; do
2118       for ac_exec_ext in '' $ac_executable_extensions; do
2119         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2120           if test $ac_prog = install &&
2121             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2122             # AIX install.  It has an incompatible calling convention.
2123             :
2124           elif test $ac_prog = install &&
2125             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2126             # program-specific install script used by HP pwplus--don't use.
2127             :
2128           else
2129             rm -rf conftest.one conftest.two conftest.dir
2130             echo one > conftest.one
2131             echo two > conftest.two
2132             mkdir conftest.dir
2133             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2134               test -s conftest.one && test -s conftest.two &&
2135               test -s conftest.dir/conftest.one &&
2136               test -s conftest.dir/conftest.two
2137             then
2138               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2139               break 3
2140             fi
2141           fi
2142         fi
2143       done
2144     done
2145     ;;
2146 esac
2147
2148 done
2149 IFS=$as_save_IFS
2150
2151 rm -rf conftest.one conftest.two conftest.dir
2152
2153 fi
2154   if test "${ac_cv_path_install+set}" = set; then
2155     INSTALL=$ac_cv_path_install
2156   else
2157     # As a last resort, use the slow shell script.  Don't cache a
2158     # value for INSTALL within a source directory, because that will
2159     # break other packages using the cache if that directory is
2160     # removed, or if the value is a relative name.
2161     INSTALL=$ac_install_sh
2162   fi
2163 fi
2164 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2165 $as_echo "$INSTALL" >&6; }
2166
2167 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2168 # It thinks the first close brace ends the variable substitution.
2169 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2170
2171 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2172
2173 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2174
2175 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2176 $as_echo_n "checking whether build environment is sane... " >&6; }
2177 # Just in case
2178 sleep 1
2179 echo timestamp > conftest.file
2180 # Do `set' in a subshell so we don't clobber the current shell's
2181 # arguments.  Must try -L first in case configure is actually a
2182 # symlink; some systems play weird games with the mod time of symlinks
2183 # (eg FreeBSD returns the mod time of the symlink's containing
2184 # directory).
2185 if (
2186    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2187    if test "$*" = "X"; then
2188       # -L didn't work.
2189       set X `ls -t $srcdir/configure conftest.file`
2190    fi
2191    rm -f conftest.file
2192    if test "$*" != "X $srcdir/configure conftest.file" \
2193       && test "$*" != "X conftest.file $srcdir/configure"; then
2194
2195       # If neither matched, then we have a broken ls.  This can happen
2196       # if, for instance, CONFIG_SHELL is bash and it inherits a
2197       # broken ls alias from the environment.  This has actually
2198       # happened.  Such a system could not be considered "sane".
2199       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2200 alias in your environment" >&5
2201 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2202 alias in your environment" >&2;}
2203    { (exit 1); exit 1; }; }
2204    fi
2205
2206    test "$2" = conftest.file
2207    )
2208 then
2209    # Ok.
2210    :
2211 else
2212    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2213 Check your system clock" >&5
2214 $as_echo "$as_me: error: newly created file is older than distributed files!
2215 Check your system clock" >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi
2218 { $as_echo "$as_me:$LINENO: result: yes" >&5
2219 $as_echo "yes" >&6; }
2220 test "$program_prefix" != NONE &&
2221   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2222 # Use a double $ so make ignores it.
2223 test "$program_suffix" != NONE &&
2224   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2225 # Double any \ or $.
2226 # By default was `s,x,x', remove it if useless.
2227 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2228 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2229
2230 # expand $ac_aux_dir to an absolute path
2231 am_aux_dir=`cd $ac_aux_dir && pwd`
2232
2233 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2234 # Use eval to expand $SHELL
2235 if eval "$MISSING --run true"; then
2236   am_missing_run="$MISSING --run "
2237 else
2238   am_missing_run=
2239   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2240 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2241 fi
2242
2243 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2244 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2245 if test -z "$MKDIR_P"; then
2246   if test "${ac_cv_path_mkdir+set}" = set; then
2247   $as_echo_n "(cached) " >&6
2248 else
2249   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2251 do
2252   IFS=$as_save_IFS
2253   test -z "$as_dir" && as_dir=.
2254   for ac_prog in mkdir gmkdir; do
2255          for ac_exec_ext in '' $ac_executable_extensions; do
2256            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2257            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2258              'mkdir (GNU coreutils) '* | \
2259              'mkdir (coreutils) '* | \
2260              'mkdir (fileutils) '4.1*)
2261                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2262                break 3;;
2263            esac
2264          done
2265        done
2266 done
2267 IFS=$as_save_IFS
2268
2269 fi
2270
2271   if test "${ac_cv_path_mkdir+set}" = set; then
2272     MKDIR_P="$ac_cv_path_mkdir -p"
2273   else
2274     # As a last resort, use the slow shell script.  Don't cache a
2275     # value for MKDIR_P within a source directory, because that will
2276     # break other packages using the cache if that directory is
2277     # removed, or if the value is a relative name.
2278     test -d ./--version && rmdir ./--version
2279     MKDIR_P="$ac_install_sh -d"
2280   fi
2281 fi
2282 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2283 $as_echo "$MKDIR_P" >&6; }
2284
2285 mkdir_p="$MKDIR_P"
2286 case $mkdir_p in
2287   [\\/$]* | ?:[\\/]*) ;;
2288   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2289 esac
2290
2291 for ac_prog in gawk mawk nawk awk
2292 do
2293   # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 $as_echo_n "checking for $ac_word... " >&6; }
2297 if test "${ac_cv_prog_AWK+set}" = set; then
2298   $as_echo_n "(cached) " >&6
2299 else
2300   if test -n "$AWK"; then
2301   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310     ac_cv_prog_AWK="$ac_prog"
2311     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318 fi
2319 fi
2320 AWK=$ac_cv_prog_AWK
2321 if test -n "$AWK"; then
2322   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2323 $as_echo "$AWK" >&6; }
2324 else
2325   { $as_echo "$as_me:$LINENO: result: no" >&5
2326 $as_echo "no" >&6; }
2327 fi
2328
2329
2330   test -n "$AWK" && break
2331 done
2332
2333 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2334 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2335 set x ${MAKE-make}
2336 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2337 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2338   $as_echo_n "(cached) " >&6
2339 else
2340   cat >conftest.make <<\_ACEOF
2341 SHELL = /bin/sh
2342 all:
2343         @echo '@@@%%%=$(MAKE)=@@@%%%'
2344 _ACEOF
2345 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2346 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2347   *@@@%%%=?*=@@@%%%*)
2348     eval ac_cv_prog_make_${ac_make}_set=yes;;
2349   *)
2350     eval ac_cv_prog_make_${ac_make}_set=no;;
2351 esac
2352 rm -f conftest.make
2353 fi
2354 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2355   { $as_echo "$as_me:$LINENO: result: yes" >&5
2356 $as_echo "yes" >&6; }
2357   SET_MAKE=
2358 else
2359   { $as_echo "$as_me:$LINENO: result: no" >&5
2360 $as_echo "no" >&6; }
2361   SET_MAKE="MAKE=${MAKE-make}"
2362 fi
2363
2364 rm -rf .tst 2>/dev/null
2365 mkdir .tst 2>/dev/null
2366 if test -d .tst; then
2367   am__leading_dot=.
2368 else
2369   am__leading_dot=_
2370 fi
2371 rmdir .tst 2>/dev/null
2372
2373 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2374   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2375   # is not polluted with repeated "-I."
2376   am__isrc=' -I$(srcdir)'
2377   # test to see if srcdir already configured
2378   if test -f $srcdir/config.status; then
2379     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2380 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2381    { (exit 1); exit 1; }; }
2382   fi
2383 fi
2384
2385 # test whether we have cygpath
2386 if test -z "$CYGPATH_W"; then
2387   if (cygpath --version) >/dev/null 2>/dev/null; then
2388     CYGPATH_W='cygpath -w'
2389   else
2390     CYGPATH_W=echo
2391   fi
2392 fi
2393
2394
2395 # Define the identity of the package.
2396  PACKAGE='shellinabox'
2397  VERSION='2.9'
2398
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE "$PACKAGE"
2402 _ACEOF
2403
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define VERSION "$VERSION"
2407 _ACEOF
2408
2409 # Some tools Automake needs.
2410
2411 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2412
2413
2414 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2415
2416
2417 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2418
2419
2420 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2421
2422
2423 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2424
2425 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2426
2427 # Installed binaries are usually stripped using `strip' when the user
2428 # run `make install-strip'.  However `strip' might not be the right
2429 # tool to use in cross-compilation environments, therefore Automake
2430 # will honor the `STRIP' environment variable to overrule this program.
2431 if test "$cross_compiling" != no; then
2432   if test -n "$ac_tool_prefix"; then
2433   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2434 set dummy ${ac_tool_prefix}strip; ac_word=$2
2435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if test "${ac_cv_prog_STRIP+set}" = set; then
2438   $as_echo_n "(cached) " >&6
2439 else
2440   if test -n "$STRIP"; then
2441   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2442 else
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 for as_dir in $PATH
2445 do
2446   IFS=$as_save_IFS
2447   test -z "$as_dir" && as_dir=.
2448   for ac_exec_ext in '' $ac_executable_extensions; do
2449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2451     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2452     break 2
2453   fi
2454 done
2455 done
2456 IFS=$as_save_IFS
2457
2458 fi
2459 fi
2460 STRIP=$ac_cv_prog_STRIP
2461 if test -n "$STRIP"; then
2462   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2463 $as_echo "$STRIP" >&6; }
2464 else
2465   { $as_echo "$as_me:$LINENO: result: no" >&5
2466 $as_echo "no" >&6; }
2467 fi
2468
2469
2470 fi
2471 if test -z "$ac_cv_prog_STRIP"; then
2472   ac_ct_STRIP=$STRIP
2473   # Extract the first word of "strip", so it can be a program name with args.
2474 set dummy strip; ac_word=$2
2475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 $as_echo_n "checking for $ac_word... " >&6; }
2477 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2478   $as_echo_n "(cached) " >&6
2479 else
2480   if test -n "$ac_ct_STRIP"; then
2481   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2482 else
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 for as_dir in $PATH
2485 do
2486   IFS=$as_save_IFS
2487   test -z "$as_dir" && as_dir=.
2488   for ac_exec_ext in '' $ac_executable_extensions; do
2489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490     ac_cv_prog_ac_ct_STRIP="strip"
2491     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2492     break 2
2493   fi
2494 done
2495 done
2496 IFS=$as_save_IFS
2497
2498 fi
2499 fi
2500 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2501 if test -n "$ac_ct_STRIP"; then
2502   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2503 $as_echo "$ac_ct_STRIP" >&6; }
2504 else
2505   { $as_echo "$as_me:$LINENO: result: no" >&5
2506 $as_echo "no" >&6; }
2507 fi
2508
2509   if test "x$ac_ct_STRIP" = x; then
2510     STRIP=":"
2511   else
2512     case $cross_compiling:$ac_tool_warned in
2513 yes:)
2514 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2516 ac_tool_warned=yes ;;
2517 esac
2518     STRIP=$ac_ct_STRIP
2519   fi
2520 else
2521   STRIP="$ac_cv_prog_STRIP"
2522 fi
2523
2524 fi
2525 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2526
2527 # We need awk for the "check" target.  The system "awk" is bad on
2528 # some platforms.
2529 # Always define AMTAR for backward compatibility.
2530
2531 AMTAR=${AMTAR-"${am_missing_run}tar"}
2532
2533 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2534
2535
2536
2537
2538
2539 ac_config_headers="$ac_config_headers config.h"
2540
2541 ac_ext=c
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546 if test -n "$ac_tool_prefix"; then
2547   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if test "${ac_cv_prog_CC+set}" = set; then
2552   $as_echo_n "(cached) " >&6
2553 else
2554   if test -n "$CC"; then
2555   ac_cv_prog_CC="$CC" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560   IFS=$as_save_IFS
2561   test -z "$as_dir" && as_dir=.
2562   for ac_exec_ext in '' $ac_executable_extensions; do
2563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2565     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566     break 2
2567   fi
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2577 $as_echo "$CC" >&6; }
2578 else
2579   { $as_echo "$as_me:$LINENO: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$ac_cv_prog_CC"; then
2586   ac_ct_CC=$CC
2587   # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592   $as_echo_n "(cached) " >&6
2593 else
2594   if test -n "$ac_ct_CC"; then
2595   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602   for ac_exec_ext in '' $ac_executable_extensions; do
2603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604     ac_cv_prog_ac_ct_CC="gcc"
2605     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606     break 2
2607   fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617 $as_echo "$ac_ct_CC" >&6; }
2618 else
2619   { $as_echo "$as_me:$LINENO: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623   if test "x$ac_ct_CC" = x; then
2624     CC=""
2625   else
2626     case $cross_compiling:$ac_tool_warned in
2627 yes:)
2628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630 ac_tool_warned=yes ;;
2631 esac
2632     CC=$ac_ct_CC
2633   fi
2634 else
2635   CC="$ac_cv_prog_CC"
2636 fi
2637
2638 if test -z "$CC"; then
2639           if test -n "$ac_tool_prefix"; then
2640     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}cc; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$CC"; then
2648   ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655   for ac_exec_ext in '' $ac_executable_extensions; do
2656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657     ac_cv_prog_CC="${ac_tool_prefix}cc"
2658     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2670 $as_echo "$CC" >&6; }
2671 else
2672   { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677   fi
2678 fi
2679 if test -z "$CC"; then
2680   # Extract the first word of "cc", so it can be a program name with args.
2681 set dummy cc; ac_word=$2
2682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685   $as_echo_n "(cached) " >&6
2686 else
2687   if test -n "$CC"; then
2688   ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690   ac_prog_rejected=no
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694   IFS=$as_save_IFS
2695   test -z "$as_dir" && as_dir=.
2696   for ac_exec_ext in '' $ac_executable_extensions; do
2697   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699        ac_prog_rejected=yes
2700        continue
2701      fi
2702     ac_cv_prog_CC="cc"
2703     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704     break 2
2705   fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 if test $ac_prog_rejected = yes; then
2711   # We found a bogon in the path, so make sure we never use it.
2712   set dummy $ac_cv_prog_CC
2713   shift
2714   if test $# != 0; then
2715     # We chose a different compiler from the bogus one.
2716     # However, it has the same basename, so the bogon will be chosen
2717     # first if we set CC to just the basename; use the full file name.
2718     shift
2719     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720   fi
2721 fi
2722 fi
2723 fi
2724 CC=$ac_cv_prog_CC
2725 if test -n "$CC"; then
2726   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2728 else
2729   { $as_echo "$as_me:$LINENO: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733
2734 fi
2735 if test -z "$CC"; then
2736   if test -n "$ac_tool_prefix"; then
2737   for ac_prog in cl.exe
2738   do
2739     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744   $as_echo_n "(cached) " >&6
2745 else
2746   if test -n "$CC"; then
2747   ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752   IFS=$as_save_IFS
2753   test -z "$as_dir" && as_dir=.
2754   for ac_exec_ext in '' $ac_executable_extensions; do
2755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2757     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758     break 2
2759   fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771   { $as_echo "$as_me:$LINENO: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776     test -n "$CC" && break
2777   done
2778 fi
2779 if test -z "$CC"; then
2780   ac_ct_CC=$CC
2781   for ac_prog in cl.exe
2782 do
2783   # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2788   $as_echo_n "(cached) " >&6
2789 else
2790   if test -n "$ac_ct_CC"; then
2791   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796   IFS=$as_save_IFS
2797   test -z "$as_dir" && as_dir=.
2798   for ac_exec_ext in '' $ac_executable_extensions; do
2799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800     ac_cv_prog_ac_ct_CC="$ac_prog"
2801     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2813 $as_echo "$ac_ct_CC" >&6; }
2814 else
2815   { $as_echo "$as_me:$LINENO: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819
2820   test -n "$ac_ct_CC" && break
2821 done
2822
2823   if test "x$ac_ct_CC" = x; then
2824     CC=""
2825   else
2826     case $cross_compiling:$ac_tool_warned in
2827 yes:)
2828 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832     CC=$ac_ct_CC
2833   fi
2834 fi
2835
2836 fi
2837
2838
2839 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2842 See \`config.log' for more details." >&5
2843 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2844 See \`config.log' for more details." >&2;}
2845    { (exit 1); exit 1; }; }; }
2846
2847 # Provide some information about the compiler.
2848 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2849 set X $ac_compile
2850 ac_compiler=$2
2851 { (ac_try="$ac_compiler --version >&5"
2852 case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858   (eval "$ac_compiler --version >&5") 2>&5
2859   ac_status=$?
2860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }
2862 { (ac_try="$ac_compiler -v >&5"
2863 case "(($ac_try" in
2864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865   *) ac_try_echo=$ac_try;;
2866 esac
2867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868 $as_echo "$ac_try_echo") >&5
2869   (eval "$ac_compiler -v >&5") 2>&5
2870   ac_status=$?
2871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }
2873 { (ac_try="$ac_compiler -V >&5"
2874 case "(($ac_try" in
2875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876   *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880   (eval "$ac_compiler -V >&5") 2>&5
2881   ac_status=$?
2882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); }
2884
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h.  */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h.  */
2891
2892 int
2893 main ()
2894 {
2895
2896   ;
2897   return 0;
2898 }
2899 _ACEOF
2900 ac_clean_files_save=$ac_clean_files
2901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2904 # of exeext.
2905 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2906 $as_echo_n "checking for C compiler default output file name... " >&6; }
2907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2908
2909 # The possible output files:
2910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911
2912 ac_rmfiles=
2913 for ac_file in $ac_files
2914 do
2915   case $ac_file in
2916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918   esac
2919 done
2920 rm -f $ac_rmfiles
2921
2922 if { (ac_try="$ac_link_default"
2923 case "(($ac_try" in
2924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925   *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928 $as_echo "$ac_try_echo") >&5
2929   (eval "$ac_link_default") 2>&5
2930   ac_status=$?
2931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932   (exit $ac_status); }; then
2933   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2937 # Autoconf.
2938 for ac_file in $ac_files ''
2939 do
2940   test -f "$ac_file" || continue
2941   case $ac_file in
2942     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2943         ;;
2944     [ab].out )
2945         # We found the default executable, but exeext='' is most
2946         # certainly right.
2947         break;;
2948     *.* )
2949         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950         then :; else
2951            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952         fi
2953         # We set ac_cv_exeext here because the later test for it is not
2954         # safe: cross compilers may not add the suffix if given an `-o'
2955         # argument, so we may need to know it at that point already.
2956         # Even if this section looks crufty: it has the advantage of
2957         # actually working.
2958         break;;
2959     * )
2960         break;;
2961   esac
2962 done
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2965 else
2966   ac_file=''
2967 fi
2968
2969 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2970 $as_echo "$ac_file" >&6; }
2971 if test -z "$ac_file"; then
2972   $as_echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2978 See \`config.log' for more details." >&5
2979 $as_echo "$as_me: error: C compiler cannot create executables
2980 See \`config.log' for more details." >&2;}
2981    { (exit 77); exit 77; }; }; }
2982 fi
2983
2984 ac_exeext=$ac_cv_exeext
2985
2986 # Check that the compiler produces executables we can run.  If not, either
2987 # the compiler is broken, or we cross compile.
2988 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2989 $as_echo_n "checking whether the C compiler works... " >&6; }
2990 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2991 # If not cross compiling, check that we can run a simple program.
2992 if test "$cross_compiling" != yes; then
2993   if { ac_try='./$ac_file'
2994   { (case "(($ac_try" in
2995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996   *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999 $as_echo "$ac_try_echo") >&5
3000   (eval "$ac_try") 2>&5
3001   ac_status=$?
3002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); }; }; then
3004     cross_compiling=no
3005   else
3006     if test "$cross_compiling" = maybe; then
3007         cross_compiling=yes
3008     else
3009         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&5
3014 $as_echo "$as_me: error: cannot run C compiled programs.
3015 If you meant to cross compile, use \`--host'.
3016 See \`config.log' for more details." >&2;}
3017    { (exit 1); exit 1; }; }; }
3018     fi
3019   fi
3020 fi
3021 { $as_echo "$as_me:$LINENO: result: yes" >&5
3022 $as_echo "yes" >&6; }
3023
3024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3025 ac_clean_files=$ac_clean_files_save
3026 # Check that the compiler produces executables we can run.  If not, either
3027 # the compiler is broken, or we cross compile.
3028 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3029 $as_echo_n "checking whether we are cross compiling... " >&6; }
3030 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3031 $as_echo "$cross_compiling" >&6; }
3032
3033 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3034 $as_echo_n "checking for suffix of executables... " >&6; }
3035 if { (ac_try="$ac_link"
3036 case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041 $as_echo "$ac_try_echo") >&5
3042   (eval "$ac_link") 2>&5
3043   ac_status=$?
3044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045   (exit $ac_status); }; then
3046   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3047 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3048 # work properly (i.e., refer to `conftest.exe'), while it won't with
3049 # `rm'.
3050 for ac_file in conftest.exe conftest conftest.*; do
3051   test -f "$ac_file" || continue
3052   case $ac_file in
3053     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3054     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055           break;;
3056     * ) break;;
3057   esac
3058 done
3059 else
3060   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3063 See \`config.log' for more details." >&5
3064 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3065 See \`config.log' for more details." >&2;}
3066    { (exit 1); exit 1; }; }; }
3067 fi
3068
3069 rm -f conftest$ac_cv_exeext
3070 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3071 $as_echo "$ac_cv_exeext" >&6; }
3072
3073 rm -f conftest.$ac_ext
3074 EXEEXT=$ac_cv_exeext
3075 ac_exeext=$EXEEXT
3076 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3077 $as_echo_n "checking for suffix of object files... " >&6; }
3078 if test "${ac_cv_objext+set}" = set; then
3079   $as_echo_n "(cached) " >&6
3080 else
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091
3092   ;
3093   return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.o conftest.obj
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100   *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103 $as_echo "$ac_try_echo") >&5
3104   (eval "$ac_compile") 2>&5
3105   ac_status=$?
3106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); }; then
3108   for ac_file in conftest.o conftest.obj conftest.*; do
3109   test -f "$ac_file" || continue;
3110   case $ac_file in
3111     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3112     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113        break;;
3114   esac
3115 done
3116 else
3117   $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3123 See \`config.log' for more details." >&5
3124 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3125 See \`config.log' for more details." >&2;}
3126    { (exit 1); exit 1; }; }; }
3127 fi
3128
3129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130 fi
3131 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3132 $as_echo "$ac_cv_objext" >&6; }
3133 OBJEXT=$ac_cv_objext
3134 ac_objext=$OBJEXT
3135 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3138   $as_echo_n "(cached) " >&6
3139 else
3140   cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150 #ifndef __GNUC__
3151        choke me
3152 #endif
3153
3154   ;
3155   return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166   (eval "$ac_compile") 2>conftest.er1
3167   ac_status=$?
3168   grep -v '^ *+' conftest.er1 >conftest.err
3169   rm -f conftest.er1
3170   cat conftest.err >&5
3171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172   (exit $ac_status); } && {
3173          test -z "$ac_c_werror_flag" ||
3174          test ! -s conftest.err
3175        } && test -s conftest.$ac_objext; then
3176   ac_compiler_gnu=yes
3177 else
3178   $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181         ac_compiler_gnu=no
3182 fi
3183
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186
3187 fi
3188 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3189 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3190 if test $ac_compiler_gnu = yes; then
3191   GCC=yes
3192 else
3193   GCC=
3194 fi
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3198 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3199 if test "${ac_cv_prog_cc_g+set}" = set; then
3200   $as_echo_n "(cached) " >&6
3201 else
3202   ac_save_c_werror_flag=$ac_c_werror_flag
3203    ac_c_werror_flag=yes
3204    ac_cv_prog_cc_g=no
3205    CFLAGS="-g"
3206    cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3228 $as_echo "$ac_try_echo") >&5
3229   (eval "$ac_compile") 2>conftest.er1
3230   ac_status=$?
3231   grep -v '^ *+' conftest.er1 >conftest.err
3232   rm -f conftest.er1
3233   cat conftest.err >&5
3234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235   (exit $ac_status); } && {
3236          test -z "$ac_c_werror_flag" ||
3237          test ! -s conftest.err
3238        } && test -s conftest.$ac_objext; then
3239   ac_cv_prog_cc_g=yes
3240 else
3241   $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244         CFLAGS=""
3245       cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h.  */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h.  */
3251
3252 int
3253 main ()
3254 {
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268   (eval "$ac_compile") 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } && {
3275          test -z "$ac_c_werror_flag" ||
3276          test ! -s conftest.err
3277        } && test -s conftest.$ac_objext; then
3278   :
3279 else
3280   $as_echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283         ac_c_werror_flag=$ac_save_c_werror_flag
3284          CFLAGS="-g"
3285          cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h.  */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h.  */
3291
3292 int
3293 main ()
3294 {
3295
3296   ;
3297   return 0;
3298 }
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307 $as_echo "$ac_try_echo") >&5
3308   (eval "$ac_compile") 2>conftest.er1
3309   ac_status=$?
3310   grep -v '^ *+' conftest.er1 >conftest.err
3311   rm -f conftest.er1
3312   cat conftest.err >&5
3313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); } && {
3315          test -z "$ac_c_werror_flag" ||
3316          test ! -s conftest.err
3317        } && test -s conftest.$ac_objext; then
3318   ac_cv_prog_cc_g=yes
3319 else
3320   $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333    ac_c_werror_flag=$ac_save_c_werror_flag
3334 fi
3335 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3336 $as_echo "$ac_cv_prog_cc_g" >&6; }
3337 if test "$ac_test_CFLAGS" = set; then
3338   CFLAGS=$ac_save_CFLAGS
3339 elif test $ac_cv_prog_cc_g = yes; then
3340   if test "$GCC" = yes; then
3341     CFLAGS="-g -O2"
3342   else
3343     CFLAGS="-g"
3344   fi
3345 else
3346   if test "$GCC" = yes; then
3347     CFLAGS="-O2"
3348   else
3349     CFLAGS=
3350   fi
3351 fi
3352 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3353 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3354 if test "${ac_cv_prog_cc_c89+set}" = set; then
3355   $as_echo_n "(cached) " >&6
3356 else
3357   ac_cv_prog_cc_c89=no
3358 ac_save_CC=$CC
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365 #include <stdarg.h>
3366 #include <stdio.h>
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3370 struct buf { int x; };
3371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372 static char *e (p, i)
3373      char **p;
3374      int i;
3375 {
3376   return p[i];
3377 }
3378 static char *f (char * (*g) (char **, int), char **p, ...)
3379 {
3380   char *s;
3381   va_list v;
3382   va_start (v,p);
3383   s = g (p, va_arg (v,int));
3384   va_end (v);
3385   return s;
3386 }
3387
3388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3389    function prototypes and stuff, but not '\xHH' hex character constants.
3390    These don't provoke an error unfortunately, instead are silently treated
3391    as 'x'.  The following induces an error, until -std is added to get
3392    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3393    array size at least.  It's necessary to write '\x00'==0 to get something
3394    that's true only with -std.  */
3395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396
3397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398    inside strings and character constants.  */
3399 #define FOO(x) 'x'
3400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401
3402 int test (int i, double x);
3403 struct s1 {int (*f) (int a);};
3404 struct s2 {int (*f) (double a);};
3405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406 int argc;
3407 char **argv;
3408 int
3409 main ()
3410 {
3411 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418 do
3419   CC="$ac_save_CC $ac_arg"
3420   rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428   (eval "$ac_compile") 2>conftest.er1
3429   ac_status=$?
3430   grep -v '^ *+' conftest.er1 >conftest.err
3431   rm -f conftest.er1
3432   cat conftest.err >&5
3433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); } && {
3435          test -z "$ac_c_werror_flag" ||
3436          test ! -s conftest.err
3437        } && test -s conftest.$ac_objext; then
3438   ac_cv_prog_cc_c89=$ac_arg
3439 else
3440   $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443
3444 fi
3445
3446 rm -f core conftest.err conftest.$ac_objext
3447   test "x$ac_cv_prog_cc_c89" != "xno" && break
3448 done
3449 rm -f conftest.$ac_ext
3450 CC=$ac_save_CC
3451
3452 fi
3453 # AC_CACHE_VAL
3454 case "x$ac_cv_prog_cc_c89" in
3455   x)
3456     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3457 $as_echo "none needed" >&6; } ;;
3458   xno)
3459     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3460 $as_echo "unsupported" >&6; } ;;
3461   *)
3462     CC="$CC $ac_cv_prog_cc_c89"
3463     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3464 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465 esac
3466
3467
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 DEPDIR="${am__leading_dot}deps"
3474
3475 ac_config_commands="$ac_config_commands depfiles"
3476
3477
3478 am_make=${MAKE-make}
3479 cat > confinc << 'END'
3480 am__doit:
3481         @echo done
3482 .PHONY: am__doit
3483 END
3484 # If we don't find an include directive, just comment out the code.
3485 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3486 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3487 am__include="#"
3488 am__quote=
3489 _am_result=none
3490 # First try GNU make style include.
3491 echo "include confinc" > confmf
3492 # We grep out `Entering directory' and `Leaving directory'
3493 # messages which can occur if `w' ends up in MAKEFLAGS.
3494 # In particular we don't look at `^make:' because GNU make might
3495 # be invoked under some other name (usually "gmake"), in which
3496 # case it prints its new name instead of `make'.
3497 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3498    am__include=include
3499    am__quote=
3500    _am_result=GNU
3501 fi
3502 # Now try BSD make style include.
3503 if test "$am__include" = "#"; then
3504    echo '.include "confinc"' > confmf
3505    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3506       am__include=.include
3507       am__quote="\""
3508       _am_result=BSD
3509    fi
3510 fi
3511
3512
3513 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3514 $as_echo "$_am_result" >&6; }
3515 rm -f confinc confmf
3516
3517 # Check whether --enable-dependency-tracking was given.
3518 if test "${enable_dependency_tracking+set}" = set; then
3519   enableval=$enable_dependency_tracking;
3520 fi
3521
3522 if test "x$enable_dependency_tracking" != xno; then
3523   am_depcomp="$ac_aux_dir/depcomp"
3524   AMDEPBACKSLASH='\'
3525 fi
3526  if test "x$enable_dependency_tracking" != xno; then
3527   AMDEP_TRUE=
3528   AMDEP_FALSE='#'
3529 else
3530   AMDEP_TRUE='#'
3531   AMDEP_FALSE=
3532 fi
3533
3534
3535
3536 depcc="$CC"   am_compiler_list=
3537
3538 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3539 $as_echo_n "checking dependency style of $depcc... " >&6; }
3540 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3541   $as_echo_n "(cached) " >&6
3542 else
3543   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544   # We make a subdir and do the tests there.  Otherwise we can end up
3545   # making bogus files that we don't know about and never remove.  For
3546   # instance it was reported that on HP-UX the gcc test will end up
3547   # making a dummy file named `D' -- because `-MD' means `put the output
3548   # in D'.
3549   mkdir conftest.dir
3550   # Copy depcomp to subdir because otherwise we won't find it if we're
3551   # using a relative directory.
3552   cp "$am_depcomp" conftest.dir
3553   cd conftest.dir
3554   # We will build objects and dependencies in a subdirectory because
3555   # it helps to detect inapplicable dependency modes.  For instance
3556   # both Tru64's cc and ICC support -MD to output dependencies as a
3557   # side effect of compilation, but ICC will put the dependencies in
3558   # the current directory while Tru64 will put them in the object
3559   # directory.
3560   mkdir sub
3561
3562   am_cv_CC_dependencies_compiler_type=none
3563   if test "$am_compiler_list" = ""; then
3564      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565   fi
3566   for depmode in $am_compiler_list; do
3567     # Setup a source with many dependencies, because some compilers
3568     # like to wrap large dependency lists on column 80 (with \), and
3569     # we should not choose a depcomp mode which is confused by this.
3570     #
3571     # We need to recreate these files for each test, as the compiler may
3572     # overwrite some of them when testing with obscure command lines.
3573     # This happens at least with the AIX C compiler.
3574     : > sub/conftest.c
3575     for i in 1 2 3 4 5 6; do
3576       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3577       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3578       # Solaris 8's {/usr,}/bin/sh.
3579       touch sub/conftst$i.h
3580     done
3581     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582
3583     case $depmode in
3584     nosideeffect)
3585       # after this tag, mechanisms are not by side-effect, so they'll
3586       # only be used when explicitly requested
3587       if test "x$enable_dependency_tracking" = xyes; then
3588         continue
3589       else
3590         break
3591       fi
3592       ;;
3593     none) break ;;
3594     esac
3595     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596     # mode.  It turns out that the SunPro C++ compiler does not properly
3597     # handle `-M -o', and we need to detect this.
3598     if depmode=$depmode \
3599        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602          >/dev/null 2>conftest.err &&
3603        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3604        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607       # icc doesn't choke on unknown options, it will just issue warnings
3608       # or remarks (even with -Werror).  So we grep stderr for any message
3609       # that says an option was ignored or not supported.
3610       # When given -MP, icc 7.0 and 7.1 complain thusly:
3611       #   icc: Command line warning: ignoring option '-M'; no argument required
3612       # The diagnosis changed in icc 8.0:
3613       #   icc: Command line remark: option '-MP' not supported
3614       if (grep 'ignoring option' conftest.err ||
3615           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616         am_cv_CC_dependencies_compiler_type=$depmode
3617         break
3618       fi
3619     fi
3620   done
3621
3622   cd ..
3623   rm -rf conftest.dir
3624 else
3625   am_cv_CC_dependencies_compiler_type=none
3626 fi
3627
3628 fi
3629 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3630 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3632
3633  if
3634   test "x$enable_dependency_tracking" != xno \
3635   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636   am__fastdepCC_TRUE=
3637   am__fastdepCC_FALSE='#'
3638 else
3639   am__fastdepCC_TRUE='#'
3640   am__fastdepCC_FALSE=
3641 fi
3642
3643
3644
3645 ac_c_werror_flag=yes
3646 # Find a good install program.  We prefer a C program (faster),
3647 # so one script is as good as another.  But avoid the broken or
3648 # incompatible versions:
3649 # SysV /etc/install, /usr/sbin/install
3650 # SunOS /usr/etc/install
3651 # IRIX /sbin/install
3652 # AIX /bin/install
3653 # AmigaOS /C/install, which installs bootblocks on floppy discs
3654 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3655 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3656 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3657 # OS/2's system install, which has a completely different semantic
3658 # ./install, which can be erroneously created by make from ./install.sh.
3659 # Reject install programs that cannot install multiple files.
3660 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3661 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3662 if test -z "$INSTALL"; then
3663 if test "${ac_cv_path_install+set}" = set; then
3664   $as_echo_n "(cached) " >&6
3665 else
3666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 for as_dir in $PATH
3668 do
3669   IFS=$as_save_IFS
3670   test -z "$as_dir" && as_dir=.
3671   # Account for people who put trailing slashes in PATH elements.
3672 case $as_dir/ in
3673   ./ | .// | /cC/* | \
3674   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3676   /usr/ucb/* ) ;;
3677   *)
3678     # OSF1 and SCO ODT 3.0 have their own names for install.
3679     # Don't use installbsd from OSF since it installs stuff as root
3680     # by default.
3681     for ac_prog in ginstall scoinst install; do
3682       for ac_exec_ext in '' $ac_executable_extensions; do
3683         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684           if test $ac_prog = install &&
3685             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686             # AIX install.  It has an incompatible calling convention.
3687             :
3688           elif test $ac_prog = install &&
3689             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690             # program-specific install script used by HP pwplus--don't use.
3691             :
3692           else
3693             rm -rf conftest.one conftest.two conftest.dir
3694             echo one > conftest.one
3695             echo two > conftest.two
3696             mkdir conftest.dir
3697             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3698               test -s conftest.one && test -s conftest.two &&
3699               test -s conftest.dir/conftest.one &&
3700               test -s conftest.dir/conftest.two
3701             then
3702               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3703               break 3
3704             fi
3705           fi
3706         fi
3707       done
3708     done
3709     ;;
3710 esac
3711
3712 done
3713 IFS=$as_save_IFS
3714
3715 rm -rf conftest.one conftest.two conftest.dir
3716
3717 fi
3718   if test "${ac_cv_path_install+set}" = set; then
3719     INSTALL=$ac_cv_path_install
3720   else
3721     # As a last resort, use the slow shell script.  Don't cache a
3722     # value for INSTALL within a source directory, because that will
3723     # break other packages using the cache if that directory is
3724     # removed, or if the value is a relative name.
3725     INSTALL=$ac_install_sh
3726   fi
3727 fi
3728 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3729 $as_echo "$INSTALL" >&6; }
3730
3731 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3732 # It thinks the first close brace ends the variable substitution.
3733 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3734
3735 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3736
3737 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3738
3739 case `pwd` in
3740   *\ * | *\     *)
3741     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3742 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3743 esac
3744
3745
3746
3747 macro_version='2.2.6'
3748 macro_revision='1.3012'
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762 ltmain="$ac_aux_dir/ltmain.sh"
3763
3764 # Make sure we can run config.sub.
3765 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3766   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3767 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3768    { (exit 1); exit 1; }; }
3769
3770 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3771 $as_echo_n "checking build system type... " >&6; }
3772 if test "${ac_cv_build+set}" = set; then
3773   $as_echo_n "(cached) " >&6
3774 else
3775   ac_build_alias=$build_alias
3776 test "x$ac_build_alias" = x &&
3777   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3778 test "x$ac_build_alias" = x &&
3779   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3780 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3781    { (exit 1); exit 1; }; }
3782 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3783   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3784 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3785    { (exit 1); exit 1; }; }
3786
3787 fi
3788 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3789 $as_echo "$ac_cv_build" >&6; }
3790 case $ac_cv_build in
3791 *-*-*) ;;
3792 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3793 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3794    { (exit 1); exit 1; }; };;
3795 esac
3796 build=$ac_cv_build
3797 ac_save_IFS=$IFS; IFS='-'
3798 set x $ac_cv_build
3799 shift
3800 build_cpu=$1
3801 build_vendor=$2
3802 shift; shift
3803 # Remember, the first character of IFS is used to create $*,
3804 # except with old shells:
3805 build_os=$*
3806 IFS=$ac_save_IFS
3807 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3808
3809
3810 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3811 $as_echo_n "checking host system type... " >&6; }
3812 if test "${ac_cv_host+set}" = set; then
3813   $as_echo_n "(cached) " >&6
3814 else
3815   if test "x$host_alias" = x; then
3816   ac_cv_host=$ac_cv_build
3817 else
3818   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3819     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3820 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3821    { (exit 1); exit 1; }; }
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3826 $as_echo "$ac_cv_host" >&6; }
3827 case $ac_cv_host in
3828 *-*-*) ;;
3829 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3830 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3831    { (exit 1); exit 1; }; };;
3832 esac
3833 host=$ac_cv_host
3834 ac_save_IFS=$IFS; IFS='-'
3835 set x $ac_cv_host
3836 shift
3837 host_cpu=$1
3838 host_vendor=$2
3839 shift; shift
3840 # Remember, the first character of IFS is used to create $*,
3841 # except with old shells:
3842 host_os=$*
3843 IFS=$ac_save_IFS
3844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845
3846
3847 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3848 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3849 if test "${ac_cv_path_SED+set}" = set; then
3850   $as_echo_n "(cached) " >&6
3851 else
3852             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3853      for ac_i in 1 2 3 4 5 6 7; do
3854        ac_script="$ac_script$as_nl$ac_script"
3855      done
3856      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3857      $as_unset ac_script || ac_script=
3858      if test -z "$SED"; then
3859   ac_path_SED_found=false
3860   # Loop through the user's path and test for each of PROGNAME-LIST
3861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_prog in sed gsed; do
3867     for ac_exec_ext in '' $ac_executable_extensions; do
3868       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3869       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3870 # Check for GNU ac_path_SED and select it if it is found.
3871   # Check for GNU $ac_path_SED
3872 case `"$ac_path_SED" --version 2>&1` in
3873 *GNU*)
3874   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3875 *)
3876   ac_count=0
3877   $as_echo_n 0123456789 >"conftest.in"
3878   while :
3879   do
3880     cat "conftest.in" "conftest.in" >"conftest.tmp"
3881     mv "conftest.tmp" "conftest.in"
3882     cp "conftest.in" "conftest.nl"
3883     $as_echo '' >> "conftest.nl"
3884     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886     ac_count=`expr $ac_count + 1`
3887     if test $ac_count -gt ${ac_path_SED_max-0}; then
3888       # Best one so far, save it but keep looking for a better one
3889       ac_cv_path_SED="$ac_path_SED"
3890       ac_path_SED_max=$ac_count
3891     fi
3892     # 10*(2^10) chars as input seems more than enough
3893     test $ac_count -gt 10 && break
3894   done
3895   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896 esac
3897
3898       $ac_path_SED_found && break 3
3899     done
3900   done
3901 done
3902 IFS=$as_save_IFS
3903   if test -z "$ac_cv_path_SED"; then
3904     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3905 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3906    { (exit 1); exit 1; }; }
3907   fi
3908 else
3909   ac_cv_path_SED=$SED
3910 fi
3911
3912 fi
3913 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3914 $as_echo "$ac_cv_path_SED" >&6; }
3915  SED="$ac_cv_path_SED"
3916   rm -f conftest.sed
3917
3918 test -z "$SED" && SED=sed
3919 Xsed="$SED -e 1s/^X//"
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3932 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3933 if test "${ac_cv_path_GREP+set}" = set; then
3934   $as_echo_n "(cached) " >&6
3935 else
3936   if test -z "$GREP"; then
3937   ac_path_GREP_found=false
3938   # Loop through the user's path and test for each of PROGNAME-LIST
3939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3941 do
3942   IFS=$as_save_IFS
3943   test -z "$as_dir" && as_dir=.
3944   for ac_prog in grep ggrep; do
3945     for ac_exec_ext in '' $ac_executable_extensions; do
3946       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3947       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3948 # Check for GNU ac_path_GREP and select it if it is found.
3949   # Check for GNU $ac_path_GREP
3950 case `"$ac_path_GREP" --version 2>&1` in
3951 *GNU*)
3952   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3953 *)
3954   ac_count=0
3955   $as_echo_n 0123456789 >"conftest.in"
3956   while :
3957   do
3958     cat "conftest.in" "conftest.in" >"conftest.tmp"
3959     mv "conftest.tmp" "conftest.in"
3960     cp "conftest.in" "conftest.nl"
3961     $as_echo 'GREP' >> "conftest.nl"
3962     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3963     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3964     ac_count=`expr $ac_count + 1`
3965     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3966       # Best one so far, save it but keep looking for a better one
3967       ac_cv_path_GREP="$ac_path_GREP"
3968       ac_path_GREP_max=$ac_count
3969     fi
3970     # 10*(2^10) chars as input seems more than enough
3971     test $ac_count -gt 10 && break
3972   done
3973   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3974 esac
3975
3976       $ac_path_GREP_found && break 3
3977     done
3978   done
3979 done
3980 IFS=$as_save_IFS
3981   if test -z "$ac_cv_path_GREP"; then
3982     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3983 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3984    { (exit 1); exit 1; }; }
3985   fi
3986 else
3987   ac_cv_path_GREP=$GREP
3988 fi
3989
3990 fi
3991 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3992 $as_echo "$ac_cv_path_GREP" >&6; }
3993  GREP="$ac_cv_path_GREP"
3994
3995
3996 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3997 $as_echo_n "checking for egrep... " >&6; }
3998 if test "${ac_cv_path_EGREP+set}" = set; then
3999   $as_echo_n "(cached) " >&6
4000 else
4001   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4002    then ac_cv_path_EGREP="$GREP -E"
4003    else
4004      if test -z "$EGREP"; then
4005   ac_path_EGREP_found=false
4006   # Loop through the user's path and test for each of PROGNAME-LIST
4007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4009 do
4010   IFS=$as_save_IFS
4011   test -z "$as_dir" && as_dir=.
4012   for ac_prog in egrep; do
4013     for ac_exec_ext in '' $ac_executable_extensions; do
4014       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4015       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4016 # Check for GNU ac_path_EGREP and select it if it is found.
4017   # Check for GNU $ac_path_EGREP
4018 case `"$ac_path_EGREP" --version 2>&1` in
4019 *GNU*)
4020   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4021 *)
4022   ac_count=0
4023   $as_echo_n 0123456789 >"conftest.in"
4024   while :
4025   do
4026     cat "conftest.in" "conftest.in" >"conftest.tmp"
4027     mv "conftest.tmp" "conftest.in"
4028     cp "conftest.in" "conftest.nl"
4029     $as_echo 'EGREP' >> "conftest.nl"
4030     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4031     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4032     ac_count=`expr $ac_count + 1`
4033     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4034       # Best one so far, save it but keep looking for a better one
4035       ac_cv_path_EGREP="$ac_path_EGREP"
4036       ac_path_EGREP_max=$ac_count
4037     fi
4038     # 10*(2^10) chars as input seems more than enough
4039     test $ac_count -gt 10 && break
4040   done
4041   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4042 esac
4043
4044       $ac_path_EGREP_found && break 3
4045     done
4046   done
4047 done
4048 IFS=$as_save_IFS
4049   if test -z "$ac_cv_path_EGREP"; then
4050     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4051 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4052    { (exit 1); exit 1; }; }
4053   fi
4054 else
4055   ac_cv_path_EGREP=$EGREP
4056 fi
4057
4058    fi
4059 fi
4060 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4061 $as_echo "$ac_cv_path_EGREP" >&6; }
4062  EGREP="$ac_cv_path_EGREP"
4063
4064
4065 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4066 $as_echo_n "checking for fgrep... " >&6; }
4067 if test "${ac_cv_path_FGREP+set}" = set; then
4068   $as_echo_n "(cached) " >&6
4069 else
4070   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4071    then ac_cv_path_FGREP="$GREP -F"
4072    else
4073      if test -z "$FGREP"; then
4074   ac_path_FGREP_found=false
4075   # Loop through the user's path and test for each of PROGNAME-LIST
4076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 do
4079   IFS=$as_save_IFS
4080   test -z "$as_dir" && as_dir=.
4081   for ac_prog in fgrep; do
4082     for ac_exec_ext in '' $ac_executable_extensions; do
4083       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4084       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4085 # Check for GNU ac_path_FGREP and select it if it is found.
4086   # Check for GNU $ac_path_FGREP
4087 case `"$ac_path_FGREP" --version 2>&1` in
4088 *GNU*)
4089   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4090 *)
4091   ac_count=0
4092   $as_echo_n 0123456789 >"conftest.in"
4093   while :
4094   do
4095     cat "conftest.in" "conftest.in" >"conftest.tmp"
4096     mv "conftest.tmp" "conftest.in"
4097     cp "conftest.in" "conftest.nl"
4098     $as_echo 'FGREP' >> "conftest.nl"
4099     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101     ac_count=`expr $ac_count + 1`
4102     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4103       # Best one so far, save it but keep looking for a better one
4104       ac_cv_path_FGREP="$ac_path_FGREP"
4105       ac_path_FGREP_max=$ac_count
4106     fi
4107     # 10*(2^10) chars as input seems more than enough
4108     test $ac_count -gt 10 && break
4109   done
4110   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4112
4113       $ac_path_FGREP_found && break 3
4114     done
4115   done
4116 done
4117 IFS=$as_save_IFS
4118   if test -z "$ac_cv_path_FGREP"; then
4119     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4120 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4121    { (exit 1); exit 1; }; }
4122   fi
4123 else
4124   ac_cv_path_FGREP=$FGREP
4125 fi
4126
4127    fi
4128 fi
4129 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4130 $as_echo "$ac_cv_path_FGREP" >&6; }
4131  FGREP="$ac_cv_path_FGREP"
4132
4133
4134 test -z "$GREP" && GREP=grep
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154 # Check whether --with-gnu-ld was given.
4155 if test "${with_gnu_ld+set}" = set; then
4156   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4157 else
4158   with_gnu_ld=no
4159 fi
4160
4161 ac_prog=ld
4162 if test "$GCC" = yes; then
4163   # Check if gcc -print-prog-name=ld gives a path.
4164   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4165 $as_echo_n "checking for ld used by $CC... " >&6; }
4166   case $host in
4167   *-*-mingw*)
4168     # gcc leaves a trailing carriage return which upsets mingw
4169     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4170   *)
4171     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4172   esac
4173   case $ac_prog in
4174     # Accept absolute paths.
4175     [\\/]* | ?:[\\/]*)
4176       re_direlt='/[^/][^/]*/\.\./'
4177       # Canonicalize the pathname of ld
4178       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4179       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4180         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4181       done
4182       test -z "$LD" && LD="$ac_prog"
4183       ;;
4184   "")
4185     # If it fails, then pretend we aren't using GCC.
4186     ac_prog=ld
4187     ;;
4188   *)
4189     # If it is relative, then search for the first ld in PATH.
4190     with_gnu_ld=unknown
4191     ;;
4192   esac
4193 elif test "$with_gnu_ld" = yes; then
4194   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4195 $as_echo_n "checking for GNU ld... " >&6; }
4196 else
4197   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4198 $as_echo_n "checking for non-GNU ld... " >&6; }
4199 fi
4200 if test "${lt_cv_path_LD+set}" = set; then
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -z "$LD"; then
4204   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4205   for ac_dir in $PATH; do
4206     IFS="$lt_save_ifs"
4207     test -z "$ac_dir" && ac_dir=.
4208     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4209       lt_cv_path_LD="$ac_dir/$ac_prog"
4210       # Check to see if the program is GNU ld.  I'd rather use --version,
4211       # but apparently some variants of GNU ld only accept -v.
4212       # Break only if it was the GNU/non-GNU ld that we prefer.
4213       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4214       *GNU* | *'with BFD'*)
4215         test "$with_gnu_ld" != no && break
4216         ;;
4217       *)
4218         test "$with_gnu_ld" != yes && break
4219         ;;
4220       esac
4221     fi
4222   done
4223   IFS="$lt_save_ifs"
4224 else
4225   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4226 fi
4227 fi
4228
4229 LD="$lt_cv_path_LD"
4230 if test -n "$LD"; then
4231   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4232 $as_echo "$LD" >&6; }
4233 else
4234   { $as_echo "$as_me:$LINENO: result: no" >&5
4235 $as_echo "no" >&6; }
4236 fi
4237 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4238 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4239    { (exit 1); exit 1; }; }
4240 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4241 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4242 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4243   $as_echo_n "(cached) " >&6
4244 else
4245   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4246 case `$LD -v 2>&1 </dev/null` in
4247 *GNU* | *'with BFD'*)
4248   lt_cv_prog_gnu_ld=yes
4249   ;;
4250 *)
4251   lt_cv_prog_gnu_ld=no
4252   ;;
4253 esac
4254 fi
4255 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4256 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4257 with_gnu_ld=$lt_cv_prog_gnu_ld
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4268 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4269 if test "${lt_cv_path_NM+set}" = set; then
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if test -n "$NM"; then
4273   # Let the user override the test.
4274   lt_cv_path_NM="$NM"
4275 else
4276   lt_nm_to_check="${ac_tool_prefix}nm"
4277   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4278     lt_nm_to_check="$lt_nm_to_check nm"
4279   fi
4280   for lt_tmp_nm in $lt_nm_to_check; do
4281     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4282     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4283       IFS="$lt_save_ifs"
4284       test -z "$ac_dir" && ac_dir=.
4285       tmp_nm="$ac_dir/$lt_tmp_nm"
4286       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4287         # Check to see if the nm accepts a BSD-compat flag.
4288         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4289         #   nm: unknown option "B" ignored
4290         # Tru64's nm complains that /dev/null is an invalid object file
4291         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4292         */dev/null* | *'Invalid file or object type'*)
4293           lt_cv_path_NM="$tmp_nm -B"
4294           break
4295           ;;
4296         *)
4297           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4298           */dev/null*)
4299             lt_cv_path_NM="$tmp_nm -p"
4300             break
4301             ;;
4302           *)
4303             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4304             continue # so that we can try to find one that supports BSD flags
4305             ;;
4306           esac
4307           ;;
4308         esac
4309       fi
4310     done
4311     IFS="$lt_save_ifs"
4312   done
4313   : ${lt_cv_path_NM=no}
4314 fi
4315 fi
4316 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4317 $as_echo "$lt_cv_path_NM" >&6; }
4318 if test "$lt_cv_path_NM" != "no"; then
4319   NM="$lt_cv_path_NM"
4320 else
4321   # Didn't find any BSD compatible name lister, look for dumpbin.
4322   if test -n "$ac_tool_prefix"; then
4323   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4324   do
4325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4327 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4330   $as_echo_n "(cached) " >&6
4331 else
4332   if test -n "$DUMPBIN"; then
4333   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338   IFS=$as_save_IFS
4339   test -z "$as_dir" && as_dir=.
4340   for ac_exec_ext in '' $ac_executable_extensions; do
4341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4343     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344     break 2
4345   fi
4346 done
4347 done
4348 IFS=$as_save_IFS
4349
4350 fi
4351 fi
4352 DUMPBIN=$ac_cv_prog_DUMPBIN
4353 if test -n "$DUMPBIN"; then
4354   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4355 $as_echo "$DUMPBIN" >&6; }
4356 else
4357   { $as_echo "$as_me:$LINENO: result: no" >&5
4358 $as_echo "no" >&6; }
4359 fi
4360
4361
4362     test -n "$DUMPBIN" && break
4363   done
4364 fi
4365 if test -z "$DUMPBIN"; then
4366   ac_ct_DUMPBIN=$DUMPBIN
4367   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4368 do
4369   # Extract the first word of "$ac_prog", so it can be a program name with args.
4370 set dummy $ac_prog; ac_word=$2
4371 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 $as_echo_n "checking for $ac_word... " >&6; }
4373 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4374   $as_echo_n "(cached) " >&6
4375 else
4376   if test -n "$ac_ct_DUMPBIN"; then
4377   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4387     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394 fi
4395 fi
4396 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4397 if test -n "$ac_ct_DUMPBIN"; then
4398   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4399 $as_echo "$ac_ct_DUMPBIN" >&6; }
4400 else
4401   { $as_echo "$as_me:$LINENO: result: no" >&5
4402 $as_echo "no" >&6; }
4403 fi
4404
4405
4406   test -n "$ac_ct_DUMPBIN" && break
4407 done
4408
4409   if test "x$ac_ct_DUMPBIN" = x; then
4410     DUMPBIN=":"
4411   else
4412     case $cross_compiling:$ac_tool_warned in
4413 yes:)
4414 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4416 ac_tool_warned=yes ;;
4417 esac
4418     DUMPBIN=$ac_ct_DUMPBIN
4419   fi
4420 fi
4421
4422
4423   if test "$DUMPBIN" != ":"; then
4424     NM="$DUMPBIN"
4425   fi
4426 fi
4427 test -z "$NM" && NM=nm
4428
4429
4430
4431
4432
4433
4434 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4435 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4436 if test "${lt_cv_nm_interface+set}" = set; then
4437   $as_echo_n "(cached) " >&6
4438 else
4439   lt_cv_nm_interface="BSD nm"
4440   echo "int some_variable = 0;" > conftest.$ac_ext
4441   (eval echo "\"\$as_me:4441: $ac_compile\"" >&5)
4442   (eval "$ac_compile" 2>conftest.err)
4443   cat conftest.err >&5
4444   (eval echo "\"\$as_me:4444: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4445   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4446   cat conftest.err >&5
4447   (eval echo "\"\$as_me:4447: output\"" >&5)
4448   cat conftest.out >&5
4449   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4450     lt_cv_nm_interface="MS dumpbin"
4451   fi
4452   rm -f conftest*
4453 fi
4454 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4455 $as_echo "$lt_cv_nm_interface" >&6; }
4456
4457 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4458 $as_echo_n "checking whether ln -s works... " >&6; }
4459 LN_S=$as_ln_s
4460 if test "$LN_S" = "ln -s"; then
4461   { $as_echo "$as_me:$LINENO: result: yes" >&5
4462 $as_echo "yes" >&6; }
4463 else
4464   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4465 $as_echo "no, using $LN_S" >&6; }
4466 fi
4467
4468 # find the maximum length of command line arguments
4469 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4470 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4471 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4472   $as_echo_n "(cached) " >&6
4473 else
4474     i=0
4475   teststring="ABCD"
4476
4477   case $build_os in
4478   msdosdjgpp*)
4479     # On DJGPP, this test can blow up pretty badly due to problems in libc
4480     # (any single argument exceeding 2000 bytes causes a buffer overrun
4481     # during glob expansion).  Even if it were fixed, the result of this
4482     # check would be larger than it should be.
4483     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4484     ;;
4485
4486   gnu*)
4487     # Under GNU Hurd, this test is not required because there is
4488     # no limit to the length of command line arguments.
4489     # Libtool will interpret -1 as no limit whatsoever
4490     lt_cv_sys_max_cmd_len=-1;
4491     ;;
4492
4493   cygwin* | mingw* | cegcc*)
4494     # On Win9x/ME, this test blows up -- it succeeds, but takes
4495     # about 5 minutes as the teststring grows exponentially.
4496     # Worse, since 9x/ME are not pre-emptively multitasking,
4497     # you end up with a "frozen" computer, even though with patience
4498     # the test eventually succeeds (with a max line length of 256k).
4499     # Instead, let's just punt: use the minimum linelength reported by
4500     # all of the supported platforms: 8192 (on NT/2K/XP).
4501     lt_cv_sys_max_cmd_len=8192;
4502     ;;
4503
4504   amigaos*)
4505     # On AmigaOS with pdksh, this test takes hours, literally.
4506     # So we just punt and use a minimum line length of 8192.
4507     lt_cv_sys_max_cmd_len=8192;
4508     ;;
4509
4510   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4511     # This has been around since 386BSD, at least.  Likely further.
4512     if test -x /sbin/sysctl; then
4513       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4514     elif test -x /usr/sbin/sysctl; then
4515       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4516     else
4517       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4518     fi
4519     # And add a safety zone
4520     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4521     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4522     ;;
4523
4524   interix*)
4525     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4526     lt_cv_sys_max_cmd_len=196608
4527     ;;
4528
4529   osf*)
4530     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4531     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4532     # nice to cause kernel panics so lets avoid the loop below.
4533     # First set a reasonable default.
4534     lt_cv_sys_max_cmd_len=16384
4535     #
4536     if test -x /sbin/sysconfig; then
4537       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4538         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4539       esac
4540     fi
4541     ;;
4542   sco3.2v5*)
4543     lt_cv_sys_max_cmd_len=102400
4544     ;;
4545   sysv5* | sco5v6* | sysv4.2uw2*)
4546     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4547     if test -n "$kargmax"; then
4548       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4549     else
4550       lt_cv_sys_max_cmd_len=32768
4551     fi
4552     ;;
4553   *)
4554     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4555     if test -n "$lt_cv_sys_max_cmd_len"; then
4556       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4557       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4558     else
4559       # Make teststring a little bigger before we do anything with it.
4560       # a 1K string should be a reasonable start.
4561       for i in 1 2 3 4 5 6 7 8 ; do
4562         teststring=$teststring$teststring
4563       done
4564       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4565       # If test is not a shell built-in, we'll probably end up computing a
4566       # maximum length that is only half of the actual maximum length, but
4567       # we can't tell.
4568       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4569                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4570               test $i != 17 # 1/2 MB should be enough
4571       do
4572         i=`expr $i + 1`
4573         teststring=$teststring$teststring
4574       done
4575       # Only check the string length outside the loop.
4576       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4577       teststring=
4578       # Add a significant safety factor because C++ compilers can tack on
4579       # massive amounts of additional arguments before passing them to the
4580       # linker.  It appears as though 1/2 is a usable value.
4581       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4582     fi
4583     ;;
4584   esac
4585
4586 fi
4587
4588 if test -n $lt_cv_sys_max_cmd_len ; then
4589   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4590 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4591 else
4592   { $as_echo "$as_me:$LINENO: result: none" >&5
4593 $as_echo "none" >&6; }
4594 fi
4595 max_cmd_len=$lt_cv_sys_max_cmd_len
4596
4597
4598
4599
4600
4601
4602 : ${CP="cp -f"}
4603 : ${MV="mv -f"}
4604 : ${RM="rm -f"}
4605
4606 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4607 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4608 # Try some XSI features
4609 xsi_shell=no
4610 ( _lt_dummy="a/b/c"
4611   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4612       = c,a/b,, \
4613     && eval 'test $(( 1 + 1 )) -eq 2 \
4614     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4615   && xsi_shell=yes
4616 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4617 $as_echo "$xsi_shell" >&6; }
4618
4619
4620 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4621 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4622 lt_shell_append=no
4623 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4624     >/dev/null 2>&1 \
4625   && lt_shell_append=yes
4626 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4627 $as_echo "$lt_shell_append" >&6; }
4628
4629
4630 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4631   lt_unset=unset
4632 else
4633   lt_unset=false
4634 fi
4635
4636
4637
4638
4639
4640 # test EBCDIC or ASCII
4641 case `echo X|tr X '\101'` in
4642  A) # ASCII based system
4643     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4644   lt_SP2NL='tr \040 \012'
4645   lt_NL2SP='tr \015\012 \040\040'
4646   ;;
4647  *) # EBCDIC based system
4648   lt_SP2NL='tr \100 \n'
4649   lt_NL2SP='tr \r\n \100\100'
4650   ;;
4651 esac
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4662 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4663 if test "${lt_cv_ld_reload_flag+set}" = set; then
4664   $as_echo_n "(cached) " >&6
4665 else
4666   lt_cv_ld_reload_flag='-r'
4667 fi
4668 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4669 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4670 reload_flag=$lt_cv_ld_reload_flag
4671 case $reload_flag in
4672 "" | " "*) ;;
4673 *) reload_flag=" $reload_flag" ;;
4674 esac
4675 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4676 case $host_os in
4677   darwin*)
4678     if test "$GCC" = yes; then
4679       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4680     else
4681       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4682     fi
4683     ;;
4684 esac
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694 if test -n "$ac_tool_prefix"; then
4695   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4700   $as_echo_n "(cached) " >&6
4701 else
4702   if test -n "$OBJDUMP"; then
4703   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708   IFS=$as_save_IFS
4709   test -z "$as_dir" && as_dir=.
4710   for ac_exec_ext in '' $ac_executable_extensions; do
4711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4713     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714     break 2
4715   fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 OBJDUMP=$ac_cv_prog_OBJDUMP
4723 if test -n "$OBJDUMP"; then
4724   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4725 $as_echo "$OBJDUMP" >&6; }
4726 else
4727   { $as_echo "$as_me:$LINENO: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 fi
4733 if test -z "$ac_cv_prog_OBJDUMP"; then
4734   ac_ct_OBJDUMP=$OBJDUMP
4735   # Extract the first word of "objdump", so it can be a program name with args.
4736 set dummy objdump; ac_word=$2
4737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4740   $as_echo_n "(cached) " >&6
4741 else
4742   if test -n "$ac_ct_OBJDUMP"; then
4743   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748   IFS=$as_save_IFS
4749   test -z "$as_dir" && as_dir=.
4750   for ac_exec_ext in '' $ac_executable_extensions; do
4751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4753     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754     break 2
4755   fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4763 if test -n "$ac_ct_OBJDUMP"; then
4764   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4765 $as_echo "$ac_ct_OBJDUMP" >&6; }
4766 else
4767   { $as_echo "$as_me:$LINENO: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771   if test "x$ac_ct_OBJDUMP" = x; then
4772     OBJDUMP="false"
4773   else
4774     case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4779 esac
4780     OBJDUMP=$ac_ct_OBJDUMP
4781   fi
4782 else
4783   OBJDUMP="$ac_cv_prog_OBJDUMP"
4784 fi
4785
4786 test -z "$OBJDUMP" && OBJDUMP=objdump
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4797 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4798 if test "${lt_cv_deplibs_check_method+set}" = set; then
4799   $as_echo_n "(cached) " >&6
4800 else
4801   lt_cv_file_magic_cmd='$MAGIC_CMD'
4802 lt_cv_file_magic_test_file=
4803 lt_cv_deplibs_check_method='unknown'
4804 # Need to set the preceding variable on all platforms that support
4805 # interlibrary dependencies.
4806 # 'none' -- dependencies not supported.
4807 # `unknown' -- same as none, but documents that we really don't know.
4808 # 'pass_all' -- all dependencies passed with no checks.
4809 # 'test_compile' -- check by making test program.
4810 # 'file_magic [[regex]]' -- check by looking for files in library path
4811 # which responds to the $file_magic_cmd with a given extended regex.
4812 # If you have `file' or equivalent on your system and you're not sure
4813 # whether `pass_all' will *always* work, you probably want this one.
4814
4815 case $host_os in
4816 aix[4-9]*)
4817   lt_cv_deplibs_check_method=pass_all
4818   ;;
4819
4820 beos*)
4821   lt_cv_deplibs_check_method=pass_all
4822   ;;
4823
4824 bsdi[45]*)
4825   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4826   lt_cv_file_magic_cmd='/usr/bin/file -L'
4827   lt_cv_file_magic_test_file=/shlib/libc.so
4828   ;;
4829
4830 cygwin*)
4831   # func_win32_libid is a shell function defined in ltmain.sh
4832   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4833   lt_cv_file_magic_cmd='func_win32_libid'
4834   ;;
4835
4836 mingw* | pw32*)
4837   # Base MSYS/MinGW do not provide the 'file' command needed by
4838   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4839   # unless we find 'file', for example because we are cross-compiling.
4840   if ( file / ) >/dev/null 2>&1; then
4841     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4842     lt_cv_file_magic_cmd='func_win32_libid'
4843   else
4844     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4845     lt_cv_file_magic_cmd='$OBJDUMP -f'
4846   fi
4847   ;;
4848
4849 cegcc)
4850   # use the weaker test based on 'objdump'. See mingw*.
4851   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4852   lt_cv_file_magic_cmd='$OBJDUMP -f'
4853   ;;
4854
4855 darwin* | rhapsody*)
4856   lt_cv_deplibs_check_method=pass_all
4857   ;;
4858
4859 freebsd* | dragonfly*)
4860   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4861     case $host_cpu in
4862     i*86 )
4863       # Not sure whether the presence of OpenBSD here was a mistake.
4864       # Let's accept both of them until this is cleared up.
4865       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4866       lt_cv_file_magic_cmd=/usr/bin/file
4867       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4868       ;;
4869     esac
4870   else
4871     lt_cv_deplibs_check_method=pass_all
4872   fi
4873   ;;
4874
4875 gnu*)
4876   lt_cv_deplibs_check_method=pass_all
4877   ;;
4878
4879 hpux10.20* | hpux11*)
4880   lt_cv_file_magic_cmd=/usr/bin/file
4881   case $host_cpu in
4882   ia64*)
4883     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4884     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4885     ;;
4886   hppa*64*)
4887     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4888     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4889     ;;
4890   *)
4891     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4892     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4893     ;;
4894   esac
4895   ;;
4896
4897 interix[3-9]*)
4898   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4899   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4900   ;;
4901
4902 irix5* | irix6* | nonstopux*)
4903   case $LD in
4904   *-32|*"-32 ") libmagic=32-bit;;
4905   *-n32|*"-n32 ") libmagic=N32;;
4906   *-64|*"-64 ") libmagic=64-bit;;
4907   *) libmagic=never-match;;
4908   esac
4909   lt_cv_deplibs_check_method=pass_all
4910   ;;
4911
4912 # This must be Linux ELF.
4913 linux* | k*bsd*-gnu)
4914   lt_cv_deplibs_check_method=pass_all
4915   ;;
4916
4917 netbsd* | netbsdelf*-gnu)
4918   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4919     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4920   else
4921     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4922   fi
4923   ;;
4924
4925 newos6*)
4926   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4927   lt_cv_file_magic_cmd=/usr/bin/file
4928   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4929   ;;
4930
4931 *nto* | *qnx*)
4932   lt_cv_deplibs_check_method=pass_all
4933   ;;
4934
4935 openbsd*)
4936   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4937     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4938   else
4939     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4940   fi
4941   ;;
4942
4943 osf3* | osf4* | osf5*)
4944   lt_cv_deplibs_check_method=pass_all
4945   ;;
4946
4947 rdos*)
4948   lt_cv_deplibs_check_method=pass_all
4949   ;;
4950
4951 solaris*)
4952   lt_cv_deplibs_check_method=pass_all
4953   ;;
4954
4955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4956   lt_cv_deplibs_check_method=pass_all
4957   ;;
4958
4959 sysv4 | sysv4.3*)
4960   case $host_vendor in
4961   motorola)
4962     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]'
4963     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4964     ;;
4965   ncr)
4966     lt_cv_deplibs_check_method=pass_all
4967     ;;
4968   sequent)
4969     lt_cv_file_magic_cmd='/bin/file'
4970     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4971     ;;
4972   sni)
4973     lt_cv_file_magic_cmd='/bin/file'
4974     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4975     lt_cv_file_magic_test_file=/lib/libc.so
4976     ;;
4977   siemens)
4978     lt_cv_deplibs_check_method=pass_all
4979     ;;
4980   pc)
4981     lt_cv_deplibs_check_method=pass_all
4982     ;;
4983   esac
4984   ;;
4985
4986 tpf*)
4987   lt_cv_deplibs_check_method=pass_all
4988   ;;
4989 esac
4990
4991 fi
4992 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4993 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4994 file_magic_cmd=$lt_cv_file_magic_cmd
4995 deplibs_check_method=$lt_cv_deplibs_check_method
4996 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009 if test -n "$ac_tool_prefix"; then
5010   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5011 set dummy ${ac_tool_prefix}ar; ac_word=$2
5012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5013 $as_echo_n "checking for $ac_word... " >&6; }
5014 if test "${ac_cv_prog_AR+set}" = set; then
5015   $as_echo_n "(cached) " >&6
5016 else
5017   if test -n "$AR"; then
5018   ac_cv_prog_AR="$AR" # Let the user override the test.
5019 else
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5022 do
5023   IFS=$as_save_IFS
5024   test -z "$as_dir" && as_dir=.
5025   for ac_exec_ext in '' $ac_executable_extensions; do
5026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027     ac_cv_prog_AR="${ac_tool_prefix}ar"
5028     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029     break 2
5030   fi
5031 done
5032 done
5033 IFS=$as_save_IFS
5034
5035 fi
5036 fi
5037 AR=$ac_cv_prog_AR
5038 if test -n "$AR"; then
5039   { $as_echo "$as_me:$LINENO: result: $AR" >&5
5040 $as_echo "$AR" >&6; }
5041 else
5042   { $as_echo "$as_me:$LINENO: result: no" >&5
5043 $as_echo "no" >&6; }
5044 fi
5045
5046
5047 fi
5048 if test -z "$ac_cv_prog_AR"; then
5049   ac_ct_AR=$AR
5050   # Extract the first word of "ar", so it can be a program name with args.
5051 set dummy ar; ac_word=$2
5052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5055   $as_echo_n "(cached) " >&6
5056 else
5057   if test -n "$ac_ct_AR"; then
5058   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065   for ac_exec_ext in '' $ac_executable_extensions; do
5066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067     ac_cv_prog_ac_ct_AR="ar"
5068     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069     break 2
5070   fi
5071 done
5072 done
5073 IFS=$as_save_IFS
5074
5075 fi
5076 fi
5077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5078 if test -n "$ac_ct_AR"; then
5079   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5080 $as_echo "$ac_ct_AR" >&6; }
5081 else
5082   { $as_echo "$as_me:$LINENO: result: no" >&5
5083 $as_echo "no" >&6; }
5084 fi
5085
5086   if test "x$ac_ct_AR" = x; then
5087     AR="false"
5088   else
5089     case $cross_compiling:$ac_tool_warned in
5090 yes:)
5091 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095     AR=$ac_ct_AR
5096   fi
5097 else
5098   AR="$ac_cv_prog_AR"
5099 fi
5100
5101 test -z "$AR" && AR=ar
5102 test -z "$AR_FLAGS" && AR_FLAGS=cru
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114 if test -n "$ac_tool_prefix"; then
5115   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5116 set dummy ${ac_tool_prefix}strip; ac_word=$2
5117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if test "${ac_cv_prog_STRIP+set}" = set; then
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$STRIP"; then
5123   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130   for ac_exec_ext in '' $ac_executable_extensions; do
5131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5133     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137 done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 STRIP=$ac_cv_prog_STRIP
5143 if test -n "$STRIP"; then
5144   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5145 $as_echo "$STRIP" >&6; }
5146 else
5147   { $as_echo "$as_me:$LINENO: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 fi
5153 if test -z "$ac_cv_prog_STRIP"; then
5154   ac_ct_STRIP=$STRIP
5155   # Extract the first word of "strip", so it can be a program name with args.
5156 set dummy strip; ac_word=$2
5157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5160   $as_echo_n "(cached) " >&6
5161 else
5162   if test -n "$ac_ct_STRIP"; then
5163   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170   for ac_exec_ext in '' $ac_executable_extensions; do
5171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172     ac_cv_prog_ac_ct_STRIP="strip"
5173     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177 done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5183 if test -n "$ac_ct_STRIP"; then
5184   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5185 $as_echo "$ac_ct_STRIP" >&6; }
5186 else
5187   { $as_echo "$as_me:$LINENO: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191   if test "x$ac_ct_STRIP" = x; then
5192     STRIP=":"
5193   else
5194     case $cross_compiling:$ac_tool_warned in
5195 yes:)
5196 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5198 ac_tool_warned=yes ;;
5199 esac
5200     STRIP=$ac_ct_STRIP
5201   fi
5202 else
5203   STRIP="$ac_cv_prog_STRIP"
5204 fi
5205
5206 test -z "$STRIP" && STRIP=:
5207
5208
5209
5210
5211
5212
5213 if test -n "$ac_tool_prefix"; then
5214   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5216 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if test "${ac_cv_prog_RANLIB+set}" = set; then
5219   $as_echo_n "(cached) " >&6
5220 else
5221   if test -n "$RANLIB"; then
5222   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229   for ac_exec_ext in '' $ac_executable_extensions; do
5230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5232     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236 done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 RANLIB=$ac_cv_prog_RANLIB
5242 if test -n "$RANLIB"; then
5243   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5244 $as_echo "$RANLIB" >&6; }
5245 else
5246   { $as_echo "$as_me:$LINENO: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250
5251 fi
5252 if test -z "$ac_cv_prog_RANLIB"; then
5253   ac_ct_RANLIB=$RANLIB
5254   # Extract the first word of "ranlib", so it can be a program name with args.
5255 set dummy ranlib; ac_word=$2
5256 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5259   $as_echo_n "(cached) " >&6
5260 else
5261   if test -n "$ac_ct_RANLIB"; then
5262   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269   for ac_exec_ext in '' $ac_executable_extensions; do
5270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271     ac_cv_prog_ac_ct_RANLIB="ranlib"
5272     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273     break 2
5274   fi
5275 done
5276 done
5277 IFS=$as_save_IFS
5278
5279 fi
5280 fi
5281 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5282 if test -n "$ac_ct_RANLIB"; then
5283   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5284 $as_echo "$ac_ct_RANLIB" >&6; }
5285 else
5286   { $as_echo "$as_me:$LINENO: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290   if test "x$ac_ct_RANLIB" = x; then
5291     RANLIB=":"
5292   else
5293     case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299     RANLIB=$ac_ct_RANLIB
5300   fi
5301 else
5302   RANLIB="$ac_cv_prog_RANLIB"
5303 fi
5304
5305 test -z "$RANLIB" && RANLIB=:
5306
5307
5308
5309
5310
5311
5312 # Determine commands to create old-style static archives.
5313 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5314 old_postinstall_cmds='chmod 644 $oldlib'
5315 old_postuninstall_cmds=
5316
5317 if test -n "$RANLIB"; then
5318   case $host_os in
5319   openbsd*)
5320     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5321     ;;
5322   *)
5323     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5324     ;;
5325   esac
5326   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5327 fi
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362 # If no C compiler was specified, use CC.
5363 LTCC=${LTCC-"$CC"}
5364
5365 # If no C compiler flags were specified, use CFLAGS.
5366 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5367
5368 # Allow CC to be a program name with arguments.
5369 compiler=$CC
5370
5371
5372 # Check for command to grab the raw symbol name followed by C symbol from nm.
5373 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5374 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5375 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5376   $as_echo_n "(cached) " >&6
5377 else
5378
5379 # These are sane defaults that work on at least a few old systems.
5380 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5381
5382 # Character class describing NM global symbol codes.
5383 symcode='[BCDEGRST]'
5384
5385 # Regexp to match symbols that can be accessed directly from C.
5386 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5387
5388 # Define system-specific variables.
5389 case $host_os in
5390 aix*)
5391   symcode='[BCDT]'
5392   ;;
5393 cygwin* | mingw* | pw32* | cegcc*)
5394   symcode='[ABCDGISTW]'
5395   ;;
5396 hpux*)
5397   if test "$host_cpu" = ia64; then
5398     symcode='[ABCDEGRST]'
5399   fi
5400   ;;
5401 irix* | nonstopux*)
5402   symcode='[BCDEGRST]'
5403   ;;
5404 osf*)
5405   symcode='[BCDEGQRST]'
5406   ;;
5407 solaris*)
5408   symcode='[BDRT]'
5409   ;;
5410 sco3.2v5*)
5411   symcode='[DT]'
5412   ;;
5413 sysv4.2uw2*)
5414   symcode='[DT]'
5415   ;;
5416 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5417   symcode='[ABDT]'
5418   ;;
5419 sysv4)
5420   symcode='[DFNSTU]'
5421   ;;
5422 esac
5423
5424 # If we're using GNU nm, then use its standard symbol codes.
5425 case `$NM -V 2>&1` in
5426 *GNU* | *'with BFD'*)
5427   symcode='[ABCDGIRSTW]' ;;
5428 esac
5429
5430 # Transform an extracted symbol line into a proper C declaration.
5431 # Some systems (esp. on ia64) link data and code symbols differently,
5432 # so use this general approach.
5433 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5434
5435 # Transform an extracted symbol line into symbol name and symbol address
5436 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5437 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'"
5438
5439 # Handle CRLF in mingw tool chain
5440 opt_cr=
5441 case $build_os in
5442 mingw*)
5443   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5444   ;;
5445 esac
5446
5447 # Try without a prefix underscore, then with it.
5448 for ac_symprfx in "" "_"; do
5449
5450   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5451   symxfrm="\\1 $ac_symprfx\\2 \\2"
5452
5453   # Write the raw and C identifiers.
5454   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5455     # Fake it for dumpbin and say T for any non-static function
5456     # and D for any global variable.
5457     # Also find C++ and __fastcall symbols from MSVC++,
5458     # which start with @ or ?.
5459     lt_cv_sys_global_symbol_pipe="$AWK '"\
5460 "     {last_section=section; section=\$ 3};"\
5461 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5462 "     \$ 0!~/External *\|/{next};"\
5463 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5464 "     {if(hide[section]) next};"\
5465 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5466 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5467 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5468 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5469 "     ' prfx=^$ac_symprfx"
5470   else
5471     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5472   fi
5473
5474   # Check to see that the pipe works correctly.
5475   pipe_works=no
5476
5477   rm -f conftest*
5478   cat > conftest.$ac_ext <<_LT_EOF
5479 #ifdef __cplusplus
5480 extern "C" {
5481 #endif
5482 char nm_test_var;
5483 void nm_test_func(void);
5484 void nm_test_func(void){}
5485 #ifdef __cplusplus
5486 }
5487 #endif
5488 int main(){nm_test_var='a';nm_test_func();return(0);}
5489 _LT_EOF
5490
5491   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5492   (eval $ac_compile) 2>&5
5493   ac_status=$?
5494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); }; then
5496     # Now try to grab the symbols.
5497     nlist=conftest.nm
5498     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5499   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5500   ac_status=$?
5501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502   (exit $ac_status); } && test -s "$nlist"; then
5503       # Try sorting and uniquifying the output.
5504       if sort "$nlist" | uniq > "$nlist"T; then
5505         mv -f "$nlist"T "$nlist"
5506       else
5507         rm -f "$nlist"T
5508       fi
5509
5510       # Make sure that we snagged all the symbols we need.
5511       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5512         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5513           cat <<_LT_EOF > conftest.$ac_ext
5514 #ifdef __cplusplus
5515 extern "C" {
5516 #endif
5517
5518 _LT_EOF
5519           # Now generate the symbol file.
5520           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5521
5522           cat <<_LT_EOF >> conftest.$ac_ext
5523
5524 /* The mapping between symbol names and symbols.  */
5525 const struct {
5526   const char *name;
5527   void       *address;
5528 }
5529 lt__PROGRAM__LTX_preloaded_symbols[] =
5530 {
5531   { "@PROGRAM@", (void *) 0 },
5532 _LT_EOF
5533           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5534           cat <<\_LT_EOF >> conftest.$ac_ext
5535   {0, (void *) 0}
5536 };
5537
5538 /* This works around a problem in FreeBSD linker */
5539 #ifdef FREEBSD_WORKAROUND
5540 static const void *lt_preloaded_setup() {
5541   return lt__PROGRAM__LTX_preloaded_symbols;
5542 }
5543 #endif
5544
5545 #ifdef __cplusplus
5546 }
5547 #endif
5548 _LT_EOF
5549           # Now try linking the two files.
5550           mv conftest.$ac_objext conftstm.$ac_objext
5551           lt_save_LIBS="$LIBS"
5552           lt_save_CFLAGS="$CFLAGS"
5553           LIBS="conftstm.$ac_objext"
5554           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5555           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5556   (eval $ac_link) 2>&5
5557   ac_status=$?
5558   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5560             pipe_works=yes
5561           fi
5562           LIBS="$lt_save_LIBS"
5563           CFLAGS="$lt_save_CFLAGS"
5564         else
5565           echo "cannot find nm_test_func in $nlist" >&5
5566         fi
5567       else
5568         echo "cannot find nm_test_var in $nlist" >&5
5569       fi
5570     else
5571       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5572     fi
5573   else
5574     echo "$progname: failed program was:" >&5
5575     cat conftest.$ac_ext >&5
5576   fi
5577   rm -rf conftest* conftst*
5578
5579   # Do not use the global_symbol_pipe unless it works.
5580   if test "$pipe_works" = yes; then
5581     break
5582   else
5583     lt_cv_sys_global_symbol_pipe=
5584   fi
5585 done
5586
5587 fi
5588
5589 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5590   lt_cv_sys_global_symbol_to_cdecl=
5591 fi
5592 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5593   { $as_echo "$as_me:$LINENO: result: failed" >&5
5594 $as_echo "failed" >&6; }
5595 else
5596   { $as_echo "$as_me:$LINENO: result: ok" >&5
5597 $as_echo "ok" >&6; }
5598 fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622 # Check whether --enable-libtool-lock was given.
5623 if test "${enable_libtool_lock+set}" = set; then
5624   enableval=$enable_libtool_lock;
5625 fi
5626
5627 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5628
5629 # Some flags need to be propagated to the compiler or linker for good
5630 # libtool support.
5631 case $host in
5632 ia64-*-hpux*)
5633   # Find out which ABI we are using.
5634   echo 'int i;' > conftest.$ac_ext
5635   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636   (eval $ac_compile) 2>&5
5637   ac_status=$?
5638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); }; then
5640     case `/usr/bin/file conftest.$ac_objext` in
5641       *ELF-32*)
5642         HPUX_IA64_MODE="32"
5643         ;;
5644       *ELF-64*)
5645         HPUX_IA64_MODE="64"
5646         ;;
5647     esac
5648   fi
5649   rm -rf conftest*
5650   ;;
5651 *-*-irix6*)
5652   # Find out which ABI we are using.
5653   echo '#line 5653 "configure"' > conftest.$ac_ext
5654   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5655   (eval $ac_compile) 2>&5
5656   ac_status=$?
5657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658   (exit $ac_status); }; then
5659     if test "$lt_cv_prog_gnu_ld" = yes; then
5660       case `/usr/bin/file conftest.$ac_objext` in
5661         *32-bit*)
5662           LD="${LD-ld} -melf32bsmip"
5663           ;;
5664         *N32*)
5665           LD="${LD-ld} -melf32bmipn32"
5666           ;;
5667         *64-bit*)
5668           LD="${LD-ld} -melf64bmip"
5669         ;;
5670       esac
5671     else
5672       case `/usr/bin/file conftest.$ac_objext` in
5673         *32-bit*)
5674           LD="${LD-ld} -32"
5675           ;;
5676         *N32*)
5677           LD="${LD-ld} -n32"
5678           ;;
5679         *64-bit*)
5680           LD="${LD-ld} -64"
5681           ;;
5682       esac
5683     fi
5684   fi
5685   rm -rf conftest*
5686   ;;
5687
5688 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5689 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5690   # Find out which ABI we are using.
5691   echo 'int i;' > conftest.$ac_ext
5692   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693   (eval $ac_compile) 2>&5
5694   ac_status=$?
5695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696   (exit $ac_status); }; then
5697     case `/usr/bin/file conftest.o` in
5698       *32-bit*)
5699         case $host in
5700           x86_64-*kfreebsd*-gnu)
5701             LD="${LD-ld} -m elf_i386_fbsd"
5702             ;;
5703           x86_64-*linux*)
5704             LD="${LD-ld} -m elf_i386"
5705             ;;
5706           ppc64-*linux*|powerpc64-*linux*)
5707             LD="${LD-ld} -m elf32ppclinux"
5708             ;;
5709           s390x-*linux*)
5710             LD="${LD-ld} -m elf_s390"
5711             ;;
5712           sparc64-*linux*)
5713             LD="${LD-ld} -m elf32_sparc"
5714             ;;
5715         esac
5716         ;;
5717       *64-bit*)
5718         case $host in
5719           x86_64-*kfreebsd*-gnu)
5720             LD="${LD-ld} -m elf_x86_64_fbsd"
5721             ;;
5722           x86_64-*linux*)
5723             LD="${LD-ld} -m elf_x86_64"
5724             ;;
5725           ppc*-*linux*|powerpc*-*linux*)
5726             LD="${LD-ld} -m elf64ppc"
5727             ;;
5728           s390*-*linux*|s390*-*tpf*)
5729             LD="${LD-ld} -m elf64_s390"
5730             ;;
5731           sparc*-*linux*)
5732             LD="${LD-ld} -m elf64_sparc"
5733             ;;
5734         esac
5735         ;;
5736     esac
5737   fi
5738   rm -rf conftest*
5739   ;;
5740
5741 *-*-sco3.2v5*)
5742   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5743   SAVE_CFLAGS="$CFLAGS"
5744   CFLAGS="$CFLAGS -belf"
5745   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5746 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5747 if test "${lt_cv_cc_needs_belf+set}" = set; then
5748   $as_echo_n "(cached) " >&6
5749 else
5750   ac_ext=c
5751 ac_cpp='$CPP $CPPFLAGS'
5752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5755
5756      cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762
5763 int
5764 main ()
5765 {
5766
5767   ;
5768   return 0;
5769 }
5770 _ACEOF
5771 rm -f conftest.$ac_objext conftest$ac_exeext
5772 if { (ac_try="$ac_link"
5773 case "(($ac_try" in
5774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775   *) ac_try_echo=$ac_try;;
5776 esac
5777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5778 $as_echo "$ac_try_echo") >&5
5779   (eval "$ac_link") 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } && {
5786          test -z "$ac_c_werror_flag" ||
5787          test ! -s conftest.err
5788        } && test -s conftest$ac_exeext && {
5789          test "$cross_compiling" = yes ||
5790          $as_test_x conftest$ac_exeext
5791        }; then
5792   lt_cv_cc_needs_belf=yes
5793 else
5794   $as_echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5796
5797         lt_cv_cc_needs_belf=no
5798 fi
5799
5800 rm -rf conftest.dSYM
5801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5802       conftest$ac_exeext conftest.$ac_ext
5803      ac_ext=c
5804 ac_cpp='$CPP $CPPFLAGS'
5805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5808
5809 fi
5810 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5811 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5812   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5813     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5814     CFLAGS="$SAVE_CFLAGS"
5815   fi
5816   ;;
5817 sparc*-*solaris*)
5818   # Find out which ABI we are using.
5819   echo 'int i;' > conftest.$ac_ext
5820   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5821   (eval $ac_compile) 2>&5
5822   ac_status=$?
5823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824   (exit $ac_status); }; then
5825     case `/usr/bin/file conftest.o` in
5826     *64-bit*)
5827       case $lt_cv_prog_gnu_ld in
5828       yes*) LD="${LD-ld} -m elf64_sparc" ;;
5829       *)
5830         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5831           LD="${LD-ld} -64"
5832         fi
5833         ;;
5834       esac
5835       ;;
5836     esac
5837   fi
5838   rm -rf conftest*
5839   ;;
5840 esac
5841
5842 need_locks="$enable_libtool_lock"
5843
5844
5845   case $host_os in
5846     rhapsody* | darwin*)
5847     if test -n "$ac_tool_prefix"; then
5848   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5850 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5853   $as_echo_n "(cached) " >&6
5854 else
5855   if test -n "$DSYMUTIL"; then
5856   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5866     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5876 if test -n "$DSYMUTIL"; then
5877   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5878 $as_echo "$DSYMUTIL" >&6; }
5879 else
5880   { $as_echo "$as_me:$LINENO: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884
5885 fi
5886 if test -z "$ac_cv_prog_DSYMUTIL"; then
5887   ac_ct_DSYMUTIL=$DSYMUTIL
5888   # Extract the first word of "dsymutil", so it can be a program name with args.
5889 set dummy dsymutil; ac_word=$2
5890 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5893   $as_echo_n "(cached) " >&6
5894 else
5895   if test -n "$ac_ct_DSYMUTIL"; then
5896   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5897 else
5898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 for as_dir in $PATH
5900 do
5901   IFS=$as_save_IFS
5902   test -z "$as_dir" && as_dir=.
5903   for ac_exec_ext in '' $ac_executable_extensions; do
5904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5905     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5906     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5907     break 2
5908   fi
5909 done
5910 done
5911 IFS=$as_save_IFS
5912
5913 fi
5914 fi
5915 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5916 if test -n "$ac_ct_DSYMUTIL"; then
5917   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5918 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5919 else
5920   { $as_echo "$as_me:$LINENO: result: no" >&5
5921 $as_echo "no" >&6; }
5922 fi
5923
5924   if test "x$ac_ct_DSYMUTIL" = x; then
5925     DSYMUTIL=":"
5926   else
5927     case $cross_compiling:$ac_tool_warned in
5928 yes:)
5929 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5931 ac_tool_warned=yes ;;
5932 esac
5933     DSYMUTIL=$ac_ct_DSYMUTIL
5934   fi
5935 else
5936   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5937 fi
5938
5939     if test -n "$ac_tool_prefix"; then
5940   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5941 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5942 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5945   $as_echo_n "(cached) " >&6
5946 else
5947   if test -n "$NMEDIT"; then
5948   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955   for ac_exec_ext in '' $ac_executable_extensions; do
5956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5958     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5959     break 2
5960   fi
5961 done
5962 done
5963 IFS=$as_save_IFS
5964
5965 fi
5966 fi
5967 NMEDIT=$ac_cv_prog_NMEDIT
5968 if test -n "$NMEDIT"; then
5969   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5970 $as_echo "$NMEDIT" >&6; }
5971 else
5972   { $as_echo "$as_me:$LINENO: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976
5977 fi
5978 if test -z "$ac_cv_prog_NMEDIT"; then
5979   ac_ct_NMEDIT=$NMEDIT
5980   # Extract the first word of "nmedit", so it can be a program name with args.
5981 set dummy nmedit; ac_word=$2
5982 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5985   $as_echo_n "(cached) " >&6
5986 else
5987   if test -n "$ac_ct_NMEDIT"; then
5988   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5989 else
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_exec_ext in '' $ac_executable_extensions; do
5996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5997     ac_cv_prog_ac_ct_NMEDIT="nmedit"
5998     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999     break 2
6000   fi
6001 done
6002 done
6003 IFS=$as_save_IFS
6004
6005 fi
6006 fi
6007 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6008 if test -n "$ac_ct_NMEDIT"; then
6009   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6010 $as_echo "$ac_ct_NMEDIT" >&6; }
6011 else
6012   { $as_echo "$as_me:$LINENO: result: no" >&5
6013 $as_echo "no" >&6; }
6014 fi
6015
6016   if test "x$ac_ct_NMEDIT" = x; then
6017     NMEDIT=":"
6018   else
6019     case $cross_compiling:$ac_tool_warned in
6020 yes:)
6021 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6022 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6023 ac_tool_warned=yes ;;
6024 esac
6025     NMEDIT=$ac_ct_NMEDIT
6026   fi
6027 else
6028   NMEDIT="$ac_cv_prog_NMEDIT"
6029 fi
6030
6031     if test -n "$ac_tool_prefix"; then
6032   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_LIPO+set}" = set; then
6037   $as_echo_n "(cached) " >&6
6038 else
6039   if test -n "$LIPO"; then
6040   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6041 else
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047   for ac_exec_ext in '' $ac_executable_extensions; do
6048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6050     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054 done
6055 IFS=$as_save_IFS
6056
6057 fi
6058 fi
6059 LIPO=$ac_cv_prog_LIPO
6060 if test -n "$LIPO"; then
6061   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6062 $as_echo "$LIPO" >&6; }
6063 else
6064   { $as_echo "$as_me:$LINENO: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067
6068
6069 fi
6070 if test -z "$ac_cv_prog_LIPO"; then
6071   ac_ct_LIPO=$LIPO
6072   # Extract the first word of "lipo", so it can be a program name with args.
6073 set dummy lipo; ac_word=$2
6074 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6077   $as_echo_n "(cached) " >&6
6078 else
6079   if test -n "$ac_ct_LIPO"; then
6080   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085   IFS=$as_save_IFS
6086   test -z "$as_dir" && as_dir=.
6087   for ac_exec_ext in '' $ac_executable_extensions; do
6088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089     ac_cv_prog_ac_ct_LIPO="lipo"
6090     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091     break 2
6092   fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6100 if test -n "$ac_ct_LIPO"; then
6101   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6102 $as_echo "$ac_ct_LIPO" >&6; }
6103 else
6104   { $as_echo "$as_me:$LINENO: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108   if test "x$ac_ct_LIPO" = x; then
6109     LIPO=":"
6110   else
6111     case $cross_compiling:$ac_tool_warned in
6112 yes:)
6113 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6116 esac
6117     LIPO=$ac_ct_LIPO
6118   fi
6119 else
6120   LIPO="$ac_cv_prog_LIPO"
6121 fi
6122
6123     if test -n "$ac_tool_prefix"; then
6124   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6125 set dummy ${ac_tool_prefix}otool; ac_word=$2
6126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127 $as_echo_n "checking for $ac_word... " >&6; }
6128 if test "${ac_cv_prog_OTOOL+set}" = set; then
6129   $as_echo_n "(cached) " >&6
6130 else
6131   if test -n "$OTOOL"; then
6132   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6133 else
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH
6136 do
6137   IFS=$as_save_IFS
6138   test -z "$as_dir" && as_dir=.
6139   for ac_exec_ext in '' $ac_executable_extensions; do
6140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6142     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143     break 2
6144   fi
6145 done
6146 done
6147 IFS=$as_save_IFS
6148
6149 fi
6150 fi
6151 OTOOL=$ac_cv_prog_OTOOL
6152 if test -n "$OTOOL"; then
6153   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6154 $as_echo "$OTOOL" >&6; }
6155 else
6156   { $as_echo "$as_me:$LINENO: result: no" >&5
6157 $as_echo "no" >&6; }
6158 fi
6159
6160
6161 fi
6162 if test -z "$ac_cv_prog_OTOOL"; then
6163   ac_ct_OTOOL=$OTOOL
6164   # Extract the first word of "otool", so it can be a program name with args.
6165 set dummy otool; ac_word=$2
6166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6169   $as_echo_n "(cached) " >&6
6170 else
6171   if test -n "$ac_ct_OTOOL"; then
6172   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179   for ac_exec_ext in '' $ac_executable_extensions; do
6180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181     ac_cv_prog_ac_ct_OTOOL="otool"
6182     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6192 if test -n "$ac_ct_OTOOL"; then
6193   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6194 $as_echo "$ac_ct_OTOOL" >&6; }
6195 else
6196   { $as_echo "$as_me:$LINENO: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200   if test "x$ac_ct_OTOOL" = x; then
6201     OTOOL=":"
6202   else
6203     case $cross_compiling:$ac_tool_warned in
6204 yes:)
6205 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207 ac_tool_warned=yes ;;
6208 esac
6209     OTOOL=$ac_ct_OTOOL
6210   fi
6211 else
6212   OTOOL="$ac_cv_prog_OTOOL"
6213 fi
6214
6215     if test -n "$ac_tool_prefix"; then
6216   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6217 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6219 $as_echo_n "checking for $ac_word... " >&6; }
6220 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6221   $as_echo_n "(cached) " >&6
6222 else
6223   if test -n "$OTOOL64"; then
6224   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6225 else
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 for as_dir in $PATH
6228 do
6229   IFS=$as_save_IFS
6230   test -z "$as_dir" && as_dir=.
6231   for ac_exec_ext in '' $ac_executable_extensions; do
6232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6233     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6234     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235     break 2
6236   fi
6237 done
6238 done
6239 IFS=$as_save_IFS
6240
6241 fi
6242 fi
6243 OTOOL64=$ac_cv_prog_OTOOL64
6244 if test -n "$OTOOL64"; then
6245   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6246 $as_echo "$OTOOL64" >&6; }
6247 else
6248   { $as_echo "$as_me:$LINENO: result: no" >&5
6249 $as_echo "no" >&6; }
6250 fi
6251
6252
6253 fi
6254 if test -z "$ac_cv_prog_OTOOL64"; then
6255   ac_ct_OTOOL64=$OTOOL64
6256   # Extract the first word of "otool64", so it can be a program name with args.
6257 set dummy otool64; ac_word=$2
6258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if test -n "$ac_ct_OTOOL64"; then
6264   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271   for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_prog_ac_ct_OTOOL64="otool64"
6274     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278 done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6284 if test -n "$ac_ct_OTOOL64"; then
6285   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6286 $as_echo "$ac_ct_OTOOL64" >&6; }
6287 else
6288   { $as_echo "$as_me:$LINENO: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292   if test "x$ac_ct_OTOOL64" = x; then
6293     OTOOL64=":"
6294   else
6295     case $cross_compiling:$ac_tool_warned in
6296 yes:)
6297 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299 ac_tool_warned=yes ;;
6300 esac
6301     OTOOL64=$ac_ct_OTOOL64
6302   fi
6303 else
6304   OTOOL64="$ac_cv_prog_OTOOL64"
6305 fi
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6334 $as_echo_n "checking for -single_module linker flag... " >&6; }
6335 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6336   $as_echo_n "(cached) " >&6
6337 else
6338   lt_cv_apple_cc_single_mod=no
6339       if test -z "${LT_MULTI_MODULE}"; then
6340         # By default we will add the -single_module flag. You can override
6341         # by either setting the environment variable LT_MULTI_MODULE
6342         # non-empty at configure time, or by adding -multi_module to the
6343         # link flags.
6344         rm -rf libconftest.dylib*
6345         echo "int foo(void){return 1;}" > conftest.c
6346         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6347 -dynamiclib -Wl,-single_module conftest.c" >&5
6348         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6349           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6350         _lt_result=$?
6351         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6352           lt_cv_apple_cc_single_mod=yes
6353         else
6354           cat conftest.err >&5
6355         fi
6356         rm -rf libconftest.dylib*
6357         rm -f conftest.*
6358       fi
6359 fi
6360 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6361 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6362     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6363 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6364 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6365   $as_echo_n "(cached) " >&6
6366 else
6367   lt_cv_ld_exported_symbols_list=no
6368       save_LDFLAGS=$LDFLAGS
6369       echo "_main" > conftest.sym
6370       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6371       cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377
6378 int
6379 main ()
6380 {
6381
6382   ;
6383   return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext conftest$ac_exeext
6387 if { (ac_try="$ac_link"
6388 case "(($ac_try" in
6389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390   *) ac_try_echo=$ac_try;;
6391 esac
6392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6393 $as_echo "$ac_try_echo") >&5
6394   (eval "$ac_link") 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } && {
6401          test -z "$ac_c_werror_flag" ||
6402          test ! -s conftest.err
6403        } && test -s conftest$ac_exeext && {
6404          test "$cross_compiling" = yes ||
6405          $as_test_x conftest$ac_exeext
6406        }; then
6407   lt_cv_ld_exported_symbols_list=yes
6408 else
6409   $as_echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412         lt_cv_ld_exported_symbols_list=no
6413 fi
6414
6415 rm -rf conftest.dSYM
6416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6417       conftest$ac_exeext conftest.$ac_ext
6418         LDFLAGS="$save_LDFLAGS"
6419
6420 fi
6421 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6422 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6423     case $host_os in
6424     rhapsody* | darwin1.[012])
6425       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6426     darwin1.*)
6427       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6428     darwin*) # darwin 5.x on
6429       # if running on 10.5 or later, the deployment target defaults
6430       # to the OS version, if on x86, and 10.4, the deployment
6431       # target defaults to 10.4. Don't you love it?
6432       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6433         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6434           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6435         10.[012]*)
6436           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6437         10.*)
6438           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6439       esac
6440     ;;
6441   esac
6442     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6443       _lt_dar_single_mod='$single_module'
6444     fi
6445     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6446       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6447     else
6448       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6449     fi
6450     if test "$DSYMUTIL" != ":"; then
6451       _lt_dsymutil='~$DSYMUTIL $lib || :'
6452     else
6453       _lt_dsymutil=
6454     fi
6455     ;;
6456   esac
6457
6458 ac_ext=c
6459 ac_cpp='$CPP $CPPFLAGS'
6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6463 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6464 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6465 # On Suns, sometimes $CPP names a directory.
6466 if test -n "$CPP" && test -d "$CPP"; then
6467   CPP=
6468 fi
6469 if test -z "$CPP"; then
6470   if test "${ac_cv_prog_CPP+set}" = set; then
6471   $as_echo_n "(cached) " >&6
6472 else
6473       # Double quotes because CPP needs to be expanded
6474     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6475     do
6476       ac_preproc_ok=false
6477 for ac_c_preproc_warn_flag in '' yes
6478 do
6479   # Use a header file that comes with gcc, so configuring glibc
6480   # with a fresh cross-compiler works.
6481   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6482   # <limits.h> exists even on freestanding compilers.
6483   # On the NeXT, cc -E runs the code through the compiler's parser,
6484   # not just through cpp. "Syntax error" is here to catch this case.
6485   cat >conftest.$ac_ext <<_ACEOF
6486 /* confdefs.h.  */
6487 _ACEOF
6488 cat confdefs.h >>conftest.$ac_ext
6489 cat >>conftest.$ac_ext <<_ACEOF
6490 /* end confdefs.h.  */
6491 #ifdef __STDC__
6492 # include <limits.h>
6493 #else
6494 # include <assert.h>
6495 #endif
6496                      Syntax error
6497 _ACEOF
6498 if { (ac_try="$ac_cpp conftest.$ac_ext"
6499 case "(($ac_try" in
6500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501   *) ac_try_echo=$ac_try;;
6502 esac
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6506   ac_status=$?
6507   grep -v '^ *+' conftest.er1 >conftest.err
6508   rm -f conftest.er1
6509   cat conftest.err >&5
6510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511   (exit $ac_status); } >/dev/null && {
6512          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6513          test ! -s conftest.err
6514        }; then
6515   :
6516 else
6517   $as_echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520   # Broken: fails on valid input.
6521 continue
6522 fi
6523
6524 rm -f conftest.err conftest.$ac_ext
6525
6526   # OK, works on sane cases.  Now check whether nonexistent headers
6527   # can be detected and how.
6528   cat >conftest.$ac_ext <<_ACEOF
6529 /* confdefs.h.  */
6530 _ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h.  */
6534 #include <ac_nonexistent.h>
6535 _ACEOF
6536 if { (ac_try="$ac_cpp conftest.$ac_ext"
6537 case "(($ac_try" in
6538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539   *) ac_try_echo=$ac_try;;
6540 esac
6541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6542 $as_echo "$ac_try_echo") >&5
6543   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } >/dev/null && {
6550          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6551          test ! -s conftest.err
6552        }; then
6553   # Broken: success on invalid input.
6554 continue
6555 else
6556   $as_echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559   # Passes both tests.
6560 ac_preproc_ok=:
6561 break
6562 fi
6563
6564 rm -f conftest.err conftest.$ac_ext
6565
6566 done
6567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6568 rm -f conftest.err conftest.$ac_ext
6569 if $ac_preproc_ok; then
6570   break
6571 fi
6572
6573     done
6574     ac_cv_prog_CPP=$CPP
6575
6576 fi
6577   CPP=$ac_cv_prog_CPP
6578 else
6579   ac_cv_prog_CPP=$CPP
6580 fi
6581 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6582 $as_echo "$CPP" >&6; }
6583 ac_preproc_ok=false
6584 for ac_c_preproc_warn_flag in '' yes
6585 do
6586   # Use a header file that comes with gcc, so configuring glibc
6587   # with a fresh cross-compiler works.
6588   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6589   # <limits.h> exists even on freestanding compilers.
6590   # On the NeXT, cc -E runs the code through the compiler's parser,
6591   # not just through cpp. "Syntax error" is here to catch this case.
6592   cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 #ifdef __STDC__
6599 # include <limits.h>
6600 #else
6601 # include <assert.h>
6602 #endif
6603                      Syntax error
6604 _ACEOF
6605 if { (ac_try="$ac_cpp conftest.$ac_ext"
6606 case "(($ac_try" in
6607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608   *) ac_try_echo=$ac_try;;
6609 esac
6610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6611 $as_echo "$ac_try_echo") >&5
6612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6613   ac_status=$?
6614   grep -v '^ *+' conftest.er1 >conftest.err
6615   rm -f conftest.er1
6616   cat conftest.err >&5
6617   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } >/dev/null && {
6619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6620          test ! -s conftest.err
6621        }; then
6622   :
6623 else
6624   $as_echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627   # Broken: fails on valid input.
6628 continue
6629 fi
6630
6631 rm -f conftest.err conftest.$ac_ext
6632
6633   # OK, works on sane cases.  Now check whether nonexistent headers
6634   # can be detected and how.
6635   cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h.  */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h.  */
6641 #include <ac_nonexistent.h>
6642 _ACEOF
6643 if { (ac_try="$ac_cpp conftest.$ac_ext"
6644 case "(($ac_try" in
6645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646   *) ac_try_echo=$ac_try;;
6647 esac
6648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649 $as_echo "$ac_try_echo") >&5
6650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
6654   cat conftest.err >&5
6655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } >/dev/null && {
6657          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6658          test ! -s conftest.err
6659        }; then
6660   # Broken: success on invalid input.
6661 continue
6662 else
6663   $as_echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666   # Passes both tests.
6667 ac_preproc_ok=:
6668 break
6669 fi
6670
6671 rm -f conftest.err conftest.$ac_ext
6672
6673 done
6674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6675 rm -f conftest.err conftest.$ac_ext
6676 if $ac_preproc_ok; then
6677   :
6678 else
6679   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6681 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6682 See \`config.log' for more details." >&5
6683 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6684 See \`config.log' for more details." >&2;}
6685    { (exit 1); exit 1; }; }; }
6686 fi
6687
6688 ac_ext=c
6689 ac_cpp='$CPP $CPPFLAGS'
6690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6693
6694
6695 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6696 $as_echo_n "checking for ANSI C header files... " >&6; }
6697 if test "${ac_cv_header_stdc+set}" = set; then
6698   $as_echo_n "(cached) " >&6
6699 else
6700   cat >conftest.$ac_ext <<_ACEOF
6701 /* confdefs.h.  */
6702 _ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h.  */
6706 #include <stdlib.h>
6707 #include <stdarg.h>
6708 #include <string.h>
6709 #include <float.h>
6710
6711 int
6712 main ()
6713 {
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6721 case "(($ac_try" in
6722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723   *) ac_try_echo=$ac_try;;
6724 esac
6725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6726 $as_echo "$ac_try_echo") >&5
6727   (eval "$ac_compile") 2>conftest.er1
6728   ac_status=$?
6729   grep -v '^ *+' conftest.er1 >conftest.err
6730   rm -f conftest.er1
6731   cat conftest.err >&5
6732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733   (exit $ac_status); } && {
6734          test -z "$ac_c_werror_flag" ||
6735          test ! -s conftest.err
6736        } && test -s conftest.$ac_objext; then
6737   ac_cv_header_stdc=yes
6738 else
6739   $as_echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6741
6742         ac_cv_header_stdc=no
6743 fi
6744
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746
6747 if test $ac_cv_header_stdc = yes; then
6748   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6749   cat >conftest.$ac_ext <<_ACEOF
6750 /* confdefs.h.  */
6751 _ACEOF
6752 cat confdefs.h >>conftest.$ac_ext
6753 cat >>conftest.$ac_ext <<_ACEOF
6754 /* end confdefs.h.  */
6755 #include <string.h>
6756
6757 _ACEOF
6758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6759   $EGREP "memchr" >/dev/null 2>&1; then
6760   :
6761 else
6762   ac_cv_header_stdc=no
6763 fi
6764 rm -f conftest*
6765
6766 fi
6767
6768 if test $ac_cv_header_stdc = yes; then
6769   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6770   cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h.  */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h.  */
6776 #include <stdlib.h>
6777
6778 _ACEOF
6779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6780   $EGREP "free" >/dev/null 2>&1; then
6781   :
6782 else
6783   ac_cv_header_stdc=no
6784 fi
6785 rm -f conftest*
6786
6787 fi
6788
6789 if test $ac_cv_header_stdc = yes; then
6790   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6791   if test "$cross_compiling" = yes; then
6792   :
6793 else
6794   cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800 #include <ctype.h>
6801 #include <stdlib.h>
6802 #if ((' ' & 0x0FF) == 0x020)
6803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6805 #else
6806 # define ISLOWER(c) \
6807                    (('a' <= (c) && (c) <= 'i') \
6808                      || ('j' <= (c) && (c) <= 'r') \
6809                      || ('s' <= (c) && (c) <= 'z'))
6810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6811 #endif
6812
6813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6814 int
6815 main ()
6816 {
6817   int i;
6818   for (i = 0; i < 256; i++)
6819     if (XOR (islower (i), ISLOWER (i))
6820         || toupper (i) != TOUPPER (i))
6821       return 2;
6822   return 0;
6823 }
6824 _ACEOF
6825 rm -f conftest$ac_exeext
6826 if { (ac_try="$ac_link"
6827 case "(($ac_try" in
6828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829   *) ac_try_echo=$ac_try;;
6830 esac
6831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6832 $as_echo "$ac_try_echo") >&5
6833   (eval "$ac_link") 2>&5
6834   ac_status=$?
6835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6837   { (case "(($ac_try" in
6838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839   *) ac_try_echo=$ac_try;;
6840 esac
6841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842 $as_echo "$ac_try_echo") >&5
6843   (eval "$ac_try") 2>&5
6844   ac_status=$?
6845   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846   (exit $ac_status); }; }; then
6847   :
6848 else
6849   $as_echo "$as_me: program exited with status $ac_status" >&5
6850 $as_echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ( exit $ac_status )
6854 ac_cv_header_stdc=no
6855 fi
6856 rm -rf conftest.dSYM
6857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6858 fi
6859
6860
6861 fi
6862 fi
6863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6864 $as_echo "$ac_cv_header_stdc" >&6; }
6865 if test $ac_cv_header_stdc = yes; then
6866
6867 cat >>confdefs.h <<\_ACEOF
6868 #define STDC_HEADERS 1
6869 _ACEOF
6870
6871 fi
6872
6873 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6884                   inttypes.h stdint.h unistd.h
6885 do
6886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6888 $as_echo_n "checking for $ac_header... " >&6; }
6889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6890   $as_echo_n "(cached) " >&6
6891 else
6892   cat >conftest.$ac_ext <<_ACEOF
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898 $ac_includes_default
6899
6900 #include <$ac_header>
6901 _ACEOF
6902 rm -f conftest.$ac_objext
6903 if { (ac_try="$ac_compile"
6904 case "(($ac_try" in
6905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6906   *) ac_try_echo=$ac_try;;
6907 esac
6908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6909 $as_echo "$ac_try_echo") >&5
6910   (eval "$ac_compile") 2>conftest.er1
6911   ac_status=$?
6912   grep -v '^ *+' conftest.er1 >conftest.err
6913   rm -f conftest.er1
6914   cat conftest.err >&5
6915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); } && {
6917          test -z "$ac_c_werror_flag" ||
6918          test ! -s conftest.err
6919        } && test -s conftest.$ac_objext; then
6920   eval "$as_ac_Header=yes"
6921 else
6922   $as_echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6924
6925         eval "$as_ac_Header=no"
6926 fi
6927
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6929 fi
6930 ac_res=`eval 'as_val=${'$as_ac_Header'}
6931                  $as_echo "$as_val"'`
6932                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6933 $as_echo "$ac_res" >&6; }
6934 as_val=`eval 'as_val=${'$as_ac_Header'}
6935                  $as_echo "$as_val"'`
6936    if test "x$as_val" = x""yes; then
6937   cat >>confdefs.h <<_ACEOF
6938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6939 _ACEOF
6940
6941 fi
6942
6943 done
6944
6945
6946
6947 for ac_header in dlfcn.h
6948 do
6949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6950 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6951 $as_echo_n "checking for $ac_header... " >&6; }
6952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6953   $as_echo_n "(cached) " >&6
6954 else
6955   cat >conftest.$ac_ext <<_ACEOF
6956 /* confdefs.h.  */
6957 _ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h.  */
6961 $ac_includes_default
6962
6963 #include <$ac_header>
6964 _ACEOF
6965 rm -f conftest.$ac_objext
6966 if { (ac_try="$ac_compile"
6967 case "(($ac_try" in
6968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6969   *) ac_try_echo=$ac_try;;
6970 esac
6971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6972 $as_echo "$ac_try_echo") >&5
6973   (eval "$ac_compile") 2>conftest.er1
6974   ac_status=$?
6975   grep -v '^ *+' conftest.er1 >conftest.err
6976   rm -f conftest.er1
6977   cat conftest.err >&5
6978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); } && {
6980          test -z "$ac_c_werror_flag" ||
6981          test ! -s conftest.err
6982        } && test -s conftest.$ac_objext; then
6983   eval "$as_ac_Header=yes"
6984 else
6985   $as_echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6987
6988         eval "$as_ac_Header=no"
6989 fi
6990
6991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6992 fi
6993 ac_res=`eval 'as_val=${'$as_ac_Header'}
6994                  $as_echo "$as_val"'`
6995                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6996 $as_echo "$ac_res" >&6; }
6997 as_val=`eval 'as_val=${'$as_ac_Header'}
6998                  $as_echo "$as_val"'`
6999    if test "x$as_val" = x""yes; then
7000   cat >>confdefs.h <<_ACEOF
7001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7002 _ACEOF
7003
7004 fi
7005
7006 done
7007
7008
7009
7010 # Set options
7011
7012
7013
7014         enable_dlopen=no
7015
7016
7017   enable_win32_dll=no
7018
7019
7020             # Check whether --enable-shared was given.
7021 if test "${enable_shared+set}" = set; then
7022   enableval=$enable_shared; p=${PACKAGE-default}
7023     case $enableval in
7024     yes) enable_shared=yes ;;
7025     no) enable_shared=no ;;
7026     *)
7027       enable_shared=no
7028       # Look at the argument we got.  We use all the common list separators.
7029       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7030       for pkg in $enableval; do
7031         IFS="$lt_save_ifs"
7032         if test "X$pkg" = "X$p"; then
7033           enable_shared=yes
7034         fi
7035       done
7036       IFS="$lt_save_ifs"
7037       ;;
7038     esac
7039 else
7040   enable_shared=yes
7041 fi
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051   # Check whether --enable-static was given.
7052 if test "${enable_static+set}" = set; then
7053   enableval=$enable_static; p=${PACKAGE-default}
7054     case $enableval in
7055     yes) enable_static=yes ;;
7056     no) enable_static=no ;;
7057     *)
7058      enable_static=no
7059       # Look at the argument we got.  We use all the common list separators.
7060       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7061       for pkg in $enableval; do
7062         IFS="$lt_save_ifs"
7063         if test "X$pkg" = "X$p"; then
7064           enable_static=yes
7065         fi
7066       done
7067       IFS="$lt_save_ifs"
7068       ;;
7069     esac
7070 else
7071   enable_static=yes
7072 fi
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 # Check whether --with-pic was given.
7084 if test "${with_pic+set}" = set; then
7085   withval=$with_pic; pic_mode="$withval"
7086 else
7087   pic_mode=default
7088 fi
7089
7090
7091 test -z "$pic_mode" && pic_mode=default
7092
7093
7094
7095
7096
7097
7098
7099   # Check whether --enable-fast-install was given.
7100 if test "${enable_fast_install+set}" = set; then
7101   enableval=$enable_fast_install; p=${PACKAGE-default}
7102     case $enableval in
7103     yes) enable_fast_install=yes ;;
7104     no) enable_fast_install=no ;;
7105     *)
7106       enable_fast_install=no
7107       # Look at the argument we got.  We use all the common list separators.
7108       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7109       for pkg in $enableval; do
7110         IFS="$lt_save_ifs"
7111         if test "X$pkg" = "X$p"; then
7112           enable_fast_install=yes
7113         fi
7114       done
7115       IFS="$lt_save_ifs"
7116       ;;
7117     esac
7118 else
7119   enable_fast_install=yes
7120 fi
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132 # This can be used to rebuild libtool when needed
7133 LIBTOOL_DEPS="$ltmain"
7134
7135 # Always use our own libtool.
7136 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 test -z "$LN_S" && LN_S="ln -s"
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177 if test -n "${ZSH_VERSION+set}" ; then
7178    setopt NO_GLOB_SUBST
7179 fi
7180
7181 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7182 $as_echo_n "checking for objdir... " >&6; }
7183 if test "${lt_cv_objdir+set}" = set; then
7184   $as_echo_n "(cached) " >&6
7185 else
7186   rm -f .libs 2>/dev/null
7187 mkdir .libs 2>/dev/null
7188 if test -d .libs; then
7189   lt_cv_objdir=.libs
7190 else
7191   # MS-DOS does not allow filenames that begin with a dot.
7192   lt_cv_objdir=_libs
7193 fi
7194 rmdir .libs 2>/dev/null
7195 fi
7196 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7197 $as_echo "$lt_cv_objdir" >&6; }
7198 objdir=$lt_cv_objdir
7199
7200
7201
7202
7203
7204 cat >>confdefs.h <<_ACEOF
7205 #define LT_OBJDIR "$lt_cv_objdir/"
7206 _ACEOF
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224 case $host_os in
7225 aix3*)
7226   # AIX sometimes has problems with the GCC collect2 program.  For some
7227   # reason, if we set the COLLECT_NAMES environment variable, the problems
7228   # vanish in a puff of smoke.
7229   if test "X${COLLECT_NAMES+set}" != Xset; then
7230     COLLECT_NAMES=
7231     export COLLECT_NAMES
7232   fi
7233   ;;
7234 esac
7235
7236 # Sed substitution that helps us do robust quoting.  It backslashifies
7237 # metacharacters that are still active within double-quoted strings.
7238 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7239
7240 # Same as above, but do not quote variable references.
7241 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7242
7243 # Sed substitution to delay expansion of an escaped shell variable in a
7244 # double_quote_subst'ed string.
7245 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7246
7247 # Sed substitution to delay expansion of an escaped single quote.
7248 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7249
7250 # Sed substitution to avoid accidental globbing in evaled expressions
7251 no_glob_subst='s/\*/\\\*/g'
7252
7253 # Global variables:
7254 ofile=libtool
7255 can_build_shared=yes
7256
7257 # All known linkers require a `.a' archive for static linking (except MSVC,
7258 # which needs '.lib').
7259 libext=a
7260
7261 with_gnu_ld="$lt_cv_prog_gnu_ld"
7262
7263 old_CC="$CC"
7264 old_CFLAGS="$CFLAGS"
7265
7266 # Set sane defaults for various variables
7267 test -z "$CC" && CC=cc
7268 test -z "$LTCC" && LTCC=$CC
7269 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7270 test -z "$LD" && LD=ld
7271 test -z "$ac_objext" && ac_objext=o
7272
7273 for cc_temp in $compiler""; do
7274   case $cc_temp in
7275     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7276     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7277     \-*) ;;
7278     *) break;;
7279   esac
7280 done
7281 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7282
7283
7284 # Only perform the check for file, if the check method requires it
7285 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7286 case $deplibs_check_method in
7287 file_magic*)
7288   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7289     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7290 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7291 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7292   $as_echo_n "(cached) " >&6
7293 else
7294   case $MAGIC_CMD in
7295 [\\/*] |  ?:[\\/]*)
7296   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7297   ;;
7298 *)
7299   lt_save_MAGIC_CMD="$MAGIC_CMD"
7300   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7301   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7302   for ac_dir in $ac_dummy; do
7303     IFS="$lt_save_ifs"
7304     test -z "$ac_dir" && ac_dir=.
7305     if test -f $ac_dir/${ac_tool_prefix}file; then
7306       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7307       if test -n "$file_magic_test_file"; then
7308         case $deplibs_check_method in
7309         "file_magic "*)
7310           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7311           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7312           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7313             $EGREP "$file_magic_regex" > /dev/null; then
7314             :
7315           else
7316             cat <<_LT_EOF 1>&2
7317
7318 *** Warning: the command libtool uses to detect shared libraries,
7319 *** $file_magic_cmd, produces output that libtool cannot recognize.
7320 *** The result is that libtool may fail to recognize shared libraries
7321 *** as such.  This will affect the creation of libtool libraries that
7322 *** depend on shared libraries, but programs linked with such libtool
7323 *** libraries will work regardless of this problem.  Nevertheless, you
7324 *** may want to report the problem to your system manager and/or to
7325 *** bug-libtool@gnu.org
7326
7327 _LT_EOF
7328           fi ;;
7329         esac
7330       fi
7331       break
7332     fi
7333   done
7334   IFS="$lt_save_ifs"
7335   MAGIC_CMD="$lt_save_MAGIC_CMD"
7336   ;;
7337 esac
7338 fi
7339
7340 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7341 if test -n "$MAGIC_CMD"; then
7342   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7343 $as_echo "$MAGIC_CMD" >&6; }
7344 else
7345   { $as_echo "$as_me:$LINENO: result: no" >&5
7346 $as_echo "no" >&6; }
7347 fi
7348
7349
7350
7351
7352
7353 if test -z "$lt_cv_path_MAGIC_CMD"; then
7354   if test -n "$ac_tool_prefix"; then
7355     { $as_echo "$as_me:$LINENO: checking for file" >&5
7356 $as_echo_n "checking for file... " >&6; }
7357 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7358   $as_echo_n "(cached) " >&6
7359 else
7360   case $MAGIC_CMD in
7361 [\\/*] |  ?:[\\/]*)
7362   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7363   ;;
7364 *)
7365   lt_save_MAGIC_CMD="$MAGIC_CMD"
7366   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7367   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7368   for ac_dir in $ac_dummy; do
7369     IFS="$lt_save_ifs"
7370     test -z "$ac_dir" && ac_dir=.
7371     if test -f $ac_dir/file; then
7372       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7373       if test -n "$file_magic_test_file"; then
7374         case $deplibs_check_method in
7375         "file_magic "*)
7376           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7377           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7379             $EGREP "$file_magic_regex" > /dev/null; then
7380             :
7381           else
7382             cat <<_LT_EOF 1>&2
7383
7384 *** Warning: the command libtool uses to detect shared libraries,
7385 *** $file_magic_cmd, produces output that libtool cannot recognize.
7386 *** The result is that libtool may fail to recognize shared libraries
7387 *** as such.  This will affect the creation of libtool libraries that
7388 *** depend on shared libraries, but programs linked with such libtool
7389 *** libraries will work regardless of this problem.  Nevertheless, you
7390 *** may want to report the problem to your system manager and/or to
7391 *** bug-libtool@gnu.org
7392
7393 _LT_EOF
7394           fi ;;
7395         esac
7396       fi
7397       break
7398     fi
7399   done
7400   IFS="$lt_save_ifs"
7401   MAGIC_CMD="$lt_save_MAGIC_CMD"
7402   ;;
7403 esac
7404 fi
7405
7406 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7407 if test -n "$MAGIC_CMD"; then
7408   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7409 $as_echo "$MAGIC_CMD" >&6; }
7410 else
7411   { $as_echo "$as_me:$LINENO: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415
7416   else
7417     MAGIC_CMD=:
7418   fi
7419 fi
7420
7421   fi
7422   ;;
7423 esac
7424
7425 # Use C for the default configuration in the libtool script
7426
7427 lt_save_CC="$CC"
7428 ac_ext=c
7429 ac_cpp='$CPP $CPPFLAGS'
7430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433
7434
7435 # Source file extension for C test sources.
7436 ac_ext=c
7437
7438 # Object file extension for compiled C test sources.
7439 objext=o
7440 objext=$objext
7441
7442 # Code to be used in simple compile tests
7443 lt_simple_compile_test_code="int some_variable = 0;"
7444
7445 # Code to be used in simple link tests
7446 lt_simple_link_test_code='int main(){return(0);}'
7447
7448
7449
7450
7451
7452
7453
7454 # If no C compiler was specified, use CC.
7455 LTCC=${LTCC-"$CC"}
7456
7457 # If no C compiler flags were specified, use CFLAGS.
7458 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7459
7460 # Allow CC to be a program name with arguments.
7461 compiler=$CC
7462
7463 # Save the default compiler, since it gets overwritten when the other
7464 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7465 compiler_DEFAULT=$CC
7466
7467 # save warnings/boilerplate of simple test code
7468 ac_outfile=conftest.$ac_objext
7469 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7470 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7471 _lt_compiler_boilerplate=`cat conftest.err`
7472 $RM conftest*
7473
7474 ac_outfile=conftest.$ac_objext
7475 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7476 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7477 _lt_linker_boilerplate=`cat conftest.err`
7478 $RM -r conftest*
7479
7480
7481 if test -n "$compiler"; then
7482
7483 lt_prog_compiler_no_builtin_flag=
7484
7485 if test "$GCC" = yes; then
7486   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7487
7488   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7489 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7490 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7491   $as_echo_n "(cached) " >&6
7492 else
7493   lt_cv_prog_compiler_rtti_exceptions=no
7494    ac_outfile=conftest.$ac_objext
7495    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7496    lt_compiler_flag="-fno-rtti -fno-exceptions"
7497    # Insert the option either (1) after the last *FLAGS variable, or
7498    # (2) before a word containing "conftest.", or (3) at the end.
7499    # Note that $ac_compile itself does not contain backslashes and begins
7500    # with a dollar sign (not a hyphen), so the echo should work correctly.
7501    # The option is referenced via a variable to avoid confusing sed.
7502    lt_compile=`echo "$ac_compile" | $SED \
7503    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7505    -e 's:$: $lt_compiler_flag:'`
7506    (eval echo "\"\$as_me:7506: $lt_compile\"" >&5)
7507    (eval "$lt_compile" 2>conftest.err)
7508    ac_status=$?
7509    cat conftest.err >&5
7510    echo "$as_me:7510: \$? = $ac_status" >&5
7511    if (exit $ac_status) && test -s "$ac_outfile"; then
7512      # The compiler can only warn and ignore the option if not recognized
7513      # So say no if there are warnings other than the usual output.
7514      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7515      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7516      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7517        lt_cv_prog_compiler_rtti_exceptions=yes
7518      fi
7519    fi
7520    $RM conftest*
7521
7522 fi
7523 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7524 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7525
7526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7527     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7528 else
7529     :
7530 fi
7531
7532 fi
7533
7534
7535
7536
7537
7538
7539   lt_prog_compiler_wl=
7540 lt_prog_compiler_pic=
7541 lt_prog_compiler_static=
7542
7543 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7544 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7545
7546   if test "$GCC" = yes; then
7547     lt_prog_compiler_wl='-Wl,'
7548     lt_prog_compiler_static='-static'
7549
7550     case $host_os in
7551       aix*)
7552       # All AIX code is PIC.
7553       if test "$host_cpu" = ia64; then
7554         # AIX 5 now supports IA64 processor
7555         lt_prog_compiler_static='-Bstatic'
7556       fi
7557       ;;
7558
7559     amigaos*)
7560       case $host_cpu in
7561       powerpc)
7562             # see comment about AmigaOS4 .so support
7563             lt_prog_compiler_pic='-fPIC'
7564         ;;
7565       m68k)
7566             # FIXME: we need at least 68020 code to build shared libraries, but
7567             # adding the `-m68020' flag to GCC prevents building anything better,
7568             # like `-m68040'.
7569             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7570         ;;
7571       esac
7572       ;;
7573
7574     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7575       # PIC is the default for these OSes.
7576       ;;
7577
7578     mingw* | cygwin* | pw32* | os2* | cegcc*)
7579       # This hack is so that the source file can tell whether it is being
7580       # built for inclusion in a dll (and should export symbols for example).
7581       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7582       # (--disable-auto-import) libraries
7583       lt_prog_compiler_pic='-DDLL_EXPORT'
7584       ;;
7585
7586     darwin* | rhapsody*)
7587       # PIC is the default on this platform
7588       # Common symbols not allowed in MH_DYLIB files
7589       lt_prog_compiler_pic='-fno-common'
7590       ;;
7591
7592     hpux*)
7593       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7594       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7595       # sets the default TLS model and affects inlining.
7596       case $host_cpu in
7597       hppa*64*)
7598         # +Z the default
7599         ;;
7600       *)
7601         lt_prog_compiler_pic='-fPIC'
7602         ;;
7603       esac
7604       ;;
7605
7606     interix[3-9]*)
7607       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7608       # Instead, we relocate shared libraries at runtime.
7609       ;;
7610
7611     msdosdjgpp*)
7612       # Just because we use GCC doesn't mean we suddenly get shared libraries
7613       # on systems that don't support them.
7614       lt_prog_compiler_can_build_shared=no
7615       enable_shared=no
7616       ;;
7617
7618     *nto* | *qnx*)
7619       # QNX uses GNU C++, but need to define -shared option too, otherwise
7620       # it will coredump.
7621       lt_prog_compiler_pic='-fPIC -shared'
7622       ;;
7623
7624     sysv4*MP*)
7625       if test -d /usr/nec; then
7626         lt_prog_compiler_pic=-Kconform_pic
7627       fi
7628       ;;
7629
7630     *)
7631       lt_prog_compiler_pic='-fPIC'
7632       ;;
7633     esac
7634   else
7635     # PORTME Check for flag to pass linker flags through the system compiler.
7636     case $host_os in
7637     aix*)
7638       lt_prog_compiler_wl='-Wl,'
7639       if test "$host_cpu" = ia64; then
7640         # AIX 5 now supports IA64 processor
7641         lt_prog_compiler_static='-Bstatic'
7642       else
7643         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7644       fi
7645       ;;
7646
7647     mingw* | cygwin* | pw32* | os2* | cegcc*)
7648       # This hack is so that the source file can tell whether it is being
7649       # built for inclusion in a dll (and should export symbols for example).
7650       lt_prog_compiler_pic='-DDLL_EXPORT'
7651       ;;
7652
7653     hpux9* | hpux10* | hpux11*)
7654       lt_prog_compiler_wl='-Wl,'
7655       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7656       # not for PA HP-UX.
7657       case $host_cpu in
7658       hppa*64*|ia64*)
7659         # +Z the default
7660         ;;
7661       *)
7662         lt_prog_compiler_pic='+Z'
7663         ;;
7664       esac
7665       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7666       lt_prog_compiler_static='${wl}-a ${wl}archive'
7667       ;;
7668
7669     irix5* | irix6* | nonstopux*)
7670       lt_prog_compiler_wl='-Wl,'
7671       # PIC (with -KPIC) is the default.
7672       lt_prog_compiler_static='-non_shared'
7673       ;;
7674
7675     linux* | k*bsd*-gnu)
7676       case $cc_basename in
7677       # old Intel for x86_64 which still supported -KPIC.
7678       ecc*)
7679         lt_prog_compiler_wl='-Wl,'
7680         lt_prog_compiler_pic='-KPIC'
7681         lt_prog_compiler_static='-static'
7682         ;;
7683       # icc used to be incompatible with GCC.
7684       # ICC 10 doesn't accept -KPIC any more.
7685       icc* | ifort*)
7686         lt_prog_compiler_wl='-Wl,'
7687         lt_prog_compiler_pic='-fPIC'
7688         lt_prog_compiler_static='-static'
7689         ;;
7690       # Lahey Fortran 8.1.
7691       lf95*)
7692         lt_prog_compiler_wl='-Wl,'
7693         lt_prog_compiler_pic='--shared'
7694         lt_prog_compiler_static='--static'
7695         ;;
7696       pgcc* | pgf77* | pgf90* | pgf95*)
7697         # Portland Group compilers (*not* the Pentium gcc compiler,
7698         # which looks to be a dead project)
7699         lt_prog_compiler_wl='-Wl,'
7700         lt_prog_compiler_pic='-fpic'
7701         lt_prog_compiler_static='-Bstatic'
7702         ;;
7703       ccc*)
7704         lt_prog_compiler_wl='-Wl,'
7705         # All Alpha code is PIC.
7706         lt_prog_compiler_static='-non_shared'
7707         ;;
7708       xl*)
7709         # IBM XL C 8.0/Fortran 10.1 on PPC
7710         lt_prog_compiler_wl='-Wl,'
7711         lt_prog_compiler_pic='-qpic'
7712         lt_prog_compiler_static='-qstaticlink'
7713         ;;
7714       *)
7715         case `$CC -V 2>&1 | sed 5q` in
7716         *Sun\ C*)
7717           # Sun C 5.9
7718           lt_prog_compiler_pic='-KPIC'
7719           lt_prog_compiler_static='-Bstatic'
7720           lt_prog_compiler_wl='-Wl,'
7721           ;;
7722         *Sun\ F*)
7723           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7724           lt_prog_compiler_pic='-KPIC'
7725           lt_prog_compiler_static='-Bstatic'
7726           lt_prog_compiler_wl=''
7727           ;;
7728         esac
7729         ;;
7730       esac
7731       ;;
7732
7733     newsos6)
7734       lt_prog_compiler_pic='-KPIC'
7735       lt_prog_compiler_static='-Bstatic'
7736       ;;
7737
7738     *nto* | *qnx*)
7739       # QNX uses GNU C++, but need to define -shared option too, otherwise
7740       # it will coredump.
7741       lt_prog_compiler_pic='-fPIC -shared'
7742       ;;
7743
7744     osf3* | osf4* | osf5*)
7745       lt_prog_compiler_wl='-Wl,'
7746       # All OSF/1 code is PIC.
7747       lt_prog_compiler_static='-non_shared'
7748       ;;
7749
7750     rdos*)
7751       lt_prog_compiler_static='-non_shared'
7752       ;;
7753
7754     solaris*)
7755       lt_prog_compiler_pic='-KPIC'
7756       lt_prog_compiler_static='-Bstatic'
7757       case $cc_basename in
7758       f77* | f90* | f95*)
7759         lt_prog_compiler_wl='-Qoption ld ';;
7760       *)
7761         lt_prog_compiler_wl='-Wl,';;
7762       esac
7763       ;;
7764
7765     sunos4*)
7766       lt_prog_compiler_wl='-Qoption ld '
7767       lt_prog_compiler_pic='-PIC'
7768       lt_prog_compiler_static='-Bstatic'
7769       ;;
7770
7771     sysv4 | sysv4.2uw2* | sysv4.3*)
7772       lt_prog_compiler_wl='-Wl,'
7773       lt_prog_compiler_pic='-KPIC'
7774       lt_prog_compiler_static='-Bstatic'
7775       ;;
7776
7777     sysv4*MP*)
7778       if test -d /usr/nec ;then
7779         lt_prog_compiler_pic='-Kconform_pic'
7780         lt_prog_compiler_static='-Bstatic'
7781       fi
7782       ;;
7783
7784     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7785       lt_prog_compiler_wl='-Wl,'
7786       lt_prog_compiler_pic='-KPIC'
7787       lt_prog_compiler_static='-Bstatic'
7788       ;;
7789
7790     unicos*)
7791       lt_prog_compiler_wl='-Wl,'
7792       lt_prog_compiler_can_build_shared=no
7793       ;;
7794
7795     uts4*)
7796       lt_prog_compiler_pic='-pic'
7797       lt_prog_compiler_static='-Bstatic'
7798       ;;
7799
7800     *)
7801       lt_prog_compiler_can_build_shared=no
7802       ;;
7803     esac
7804   fi
7805
7806 case $host_os in
7807   # For platforms which do not support PIC, -DPIC is meaningless:
7808   *djgpp*)
7809     lt_prog_compiler_pic=
7810     ;;
7811   *)
7812     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7813     ;;
7814 esac
7815 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7816 $as_echo "$lt_prog_compiler_pic" >&6; }
7817
7818
7819
7820
7821
7822
7823 #
7824 # Check to make sure the PIC flag actually works.
7825 #
7826 if test -n "$lt_prog_compiler_pic"; then
7827   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7828 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7829 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7830   $as_echo_n "(cached) " >&6
7831 else
7832   lt_cv_prog_compiler_pic_works=no
7833    ac_outfile=conftest.$ac_objext
7834    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7835    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7836    # Insert the option either (1) after the last *FLAGS variable, or
7837    # (2) before a word containing "conftest.", or (3) at the end.
7838    # Note that $ac_compile itself does not contain backslashes and begins
7839    # with a dollar sign (not a hyphen), so the echo should work correctly.
7840    # The option is referenced via a variable to avoid confusing sed.
7841    lt_compile=`echo "$ac_compile" | $SED \
7842    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7843    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7844    -e 's:$: $lt_compiler_flag:'`
7845    (eval echo "\"\$as_me:7845: $lt_compile\"" >&5)
7846    (eval "$lt_compile" 2>conftest.err)
7847    ac_status=$?
7848    cat conftest.err >&5
7849    echo "$as_me:7849: \$? = $ac_status" >&5
7850    if (exit $ac_status) && test -s "$ac_outfile"; then
7851      # The compiler can only warn and ignore the option if not recognized
7852      # So say no if there are warnings other than the usual output.
7853      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7854      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7855      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7856        lt_cv_prog_compiler_pic_works=yes
7857      fi
7858    fi
7859    $RM conftest*
7860
7861 fi
7862 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7863 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7864
7865 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7866     case $lt_prog_compiler_pic in
7867      "" | " "*) ;;
7868      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7869      esac
7870 else
7871     lt_prog_compiler_pic=
7872      lt_prog_compiler_can_build_shared=no
7873 fi
7874
7875 fi
7876
7877
7878
7879
7880
7881
7882 #
7883 # Check to make sure the static flag actually works.
7884 #
7885 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7886 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7887 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7888 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7889   $as_echo_n "(cached) " >&6
7890 else
7891   lt_cv_prog_compiler_static_works=no
7892    save_LDFLAGS="$LDFLAGS"
7893    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7894    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7895    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7896      # The linker can only warn and ignore the option if not recognized
7897      # So say no if there are warnings
7898      if test -s conftest.err; then
7899        # Append any errors to the config.log.
7900        cat conftest.err 1>&5
7901        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7902        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7903        if diff conftest.exp conftest.er2 >/dev/null; then
7904          lt_cv_prog_compiler_static_works=yes
7905        fi
7906      else
7907        lt_cv_prog_compiler_static_works=yes
7908      fi
7909    fi
7910    $RM -r conftest*
7911    LDFLAGS="$save_LDFLAGS"
7912
7913 fi
7914 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7915 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7916
7917 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7918     :
7919 else
7920     lt_prog_compiler_static=
7921 fi
7922
7923
7924
7925
7926
7927
7928
7929   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7930 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7931 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7932   $as_echo_n "(cached) " >&6
7933 else
7934   lt_cv_prog_compiler_c_o=no
7935    $RM -r conftest 2>/dev/null
7936    mkdir conftest
7937    cd conftest
7938    mkdir out
7939    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7940
7941    lt_compiler_flag="-o out/conftest2.$ac_objext"
7942    # Insert the option either (1) after the last *FLAGS variable, or
7943    # (2) before a word containing "conftest.", or (3) at the end.
7944    # Note that $ac_compile itself does not contain backslashes and begins
7945    # with a dollar sign (not a hyphen), so the echo should work correctly.
7946    lt_compile=`echo "$ac_compile" | $SED \
7947    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7948    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7949    -e 's:$: $lt_compiler_flag:'`
7950    (eval echo "\"\$as_me:7950: $lt_compile\"" >&5)
7951    (eval "$lt_compile" 2>out/conftest.err)
7952    ac_status=$?
7953    cat out/conftest.err >&5
7954    echo "$as_me:7954: \$? = $ac_status" >&5
7955    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7956    then
7957      # The compiler can only warn and ignore the option if not recognized
7958      # So say no if there are warnings
7959      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7960      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7961      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7962        lt_cv_prog_compiler_c_o=yes
7963      fi
7964    fi
7965    chmod u+w . 2>&5
7966    $RM conftest*
7967    # SGI C++ compiler will create directory out/ii_files/ for
7968    # template instantiation
7969    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7970    $RM out/* && rmdir out
7971    cd ..
7972    $RM -r conftest
7973    $RM conftest*
7974
7975 fi
7976 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7977 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7978
7979
7980
7981
7982
7983
7984   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7985 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7986 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7987   $as_echo_n "(cached) " >&6
7988 else
7989   lt_cv_prog_compiler_c_o=no
7990    $RM -r conftest 2>/dev/null
7991    mkdir conftest
7992    cd conftest
7993    mkdir out
7994    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7995
7996    lt_compiler_flag="-o out/conftest2.$ac_objext"
7997    # Insert the option either (1) after the last *FLAGS variable, or
7998    # (2) before a word containing "conftest.", or (3) at the end.
7999    # Note that $ac_compile itself does not contain backslashes and begins
8000    # with a dollar sign (not a hyphen), so the echo should work correctly.
8001    lt_compile=`echo "$ac_compile" | $SED \
8002    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8003    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8004    -e 's:$: $lt_compiler_flag:'`
8005    (eval echo "\"\$as_me:8005: $lt_compile\"" >&5)
8006    (eval "$lt_compile" 2>out/conftest.err)
8007    ac_status=$?
8008    cat out/conftest.err >&5
8009    echo "$as_me:8009: \$? = $ac_status" >&5
8010    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8011    then
8012      # The compiler can only warn and ignore the option if not recognized
8013      # So say no if there are warnings
8014      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8015      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8016      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8017        lt_cv_prog_compiler_c_o=yes
8018      fi
8019    fi
8020    chmod u+w . 2>&5
8021    $RM conftest*
8022    # SGI C++ compiler will create directory out/ii_files/ for
8023    # template instantiation
8024    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8025    $RM out/* && rmdir out
8026    cd ..
8027    $RM -r conftest
8028    $RM conftest*
8029
8030 fi
8031 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8032 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8033
8034
8035
8036
8037 hard_links="nottested"
8038 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8039   # do not overwrite the value of need_locks provided by the user
8040   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8041 $as_echo_n "checking if we can lock with hard links... " >&6; }
8042   hard_links=yes
8043   $RM conftest*
8044   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8045   touch conftest.a
8046   ln conftest.a conftest.b 2>&5 || hard_links=no
8047   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8048   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8049 $as_echo "$hard_links" >&6; }
8050   if test "$hard_links" = no; then
8051     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8052 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8053     need_locks=warn
8054   fi
8055 else
8056   need_locks=no
8057 fi
8058
8059
8060
8061
8062
8063
8064   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8065 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8066
8067   runpath_var=
8068   allow_undefined_flag=
8069   always_export_symbols=no
8070   archive_cmds=
8071   archive_expsym_cmds=
8072   compiler_needs_object=no
8073   enable_shared_with_static_runtimes=no
8074   export_dynamic_flag_spec=
8075   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8076   hardcode_automatic=no
8077   hardcode_direct=no
8078   hardcode_direct_absolute=no
8079   hardcode_libdir_flag_spec=
8080   hardcode_libdir_flag_spec_ld=
8081   hardcode_libdir_separator=
8082   hardcode_minus_L=no
8083   hardcode_shlibpath_var=unsupported
8084   inherit_rpath=no
8085   link_all_deplibs=unknown
8086   module_cmds=
8087   module_expsym_cmds=
8088   old_archive_from_new_cmds=
8089   old_archive_from_expsyms_cmds=
8090   thread_safe_flag_spec=
8091   whole_archive_flag_spec=
8092   # include_expsyms should be a list of space-separated symbols to be *always*
8093   # included in the symbol list
8094   include_expsyms=
8095   # exclude_expsyms can be an extended regexp of symbols to exclude
8096   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8097   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8098   # as well as any symbol that contains `d'.
8099   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8100   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8101   # platforms (ab)use it in PIC code, but their linkers get confused if
8102   # the symbol is explicitly referenced.  Since portable code cannot
8103   # rely on this symbol name, it's probably fine to never include it in
8104   # preloaded symbol tables.
8105   # Exclude shared library initialization/finalization symbols.
8106   extract_expsyms_cmds=
8107
8108   case $host_os in
8109   cygwin* | mingw* | pw32* | cegcc*)
8110     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8111     # When not using gcc, we currently assume that we are using
8112     # Microsoft Visual C++.
8113     if test "$GCC" != yes; then
8114       with_gnu_ld=no
8115     fi
8116     ;;
8117   interix*)
8118     # we just hope/assume this is gcc and not c89 (= MSVC++)
8119     with_gnu_ld=yes
8120     ;;
8121   openbsd*)
8122     with_gnu_ld=no
8123     ;;
8124   linux* | k*bsd*-gnu)
8125     link_all_deplibs=no
8126     ;;
8127   esac
8128
8129   ld_shlibs=yes
8130   if test "$with_gnu_ld" = yes; then
8131     # If archive_cmds runs LD, not CC, wlarc should be empty
8132     wlarc='${wl}'
8133
8134     # Set some defaults for GNU ld with shared library support. These
8135     # are reset later if shared libraries are not supported. Putting them
8136     # here allows them to be overridden if necessary.
8137     runpath_var=LD_RUN_PATH
8138     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8139     export_dynamic_flag_spec='${wl}--export-dynamic'
8140     # ancient GNU ld didn't support --whole-archive et. al.
8141     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8142       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8143     else
8144       whole_archive_flag_spec=
8145     fi
8146     supports_anon_versioning=no
8147     case `$LD -v 2>&1` in
8148       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8149       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8150       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8151       *\ 2.11.*) ;; # other 2.11 versions
8152       *) supports_anon_versioning=yes ;;
8153     esac
8154
8155     # See if GNU ld supports shared libraries.
8156     case $host_os in
8157     aix[3-9]*)
8158       # On AIX/PPC, the GNU linker is very broken
8159       if test "$host_cpu" != ia64; then
8160         ld_shlibs=no
8161         cat <<_LT_EOF 1>&2
8162
8163 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8164 *** to be unable to reliably create shared libraries on AIX.
8165 *** Therefore, libtool is disabling shared libraries support.  If you
8166 *** really care for shared libraries, you may want to modify your PATH
8167 *** so that a non-GNU linker is found, and then restart.
8168
8169 _LT_EOF
8170       fi
8171       ;;
8172
8173     amigaos*)
8174       case $host_cpu in
8175       powerpc)
8176             # see comment about AmigaOS4 .so support
8177             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8178             archive_expsym_cmds=''
8179         ;;
8180       m68k)
8181             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)'
8182             hardcode_libdir_flag_spec='-L$libdir'
8183             hardcode_minus_L=yes
8184         ;;
8185       esac
8186       ;;
8187
8188     beos*)
8189       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8190         allow_undefined_flag=unsupported
8191         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8192         # support --undefined.  This deserves some investigation.  FIXME
8193         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8194       else
8195         ld_shlibs=no
8196       fi
8197       ;;
8198
8199     cygwin* | mingw* | pw32* | cegcc*)
8200       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8201       # as there is no search path for DLLs.
8202       hardcode_libdir_flag_spec='-L$libdir'
8203       allow_undefined_flag=unsupported
8204       always_export_symbols=no
8205       enable_shared_with_static_runtimes=yes
8206       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8207
8208       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8209         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8210         # If the export-symbols file already is a .def file (1st line
8211         # is EXPORTS), use it as is; otherwise, prepend...
8212         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8213           cp $export_symbols $output_objdir/$soname.def;
8214         else
8215           echo EXPORTS > $output_objdir/$soname.def;
8216           cat $export_symbols >> $output_objdir/$soname.def;
8217         fi~
8218         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8219       else
8220         ld_shlibs=no
8221       fi
8222       ;;
8223
8224     interix[3-9]*)
8225       hardcode_direct=no
8226       hardcode_shlibpath_var=no
8227       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8228       export_dynamic_flag_spec='${wl}-E'
8229       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8230       # Instead, shared libraries are loaded at an image base (0x10000000 by
8231       # default) and relocated if they conflict, which is a slow very memory
8232       # consuming and fragmenting process.  To avoid this, we pick a random,
8233       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8234       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8235       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8236       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'
8237       ;;
8238
8239     gnu* | linux* | tpf* | k*bsd*-gnu)
8240       tmp_diet=no
8241       if test "$host_os" = linux-dietlibc; then
8242         case $cc_basename in
8243           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8244         esac
8245       fi
8246       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8247          && test "$tmp_diet" = no
8248       then
8249         tmp_addflag=
8250         tmp_sharedflag='-shared'
8251         case $cc_basename,$host_cpu in
8252         pgcc*)                          # Portland Group C compiler
8253           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8254           tmp_addflag=' $pic_flag'
8255           ;;
8256         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8257           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8258           tmp_addflag=' $pic_flag -Mnomain' ;;
8259         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8260           tmp_addflag=' -i_dynamic' ;;
8261         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8262           tmp_addflag=' -i_dynamic -nofor_main' ;;
8263         ifc* | ifort*)                  # Intel Fortran compiler
8264           tmp_addflag=' -nofor_main' ;;
8265         lf95*)                          # Lahey Fortran 8.1
8266           whole_archive_flag_spec=
8267           tmp_sharedflag='--shared' ;;
8268         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
8269           tmp_sharedflag='-qmkshrobj'
8270           tmp_addflag= ;;
8271         esac
8272         case `$CC -V 2>&1 | sed 5q` in
8273         *Sun\ C*)                       # Sun C 5.9
8274           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8275           compiler_needs_object=yes
8276           tmp_sharedflag='-G' ;;
8277         *Sun\ F*)                       # Sun Fortran 8.3
8278           tmp_sharedflag='-G' ;;
8279         esac
8280         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8281
8282         if test "x$supports_anon_versioning" = xyes; then
8283           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8284             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8285             echo "local: *; };" >> $output_objdir/$libname.ver~
8286             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8287         fi
8288
8289         case $cc_basename in
8290         xlf*)
8291           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8292           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8293           hardcode_libdir_flag_spec=
8294           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8295           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8296           if test "x$supports_anon_versioning" = xyes; then
8297             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8298               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8299               echo "local: *; };" >> $output_objdir/$libname.ver~
8300               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8301           fi
8302           ;;
8303         esac
8304       else
8305         ld_shlibs=no
8306       fi
8307       ;;
8308
8309     netbsd* | netbsdelf*-gnu)
8310       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8311         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8312         wlarc=
8313       else
8314         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8315         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8316       fi
8317       ;;
8318
8319     solaris*)
8320       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8321         ld_shlibs=no
8322         cat <<_LT_EOF 1>&2
8323
8324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8325 *** create shared libraries on Solaris systems.  Therefore, libtool
8326 *** is disabling shared libraries support.  We urge you to upgrade GNU
8327 *** binutils to release 2.9.1 or newer.  Another option is to modify
8328 *** your PATH or compiler configuration so that the native linker is
8329 *** used, and then restart.
8330
8331 _LT_EOF
8332       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8335       else
8336         ld_shlibs=no
8337       fi
8338       ;;
8339
8340     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8341       case `$LD -v 2>&1` in
8342         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8343         ld_shlibs=no
8344         cat <<_LT_EOF 1>&2
8345
8346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8347 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8348 *** is disabling shared libraries support.  We urge you to upgrade GNU
8349 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8350 *** your PATH or compiler configuration so that the native linker is
8351 *** used, and then restart.
8352
8353 _LT_EOF
8354         ;;
8355         *)
8356           # For security reasons, it is highly recommended that you always
8357           # use absolute paths for naming shared libraries, and exclude the
8358           # DT_RUNPATH tag from executables and libraries.  But doing so
8359           # requires that you compile everything twice, which is a pain.
8360           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8361             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8362             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8363             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8364           else
8365             ld_shlibs=no
8366           fi
8367         ;;
8368       esac
8369       ;;
8370
8371     sunos4*)
8372       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8373       wlarc=
8374       hardcode_direct=yes
8375       hardcode_shlibpath_var=no
8376       ;;
8377
8378     *)
8379       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8380         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8381         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8382       else
8383         ld_shlibs=no
8384       fi
8385       ;;
8386     esac
8387
8388     if test "$ld_shlibs" = no; then
8389       runpath_var=
8390       hardcode_libdir_flag_spec=
8391       export_dynamic_flag_spec=
8392       whole_archive_flag_spec=
8393     fi
8394   else
8395     # PORTME fill in a description of your system's linker (not GNU ld)
8396     case $host_os in
8397     aix3*)
8398       allow_undefined_flag=unsupported
8399       always_export_symbols=yes
8400       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'
8401       # Note: this linker hardcodes the directories in LIBPATH if there
8402       # are no directories specified by -L.
8403       hardcode_minus_L=yes
8404       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8405         # Neither direct hardcoding nor static linking is supported with a
8406         # broken collect2.
8407         hardcode_direct=unsupported
8408       fi
8409       ;;
8410
8411     aix[4-9]*)
8412       if test "$host_cpu" = ia64; then
8413         # On IA64, the linker does run time linking by default, so we don't
8414         # have to do anything special.
8415         aix_use_runtimelinking=no
8416         exp_sym_flag='-Bexport'
8417         no_entry_flag=""
8418       else
8419         # If we're using GNU nm, then we don't want the "-C" option.
8420         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8421         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8422           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8423         else
8424           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'
8425         fi
8426         aix_use_runtimelinking=no
8427
8428         # Test if we are trying to use run time linking or normal
8429         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8430         # need to do runtime linking.
8431         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8432           for ld_flag in $LDFLAGS; do
8433           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8434             aix_use_runtimelinking=yes
8435             break
8436           fi
8437           done
8438           ;;
8439         esac
8440
8441         exp_sym_flag='-bexport'
8442         no_entry_flag='-bnoentry'
8443       fi
8444
8445       # When large executables or shared objects are built, AIX ld can
8446       # have problems creating the table of contents.  If linking a library
8447       # or program results in "error TOC overflow" add -mminimal-toc to
8448       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8449       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8450
8451       archive_cmds=''
8452       hardcode_direct=yes
8453       hardcode_direct_absolute=yes
8454       hardcode_libdir_separator=':'
8455       link_all_deplibs=yes
8456       file_list_spec='${wl}-f,'
8457
8458       if test "$GCC" = yes; then
8459         case $host_os in aix4.[012]|aix4.[012].*)
8460         # We only want to do this on AIX 4.2 and lower, the check
8461         # below for broken collect2 doesn't work under 4.3+
8462           collect2name=`${CC} -print-prog-name=collect2`
8463           if test -f "$collect2name" &&
8464            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8465           then
8466           # We have reworked collect2
8467           :
8468           else
8469           # We have old collect2
8470           hardcode_direct=unsupported
8471           # It fails to find uninstalled libraries when the uninstalled
8472           # path is not listed in the libpath.  Setting hardcode_minus_L
8473           # to unsupported forces relinking
8474           hardcode_minus_L=yes
8475           hardcode_libdir_flag_spec='-L$libdir'
8476           hardcode_libdir_separator=
8477           fi
8478           ;;
8479         esac
8480         shared_flag='-shared'
8481         if test "$aix_use_runtimelinking" = yes; then
8482           shared_flag="$shared_flag "'${wl}-G'
8483         fi
8484         link_all_deplibs=no
8485       else
8486         # not using gcc
8487         if test "$host_cpu" = ia64; then
8488         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8489         # chokes on -Wl,-G. The following line is correct:
8490           shared_flag='-G'
8491         else
8492           if test "$aix_use_runtimelinking" = yes; then
8493             shared_flag='${wl}-G'
8494           else
8495             shared_flag='${wl}-bM:SRE'
8496           fi
8497         fi
8498       fi
8499
8500       export_dynamic_flag_spec='${wl}-bexpall'
8501       # It seems that -bexpall does not export symbols beginning with
8502       # underscore (_), so it is better to generate a list of symbols to export.
8503       always_export_symbols=yes
8504       if test "$aix_use_runtimelinking" = yes; then
8505         # Warning - without using the other runtime loading flags (-brtl),
8506         # -berok will link without error, but may produce a broken library.
8507         allow_undefined_flag='-berok'
8508         # Determine the default libpath from the value encoded in an
8509         # empty executable.
8510         cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516
8517 int
8518 main ()
8519 {
8520
8521   ;
8522   return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (ac_try="$ac_link"
8527 case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8532 $as_echo "$ac_try_echo") >&5
8533   (eval "$ac_link") 2>conftest.er1
8534   ac_status=$?
8535   grep -v '^ *+' conftest.er1 >conftest.err
8536   rm -f conftest.er1
8537   cat conftest.err >&5
8538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539   (exit $ac_status); } && {
8540          test -z "$ac_c_werror_flag" ||
8541          test ! -s conftest.err
8542        } && test -s conftest$ac_exeext && {
8543          test "$cross_compiling" = yes ||
8544          $as_test_x conftest$ac_exeext
8545        }; then
8546
8547 lt_aix_libpath_sed='
8548     /Import File Strings/,/^$/ {
8549         /^0/ {
8550             s/^0  *\(.*\)$/\1/
8551             p
8552         }
8553     }'
8554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8555 # Check for a 64-bit object if we didn't find anything.
8556 if test -z "$aix_libpath"; then
8557   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558 fi
8559 else
8560   $as_echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563
8564 fi
8565
8566 rm -rf conftest.dSYM
8567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8568       conftest$ac_exeext conftest.$ac_ext
8569 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8570
8571         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8572         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8573       else
8574         if test "$host_cpu" = ia64; then
8575           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8576           allow_undefined_flag="-z nodefs"
8577           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"
8578         else
8579          # Determine the default libpath from the value encoded in an
8580          # empty executable.
8581          cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587
8588 int
8589 main ()
8590 {
8591
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604   (eval "$ac_link") 2>conftest.er1
8605   ac_status=$?
8606   grep -v '^ *+' conftest.er1 >conftest.err
8607   rm -f conftest.er1
8608   cat conftest.err >&5
8609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); } && {
8611          test -z "$ac_c_werror_flag" ||
8612          test ! -s conftest.err
8613        } && test -s conftest$ac_exeext && {
8614          test "$cross_compiling" = yes ||
8615          $as_test_x conftest$ac_exeext
8616        }; then
8617
8618 lt_aix_libpath_sed='
8619     /Import File Strings/,/^$/ {
8620         /^0/ {
8621             s/^0  *\(.*\)$/\1/
8622             p
8623         }
8624     }'
8625 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8626 # Check for a 64-bit object if we didn't find anything.
8627 if test -z "$aix_libpath"; then
8628   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8629 fi
8630 else
8631   $as_echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634
8635 fi
8636
8637 rm -rf conftest.dSYM
8638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8639       conftest$ac_exeext conftest.$ac_ext
8640 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8641
8642          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8643           # Warning - without using the other run time loading flags,
8644           # -berok will link without error, but may produce a broken library.
8645           no_undefined_flag=' ${wl}-bernotok'
8646           allow_undefined_flag=' ${wl}-berok'
8647           # Exported symbols can be pulled into shared objects from archives
8648           whole_archive_flag_spec='$convenience'
8649           archive_cmds_need_lc=yes
8650           # This is similar to how AIX traditionally builds its shared libraries.
8651           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'
8652         fi
8653       fi
8654       ;;
8655
8656     amigaos*)
8657       case $host_cpu in
8658       powerpc)
8659             # see comment about AmigaOS4 .so support
8660             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661             archive_expsym_cmds=''
8662         ;;
8663       m68k)
8664             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)'
8665             hardcode_libdir_flag_spec='-L$libdir'
8666             hardcode_minus_L=yes
8667         ;;
8668       esac
8669       ;;
8670
8671     bsdi[45]*)
8672       export_dynamic_flag_spec=-rdynamic
8673       ;;
8674
8675     cygwin* | mingw* | pw32* | cegcc*)
8676       # When not using gcc, we currently assume that we are using
8677       # Microsoft Visual C++.
8678       # hardcode_libdir_flag_spec is actually meaningless, as there is
8679       # no search path for DLLs.
8680       hardcode_libdir_flag_spec=' '
8681       allow_undefined_flag=unsupported
8682       # Tell ltmain to make .lib files, not .a files.
8683       libext=lib
8684       # Tell ltmain to make .dll files, not .so files.
8685       shrext_cmds=".dll"
8686       # FIXME: Setting linknames here is a bad hack.
8687       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8688       # The linker will automatically build a .lib file if we build a DLL.
8689       old_archive_from_new_cmds='true'
8690       # FIXME: Should let the user specify the lib program.
8691       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8692       fix_srcfile_path='`cygpath -w "$srcfile"`'
8693       enable_shared_with_static_runtimes=yes
8694       ;;
8695
8696     darwin* | rhapsody*)
8697
8698
8699   archive_cmds_need_lc=no
8700   hardcode_direct=no
8701   hardcode_automatic=yes
8702   hardcode_shlibpath_var=unsupported
8703   whole_archive_flag_spec=''
8704   link_all_deplibs=yes
8705   allow_undefined_flag="$_lt_dar_allow_undefined"
8706   case $cc_basename in
8707      ifort*) _lt_dar_can_shared=yes ;;
8708      *) _lt_dar_can_shared=$GCC ;;
8709   esac
8710   if test "$_lt_dar_can_shared" = "yes"; then
8711     output_verbose_link_cmd=echo
8712     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8713     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8714     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}"
8715     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}"
8716
8717   else
8718   ld_shlibs=no
8719   fi
8720
8721       ;;
8722
8723     dgux*)
8724       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8725       hardcode_libdir_flag_spec='-L$libdir'
8726       hardcode_shlibpath_var=no
8727       ;;
8728
8729     freebsd1*)
8730       ld_shlibs=no
8731       ;;
8732
8733     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8734     # support.  Future versions do this automatically, but an explicit c++rt0.o
8735     # does not break anything, and helps significantly (at the cost of a little
8736     # extra space).
8737     freebsd2.2*)
8738       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8739       hardcode_libdir_flag_spec='-R$libdir'
8740       hardcode_direct=yes
8741       hardcode_shlibpath_var=no
8742       ;;
8743
8744     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8745     freebsd2*)
8746       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8747       hardcode_direct=yes
8748       hardcode_minus_L=yes
8749       hardcode_shlibpath_var=no
8750       ;;
8751
8752     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8753     freebsd* | dragonfly*)
8754       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8755       hardcode_libdir_flag_spec='-R$libdir'
8756       hardcode_direct=yes
8757       hardcode_shlibpath_var=no
8758       ;;
8759
8760     hpux9*)
8761       if test "$GCC" = yes; then
8762         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8763       else
8764         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'
8765       fi
8766       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8767       hardcode_libdir_separator=:
8768       hardcode_direct=yes
8769
8770       # hardcode_minus_L: Not really in the search PATH,
8771       # but as the default location of the library.
8772       hardcode_minus_L=yes
8773       export_dynamic_flag_spec='${wl}-E'
8774       ;;
8775
8776     hpux10*)
8777       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8778         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8779       else
8780         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8781       fi
8782       if test "$with_gnu_ld" = no; then
8783         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8784         hardcode_libdir_flag_spec_ld='+b $libdir'
8785         hardcode_libdir_separator=:
8786         hardcode_direct=yes
8787         hardcode_direct_absolute=yes
8788         export_dynamic_flag_spec='${wl}-E'
8789         # hardcode_minus_L: Not really in the search PATH,
8790         # but as the default location of the library.
8791         hardcode_minus_L=yes
8792       fi
8793       ;;
8794
8795     hpux11*)
8796       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8797         case $host_cpu in
8798         hppa*64*)
8799           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8800           ;;
8801         ia64*)
8802           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8803           ;;
8804         *)
8805           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8806           ;;
8807         esac
8808       else
8809         case $host_cpu in
8810         hppa*64*)
8811           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8812           ;;
8813         ia64*)
8814           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8815           ;;
8816         *)
8817           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8818           ;;
8819         esac
8820       fi
8821       if test "$with_gnu_ld" = no; then
8822         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8823         hardcode_libdir_separator=:
8824
8825         case $host_cpu in
8826         hppa*64*|ia64*)
8827           hardcode_direct=no
8828           hardcode_shlibpath_var=no
8829           ;;
8830         *)
8831           hardcode_direct=yes
8832           hardcode_direct_absolute=yes
8833           export_dynamic_flag_spec='${wl}-E'
8834
8835           # hardcode_minus_L: Not really in the search PATH,
8836           # but as the default location of the library.
8837           hardcode_minus_L=yes
8838           ;;
8839         esac
8840       fi
8841       ;;
8842
8843     irix5* | irix6* | nonstopux*)
8844       if test "$GCC" = yes; then
8845         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8846         # Try to use the -exported_symbol ld option, if it does not
8847         # work, assume that -exports_file does not work either and
8848         # implicitly export all symbols.
8849         save_LDFLAGS="$LDFLAGS"
8850         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8851         cat >conftest.$ac_ext <<_ACEOF
8852 int foo(void) {}
8853 _ACEOF
8854 rm -f conftest.$ac_objext conftest$ac_exeext
8855 if { (ac_try="$ac_link"
8856 case "(($ac_try" in
8857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858   *) ac_try_echo=$ac_try;;
8859 esac
8860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8861 $as_echo "$ac_try_echo") >&5
8862   (eval "$ac_link") 2>conftest.er1
8863   ac_status=$?
8864   grep -v '^ *+' conftest.er1 >conftest.err
8865   rm -f conftest.er1
8866   cat conftest.err >&5
8867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); } && {
8869          test -z "$ac_c_werror_flag" ||
8870          test ! -s conftest.err
8871        } && test -s conftest$ac_exeext && {
8872          test "$cross_compiling" = yes ||
8873          $as_test_x conftest$ac_exeext
8874        }; then
8875   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8876
8877 else
8878   $as_echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881
8882 fi
8883
8884 rm -rf conftest.dSYM
8885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8886       conftest$ac_exeext conftest.$ac_ext
8887         LDFLAGS="$save_LDFLAGS"
8888       else
8889         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8890         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8891       fi
8892       archive_cmds_need_lc='no'
8893       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894       hardcode_libdir_separator=:
8895       inherit_rpath=yes
8896       link_all_deplibs=yes
8897       ;;
8898
8899     netbsd* | netbsdelf*-gnu)
8900       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8901         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8902       else
8903         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8904       fi
8905       hardcode_libdir_flag_spec='-R$libdir'
8906       hardcode_direct=yes
8907       hardcode_shlibpath_var=no
8908       ;;
8909
8910     newsos6)
8911       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8912       hardcode_direct=yes
8913       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914       hardcode_libdir_separator=:
8915       hardcode_shlibpath_var=no
8916       ;;
8917
8918     *nto* | *qnx*)
8919       ;;
8920
8921     openbsd*)
8922       if test -f /usr/libexec/ld.so; then
8923         hardcode_direct=yes
8924         hardcode_shlibpath_var=no
8925         hardcode_direct_absolute=yes
8926         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8927           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8928           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8929           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8930           export_dynamic_flag_spec='${wl}-E'
8931         else
8932           case $host_os in
8933            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8934              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8935              hardcode_libdir_flag_spec='-R$libdir'
8936              ;;
8937            *)
8938              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8939              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8940              ;;
8941           esac
8942         fi
8943       else
8944         ld_shlibs=no
8945       fi
8946       ;;
8947
8948     os2*)
8949       hardcode_libdir_flag_spec='-L$libdir'
8950       hardcode_minus_L=yes
8951       allow_undefined_flag=unsupported
8952       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'
8953       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8954       ;;
8955
8956     osf3*)
8957       if test "$GCC" = yes; then
8958         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8959         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8960       else
8961         allow_undefined_flag=' -expect_unresolved \*'
8962         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8963       fi
8964       archive_cmds_need_lc='no'
8965       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8966       hardcode_libdir_separator=:
8967       ;;
8968
8969     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8970       if test "$GCC" = yes; then
8971         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8972         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8973         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8974       else
8975         allow_undefined_flag=' -expect_unresolved \*'
8976         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8977         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~
8978         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8979
8980         # Both c and cxx compiler support -rpath directly
8981         hardcode_libdir_flag_spec='-rpath $libdir'
8982       fi
8983       archive_cmds_need_lc='no'
8984       hardcode_libdir_separator=:
8985       ;;
8986
8987     solaris*)
8988       no_undefined_flag=' -z defs'
8989       if test "$GCC" = yes; then
8990         wlarc='${wl}'
8991         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8993           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8994       else
8995         case `$CC -V 2>&1` in
8996         *"Compilers 5.0"*)
8997           wlarc=''
8998           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8999           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9000           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9001           ;;
9002         *)
9003           wlarc='${wl}'
9004           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9005           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9006           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9007           ;;
9008         esac
9009       fi
9010       hardcode_libdir_flag_spec='-R$libdir'
9011       hardcode_shlibpath_var=no
9012       case $host_os in
9013       solaris2.[0-5] | solaris2.[0-5].*) ;;
9014       *)
9015         # The compiler driver will combine and reorder linker options,
9016         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9017         # but is careful enough not to reorder.
9018         # Supported since Solaris 2.6 (maybe 2.5.1?)
9019         if test "$GCC" = yes; then
9020           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9021         else
9022           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9023         fi
9024         ;;
9025       esac
9026       link_all_deplibs=yes
9027       ;;
9028
9029     sunos4*)
9030       if test "x$host_vendor" = xsequent; then
9031         # Use $CC to link under sequent, because it throws in some extra .o
9032         # files that make .init and .fini sections work.
9033         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9034       else
9035         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9036       fi
9037       hardcode_libdir_flag_spec='-L$libdir'
9038       hardcode_direct=yes
9039       hardcode_minus_L=yes
9040       hardcode_shlibpath_var=no
9041       ;;
9042
9043     sysv4)
9044       case $host_vendor in
9045         sni)
9046           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9047           hardcode_direct=yes # is this really true???
9048         ;;
9049         siemens)
9050           ## LD is ld it makes a PLAMLIB
9051           ## CC just makes a GrossModule.
9052           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9053           reload_cmds='$CC -r -o $output$reload_objs'
9054           hardcode_direct=no
9055         ;;
9056         motorola)
9057           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9058           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9059         ;;
9060       esac
9061       runpath_var='LD_RUN_PATH'
9062       hardcode_shlibpath_var=no
9063       ;;
9064
9065     sysv4.3*)
9066       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9067       hardcode_shlibpath_var=no
9068       export_dynamic_flag_spec='-Bexport'
9069       ;;
9070
9071     sysv4*MP*)
9072       if test -d /usr/nec; then
9073         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9074         hardcode_shlibpath_var=no
9075         runpath_var=LD_RUN_PATH
9076         hardcode_runpath_var=yes
9077         ld_shlibs=yes
9078       fi
9079       ;;
9080
9081     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9082       no_undefined_flag='${wl}-z,text'
9083       archive_cmds_need_lc=no
9084       hardcode_shlibpath_var=no
9085       runpath_var='LD_RUN_PATH'
9086
9087       if test "$GCC" = yes; then
9088         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9089         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9090       else
9091         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9092         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9093       fi
9094       ;;
9095
9096     sysv5* | sco3.2v5* | sco5v6*)
9097       # Note: We can NOT use -z defs as we might desire, because we do not
9098       # link with -lc, and that would cause any symbols used from libc to
9099       # always be unresolved, which means just about no library would
9100       # ever link correctly.  If we're not using GNU ld we use -z text
9101       # though, which does catch some bad symbols but isn't as heavy-handed
9102       # as -z defs.
9103       no_undefined_flag='${wl}-z,text'
9104       allow_undefined_flag='${wl}-z,nodefs'
9105       archive_cmds_need_lc=no
9106       hardcode_shlibpath_var=no
9107       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9108       hardcode_libdir_separator=':'
9109       link_all_deplibs=yes
9110       export_dynamic_flag_spec='${wl}-Bexport'
9111       runpath_var='LD_RUN_PATH'
9112
9113       if test "$GCC" = yes; then
9114         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9115         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116       else
9117         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9118         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9119       fi
9120       ;;
9121
9122     uts4*)
9123       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124       hardcode_libdir_flag_spec='-L$libdir'
9125       hardcode_shlibpath_var=no
9126       ;;
9127
9128     *)
9129       ld_shlibs=no
9130       ;;
9131     esac
9132
9133     if test x$host_vendor = xsni; then
9134       case $host in
9135       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9136         export_dynamic_flag_spec='${wl}-Blargedynsym'
9137         ;;
9138       esac
9139     fi
9140   fi
9141
9142 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9143 $as_echo "$ld_shlibs" >&6; }
9144 test "$ld_shlibs" = no && can_build_shared=no
9145
9146 with_gnu_ld=$with_gnu_ld
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162 #
9163 # Do we need to explicitly link libc?
9164 #
9165 case "x$archive_cmds_need_lc" in
9166 x|xyes)
9167   # Assume -lc should be added
9168   archive_cmds_need_lc=yes
9169
9170   if test "$enable_shared" = yes && test "$GCC" = yes; then
9171     case $archive_cmds in
9172     *'~'*)
9173       # FIXME: we may have to deal with multi-command sequences.
9174       ;;
9175     '$CC '*)
9176       # Test whether the compiler implicitly links with -lc since on some
9177       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9178       # to ld, don't add -lc before -lgcc.
9179       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9180 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9181       $RM conftest*
9182       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9183
9184       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9185   (eval $ac_compile) 2>&5
9186   ac_status=$?
9187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); } 2>conftest.err; then
9189         soname=conftest
9190         lib=conftest
9191         libobjs=conftest.$ac_objext
9192         deplibs=
9193         wl=$lt_prog_compiler_wl
9194         pic_flag=$lt_prog_compiler_pic
9195         compiler_flags=-v
9196         linker_flags=-v
9197         verstring=
9198         output_objdir=.
9199         libname=conftest
9200         lt_save_allow_undefined_flag=$allow_undefined_flag
9201         allow_undefined_flag=
9202         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9203   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9204   ac_status=$?
9205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206   (exit $ac_status); }
9207         then
9208           archive_cmds_need_lc=no
9209         else
9210           archive_cmds_need_lc=yes
9211         fi
9212         allow_undefined_flag=$lt_save_allow_undefined_flag
9213       else
9214         cat conftest.err 1>&5
9215       fi
9216       $RM conftest*
9217       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9218 $as_echo "$archive_cmds_need_lc" >&6; }
9219       ;;
9220     esac
9221   fi
9222   ;;
9223 esac
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9382 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9383
9384 if test "$GCC" = yes; then
9385   case $host_os in
9386     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9387     *) lt_awk_arg="/^libraries:/" ;;
9388   esac
9389   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9390   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9391     # if the path contains ";" then we assume it to be the separator
9392     # otherwise default to the standard path separator (i.e. ":") - it is
9393     # assumed that no part of a normal pathname contains ";" but that should
9394     # okay in the real world where ";" in dirpaths is itself problematic.
9395     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9396   else
9397     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9398   fi
9399   # Ok, now we have the path, separated by spaces, we can step through it
9400   # and add multilib dir if necessary.
9401   lt_tmp_lt_search_path_spec=
9402   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9403   for lt_sys_path in $lt_search_path_spec; do
9404     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9405       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9406     else
9407       test -d "$lt_sys_path" && \
9408         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9409     fi
9410   done
9411   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9412 BEGIN {RS=" "; FS="/|\n";} {
9413   lt_foo="";
9414   lt_count=0;
9415   for (lt_i = NF; lt_i > 0; lt_i--) {
9416     if ($lt_i != "" && $lt_i != ".") {
9417       if ($lt_i == "..") {
9418         lt_count++;
9419       } else {
9420         if (lt_count == 0) {
9421           lt_foo="/" $lt_i lt_foo;
9422         } else {
9423           lt_count--;
9424         }
9425       }
9426     }
9427   }
9428   if (lt_foo != "") { lt_freq[lt_foo]++; }
9429   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9430 }'`
9431   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9432 else
9433   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9434 fi
9435 library_names_spec=
9436 libname_spec='lib$name'
9437 soname_spec=
9438 shrext_cmds=".so"
9439 postinstall_cmds=
9440 postuninstall_cmds=
9441 finish_cmds=
9442 finish_eval=
9443 shlibpath_var=
9444 shlibpath_overrides_runpath=unknown
9445 version_type=none
9446 dynamic_linker="$host_os ld.so"
9447 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9448 need_lib_prefix=unknown
9449 hardcode_into_libs=no
9450
9451 # when you set need_version to no, make sure it does not cause -set_version
9452 # flags to be left without arguments
9453 need_version=unknown
9454
9455 case $host_os in
9456 aix3*)
9457   version_type=linux
9458   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9459   shlibpath_var=LIBPATH
9460
9461   # AIX 3 has no versioning support, so we append a major version to the name.
9462   soname_spec='${libname}${release}${shared_ext}$major'
9463   ;;
9464
9465 aix[4-9]*)
9466   version_type=linux
9467   need_lib_prefix=no
9468   need_version=no
9469   hardcode_into_libs=yes
9470   if test "$host_cpu" = ia64; then
9471     # AIX 5 supports IA64
9472     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9473     shlibpath_var=LD_LIBRARY_PATH
9474   else
9475     # With GCC up to 2.95.x, collect2 would create an import file
9476     # for dependence libraries.  The import file would start with
9477     # the line `#! .'.  This would cause the generated library to
9478     # depend on `.', always an invalid library.  This was fixed in
9479     # development snapshots of GCC prior to 3.0.
9480     case $host_os in
9481       aix4 | aix4.[01] | aix4.[01].*)
9482       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9483            echo ' yes '
9484            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9485         :
9486       else
9487         can_build_shared=no
9488       fi
9489       ;;
9490     esac
9491     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9492     # soname into executable. Probably we can add versioning support to
9493     # collect2, so additional links can be useful in future.
9494     if test "$aix_use_runtimelinking" = yes; then
9495       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9496       # instead of lib<name>.a to let people know that these are not
9497       # typical AIX shared libraries.
9498       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499     else
9500       # We preserve .a as extension for shared libraries through AIX4.2
9501       # and later when we are not doing run time linking.
9502       library_names_spec='${libname}${release}.a $libname.a'
9503       soname_spec='${libname}${release}${shared_ext}$major'
9504     fi
9505     shlibpath_var=LIBPATH
9506   fi
9507   ;;
9508
9509 amigaos*)
9510   case $host_cpu in
9511   powerpc)
9512     # Since July 2007 AmigaOS4 officially supports .so libraries.
9513     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9514     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9515     ;;
9516   m68k)
9517     library_names_spec='$libname.ixlibrary $libname.a'
9518     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9519     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9520     ;;
9521   esac
9522   ;;
9523
9524 beos*)
9525   library_names_spec='${libname}${shared_ext}'
9526   dynamic_linker="$host_os ld.so"
9527   shlibpath_var=LIBRARY_PATH
9528   ;;
9529
9530 bsdi[45]*)
9531   version_type=linux
9532   need_version=no
9533   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9534   soname_spec='${libname}${release}${shared_ext}$major'
9535   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9536   shlibpath_var=LD_LIBRARY_PATH
9537   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9538   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9539   # the default ld.so.conf also contains /usr/contrib/lib and
9540   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9541   # libtool to hard-code these into programs
9542   ;;
9543
9544 cygwin* | mingw* | pw32* | cegcc*)
9545   version_type=windows
9546   shrext_cmds=".dll"
9547   need_version=no
9548   need_lib_prefix=no
9549
9550   case $GCC,$host_os in
9551   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9552     library_names_spec='$libname.dll.a'
9553     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9554     postinstall_cmds='base_file=`basename \${file}`~
9555       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9556       dldir=$destdir/`dirname \$dlpath`~
9557       test -d \$dldir || mkdir -p \$dldir~
9558       $install_prog $dir/$dlname \$dldir/$dlname~
9559       chmod a+x \$dldir/$dlname~
9560       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9561         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9562       fi'
9563     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9564       dlpath=$dir/\$dldll~
9565        $RM \$dlpath'
9566     shlibpath_overrides_runpath=yes
9567
9568     case $host_os in
9569     cygwin*)
9570       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9571       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9572       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9573       ;;
9574     mingw* | cegcc*)
9575       # MinGW DLLs use traditional 'lib' prefix
9576       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9577       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9578       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9579         # It is most probably a Windows format PATH printed by
9580         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9581         # path with ; separators, and with drive letters. We can handle the
9582         # drive letters (cygwin fileutils understands them), so leave them,
9583         # especially as we might pass files found there to a mingw objdump,
9584         # which wouldn't understand a cygwinified path. Ahh.
9585         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9586       else
9587         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9588       fi
9589       ;;
9590     pw32*)
9591       # pw32 DLLs use 'pw' prefix rather than 'lib'
9592       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9593       ;;
9594     esac
9595     ;;
9596
9597   *)
9598     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9599     ;;
9600   esac
9601   dynamic_linker='Win32 ld.exe'
9602   # FIXME: first we should search . and the directory the executable is in
9603   shlibpath_var=PATH
9604   ;;
9605
9606 darwin* | rhapsody*)
9607   dynamic_linker="$host_os dyld"
9608   version_type=darwin
9609   need_lib_prefix=no
9610   need_version=no
9611   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9612   soname_spec='${libname}${release}${major}$shared_ext'
9613   shlibpath_overrides_runpath=yes
9614   shlibpath_var=DYLD_LIBRARY_PATH
9615   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9616
9617   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9618   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9619   ;;
9620
9621 dgux*)
9622   version_type=linux
9623   need_lib_prefix=no
9624   need_version=no
9625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9626   soname_spec='${libname}${release}${shared_ext}$major'
9627   shlibpath_var=LD_LIBRARY_PATH
9628   ;;
9629
9630 freebsd1*)
9631   dynamic_linker=no
9632   ;;
9633
9634 freebsd* | dragonfly*)
9635   # DragonFly does not have aout.  When/if they implement a new
9636   # versioning mechanism, adjust this.
9637   if test -x /usr/bin/objformat; then
9638     objformat=`/usr/bin/objformat`
9639   else
9640     case $host_os in
9641     freebsd[123]*) objformat=aout ;;
9642     *) objformat=elf ;;
9643     esac
9644   fi
9645   version_type=freebsd-$objformat
9646   case $version_type in
9647     freebsd-elf*)
9648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9649       need_version=no
9650       need_lib_prefix=no
9651       ;;
9652     freebsd-*)
9653       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9654       need_version=yes
9655       ;;
9656   esac
9657   shlibpath_var=LD_LIBRARY_PATH
9658   case $host_os in
9659   freebsd2*)
9660     shlibpath_overrides_runpath=yes
9661     ;;
9662   freebsd3.[01]* | freebsdelf3.[01]*)
9663     shlibpath_overrides_runpath=yes
9664     hardcode_into_libs=yes
9665     ;;
9666   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9667   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9668     shlibpath_overrides_runpath=no
9669     hardcode_into_libs=yes
9670     ;;
9671   *) # from 4.6 on, and DragonFly
9672     shlibpath_overrides_runpath=yes
9673     hardcode_into_libs=yes
9674     ;;
9675   esac
9676   ;;
9677
9678 gnu*)
9679   version_type=linux
9680   need_lib_prefix=no
9681   need_version=no
9682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9683   soname_spec='${libname}${release}${shared_ext}$major'
9684   shlibpath_var=LD_LIBRARY_PATH
9685   hardcode_into_libs=yes
9686   ;;
9687
9688 hpux9* | hpux10* | hpux11*)
9689   # Give a soname corresponding to the major version so that dld.sl refuses to
9690   # link against other versions.
9691   version_type=sunos
9692   need_lib_prefix=no
9693   need_version=no
9694   case $host_cpu in
9695   ia64*)
9696     shrext_cmds='.so'
9697     hardcode_into_libs=yes
9698     dynamic_linker="$host_os dld.so"
9699     shlibpath_var=LD_LIBRARY_PATH
9700     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9701     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702     soname_spec='${libname}${release}${shared_ext}$major'
9703     if test "X$HPUX_IA64_MODE" = X32; then
9704       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9705     else
9706       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9707     fi
9708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9709     ;;
9710   hppa*64*)
9711     shrext_cmds='.sl'
9712     hardcode_into_libs=yes
9713     dynamic_linker="$host_os dld.sl"
9714     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9715     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9717     soname_spec='${libname}${release}${shared_ext}$major'
9718     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9719     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9720     ;;
9721   *)
9722     shrext_cmds='.sl'
9723     dynamic_linker="$host_os dld.sl"
9724     shlibpath_var=SHLIB_PATH
9725     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9726     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727     soname_spec='${libname}${release}${shared_ext}$major'
9728     ;;
9729   esac
9730   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9731   postinstall_cmds='chmod 555 $lib'
9732   ;;
9733
9734 interix[3-9]*)
9735   version_type=linux
9736   need_lib_prefix=no
9737   need_version=no
9738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9739   soname_spec='${libname}${release}${shared_ext}$major'
9740   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9741   shlibpath_var=LD_LIBRARY_PATH
9742   shlibpath_overrides_runpath=no
9743   hardcode_into_libs=yes
9744   ;;
9745
9746 irix5* | irix6* | nonstopux*)
9747   case $host_os in
9748     nonstopux*) version_type=nonstopux ;;
9749     *)
9750         if test "$lt_cv_prog_gnu_ld" = yes; then
9751                 version_type=linux
9752         else
9753                 version_type=irix
9754         fi ;;
9755   esac
9756   need_lib_prefix=no
9757   need_version=no
9758   soname_spec='${libname}${release}${shared_ext}$major'
9759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9760   case $host_os in
9761   irix5* | nonstopux*)
9762     libsuff= shlibsuff=
9763     ;;
9764   *)
9765     case $LD in # libtool.m4 will add one of these switches to LD
9766     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9767       libsuff= shlibsuff= libmagic=32-bit;;
9768     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9769       libsuff=32 shlibsuff=N32 libmagic=N32;;
9770     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9771       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9772     *) libsuff= shlibsuff= libmagic=never-match;;
9773     esac
9774     ;;
9775   esac
9776   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9777   shlibpath_overrides_runpath=no
9778   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9779   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9780   hardcode_into_libs=yes
9781   ;;
9782
9783 # No shared lib support for Linux oldld, aout, or coff.
9784 linux*oldld* | linux*aout* | linux*coff*)
9785   dynamic_linker=no
9786   ;;
9787
9788 # This must be Linux ELF.
9789 linux* | k*bsd*-gnu)
9790   version_type=linux
9791   need_lib_prefix=no
9792   need_version=no
9793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794   soname_spec='${libname}${release}${shared_ext}$major'
9795   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9796   shlibpath_var=LD_LIBRARY_PATH
9797   shlibpath_overrides_runpath=no
9798   # Some binutils ld are patched to set DT_RUNPATH
9799   save_LDFLAGS=$LDFLAGS
9800   save_libdir=$libdir
9801   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9802        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9803   cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809
9810 int
9811 main ()
9812 {
9813
9814   ;
9815   return 0;
9816 }
9817 _ACEOF
9818 rm -f conftest.$ac_objext conftest$ac_exeext
9819 if { (ac_try="$ac_link"
9820 case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9825 $as_echo "$ac_try_echo") >&5
9826   (eval "$ac_link") 2>conftest.er1
9827   ac_status=$?
9828   grep -v '^ *+' conftest.er1 >conftest.err
9829   rm -f conftest.er1
9830   cat conftest.err >&5
9831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } && {
9833          test -z "$ac_c_werror_flag" ||
9834          test ! -s conftest.err
9835        } && test -s conftest$ac_exeext && {
9836          test "$cross_compiling" = yes ||
9837          $as_test_x conftest$ac_exeext
9838        }; then
9839   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9840   shlibpath_overrides_runpath=yes
9841 fi
9842
9843 else
9844   $as_echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847
9848 fi
9849
9850 rm -rf conftest.dSYM
9851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9852       conftest$ac_exeext conftest.$ac_ext
9853   LDFLAGS=$save_LDFLAGS
9854   libdir=$save_libdir
9855
9856   # This implies no fast_install, which is unacceptable.
9857   # Some rework will be needed to allow for fast_install
9858   # before this can be enabled.
9859   hardcode_into_libs=yes
9860
9861   # Append ld.so.conf contents to the search path
9862   if test -f /etc/ld.so.conf; then
9863     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9864     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9865   fi
9866
9867   # We used to test for /lib/ld.so.1 and disable shared libraries on
9868   # powerpc, because MkLinux only supported shared libraries with the
9869   # GNU dynamic linker.  Since this was broken with cross compilers,
9870   # most powerpc-linux boxes support dynamic linking these days and
9871   # people can always --disable-shared, the test was removed, and we
9872   # assume the GNU/Linux dynamic linker is in use.
9873   dynamic_linker='GNU/Linux ld.so'
9874   ;;
9875
9876 netbsdelf*-gnu)
9877   version_type=linux
9878   need_lib_prefix=no
9879   need_version=no
9880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9881   soname_spec='${libname}${release}${shared_ext}$major'
9882   shlibpath_var=LD_LIBRARY_PATH
9883   shlibpath_overrides_runpath=no
9884   hardcode_into_libs=yes
9885   dynamic_linker='NetBSD ld.elf_so'
9886   ;;
9887
9888 netbsd*)
9889   version_type=sunos
9890   need_lib_prefix=no
9891   need_version=no
9892   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9894     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9895     dynamic_linker='NetBSD (a.out) ld.so'
9896   else
9897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9898     soname_spec='${libname}${release}${shared_ext}$major'
9899     dynamic_linker='NetBSD ld.elf_so'
9900   fi
9901   shlibpath_var=LD_LIBRARY_PATH
9902   shlibpath_overrides_runpath=yes
9903   hardcode_into_libs=yes
9904   ;;
9905
9906 newsos6)
9907   version_type=linux
9908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909   shlibpath_var=LD_LIBRARY_PATH
9910   shlibpath_overrides_runpath=yes
9911   ;;
9912
9913 *nto* | *qnx*)
9914   version_type=qnx
9915   need_lib_prefix=no
9916   need_version=no
9917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9918   soname_spec='${libname}${release}${shared_ext}$major'
9919   shlibpath_var=LD_LIBRARY_PATH
9920   shlibpath_overrides_runpath=no
9921   hardcode_into_libs=yes
9922   dynamic_linker='ldqnx.so'
9923   ;;
9924
9925 openbsd*)
9926   version_type=sunos
9927   sys_lib_dlsearch_path_spec="/usr/lib"
9928   need_lib_prefix=no
9929   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9930   case $host_os in
9931     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9932     *)                          need_version=no  ;;
9933   esac
9934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9935   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9936   shlibpath_var=LD_LIBRARY_PATH
9937   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9938     case $host_os in
9939       openbsd2.[89] | openbsd2.[89].*)
9940         shlibpath_overrides_runpath=no
9941         ;;
9942       *)
9943         shlibpath_overrides_runpath=yes
9944         ;;
9945       esac
9946   else
9947     shlibpath_overrides_runpath=yes
9948   fi
9949   ;;
9950
9951 os2*)
9952   libname_spec='$name'
9953   shrext_cmds=".dll"
9954   need_lib_prefix=no
9955   library_names_spec='$libname${shared_ext} $libname.a'
9956   dynamic_linker='OS/2 ld.exe'
9957   shlibpath_var=LIBPATH
9958   ;;
9959
9960 osf3* | osf4* | osf5*)
9961   version_type=osf
9962   need_lib_prefix=no
9963   need_version=no
9964   soname_spec='${libname}${release}${shared_ext}$major'
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966   shlibpath_var=LD_LIBRARY_PATH
9967   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9968   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9969   ;;
9970
9971 rdos*)
9972   dynamic_linker=no
9973   ;;
9974
9975 solaris*)
9976   version_type=linux
9977   need_lib_prefix=no
9978   need_version=no
9979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980   soname_spec='${libname}${release}${shared_ext}$major'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   shlibpath_overrides_runpath=yes
9983   hardcode_into_libs=yes
9984   # ldd complains unless libraries are executable
9985   postinstall_cmds='chmod +x $lib'
9986   ;;
9987
9988 sunos4*)
9989   version_type=sunos
9990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9991   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9992   shlibpath_var=LD_LIBRARY_PATH
9993   shlibpath_overrides_runpath=yes
9994   if test "$with_gnu_ld" = yes; then
9995     need_lib_prefix=no
9996   fi
9997   need_version=yes
9998   ;;
9999
10000 sysv4 | sysv4.3*)
10001   version_type=linux
10002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003   soname_spec='${libname}${release}${shared_ext}$major'
10004   shlibpath_var=LD_LIBRARY_PATH
10005   case $host_vendor in
10006     sni)
10007       shlibpath_overrides_runpath=no
10008       need_lib_prefix=no
10009       runpath_var=LD_RUN_PATH
10010       ;;
10011     siemens)
10012       need_lib_prefix=no
10013       ;;
10014     motorola)
10015       need_lib_prefix=no
10016       need_version=no
10017       shlibpath_overrides_runpath=no
10018       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10019       ;;
10020   esac
10021   ;;
10022
10023 sysv4*MP*)
10024   if test -d /usr/nec ;then
10025     version_type=linux
10026     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10027     soname_spec='$libname${shared_ext}.$major'
10028     shlibpath_var=LD_LIBRARY_PATH
10029   fi
10030   ;;
10031
10032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10033   version_type=freebsd-elf
10034   need_lib_prefix=no
10035   need_version=no
10036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10037   soname_spec='${libname}${release}${shared_ext}$major'
10038   shlibpath_var=LD_LIBRARY_PATH
10039   shlibpath_overrides_runpath=yes
10040   hardcode_into_libs=yes
10041   if test "$with_gnu_ld" = yes; then
10042     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10043   else
10044     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10045     case $host_os in
10046       sco3.2v5*)
10047         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10048         ;;
10049     esac
10050   fi
10051   sys_lib_dlsearch_path_spec='/usr/lib'
10052   ;;
10053
10054 tpf*)
10055   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10056   version_type=linux
10057   need_lib_prefix=no
10058   need_version=no
10059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060   shlibpath_var=LD_LIBRARY_PATH
10061   shlibpath_overrides_runpath=no
10062   hardcode_into_libs=yes
10063   ;;
10064
10065 uts4*)
10066   version_type=linux
10067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068   soname_spec='${libname}${release}${shared_ext}$major'
10069   shlibpath_var=LD_LIBRARY_PATH
10070   ;;
10071
10072 *)
10073   dynamic_linker=no
10074   ;;
10075 esac
10076 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10077 $as_echo "$dynamic_linker" >&6; }
10078 test "$dynamic_linker" = no && can_build_shared=no
10079
10080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10081 if test "$GCC" = yes; then
10082   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10083 fi
10084
10085 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10086   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10087 fi
10088 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10089   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10179 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10180 hardcode_action=
10181 if test -n "$hardcode_libdir_flag_spec" ||
10182    test -n "$runpath_var" ||
10183    test "X$hardcode_automatic" = "Xyes" ; then
10184
10185   # We can hardcode non-existent directories.
10186   if test "$hardcode_direct" != no &&
10187      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10188      # have to relink, otherwise we might link with an installed library
10189      # when we should be linking with a yet-to-be-installed one
10190      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10191      test "$hardcode_minus_L" != no; then
10192     # Linking always hardcodes the temporary library directory.
10193     hardcode_action=relink
10194   else
10195     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10196     hardcode_action=immediate
10197   fi
10198 else
10199   # We cannot hardcode anything, or else we can only hardcode existing
10200   # directories.
10201   hardcode_action=unsupported
10202 fi
10203 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10204 $as_echo "$hardcode_action" >&6; }
10205
10206 if test "$hardcode_action" = relink ||
10207    test "$inherit_rpath" = yes; then
10208   # Fast installation is not supported
10209   enable_fast_install=no
10210 elif test "$shlibpath_overrides_runpath" = yes ||
10211      test "$enable_shared" = no; then
10212   # Fast installation is not necessary
10213   enable_fast_install=needless
10214 fi
10215
10216
10217
10218
10219
10220
10221   if test "x$enable_dlopen" != xyes; then
10222   enable_dlopen=unknown
10223   enable_dlopen_self=unknown
10224   enable_dlopen_self_static=unknown
10225 else
10226   lt_cv_dlopen=no
10227   lt_cv_dlopen_libs=
10228
10229   case $host_os in
10230   beos*)
10231     lt_cv_dlopen="load_add_on"
10232     lt_cv_dlopen_libs=
10233     lt_cv_dlopen_self=yes
10234     ;;
10235
10236   mingw* | pw32* | cegcc*)
10237     lt_cv_dlopen="LoadLibrary"
10238     lt_cv_dlopen_libs=
10239     ;;
10240
10241   cygwin*)
10242     lt_cv_dlopen="dlopen"
10243     lt_cv_dlopen_libs=
10244     ;;
10245
10246   darwin*)
10247   # if libdl is installed we need to link against it
10248     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10249 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10251   $as_echo_n "(cached) " >&6
10252 else
10253   ac_check_lib_save_LIBS=$LIBS
10254 LIBS="-ldl  $LIBS"
10255 cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h.  */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h.  */
10261
10262 /* Override any GCC internal prototype to avoid an error.
10263    Use char because int might match the return type of a GCC
10264    builtin and then its argument prototype would still apply.  */
10265 #ifdef __cplusplus
10266 extern "C"
10267 #endif
10268 char dlopen ();
10269 int
10270 main ()
10271 {
10272 return dlopen ();
10273   ;
10274   return 0;
10275 }
10276 _ACEOF
10277 rm -f conftest.$ac_objext conftest$ac_exeext
10278 if { (ac_try="$ac_link"
10279 case "(($ac_try" in
10280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10281   *) ac_try_echo=$ac_try;;
10282 esac
10283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10284 $as_echo "$ac_try_echo") >&5
10285   (eval "$ac_link") 2>conftest.er1
10286   ac_status=$?
10287   grep -v '^ *+' conftest.er1 >conftest.err
10288   rm -f conftest.er1
10289   cat conftest.err >&5
10290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } && {
10292          test -z "$ac_c_werror_flag" ||
10293          test ! -s conftest.err
10294        } && test -s conftest$ac_exeext && {
10295          test "$cross_compiling" = yes ||
10296          $as_test_x conftest$ac_exeext
10297        }; then
10298   ac_cv_lib_dl_dlopen=yes
10299 else
10300   $as_echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303         ac_cv_lib_dl_dlopen=no
10304 fi
10305
10306 rm -rf conftest.dSYM
10307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10308       conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10310 fi
10311 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10313 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10314   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10315 else
10316
10317     lt_cv_dlopen="dyld"
10318     lt_cv_dlopen_libs=
10319     lt_cv_dlopen_self=yes
10320
10321 fi
10322
10323     ;;
10324
10325   *)
10326     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10327 $as_echo_n "checking for shl_load... " >&6; }
10328 if test "${ac_cv_func_shl_load+set}" = set; then
10329   $as_echo_n "(cached) " >&6
10330 else
10331   cat >conftest.$ac_ext <<_ACEOF
10332 /* confdefs.h.  */
10333 _ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h.  */
10337 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10339 #define shl_load innocuous_shl_load
10340
10341 /* System header to define __stub macros and hopefully few prototypes,
10342     which can conflict with char shl_load (); below.
10343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10344     <limits.h> exists even on freestanding compilers.  */
10345
10346 #ifdef __STDC__
10347 # include <limits.h>
10348 #else
10349 # include <assert.h>
10350 #endif
10351
10352 #undef shl_load
10353
10354 /* Override any GCC internal prototype to avoid an error.
10355    Use char because int might match the return type of a GCC
10356    builtin and then its argument prototype would still apply.  */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 char shl_load ();
10361 /* The GNU C library defines this for functions which it implements
10362     to always fail with ENOSYS.  Some functions are actually named
10363     something starting with __ and the normal name is an alias.  */
10364 #if defined __stub_shl_load || defined __stub___shl_load
10365 choke me
10366 #endif
10367
10368 int
10369 main ()
10370 {
10371 return shl_load ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 rm -f conftest.$ac_objext conftest$ac_exeext
10377 if { (ac_try="$ac_link"
10378 case "(($ac_try" in
10379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380   *) ac_try_echo=$ac_try;;
10381 esac
10382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10383 $as_echo "$ac_try_echo") >&5
10384   (eval "$ac_link") 2>conftest.er1
10385   ac_status=$?
10386   grep -v '^ *+' conftest.er1 >conftest.err
10387   rm -f conftest.er1
10388   cat conftest.err >&5
10389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); } && {
10391          test -z "$ac_c_werror_flag" ||
10392          test ! -s conftest.err
10393        } && test -s conftest$ac_exeext && {
10394          test "$cross_compiling" = yes ||
10395          $as_test_x conftest$ac_exeext
10396        }; then
10397   ac_cv_func_shl_load=yes
10398 else
10399   $as_echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402         ac_cv_func_shl_load=no
10403 fi
10404
10405 rm -rf conftest.dSYM
10406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407       conftest$ac_exeext conftest.$ac_ext
10408 fi
10409 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10410 $as_echo "$ac_cv_func_shl_load" >&6; }
10411 if test "x$ac_cv_func_shl_load" = x""yes; then
10412   lt_cv_dlopen="shl_load"
10413 else
10414   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10415 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10416 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10417   $as_echo_n "(cached) " >&6
10418 else
10419   ac_check_lib_save_LIBS=$LIBS
10420 LIBS="-ldld  $LIBS"
10421 cat >conftest.$ac_ext <<_ACEOF
10422 /* confdefs.h.  */
10423 _ACEOF
10424 cat confdefs.h >>conftest.$ac_ext
10425 cat >>conftest.$ac_ext <<_ACEOF
10426 /* end confdefs.h.  */
10427
10428 /* Override any GCC internal prototype to avoid an error.
10429    Use char because int might match the return type of a GCC
10430    builtin and then its argument prototype would still apply.  */
10431 #ifdef __cplusplus
10432 extern "C"
10433 #endif
10434 char shl_load ();
10435 int
10436 main ()
10437 {
10438 return shl_load ();
10439   ;
10440   return 0;
10441 }
10442 _ACEOF
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447   *) ac_try_echo=$ac_try;;
10448 esac
10449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451   (eval "$ac_link") 2>conftest.er1
10452   ac_status=$?
10453   grep -v '^ *+' conftest.er1 >conftest.err
10454   rm -f conftest.er1
10455   cat conftest.err >&5
10456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457   (exit $ac_status); } && {
10458          test -z "$ac_c_werror_flag" ||
10459          test ! -s conftest.err
10460        } && test -s conftest$ac_exeext && {
10461          test "$cross_compiling" = yes ||
10462          $as_test_x conftest$ac_exeext
10463        }; then
10464   ac_cv_lib_dld_shl_load=yes
10465 else
10466   $as_echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10468
10469         ac_cv_lib_dld_shl_load=no
10470 fi
10471
10472 rm -rf conftest.dSYM
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474       conftest$ac_exeext conftest.$ac_ext
10475 LIBS=$ac_check_lib_save_LIBS
10476 fi
10477 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10478 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10479 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10480   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10481 else
10482   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10483 $as_echo_n "checking for dlopen... " >&6; }
10484 if test "${ac_cv_func_dlopen+set}" = set; then
10485   $as_echo_n "(cached) " >&6
10486 else
10487   cat >conftest.$ac_ext <<_ACEOF
10488 /* confdefs.h.  */
10489 _ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h.  */
10493 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10495 #define dlopen innocuous_dlopen
10496
10497 /* System header to define __stub macros and hopefully few prototypes,
10498     which can conflict with char dlopen (); below.
10499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10500     <limits.h> exists even on freestanding compilers.  */
10501
10502 #ifdef __STDC__
10503 # include <limits.h>
10504 #else
10505 # include <assert.h>
10506 #endif
10507
10508 #undef dlopen
10509
10510 /* Override any GCC internal prototype to avoid an error.
10511    Use char because int might match the return type of a GCC
10512    builtin and then its argument prototype would still apply.  */
10513 #ifdef __cplusplus
10514 extern "C"
10515 #endif
10516 char dlopen ();
10517 /* The GNU C library defines this for functions which it implements
10518     to always fail with ENOSYS.  Some functions are actually named
10519     something starting with __ and the normal name is an alias.  */
10520 #if defined __stub_dlopen || defined __stub___dlopen
10521 choke me
10522 #endif
10523
10524 int
10525 main ()
10526 {
10527 return dlopen ();
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 rm -f conftest.$ac_objext conftest$ac_exeext
10533 if { (ac_try="$ac_link"
10534 case "(($ac_try" in
10535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10536   *) ac_try_echo=$ac_try;;
10537 esac
10538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10539 $as_echo "$ac_try_echo") >&5
10540   (eval "$ac_link") 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } && {
10547          test -z "$ac_c_werror_flag" ||
10548          test ! -s conftest.err
10549        } && test -s conftest$ac_exeext && {
10550          test "$cross_compiling" = yes ||
10551          $as_test_x conftest$ac_exeext
10552        }; then
10553   ac_cv_func_dlopen=yes
10554 else
10555   $as_echo "$as_me: failed program was:" >&5
10556 sed 's/^/| /' conftest.$ac_ext >&5
10557
10558         ac_cv_func_dlopen=no
10559 fi
10560
10561 rm -rf conftest.dSYM
10562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10563       conftest$ac_exeext conftest.$ac_ext
10564 fi
10565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10566 $as_echo "$ac_cv_func_dlopen" >&6; }
10567 if test "x$ac_cv_func_dlopen" = x""yes; then
10568   lt_cv_dlopen="dlopen"
10569 else
10570   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10571 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10572 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10573   $as_echo_n "(cached) " >&6
10574 else
10575   ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-ldl  $LIBS"
10577 cat >conftest.$ac_ext <<_ACEOF
10578 /* confdefs.h.  */
10579 _ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h.  */
10583
10584 /* Override any GCC internal prototype to avoid an error.
10585    Use char because int might match the return type of a GCC
10586    builtin and then its argument prototype would still apply.  */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 char dlopen ();
10591 int
10592 main ()
10593 {
10594 return dlopen ();
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext conftest$ac_exeext
10600 if { (ac_try="$ac_link"
10601 case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10606 $as_echo "$ac_try_echo") >&5
10607   (eval "$ac_link") 2>conftest.er1
10608   ac_status=$?
10609   grep -v '^ *+' conftest.er1 >conftest.err
10610   rm -f conftest.er1
10611   cat conftest.err >&5
10612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } && {
10614          test -z "$ac_c_werror_flag" ||
10615          test ! -s conftest.err
10616        } && test -s conftest$ac_exeext && {
10617          test "$cross_compiling" = yes ||
10618          $as_test_x conftest$ac_exeext
10619        }; then
10620   ac_cv_lib_dl_dlopen=yes
10621 else
10622   $as_echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625         ac_cv_lib_dl_dlopen=no
10626 fi
10627
10628 rm -rf conftest.dSYM
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630       conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10632 fi
10633 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10634 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10635 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10636   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10637 else
10638   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10639 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10640 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10641   $as_echo_n "(cached) " >&6
10642 else
10643   ac_check_lib_save_LIBS=$LIBS
10644 LIBS="-lsvld  $LIBS"
10645 cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651
10652 /* Override any GCC internal prototype to avoid an error.
10653    Use char because int might match the return type of a GCC
10654    builtin and then its argument prototype would still apply.  */
10655 #ifdef __cplusplus
10656 extern "C"
10657 #endif
10658 char dlopen ();
10659 int
10660 main ()
10661 {
10662 return dlopen ();
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (ac_try="$ac_link"
10669 case "(($ac_try" in
10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671   *) ac_try_echo=$ac_try;;
10672 esac
10673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10674 $as_echo "$ac_try_echo") >&5
10675   (eval "$ac_link") 2>conftest.er1
10676   ac_status=$?
10677   grep -v '^ *+' conftest.er1 >conftest.err
10678   rm -f conftest.er1
10679   cat conftest.err >&5
10680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); } && {
10682          test -z "$ac_c_werror_flag" ||
10683          test ! -s conftest.err
10684        } && test -s conftest$ac_exeext && {
10685          test "$cross_compiling" = yes ||
10686          $as_test_x conftest$ac_exeext
10687        }; then
10688   ac_cv_lib_svld_dlopen=yes
10689 else
10690   $as_echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10692
10693         ac_cv_lib_svld_dlopen=no
10694 fi
10695
10696 rm -rf conftest.dSYM
10697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10698       conftest$ac_exeext conftest.$ac_ext
10699 LIBS=$ac_check_lib_save_LIBS
10700 fi
10701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10702 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10703 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10704   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10705 else
10706   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10707 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10708 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10709   $as_echo_n "(cached) " >&6
10710 else
10711   ac_check_lib_save_LIBS=$LIBS
10712 LIBS="-ldld  $LIBS"
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h.  */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h.  */
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721    Use char because int might match the return type of a GCC
10722    builtin and then its argument prototype would still apply.  */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char dld_link ();
10727 int
10728 main ()
10729 {
10730 return dld_link ();
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 rm -f conftest.$ac_objext conftest$ac_exeext
10736 if { (ac_try="$ac_link"
10737 case "(($ac_try" in
10738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739   *) ac_try_echo=$ac_try;;
10740 esac
10741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10742 $as_echo "$ac_try_echo") >&5
10743   (eval "$ac_link") 2>conftest.er1
10744   ac_status=$?
10745   grep -v '^ *+' conftest.er1 >conftest.err
10746   rm -f conftest.er1
10747   cat conftest.err >&5
10748   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); } && {
10750          test -z "$ac_c_werror_flag" ||
10751          test ! -s conftest.err
10752        } && test -s conftest$ac_exeext && {
10753          test "$cross_compiling" = yes ||
10754          $as_test_x conftest$ac_exeext
10755        }; then
10756   ac_cv_lib_dld_dld_link=yes
10757 else
10758   $as_echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761         ac_cv_lib_dld_dld_link=no
10762 fi
10763
10764 rm -rf conftest.dSYM
10765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10766       conftest$ac_exeext conftest.$ac_ext
10767 LIBS=$ac_check_lib_save_LIBS
10768 fi
10769 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10770 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10771 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10772   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10773 fi
10774
10775
10776 fi
10777
10778
10779 fi
10780
10781
10782 fi
10783
10784
10785 fi
10786
10787
10788 fi
10789
10790     ;;
10791   esac
10792
10793   if test "x$lt_cv_dlopen" != xno; then
10794     enable_dlopen=yes
10795   else
10796     enable_dlopen=no
10797   fi
10798
10799   case $lt_cv_dlopen in
10800   dlopen)
10801     save_CPPFLAGS="$CPPFLAGS"
10802     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10803
10804     save_LDFLAGS="$LDFLAGS"
10805     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10806
10807     save_LIBS="$LIBS"
10808     LIBS="$lt_cv_dlopen_libs $LIBS"
10809
10810     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10811 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10812 if test "${lt_cv_dlopen_self+set}" = set; then
10813   $as_echo_n "(cached) " >&6
10814 else
10815           if test "$cross_compiling" = yes; then :
10816   lt_cv_dlopen_self=cross
10817 else
10818   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10819   lt_status=$lt_dlunknown
10820   cat > conftest.$ac_ext <<_LT_EOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10823
10824 #if HAVE_DLFCN_H
10825 #include <dlfcn.h>
10826 #endif
10827
10828 #include <stdio.h>
10829
10830 #ifdef RTLD_GLOBAL
10831 #  define LT_DLGLOBAL           RTLD_GLOBAL
10832 #else
10833 #  ifdef DL_GLOBAL
10834 #    define LT_DLGLOBAL         DL_GLOBAL
10835 #  else
10836 #    define LT_DLGLOBAL         0
10837 #  endif
10838 #endif
10839
10840 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10841    find out it does not work in some platform. */
10842 #ifndef LT_DLLAZY_OR_NOW
10843 #  ifdef RTLD_LAZY
10844 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10845 #  else
10846 #    ifdef DL_LAZY
10847 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10848 #    else
10849 #      ifdef RTLD_NOW
10850 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10851 #      else
10852 #        ifdef DL_NOW
10853 #          define LT_DLLAZY_OR_NOW      DL_NOW
10854 #        else
10855 #          define LT_DLLAZY_OR_NOW      0
10856 #        endif
10857 #      endif
10858 #    endif
10859 #  endif
10860 #endif
10861
10862 void fnord() { int i=42;}
10863 int main ()
10864 {
10865   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10866   int status = $lt_dlunknown;
10867
10868   if (self)
10869     {
10870       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10871       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10872       /* dlclose (self); */
10873     }
10874   else
10875     puts (dlerror ());
10876
10877   return status;
10878 }
10879 _LT_EOF
10880   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881   (eval $ac_link) 2>&5
10882   ac_status=$?
10883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10885     (./conftest; exit; ) >&5 2>/dev/null
10886     lt_status=$?
10887     case x$lt_status in
10888       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10889       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10890       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10891     esac
10892   else :
10893     # compilation failed
10894     lt_cv_dlopen_self=no
10895   fi
10896 fi
10897 rm -fr conftest*
10898
10899
10900 fi
10901 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10902 $as_echo "$lt_cv_dlopen_self" >&6; }
10903
10904     if test "x$lt_cv_dlopen_self" = xyes; then
10905       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10906       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10907 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10908 if test "${lt_cv_dlopen_self_static+set}" = set; then
10909   $as_echo_n "(cached) " >&6
10910 else
10911           if test "$cross_compiling" = yes; then :
10912   lt_cv_dlopen_self_static=cross
10913 else
10914   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10915   lt_status=$lt_dlunknown
10916   cat > conftest.$ac_ext <<_LT_EOF
10917 #line 10917 "configure"
10918 #include "confdefs.h"
10919
10920 #if HAVE_DLFCN_H
10921 #include <dlfcn.h>
10922 #endif
10923
10924 #include <stdio.h>
10925
10926 #ifdef RTLD_GLOBAL
10927 #  define LT_DLGLOBAL           RTLD_GLOBAL
10928 #else
10929 #  ifdef DL_GLOBAL
10930 #    define LT_DLGLOBAL         DL_GLOBAL
10931 #  else
10932 #    define LT_DLGLOBAL         0
10933 #  endif
10934 #endif
10935
10936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10937    find out it does not work in some platform. */
10938 #ifndef LT_DLLAZY_OR_NOW
10939 #  ifdef RTLD_LAZY
10940 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10941 #  else
10942 #    ifdef DL_LAZY
10943 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10944 #    else
10945 #      ifdef RTLD_NOW
10946 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10947 #      else
10948 #        ifdef DL_NOW
10949 #          define LT_DLLAZY_OR_NOW      DL_NOW
10950 #        else
10951 #          define LT_DLLAZY_OR_NOW      0
10952 #        endif
10953 #      endif
10954 #    endif
10955 #  endif
10956 #endif
10957
10958 void fnord() { int i=42;}
10959 int main ()
10960 {
10961   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10962   int status = $lt_dlunknown;
10963
10964   if (self)
10965     {
10966       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10967       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10968       /* dlclose (self); */
10969     }
10970   else
10971     puts (dlerror ());
10972
10973   return status;
10974 }
10975 _LT_EOF
10976   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977   (eval $ac_link) 2>&5
10978   ac_status=$?
10979   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10981     (./conftest; exit; ) >&5 2>/dev/null
10982     lt_status=$?
10983     case x$lt_status in
10984       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10985       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10986       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10987     esac
10988   else :
10989     # compilation failed
10990     lt_cv_dlopen_self_static=no
10991   fi
10992 fi
10993 rm -fr conftest*
10994
10995
10996 fi
10997 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10998 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10999     fi
11000
11001     CPPFLAGS="$save_CPPFLAGS"
11002     LDFLAGS="$save_LDFLAGS"
11003     LIBS="$save_LIBS"
11004     ;;
11005   esac
11006
11007   case $lt_cv_dlopen_self in
11008   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11009   *) enable_dlopen_self=unknown ;;
11010   esac
11011
11012   case $lt_cv_dlopen_self_static in
11013   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11014   *) enable_dlopen_self_static=unknown ;;
11015   esac
11016 fi
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034 striplib=
11035 old_striplib=
11036 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11037 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11038 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11039   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11040   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11041   { $as_echo "$as_me:$LINENO: result: yes" >&5
11042 $as_echo "yes" >&6; }
11043 else
11044 # FIXME - insert some real tests, host_os isn't really good enough
11045   case $host_os in
11046   darwin*)
11047     if test -n "$STRIP" ; then
11048       striplib="$STRIP -x"
11049       old_striplib="$STRIP -S"
11050       { $as_echo "$as_me:$LINENO: result: yes" >&5
11051 $as_echo "yes" >&6; }
11052     else
11053       { $as_echo "$as_me:$LINENO: result: no" >&5
11054 $as_echo "no" >&6; }
11055     fi
11056     ;;
11057   *)
11058     { $as_echo "$as_me:$LINENO: result: no" >&5
11059 $as_echo "no" >&6; }
11060     ;;
11061   esac
11062 fi
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075   # Report which library types will actually be built
11076   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11077 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11078   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11079 $as_echo "$can_build_shared" >&6; }
11080
11081   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11082 $as_echo_n "checking whether to build shared libraries... " >&6; }
11083   test "$can_build_shared" = "no" && enable_shared=no
11084
11085   # On AIX, shared libraries and static libraries use the same namespace, and
11086   # are all built from PIC.
11087   case $host_os in
11088   aix3*)
11089     test "$enable_shared" = yes && enable_static=no
11090     if test -n "$RANLIB"; then
11091       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11092       postinstall_cmds='$RANLIB $lib'
11093     fi
11094     ;;
11095
11096   aix[4-9]*)
11097     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11098       test "$enable_shared" = yes && enable_static=no
11099     fi
11100     ;;
11101   esac
11102   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11103 $as_echo "$enable_shared" >&6; }
11104
11105   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11106 $as_echo_n "checking whether to build static libraries... " >&6; }
11107   # Make sure either enable_shared or enable_static is yes.
11108   test "$enable_shared" = yes || enable_static=yes
11109   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11110 $as_echo "$enable_static" >&6; }
11111
11112
11113
11114
11115 fi
11116 ac_ext=c
11117 ac_cpp='$CPP $CPPFLAGS'
11118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11121
11122 CC="$lt_save_CC"
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136         ac_config_commands="$ac_config_commands libtool"
11137
11138
11139
11140
11141 # Only expand once:
11142
11143
11144
11145 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11146 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11147 if test "${ac_cv_c_const+set}" = set; then
11148   $as_echo_n "(cached) " >&6
11149 else
11150   cat >conftest.$ac_ext <<_ACEOF
11151 /* confdefs.h.  */
11152 _ACEOF
11153 cat confdefs.h >>conftest.$ac_ext
11154 cat >>conftest.$ac_ext <<_ACEOF
11155 /* end confdefs.h.  */
11156
11157 int
11158 main ()
11159 {
11160 /* FIXME: Include the comments suggested by Paul. */
11161 #ifndef __cplusplus
11162   /* Ultrix mips cc rejects this.  */
11163   typedef int charset[2];
11164   const charset cs;
11165   /* SunOS 4.1.1 cc rejects this.  */
11166   char const *const *pcpcc;
11167   char **ppc;
11168   /* NEC SVR4.0.2 mips cc rejects this.  */
11169   struct point {int x, y;};
11170   static struct point const zero = {0,0};
11171   /* AIX XL C 1.02.0.0 rejects this.
11172      It does not let you subtract one const X* pointer from another in
11173      an arm of an if-expression whose if-part is not a constant
11174      expression */
11175   const char *g = "string";
11176   pcpcc = &g + (g ? g-g : 0);
11177   /* HPUX 7.0 cc rejects these. */
11178   ++pcpcc;
11179   ppc = (char**) pcpcc;
11180   pcpcc = (char const *const *) ppc;
11181   { /* SCO 3.2v4 cc rejects this.  */
11182     char *t;
11183     char const *s = 0 ? (char *) 0 : (char const *) 0;
11184
11185     *t++ = 0;
11186     if (s) return 0;
11187   }
11188   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11189     int x[] = {25, 17};
11190     const int *foo = &x[0];
11191     ++foo;
11192   }
11193   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11194     typedef const int *iptr;
11195     iptr p = 0;
11196     ++p;
11197   }
11198   { /* AIX XL C 1.02.0.0 rejects this saying
11199        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11200     struct s { int j; const int *ap[3]; };
11201     struct s *b; b->j = 5;
11202   }
11203   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11204     const int foo = 10;
11205     if (!foo) return 0;
11206   }
11207   return !cs[0] && !zero.x;
11208 #endif
11209
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext
11215 if { (ac_try="$ac_compile"
11216 case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11221 $as_echo "$ac_try_echo") >&5
11222   (eval "$ac_compile") 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } && {
11229          test -z "$ac_c_werror_flag" ||
11230          test ! -s conftest.err
11231        } && test -s conftest.$ac_objext; then
11232   ac_cv_c_const=yes
11233 else
11234   $as_echo "$as_me: failed program was:" >&5
11235 sed 's/^/| /' conftest.$ac_ext >&5
11236
11237         ac_cv_c_const=no
11238 fi
11239
11240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11241 fi
11242 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11243 $as_echo "$ac_cv_c_const" >&6; }
11244 if test $ac_cv_c_const = no; then
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define const /**/
11248 _ACEOF
11249
11250 fi
11251
11252 if test $ac_cv_c_compiler_gnu = yes; then
11253     { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11254 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11255 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11256   $as_echo_n "(cached) " >&6
11257 else
11258     ac_pattern="Autoconf.*'x'"
11259   cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h.  */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h.  */
11265 #include <sgtty.h>
11266 Autoconf TIOCGETP
11267 _ACEOF
11268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11269   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11270   ac_cv_prog_gcc_traditional=yes
11271 else
11272   ac_cv_prog_gcc_traditional=no
11273 fi
11274 rm -f conftest*
11275
11276
11277   if test $ac_cv_prog_gcc_traditional = no; then
11278     cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h.  */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h.  */
11284 #include <termio.h>
11285 Autoconf TCGETA
11286 _ACEOF
11287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11288   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11289   ac_cv_prog_gcc_traditional=yes
11290 fi
11291 rm -f conftest*
11292
11293   fi
11294 fi
11295 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11296 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11297   if test $ac_cv_prog_gcc_traditional = yes; then
11298     CC="$CC -traditional"
11299   fi
11300 fi
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311 for ac_header in libutil.h pthread.h pty.h sys/prctl.h sys/uio.h util.h      \
11312                   utmp.h utmpx.h
11313 do
11314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11317 $as_echo_n "checking for $ac_header... " >&6; }
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319   $as_echo_n "(cached) " >&6
11320 fi
11321 ac_res=`eval 'as_val=${'$as_ac_Header'}
11322                  $as_echo "$as_val"'`
11323                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11324 $as_echo "$ac_res" >&6; }
11325 else
11326   # Is the header compilable?
11327 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11328 $as_echo_n "checking $ac_header usability... " >&6; }
11329 cat >conftest.$ac_ext <<_ACEOF
11330 /* confdefs.h.  */
11331 _ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h.  */
11335 $ac_includes_default
11336 #include <$ac_header>
11337 _ACEOF
11338 rm -f conftest.$ac_objext
11339 if { (ac_try="$ac_compile"
11340 case "(($ac_try" in
11341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342   *) ac_try_echo=$ac_try;;
11343 esac
11344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11345 $as_echo "$ac_try_echo") >&5
11346   (eval "$ac_compile") 2>conftest.er1
11347   ac_status=$?
11348   grep -v '^ *+' conftest.er1 >conftest.err
11349   rm -f conftest.er1
11350   cat conftest.err >&5
11351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); } && {
11353          test -z "$ac_c_werror_flag" ||
11354          test ! -s conftest.err
11355        } && test -s conftest.$ac_objext; then
11356   ac_header_compiler=yes
11357 else
11358   $as_echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11360
11361         ac_header_compiler=no
11362 fi
11363
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11366 $as_echo "$ac_header_compiler" >&6; }
11367
11368 # Is the header present?
11369 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11370 $as_echo_n "checking $ac_header presence... " >&6; }
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h.  */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h.  */
11377 #include <$ac_header>
11378 _ACEOF
11379 if { (ac_try="$ac_cpp conftest.$ac_ext"
11380 case "(($ac_try" in
11381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382   *) ac_try_echo=$ac_try;;
11383 esac
11384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11385 $as_echo "$ac_try_echo") >&5
11386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11387   ac_status=$?
11388   grep -v '^ *+' conftest.er1 >conftest.err
11389   rm -f conftest.er1
11390   cat conftest.err >&5
11391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); } >/dev/null && {
11393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11394          test ! -s conftest.err
11395        }; then
11396   ac_header_preproc=yes
11397 else
11398   $as_echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401   ac_header_preproc=no
11402 fi
11403
11404 rm -f conftest.err conftest.$ac_ext
11405 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11406 $as_echo "$ac_header_preproc" >&6; }
11407
11408 # So?  What about this header?
11409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11410   yes:no: )
11411     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11412 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11413     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11414 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11415     ac_header_preproc=yes
11416     ;;
11417   no:yes:* )
11418     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11419 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11421 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11423 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11424     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11425 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11427 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11429 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11430     ( cat <<\_ASBOX
11431 ## ------------------------------------- ##
11432 ## Report this to markus@shellinabox.com ##
11433 ## ------------------------------------- ##
11434 _ASBOX
11435      ) | sed "s/^/$as_me: WARNING:     /" >&2
11436     ;;
11437 esac
11438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 $as_echo_n "checking for $ac_header... " >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441   $as_echo_n "(cached) " >&6
11442 else
11443   eval "$as_ac_Header=\$ac_header_preproc"
11444 fi
11445 ac_res=`eval 'as_val=${'$as_ac_Header'}
11446                  $as_echo "$as_val"'`
11447                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11448 $as_echo "$ac_res" >&6; }
11449
11450 fi
11451 as_val=`eval 'as_val=${'$as_ac_Header'}
11452                  $as_echo "$as_val"'`
11453    if test "x$as_val" = x""yes; then
11454   cat >>confdefs.h <<_ACEOF
11455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456 _ACEOF
11457
11458 fi
11459
11460 done
11461
11462
11463
11464 for ac_func in login_tty
11465 do
11466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11467 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11468 $as_echo_n "checking for $ac_func... " >&6; }
11469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11470   $as_echo_n "(cached) " >&6
11471 else
11472   cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11480 #define $ac_func innocuous_$ac_func
11481
11482 /* System header to define __stub macros and hopefully few prototypes,
11483     which can conflict with char $ac_func (); below.
11484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11485     <limits.h> exists even on freestanding compilers.  */
11486
11487 #ifdef __STDC__
11488 # include <limits.h>
11489 #else
11490 # include <assert.h>
11491 #endif
11492
11493 #undef $ac_func
11494
11495 /* Override any GCC internal prototype to avoid an error.
11496    Use char because int might match the return type of a GCC
11497    builtin and then its argument prototype would still apply.  */
11498 #ifdef __cplusplus
11499 extern "C"
11500 #endif
11501 char $ac_func ();
11502 /* The GNU C library defines this for functions which it implements
11503     to always fail with ENOSYS.  Some functions are actually named
11504     something starting with __ and the normal name is an alias.  */
11505 #if defined __stub_$ac_func || defined __stub___$ac_func
11506 choke me
11507 #endif
11508
11509 int
11510 main ()
11511 {
11512 return $ac_func ();
11513   ;
11514   return 0;
11515 }
11516 _ACEOF
11517 rm -f conftest.$ac_objext conftest$ac_exeext
11518 if { (ac_try="$ac_link"
11519 case "(($ac_try" in
11520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11521   *) ac_try_echo=$ac_try;;
11522 esac
11523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11524 $as_echo "$ac_try_echo") >&5
11525   (eval "$ac_link") 2>conftest.er1
11526   ac_status=$?
11527   grep -v '^ *+' conftest.er1 >conftest.err
11528   rm -f conftest.er1
11529   cat conftest.err >&5
11530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531   (exit $ac_status); } && {
11532          test -z "$ac_c_werror_flag" ||
11533          test ! -s conftest.err
11534        } && test -s conftest$ac_exeext && {
11535          test "$cross_compiling" = yes ||
11536          $as_test_x conftest$ac_exeext
11537        }; then
11538   eval "$as_ac_var=yes"
11539 else
11540   $as_echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11542
11543         eval "$as_ac_var=no"
11544 fi
11545
11546 rm -rf conftest.dSYM
11547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11548       conftest$ac_exeext conftest.$ac_ext
11549 fi
11550 ac_res=`eval 'as_val=${'$as_ac_var'}
11551                  $as_echo "$as_val"'`
11552                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11553 $as_echo "$ac_res" >&6; }
11554 as_val=`eval 'as_val=${'$as_ac_var'}
11555                  $as_echo "$as_val"'`
11556    if test "x$as_val" = x""yes; then
11557   cat >>confdefs.h <<_ACEOF
11558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11559 _ACEOF
11560
11561 else
11562   { $as_echo "$as_me:$LINENO: checking for login_tty in -lutil" >&5
11563 $as_echo_n "checking for login_tty in -lutil... " >&6; }
11564 if test "${ac_cv_lib_util_login_tty+set}" = set; then
11565   $as_echo_n "(cached) " >&6
11566 else
11567   ac_check_lib_save_LIBS=$LIBS
11568 LIBS="-lutil  $LIBS"
11569 cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577    Use char because int might match the return type of a GCC
11578    builtin and then its argument prototype would still apply.  */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char login_tty ();
11583 int
11584 main ()
11585 {
11586 return login_tty ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 rm -f conftest.$ac_objext conftest$ac_exeext
11592 if { (ac_try="$ac_link"
11593 case "(($ac_try" in
11594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11595   *) ac_try_echo=$ac_try;;
11596 esac
11597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11598 $as_echo "$ac_try_echo") >&5
11599   (eval "$ac_link") 2>conftest.er1
11600   ac_status=$?
11601   grep -v '^ *+' conftest.er1 >conftest.err
11602   rm -f conftest.er1
11603   cat conftest.err >&5
11604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605   (exit $ac_status); } && {
11606          test -z "$ac_c_werror_flag" ||
11607          test ! -s conftest.err
11608        } && test -s conftest$ac_exeext && {
11609          test "$cross_compiling" = yes ||
11610          $as_test_x conftest$ac_exeext
11611        }; then
11612   ac_cv_lib_util_login_tty=yes
11613 else
11614   $as_echo "$as_me: failed program was:" >&5
11615 sed 's/^/| /' conftest.$ac_ext >&5
11616
11617         ac_cv_lib_util_login_tty=no
11618 fi
11619
11620 rm -rf conftest.dSYM
11621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11622       conftest$ac_exeext conftest.$ac_ext
11623 LIBS=$ac_check_lib_save_LIBS
11624 fi
11625 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_login_tty" >&5
11626 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
11627 if test "x$ac_cv_lib_util_login_tty" = x""yes; then
11628   LIBS="-lutil $LIBS"
11629                  cat >>confdefs.h <<\_ACEOF
11630 #define HAVE_LOGIN_TTY 1
11631 _ACEOF
11632
11633 fi
11634
11635 fi
11636 done
11637
11638
11639
11640 for ac_func in strlcat
11641 do
11642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11643 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11644 $as_echo_n "checking for $ac_func... " >&6; }
11645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11646   $as_echo_n "(cached) " >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11656 #define $ac_func innocuous_$ac_func
11657
11658 /* System header to define __stub macros and hopefully few prototypes,
11659     which can conflict with char $ac_func (); below.
11660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11661     <limits.h> exists even on freestanding compilers.  */
11662
11663 #ifdef __STDC__
11664 # include <limits.h>
11665 #else
11666 # include <assert.h>
11667 #endif
11668
11669 #undef $ac_func
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672    Use char because int might match the return type of a GCC
11673    builtin and then its argument prototype would still apply.  */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char $ac_func ();
11678 /* The GNU C library defines this for functions which it implements
11679     to always fail with ENOSYS.  Some functions are actually named
11680     something starting with __ and the normal name is an alias.  */
11681 #if defined __stub_$ac_func || defined __stub___$ac_func
11682 choke me
11683 #endif
11684
11685 int
11686 main ()
11687 {
11688 return $ac_func ();
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (ac_try="$ac_link"
11695 case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11700 $as_echo "$ac_try_echo") >&5
11701   (eval "$ac_link") 2>conftest.er1
11702   ac_status=$?
11703   grep -v '^ *+' conftest.er1 >conftest.err
11704   rm -f conftest.er1
11705   cat conftest.err >&5
11706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } && {
11708          test -z "$ac_c_werror_flag" ||
11709          test ! -s conftest.err
11710        } && test -s conftest$ac_exeext && {
11711          test "$cross_compiling" = yes ||
11712          $as_test_x conftest$ac_exeext
11713        }; then
11714   eval "$as_ac_var=yes"
11715 else
11716   $as_echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719         eval "$as_ac_var=no"
11720 fi
11721
11722 rm -rf conftest.dSYM
11723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11724       conftest$ac_exeext conftest.$ac_ext
11725 fi
11726 ac_res=`eval 'as_val=${'$as_ac_var'}
11727                  $as_echo "$as_val"'`
11728                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11729 $as_echo "$ac_res" >&6; }
11730 as_val=`eval 'as_val=${'$as_ac_var'}
11731                  $as_echo "$as_val"'`
11732    if test "x$as_val" = x""yes; then
11733   cat >>confdefs.h <<_ACEOF
11734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11735 _ACEOF
11736
11737 fi
11738 done
11739
11740
11741
11742
11743
11744
11745
11746
11747 for ac_func in getgrgid_r getgrnam_r getpwnam_r getpwuid_r openpty          \
11748                 strcasestr
11749 do
11750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11752 $as_echo_n "checking for $ac_func... " >&6; }
11753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11754   $as_echo_n "(cached) " >&6
11755 else
11756   cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11764 #define $ac_func innocuous_$ac_func
11765
11766 /* System header to define __stub macros and hopefully few prototypes,
11767     which can conflict with char $ac_func (); below.
11768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11769     <limits.h> exists even on freestanding compilers.  */
11770
11771 #ifdef __STDC__
11772 # include <limits.h>
11773 #else
11774 # include <assert.h>
11775 #endif
11776
11777 #undef $ac_func
11778
11779 /* Override any GCC internal prototype to avoid an error.
11780    Use char because int might match the return type of a GCC
11781    builtin and then its argument prototype would still apply.  */
11782 #ifdef __cplusplus
11783 extern "C"
11784 #endif
11785 char $ac_func ();
11786 /* The GNU C library defines this for functions which it implements
11787     to always fail with ENOSYS.  Some functions are actually named
11788     something starting with __ and the normal name is an alias.  */
11789 #if defined __stub_$ac_func || defined __stub___$ac_func
11790 choke me
11791 #endif
11792
11793 int
11794 main ()
11795 {
11796 return $ac_func ();
11797   ;
11798   return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (ac_try="$ac_link"
11803 case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11808 $as_echo "$ac_try_echo") >&5
11809   (eval "$ac_link") 2>conftest.er1
11810   ac_status=$?
11811   grep -v '^ *+' conftest.er1 >conftest.err
11812   rm -f conftest.er1
11813   cat conftest.err >&5
11814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); } && {
11816          test -z "$ac_c_werror_flag" ||
11817          test ! -s conftest.err
11818        } && test -s conftest$ac_exeext && {
11819          test "$cross_compiling" = yes ||
11820          $as_test_x conftest$ac_exeext
11821        }; then
11822   eval "$as_ac_var=yes"
11823 else
11824   $as_echo "$as_me: failed program was:" >&5
11825 sed 's/^/| /' conftest.$ac_ext >&5
11826
11827         eval "$as_ac_var=no"
11828 fi
11829
11830 rm -rf conftest.dSYM
11831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11832       conftest$ac_exeext conftest.$ac_ext
11833 fi
11834 ac_res=`eval 'as_val=${'$as_ac_var'}
11835                  $as_echo "$as_val"'`
11836                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11837 $as_echo "$ac_res" >&6; }
11838 as_val=`eval 'as_val=${'$as_ac_var'}
11839                  $as_echo "$as_val"'`
11840    if test "x$as_val" = x""yes; then
11841   cat >>confdefs.h <<_ACEOF
11842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11843 _ACEOF
11844
11845 fi
11846 done
11847
11848
11849 cat >conftest.$ac_ext <<_ACEOF
11850 /* confdefs.h.  */
11851 _ACEOF
11852 cat confdefs.h >>conftest.$ac_ext
11853 cat >>conftest.$ac_ext <<_ACEOF
11854 /* end confdefs.h.  */
11855 #ifndef _XOPEN_SOURCE
11856              #define _XOPEN_SOURCE
11857              #endif
11858              #ifndef _GNU_SOURCE
11859              #define _GNU_SOURCE
11860              #endif
11861              #include <stdlib.h>
11862 int
11863 main ()
11864 {
11865 char buf[10]; ptsname_r(0, buf, sizeof(buf));
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878   (eval "$ac_link") 2>conftest.er1
11879   ac_status=$?
11880   grep -v '^ *+' conftest.er1 >conftest.err
11881   rm -f conftest.er1
11882   cat conftest.err >&5
11883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); } && {
11885          test -z "$ac_c_werror_flag" ||
11886          test ! -s conftest.err
11887        } && test -s conftest$ac_exeext && {
11888          test "$cross_compiling" = yes ||
11889          $as_test_x conftest$ac_exeext
11890        }; then
11891
11892 cat >>confdefs.h <<\_ACEOF
11893 #define HAVE_PTSNAME_R 1
11894 _ACEOF
11895
11896 else
11897   $as_echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900
11901 fi
11902
11903 rm -rf conftest.dSYM
11904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11905       conftest$ac_exeext conftest.$ac_ext
11906
11907 cat >conftest.$ac_ext <<_ACEOF
11908 /* confdefs.h.  */
11909 _ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h.  */
11913 #include <pthread.h>
11914              #include <signal.h>
11915 int
11916 main ()
11917 {
11918 sigset_t s; int n; sigwait(&s, &n);
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 rm -f conftest.$ac_objext conftest$ac_exeext
11924 if { (ac_try="$ac_link"
11925 case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11930 $as_echo "$ac_try_echo") >&5
11931   (eval "$ac_link") 2>conftest.er1
11932   ac_status=$?
11933   grep -v '^ *+' conftest.er1 >conftest.err
11934   rm -f conftest.er1
11935   cat conftest.err >&5
11936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); } && {
11938          test -z "$ac_c_werror_flag" ||
11939          test ! -s conftest.err
11940        } && test -s conftest$ac_exeext && {
11941          test "$cross_compiling" = yes ||
11942          $as_test_x conftest$ac_exeext
11943        }; then
11944
11945 cat >>confdefs.h <<\_ACEOF
11946 #define HAVE_SIGWAIT 1
11947 _ACEOF
11948
11949 else
11950   $as_echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953
11954 fi
11955
11956 rm -rf conftest.dSYM
11957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11958       conftest$ac_exeext conftest.$ac_ext
11959
11960 # Check whether --enable-ssl was given.
11961 if test "${enable_ssl+set}" = set; then
11962   enableval=$enable_ssl;
11963 fi
11964
11965
11966 # Check whether --enable-pam was given.
11967 if test "${enable_pam+set}" = set; then
11968   enableval=$enable_pam;
11969 fi
11970
11971
11972 # Check whether --enable-runtime-loading was given.
11973 if test "${enable_runtime_loading+set}" = set; then
11974   enableval=$enable_runtime_loading;
11975 fi
11976
11977
11978 if test "x$enable_ssl" != xno; then
11979
11980
11981
11982 for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
11983 do
11984 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11986   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11987 $as_echo_n "checking for $ac_header... " >&6; }
11988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11989   $as_echo_n "(cached) " >&6
11990 fi
11991 ac_res=`eval 'as_val=${'$as_ac_Header'}
11992                  $as_echo "$as_val"'`
11993                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11994 $as_echo "$ac_res" >&6; }
11995 else
11996   # Is the header compilable?
11997 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11998 $as_echo_n "checking $ac_header usability... " >&6; }
11999 cat >conftest.$ac_ext <<_ACEOF
12000 /* confdefs.h.  */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h.  */
12005 $ac_includes_default
12006 #include <$ac_header>
12007 _ACEOF
12008 rm -f conftest.$ac_objext
12009 if { (ac_try="$ac_compile"
12010 case "(($ac_try" in
12011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012   *) ac_try_echo=$ac_try;;
12013 esac
12014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015 $as_echo "$ac_try_echo") >&5
12016   (eval "$ac_compile") 2>conftest.er1
12017   ac_status=$?
12018   grep -v '^ *+' conftest.er1 >conftest.err
12019   rm -f conftest.er1
12020   cat conftest.err >&5
12021   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022   (exit $ac_status); } && {
12023          test -z "$ac_c_werror_flag" ||
12024          test ! -s conftest.err
12025        } && test -s conftest.$ac_objext; then
12026   ac_header_compiler=yes
12027 else
12028   $as_echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031         ac_header_compiler=no
12032 fi
12033
12034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12036 $as_echo "$ac_header_compiler" >&6; }
12037
12038 # Is the header present?
12039 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12040 $as_echo_n "checking $ac_header presence... " >&6; }
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047 #include <$ac_header>
12048 _ACEOF
12049 if { (ac_try="$ac_cpp conftest.$ac_ext"
12050 case "(($ac_try" in
12051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052   *) ac_try_echo=$ac_try;;
12053 esac
12054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12055 $as_echo "$ac_try_echo") >&5
12056   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } >/dev/null && {
12063          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12064          test ! -s conftest.err
12065        }; then
12066   ac_header_preproc=yes
12067 else
12068   $as_echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071   ac_header_preproc=no
12072 fi
12073
12074 rm -f conftest.err conftest.$ac_ext
12075 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12076 $as_echo "$ac_header_preproc" >&6; }
12077
12078 # So?  What about this header?
12079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080   yes:no: )
12081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12082 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12084 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12085     ac_header_preproc=yes
12086     ;;
12087   no:yes:* )
12088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12089 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12091 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12093 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12095 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12097 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12098     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12099 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12100     ( cat <<\_ASBOX
12101 ## ------------------------------------- ##
12102 ## Report this to markus@shellinabox.com ##
12103 ## ------------------------------------- ##
12104 _ASBOX
12105      ) | sed "s/^/$as_me: WARNING:     /" >&2
12106     ;;
12107 esac
12108 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12109 $as_echo_n "checking for $ac_header... " >&6; }
12110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12111   $as_echo_n "(cached) " >&6
12112 else
12113   eval "$as_ac_Header=\$ac_header_preproc"
12114 fi
12115 ac_res=`eval 'as_val=${'$as_ac_Header'}
12116                  $as_echo "$as_val"'`
12117                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12118 $as_echo "$ac_res" >&6; }
12119
12120 fi
12121 as_val=`eval 'as_val=${'$as_ac_Header'}
12122                  $as_echo "$as_val"'`
12123    if test "x$as_val" = x""yes; then
12124   cat >>confdefs.h <<_ACEOF
12125 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12126 _ACEOF
12127
12128 fi
12129
12130 done
12131
12132 fi
12133
12134 if test "x$enable_pam" != xno; then
12135
12136
12137
12138 for ac_header in security/pam_appl.h security/pam_client.h                 \
12139                     security/pam_misc.h
12140 do
12141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12144 $as_echo_n "checking for $ac_header... " >&6; }
12145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12146   $as_echo_n "(cached) " >&6
12147 fi
12148 ac_res=`eval 'as_val=${'$as_ac_Header'}
12149                  $as_echo "$as_val"'`
12150                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12151 $as_echo "$ac_res" >&6; }
12152 else
12153   # Is the header compilable?
12154 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12155 $as_echo_n "checking $ac_header usability... " >&6; }
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162 $ac_includes_default
12163 #include <$ac_header>
12164 _ACEOF
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173   (eval "$ac_compile") 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } && {
12180          test -z "$ac_c_werror_flag" ||
12181          test ! -s conftest.err
12182        } && test -s conftest.$ac_objext; then
12183   ac_header_compiler=yes
12184 else
12185   $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         ac_header_compiler=no
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 $as_echo "$ac_header_compiler" >&6; }
12194
12195 # Is the header present?
12196 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197 $as_echo_n "checking $ac_header presence... " >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 #include <$ac_header>
12205 _ACEOF
12206 if { (ac_try="$ac_cpp conftest.$ac_ext"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212 $as_echo "$ac_try_echo") >&5
12213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } >/dev/null && {
12220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12221          test ! -s conftest.err
12222        }; then
12223   ac_header_preproc=yes
12224 else
12225   $as_echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228   ac_header_preproc=no
12229 fi
12230
12231 rm -f conftest.err conftest.$ac_ext
12232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12233 $as_echo "$ac_header_preproc" >&6; }
12234
12235 # So?  What about this header?
12236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12237   yes:no: )
12238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12239 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12242     ac_header_preproc=yes
12243     ;;
12244   no:yes:* )
12245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12246 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12248 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12250 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12252 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12257     ( cat <<\_ASBOX
12258 ## ------------------------------------- ##
12259 ## Report this to markus@shellinabox.com ##
12260 ## ------------------------------------- ##
12261 _ASBOX
12262      ) | sed "s/^/$as_me: WARNING:     /" >&2
12263     ;;
12264 esac
12265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 $as_echo_n "checking for $ac_header... " >&6; }
12267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268   $as_echo_n "(cached) " >&6
12269 else
12270   eval "$as_ac_Header=\$ac_header_preproc"
12271 fi
12272 ac_res=`eval 'as_val=${'$as_ac_Header'}
12273                  $as_echo "$as_val"'`
12274                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12275 $as_echo "$ac_res" >&6; }
12276
12277 fi
12278 as_val=`eval 'as_val=${'$as_ac_Header'}
12279                  $as_echo "$as_val"'`
12280    if test "x$as_val" = x""yes; then
12281   cat >>confdefs.h <<_ACEOF
12282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12283 _ACEOF
12284
12285 fi
12286
12287 done
12288
12289 fi
12290
12291 if test "x$enable_runtime_loading" != xno; then
12292
12293 for ac_func in dlopen
12294 do
12295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12296 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12297 $as_echo_n "checking for $ac_func... " >&6; }
12298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12299   $as_echo_n "(cached) " >&6
12300 else
12301   cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12309 #define $ac_func innocuous_$ac_func
12310
12311 /* System header to define __stub macros and hopefully few prototypes,
12312     which can conflict with char $ac_func (); below.
12313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12314     <limits.h> exists even on freestanding compilers.  */
12315
12316 #ifdef __STDC__
12317 # include <limits.h>
12318 #else
12319 # include <assert.h>
12320 #endif
12321
12322 #undef $ac_func
12323
12324 /* Override any GCC internal prototype to avoid an error.
12325    Use char because int might match the return type of a GCC
12326    builtin and then its argument prototype would still apply.  */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 char $ac_func ();
12331 /* The GNU C library defines this for functions which it implements
12332     to always fail with ENOSYS.  Some functions are actually named
12333     something starting with __ and the normal name is an alias.  */
12334 #if defined __stub_$ac_func || defined __stub___$ac_func
12335 choke me
12336 #endif
12337
12338 int
12339 main ()
12340 {
12341 return $ac_func ();
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (ac_try="$ac_link"
12348 case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12353 $as_echo "$ac_try_echo") >&5
12354   (eval "$ac_link") 2>conftest.er1
12355   ac_status=$?
12356   grep -v '^ *+' conftest.er1 >conftest.err
12357   rm -f conftest.er1
12358   cat conftest.err >&5
12359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); } && {
12361          test -z "$ac_c_werror_flag" ||
12362          test ! -s conftest.err
12363        } && test -s conftest$ac_exeext && {
12364          test "$cross_compiling" = yes ||
12365          $as_test_x conftest$ac_exeext
12366        }; then
12367   eval "$as_ac_var=yes"
12368 else
12369   $as_echo "$as_me: failed program was:" >&5
12370 sed 's/^/| /' conftest.$ac_ext >&5
12371
12372         eval "$as_ac_var=no"
12373 fi
12374
12375 rm -rf conftest.dSYM
12376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12377       conftest$ac_exeext conftest.$ac_ext
12378 fi
12379 ac_res=`eval 'as_val=${'$as_ac_var'}
12380                  $as_echo "$as_val"'`
12381                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12382 $as_echo "$ac_res" >&6; }
12383 as_val=`eval 'as_val=${'$as_ac_var'}
12384                  $as_echo "$as_val"'`
12385    if test "x$as_val" = x""yes; then
12386   cat >>confdefs.h <<_ACEOF
12387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12388 _ACEOF
12389
12390 else
12391   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12393 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12394   $as_echo_n "(cached) " >&6
12395 else
12396   ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-ldl  $LIBS"
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404
12405 /* Override any GCC internal prototype to avoid an error.
12406    Use char because int might match the return type of a GCC
12407    builtin and then its argument prototype would still apply.  */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char dlopen ();
12412 int
12413 main ()
12414 {
12415 return dlopen ();
12416   ;
12417   return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (ac_try="$ac_link"
12422 case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12427 $as_echo "$ac_try_echo") >&5
12428   (eval "$ac_link") 2>conftest.er1
12429   ac_status=$?
12430   grep -v '^ *+' conftest.er1 >conftest.err
12431   rm -f conftest.er1
12432   cat conftest.err >&5
12433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); } && {
12435          test -z "$ac_c_werror_flag" ||
12436          test ! -s conftest.err
12437        } && test -s conftest$ac_exeext && {
12438          test "$cross_compiling" = yes ||
12439          $as_test_x conftest$ac_exeext
12440        }; then
12441   ac_cv_lib_dl_dlopen=yes
12442 else
12443   $as_echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         ac_cv_lib_dl_dlopen=no
12447 fi
12448
12449 rm -rf conftest.dSYM
12450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12451       conftest$ac_exeext conftest.$ac_ext
12452 LIBS=$ac_check_lib_save_LIBS
12453 fi
12454 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12455 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12456 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12457   LIBS="-ldl $LIBS"
12458                                 cat >>confdefs.h <<\_ACEOF
12459 #define HAVE_DLOPEN 1
12460 _ACEOF
12461
12462 else
12463   enable_runtime_loading=no
12464 fi
12465
12466 fi
12467 done
12468
12469 fi
12470
12471 if test "x$enable_runtime_loading" == xno; then
12472     if test "x$enable_ssl" != xno; then
12473     if test "${ac_cv_header_openssl_bio_h+set}" = set; then
12474   { $as_echo "$as_me:$LINENO: checking for openssl/bio.h" >&5
12475 $as_echo_n "checking for openssl/bio.h... " >&6; }
12476 if test "${ac_cv_header_openssl_bio_h+set}" = set; then
12477   $as_echo_n "(cached) " >&6
12478 fi
12479 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_bio_h" >&5
12480 $as_echo "$ac_cv_header_openssl_bio_h" >&6; }
12481 else
12482   # Is the header compilable?
12483 { $as_echo "$as_me:$LINENO: checking openssl/bio.h usability" >&5
12484 $as_echo_n "checking openssl/bio.h usability... " >&6; }
12485 cat >conftest.$ac_ext <<_ACEOF
12486 /* confdefs.h.  */
12487 _ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h.  */
12491 $ac_includes_default
12492 #include <openssl/bio.h>
12493 _ACEOF
12494 rm -f conftest.$ac_objext
12495 if { (ac_try="$ac_compile"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12501 $as_echo "$ac_try_echo") >&5
12502   (eval "$ac_compile") 2>conftest.er1
12503   ac_status=$?
12504   grep -v '^ *+' conftest.er1 >conftest.err
12505   rm -f conftest.er1
12506   cat conftest.err >&5
12507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508   (exit $ac_status); } && {
12509          test -z "$ac_c_werror_flag" ||
12510          test ! -s conftest.err
12511        } && test -s conftest.$ac_objext; then
12512   ac_header_compiler=yes
12513 else
12514   $as_echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517         ac_header_compiler=no
12518 fi
12519
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12522 $as_echo "$ac_header_compiler" >&6; }
12523
12524 # Is the header present?
12525 { $as_echo "$as_me:$LINENO: checking openssl/bio.h presence" >&5
12526 $as_echo_n "checking openssl/bio.h presence... " >&6; }
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533 #include <openssl/bio.h>
12534 _ACEOF
12535 if { (ac_try="$ac_cpp conftest.$ac_ext"
12536 case "(($ac_try" in
12537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538   *) ac_try_echo=$ac_try;;
12539 esac
12540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12541 $as_echo "$ac_try_echo") >&5
12542   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } >/dev/null && {
12549          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12550          test ! -s conftest.err
12551        }; then
12552   ac_header_preproc=yes
12553 else
12554   $as_echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557   ac_header_preproc=no
12558 fi
12559
12560 rm -f conftest.err conftest.$ac_ext
12561 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12562 $as_echo "$ac_header_preproc" >&6; }
12563
12564 # So?  What about this header?
12565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12566   yes:no: )
12567     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12568 $as_echo "$as_me: WARNING: openssl/bio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12569     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h: proceeding with the compiler's result" >&5
12570 $as_echo "$as_me: WARNING: openssl/bio.h: proceeding with the compiler's result" >&2;}
12571     ac_header_preproc=yes
12572     ;;
12573   no:yes:* )
12574     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h: present but cannot be compiled" >&5
12575 $as_echo "$as_me: WARNING: openssl/bio.h: present but cannot be compiled" >&2;}
12576     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h:     check for missing prerequisite headers?" >&5
12577 $as_echo "$as_me: WARNING: openssl/bio.h:     check for missing prerequisite headers?" >&2;}
12578     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h: see the Autoconf documentation" >&5
12579 $as_echo "$as_me: WARNING: openssl/bio.h: see the Autoconf documentation" >&2;}
12580     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h:     section \"Present But Cannot Be Compiled\"" >&5
12581 $as_echo "$as_me: WARNING: openssl/bio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12582     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h: proceeding with the preprocessor's result" >&5
12583 $as_echo "$as_me: WARNING: openssl/bio.h: proceeding with the preprocessor's result" >&2;}
12584     { $as_echo "$as_me:$LINENO: WARNING: openssl/bio.h: in the future, the compiler will take precedence" >&5
12585 $as_echo "$as_me: WARNING: openssl/bio.h: in the future, the compiler will take precedence" >&2;}
12586     ( cat <<\_ASBOX
12587 ## ------------------------------------- ##
12588 ## Report this to markus@shellinabox.com ##
12589 ## ------------------------------------- ##
12590 _ASBOX
12591      ) | sed "s/^/$as_me: WARNING:     /" >&2
12592     ;;
12593 esac
12594 { $as_echo "$as_me:$LINENO: checking for openssl/bio.h" >&5
12595 $as_echo_n "checking for openssl/bio.h... " >&6; }
12596 if test "${ac_cv_header_openssl_bio_h+set}" = set; then
12597   $as_echo_n "(cached) " >&6
12598 else
12599   ac_cv_header_openssl_bio_h=$ac_header_preproc
12600 fi
12601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_bio_h" >&5
12602 $as_echo "$ac_cv_header_openssl_bio_h" >&6; }
12603
12604 fi
12605 if test "x$ac_cv_header_openssl_bio_h" = x""yes; then
12606   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12607   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12608 $as_echo_n "checking for openssl/err.h... " >&6; }
12609 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12610   $as_echo_n "(cached) " >&6
12611 fi
12612 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12613 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12614 else
12615   # Is the header compilable?
12616 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12617 $as_echo_n "checking openssl/err.h usability... " >&6; }
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624 $ac_includes_default
12625 #include <openssl/err.h>
12626 _ACEOF
12627 rm -f conftest.$ac_objext
12628 if { (ac_try="$ac_compile"
12629 case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12634 $as_echo "$ac_try_echo") >&5
12635   (eval "$ac_compile") 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } && {
12642          test -z "$ac_c_werror_flag" ||
12643          test ! -s conftest.err
12644        } && test -s conftest.$ac_objext; then
12645   ac_header_compiler=yes
12646 else
12647   $as_echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.$ac_ext >&5
12649
12650         ac_header_compiler=no
12651 fi
12652
12653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12655 $as_echo "$ac_header_compiler" >&6; }
12656
12657 # Is the header present?
12658 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12659 $as_echo_n "checking openssl/err.h presence... " >&6; }
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h.  */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h.  */
12666 #include <openssl/err.h>
12667 _ACEOF
12668 if { (ac_try="$ac_cpp conftest.$ac_ext"
12669 case "(($ac_try" in
12670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671   *) ac_try_echo=$ac_try;;
12672 esac
12673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12674 $as_echo "$ac_try_echo") >&5
12675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12676   ac_status=$?
12677   grep -v '^ *+' conftest.er1 >conftest.err
12678   rm -f conftest.er1
12679   cat conftest.err >&5
12680   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681   (exit $ac_status); } >/dev/null && {
12682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12683          test ! -s conftest.err
12684        }; then
12685   ac_header_preproc=yes
12686 else
12687   $as_echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12689
12690   ac_header_preproc=no
12691 fi
12692
12693 rm -f conftest.err conftest.$ac_ext
12694 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12695 $as_echo "$ac_header_preproc" >&6; }
12696
12697 # So?  What about this header?
12698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12699   yes:no: )
12700     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12701 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12702     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12703 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12704     ac_header_preproc=yes
12705     ;;
12706   no:yes:* )
12707     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12708 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12709     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12710 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12711     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12712 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12713     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12714 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12715     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12716 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12717     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12718 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12719     ( cat <<\_ASBOX
12720 ## ------------------------------------- ##
12721 ## Report this to markus@shellinabox.com ##
12722 ## ------------------------------------- ##
12723 _ASBOX
12724      ) | sed "s/^/$as_me: WARNING:     /" >&2
12725     ;;
12726 esac
12727 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12728 $as_echo_n "checking for openssl/err.h... " >&6; }
12729 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12730   $as_echo_n "(cached) " >&6
12731 else
12732   ac_cv_header_openssl_err_h=$ac_header_preproc
12733 fi
12734 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12735 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
12736
12737 fi
12738 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
12739   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12740   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12741 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12742 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12743   $as_echo_n "(cached) " >&6
12744 fi
12745 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12746 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12747 else
12748   # Is the header compilable?
12749 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12750 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
12751 cat >conftest.$ac_ext <<_ACEOF
12752 /* confdefs.h.  */
12753 _ACEOF
12754 cat confdefs.h >>conftest.$ac_ext
12755 cat >>conftest.$ac_ext <<_ACEOF
12756 /* end confdefs.h.  */
12757 $ac_includes_default
12758 #include <openssl/ssl.h>
12759 _ACEOF
12760 rm -f conftest.$ac_objext
12761 if { (ac_try="$ac_compile"
12762 case "(($ac_try" in
12763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764   *) ac_try_echo=$ac_try;;
12765 esac
12766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12767 $as_echo "$ac_try_echo") >&5
12768   (eval "$ac_compile") 2>conftest.er1
12769   ac_status=$?
12770   grep -v '^ *+' conftest.er1 >conftest.err
12771   rm -f conftest.er1
12772   cat conftest.err >&5
12773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); } && {
12775          test -z "$ac_c_werror_flag" ||
12776          test ! -s conftest.err
12777        } && test -s conftest.$ac_objext; then
12778   ac_header_compiler=yes
12779 else
12780   $as_echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783         ac_header_compiler=no
12784 fi
12785
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12788 $as_echo "$ac_header_compiler" >&6; }
12789
12790 # Is the header present?
12791 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12792 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h.  */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h.  */
12799 #include <openssl/ssl.h>
12800 _ACEOF
12801 if { (ac_try="$ac_cpp conftest.$ac_ext"
12802 case "(($ac_try" in
12803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804   *) ac_try_echo=$ac_try;;
12805 esac
12806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12807 $as_echo "$ac_try_echo") >&5
12808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12809   ac_status=$?
12810   grep -v '^ *+' conftest.er1 >conftest.err
12811   rm -f conftest.er1
12812   cat conftest.err >&5
12813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814   (exit $ac_status); } >/dev/null && {
12815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12816          test ! -s conftest.err
12817        }; then
12818   ac_header_preproc=yes
12819 else
12820   $as_echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823   ac_header_preproc=no
12824 fi
12825
12826 rm -f conftest.err conftest.$ac_ext
12827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12828 $as_echo "$ac_header_preproc" >&6; }
12829
12830 # So?  What about this header?
12831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832   yes:no: )
12833     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12834 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12835     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12836 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12837     ac_header_preproc=yes
12838     ;;
12839   no:yes:* )
12840     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12841 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12842     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12843 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12844     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12845 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12846     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12847 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12848     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12849 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12850     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12851 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12852     ( cat <<\_ASBOX
12853 ## ------------------------------------- ##
12854 ## Report this to markus@shellinabox.com ##
12855 ## ------------------------------------- ##
12856 _ASBOX
12857      ) | sed "s/^/$as_me: WARNING:     /" >&2
12858     ;;
12859 esac
12860 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12861 $as_echo_n "checking for openssl/ssl.h... " >&6; }
12862 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12863   $as_echo_n "(cached) " >&6
12864 else
12865   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12866 fi
12867 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12868 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
12869
12870 fi
12871 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
12872   LIBS="-lssl -lcrypto $LIBS"
12873 fi
12874
12875
12876 fi
12877
12878
12879 fi
12880
12881
12882   fi
12883
12884     if test "x$enable_pam" != xno; then
12885     if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
12886   { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
12887 $as_echo_n "checking for security/pam_appl.h... " >&6; }
12888 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
12889   $as_echo_n "(cached) " >&6
12890 fi
12891 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
12892 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
12893 else
12894   # Is the header compilable?
12895 { $as_echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
12896 $as_echo_n "checking security/pam_appl.h usability... " >&6; }
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903 $ac_includes_default
12904 #include <security/pam_appl.h>
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (ac_try="$ac_compile"
12908 case "(($ac_try" in
12909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12910   *) ac_try_echo=$ac_try;;
12911 esac
12912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12913 $as_echo "$ac_try_echo") >&5
12914   (eval "$ac_compile") 2>conftest.er1
12915   ac_status=$?
12916   grep -v '^ *+' conftest.er1 >conftest.err
12917   rm -f conftest.er1
12918   cat conftest.err >&5
12919   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } && {
12921          test -z "$ac_c_werror_flag" ||
12922          test ! -s conftest.err
12923        } && test -s conftest.$ac_objext; then
12924   ac_header_compiler=yes
12925 else
12926   $as_echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12928
12929         ac_header_compiler=no
12930 fi
12931
12932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12934 $as_echo "$ac_header_compiler" >&6; }
12935
12936 # Is the header present?
12937 { $as_echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
12938 $as_echo_n "checking security/pam_appl.h presence... " >&6; }
12939 cat >conftest.$ac_ext <<_ACEOF
12940 /* confdefs.h.  */
12941 _ACEOF
12942 cat confdefs.h >>conftest.$ac_ext
12943 cat >>conftest.$ac_ext <<_ACEOF
12944 /* end confdefs.h.  */
12945 #include <security/pam_appl.h>
12946 _ACEOF
12947 if { (ac_try="$ac_cpp conftest.$ac_ext"
12948 case "(($ac_try" in
12949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12950   *) ac_try_echo=$ac_try;;
12951 esac
12952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12953 $as_echo "$ac_try_echo") >&5
12954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12955   ac_status=$?
12956   grep -v '^ *+' conftest.er1 >conftest.err
12957   rm -f conftest.er1
12958   cat conftest.err >&5
12959   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } >/dev/null && {
12961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12962          test ! -s conftest.err
12963        }; then
12964   ac_header_preproc=yes
12965 else
12966   $as_echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12968
12969   ac_header_preproc=no
12970 fi
12971
12972 rm -f conftest.err conftest.$ac_ext
12973 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12974 $as_echo "$ac_header_preproc" >&6; }
12975
12976 # So?  What about this header?
12977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12978   yes:no: )
12979     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12980 $as_echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12981     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
12982 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
12983     ac_header_preproc=yes
12984     ;;
12985   no:yes:* )
12986     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
12987 $as_echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
12988     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&5
12989 $as_echo "$as_me: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&2;}
12990     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
12991 $as_echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
12992     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&5
12993 $as_echo "$as_me: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12994     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
12995 $as_echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
12996     { $as_echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
12997 $as_echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
12998     ( cat <<\_ASBOX
12999 ## ------------------------------------- ##
13000 ## Report this to markus@shellinabox.com ##
13001 ## ------------------------------------- ##
13002 _ASBOX
13003      ) | sed "s/^/$as_me: WARNING:     /" >&2
13004     ;;
13005 esac
13006 { $as_echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
13007 $as_echo_n "checking for security/pam_appl.h... " >&6; }
13008 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
13009   $as_echo_n "(cached) " >&6
13010 else
13011   ac_cv_header_security_pam_appl_h=$ac_header_preproc
13012 fi
13013 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
13014 $as_echo "$ac_cv_header_security_pam_appl_h" >&6; }
13015
13016 fi
13017 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then
13018   LIBS="-lpam $LIBS"
13019 fi
13020
13021
13022     if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
13023   { $as_echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
13024 $as_echo_n "checking for security/pam_misc.h... " >&6; }
13025 if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
13026   $as_echo_n "(cached) " >&6
13027 fi
13028 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
13029 $as_echo "$ac_cv_header_security_pam_misc_h" >&6; }
13030 else
13031   # Is the header compilable?
13032 { $as_echo "$as_me:$LINENO: checking security/pam_misc.h usability" >&5
13033 $as_echo_n "checking security/pam_misc.h usability... " >&6; }
13034 cat >conftest.$ac_ext <<_ACEOF
13035 /* confdefs.h.  */
13036 _ACEOF
13037 cat confdefs.h >>conftest.$ac_ext
13038 cat >>conftest.$ac_ext <<_ACEOF
13039 /* end confdefs.h.  */
13040 $ac_includes_default
13041 #include <security/pam_misc.h>
13042 _ACEOF
13043 rm -f conftest.$ac_objext
13044 if { (ac_try="$ac_compile"
13045 case "(($ac_try" in
13046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13047   *) ac_try_echo=$ac_try;;
13048 esac
13049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13050 $as_echo "$ac_try_echo") >&5
13051   (eval "$ac_compile") 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } && {
13058          test -z "$ac_c_werror_flag" ||
13059          test ! -s conftest.err
13060        } && test -s conftest.$ac_objext; then
13061   ac_header_compiler=yes
13062 else
13063   $as_echo "$as_me: failed program was:" >&5
13064 sed 's/^/| /' conftest.$ac_ext >&5
13065
13066         ac_header_compiler=no
13067 fi
13068
13069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13070 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13071 $as_echo "$ac_header_compiler" >&6; }
13072
13073 # Is the header present?
13074 { $as_echo "$as_me:$LINENO: checking security/pam_misc.h presence" >&5
13075 $as_echo_n "checking security/pam_misc.h presence... " >&6; }
13076 cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h.  */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h.  */
13082 #include <security/pam_misc.h>
13083 _ACEOF
13084 if { (ac_try="$ac_cpp conftest.$ac_ext"
13085 case "(($ac_try" in
13086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087   *) ac_try_echo=$ac_try;;
13088 esac
13089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13090 $as_echo "$ac_try_echo") >&5
13091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13092   ac_status=$?
13093   grep -v '^ *+' conftest.er1 >conftest.err
13094   rm -f conftest.er1
13095   cat conftest.err >&5
13096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); } >/dev/null && {
13098          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13099          test ! -s conftest.err
13100        }; then
13101   ac_header_preproc=yes
13102 else
13103   $as_echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13105
13106   ac_header_preproc=no
13107 fi
13108
13109 rm -f conftest.err conftest.$ac_ext
13110 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13111 $as_echo "$ac_header_preproc" >&6; }
13112
13113 # So?  What about this header?
13114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13115   yes:no: )
13116     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13117 $as_echo "$as_me: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13118     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&5
13119 $as_echo "$as_me: WARNING: security/pam_misc.h: proceeding with the compiler's result" >&2;}
13120     ac_header_preproc=yes
13121     ;;
13122   no:yes:* )
13123     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: present but cannot be compiled" >&5
13124 $as_echo "$as_me: WARNING: security/pam_misc.h: present but cannot be compiled" >&2;}
13125     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h:     check for missing prerequisite headers?" >&5
13126 $as_echo "$as_me: WARNING: security/pam_misc.h:     check for missing prerequisite headers?" >&2;}
13127     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: see the Autoconf documentation" >&5
13128 $as_echo "$as_me: WARNING: security/pam_misc.h: see the Autoconf documentation" >&2;}
13129     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h:     section \"Present But Cannot Be Compiled\"" >&5
13130 $as_echo "$as_me: WARNING: security/pam_misc.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13131     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
13132 $as_echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
13133     { $as_echo "$as_me:$LINENO: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&5
13134 $as_echo "$as_me: WARNING: security/pam_misc.h: in the future, the compiler will take precedence" >&2;}
13135     ( cat <<\_ASBOX
13136 ## ------------------------------------- ##
13137 ## Report this to markus@shellinabox.com ##
13138 ## ------------------------------------- ##
13139 _ASBOX
13140      ) | sed "s/^/$as_me: WARNING:     /" >&2
13141     ;;
13142 esac
13143 { $as_echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
13144 $as_echo_n "checking for security/pam_misc.h... " >&6; }
13145 if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
13146   $as_echo_n "(cached) " >&6
13147 else
13148   ac_cv_header_security_pam_misc_h=$ac_header_preproc
13149 fi
13150 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
13151 $as_echo "$ac_cv_header_security_pam_misc_h" >&6; }
13152
13153 fi
13154 if test "x$ac_cv_header_security_pam_misc_h" = x""yes; then
13155   LIBS="-lpam_misc $LIBS"
13156 fi
13157
13158
13159   fi
13160 fi
13161
13162 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13163 $as_echo_n "checking for deflate in -lz... " >&6; }
13164 if test "${ac_cv_lib_z_deflate+set}" = set; then
13165   $as_echo_n "(cached) " >&6
13166 else
13167   ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lz  $LIBS"
13169 cat >conftest.$ac_ext <<_ACEOF
13170 /* confdefs.h.  */
13171 _ACEOF
13172 cat confdefs.h >>conftest.$ac_ext
13173 cat >>conftest.$ac_ext <<_ACEOF
13174 /* end confdefs.h.  */
13175
13176 /* Override any GCC internal prototype to avoid an error.
13177    Use char because int might match the return type of a GCC
13178    builtin and then its argument prototype would still apply.  */
13179 #ifdef __cplusplus
13180 extern "C"
13181 #endif
13182 char deflate ();
13183 int
13184 main ()
13185 {
13186 return deflate ();
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 rm -f conftest.$ac_objext conftest$ac_exeext
13192 if { (ac_try="$ac_link"
13193 case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198 $as_echo "$ac_try_echo") >&5
13199   (eval "$ac_link") 2>conftest.er1
13200   ac_status=$?
13201   grep -v '^ *+' conftest.er1 >conftest.err
13202   rm -f conftest.er1
13203   cat conftest.err >&5
13204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } && {
13206          test -z "$ac_c_werror_flag" ||
13207          test ! -s conftest.err
13208        } && test -s conftest$ac_exeext && {
13209          test "$cross_compiling" = yes ||
13210          $as_test_x conftest$ac_exeext
13211        }; then
13212   ac_cv_lib_z_deflate=yes
13213 else
13214   $as_echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13216
13217         ac_cv_lib_z_deflate=no
13218 fi
13219
13220 rm -rf conftest.dSYM
13221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13222       conftest$ac_exeext conftest.$ac_ext
13223 LIBS=$ac_check_lib_save_LIBS
13224 fi
13225 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13226 $as_echo "$ac_cv_lib_z_deflate" >&6; }
13227 if test "x$ac_cv_lib_z_deflate" = x""yes; then
13228
13229   if test "${ac_cv_header_zlib_h+set}" = set; then
13230   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13231 $as_echo_n "checking for zlib.h... " >&6; }
13232 if test "${ac_cv_header_zlib_h+set}" = set; then
13233   $as_echo_n "(cached) " >&6
13234 fi
13235 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13236 $as_echo "$ac_cv_header_zlib_h" >&6; }
13237 else
13238   # Is the header compilable?
13239 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
13240 $as_echo_n "checking zlib.h usability... " >&6; }
13241 cat >conftest.$ac_ext <<_ACEOF
13242 /* confdefs.h.  */
13243 _ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h.  */
13247 $ac_includes_default
13248 #include <zlib.h>
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254   *) ac_try_echo=$ac_try;;
13255 esac
13256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257 $as_echo "$ac_try_echo") >&5
13258   (eval "$ac_compile") 2>conftest.er1
13259   ac_status=$?
13260   grep -v '^ *+' conftest.er1 >conftest.err
13261   rm -f conftest.er1
13262   cat conftest.err >&5
13263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } && {
13265          test -z "$ac_c_werror_flag" ||
13266          test ! -s conftest.err
13267        } && test -s conftest.$ac_objext; then
13268   ac_header_compiler=yes
13269 else
13270   $as_echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273         ac_header_compiler=no
13274 fi
13275
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13278 $as_echo "$ac_header_compiler" >&6; }
13279
13280 # Is the header present?
13281 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
13282 $as_echo_n "checking zlib.h presence... " >&6; }
13283 cat >conftest.$ac_ext <<_ACEOF
13284 /* confdefs.h.  */
13285 _ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h.  */
13289 #include <zlib.h>
13290 _ACEOF
13291 if { (ac_try="$ac_cpp conftest.$ac_ext"
13292 case "(($ac_try" in
13293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294   *) ac_try_echo=$ac_try;;
13295 esac
13296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13297 $as_echo "$ac_try_echo") >&5
13298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13299   ac_status=$?
13300   grep -v '^ *+' conftest.er1 >conftest.err
13301   rm -f conftest.er1
13302   cat conftest.err >&5
13303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); } >/dev/null && {
13305          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13306          test ! -s conftest.err
13307        }; then
13308   ac_header_preproc=yes
13309 else
13310   $as_echo "$as_me: failed program was:" >&5
13311 sed 's/^/| /' conftest.$ac_ext >&5
13312
13313   ac_header_preproc=no
13314 fi
13315
13316 rm -f conftest.err conftest.$ac_ext
13317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13318 $as_echo "$ac_header_preproc" >&6; }
13319
13320 # So?  What about this header?
13321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13322   yes:no: )
13323     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13324 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13325     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13326 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13327     ac_header_preproc=yes
13328     ;;
13329   no:yes:* )
13330     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13331 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13332     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
13333 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
13334     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13335 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13336     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
13337 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13338     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13339 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13340     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13341 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13342     ( cat <<\_ASBOX
13343 ## ------------------------------------- ##
13344 ## Report this to markus@shellinabox.com ##
13345 ## ------------------------------------- ##
13346 _ASBOX
13347      ) | sed "s/^/$as_me: WARNING:     /" >&2
13348     ;;
13349 esac
13350 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
13351 $as_echo_n "checking for zlib.h... " >&6; }
13352 if test "${ac_cv_header_zlib_h+set}" = set; then
13353   $as_echo_n "(cached) " >&6
13354 else
13355   ac_cv_header_zlib_h=$ac_header_preproc
13356 fi
13357 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13358 $as_echo "$ac_cv_header_zlib_h" >&6; }
13359
13360 fi
13361 if test "x$ac_cv_header_zlib_h" = x""yes; then
13362   LIBS="-lz $LIBS"
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_ZLIB 1
13366 _ACEOF
13367
13368
13369 fi
13370
13371
13372 fi
13373
13374
13375 ac_config_files="$ac_config_files Makefile"
13376
13377 cat >confcache <<\_ACEOF
13378 # This file is a shell script that caches the results of configure
13379 # tests run on this system so they can be shared between configure
13380 # scripts and configure runs, see configure's option --config-cache.
13381 # It is not useful on other systems.  If it contains results you don't
13382 # want to keep, you may remove or edit it.
13383 #
13384 # config.status only pays attention to the cache file if you give it
13385 # the --recheck option to rerun configure.
13386 #
13387 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13388 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13389 # following values.
13390
13391 _ACEOF
13392
13393 # The following way of writing the cache mishandles newlines in values,
13394 # but we know of no workaround that is simple, portable, and efficient.
13395 # So, we kill variables containing newlines.
13396 # Ultrix sh set writes to stderr and can't be redirected directly,
13397 # and sets the high bit in the cache file unless we assign to the vars.
13398 (
13399   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13400     eval ac_val=\$$ac_var
13401     case $ac_val in #(
13402     *${as_nl}*)
13403       case $ac_var in #(
13404       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13405 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13406       esac
13407       case $ac_var in #(
13408       _ | IFS | as_nl) ;; #(
13409       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13410       *) $as_unset $ac_var ;;
13411       esac ;;
13412     esac
13413   done
13414
13415   (set) 2>&1 |
13416     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13417     *${as_nl}ac_space=\ *)
13418       # `set' does not quote correctly, so add quotes (double-quote
13419       # substitution turns \\\\ into \\, and sed turns \\ into \).
13420       sed -n \
13421         "s/'/'\\\\''/g;
13422           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13423       ;; #(
13424     *)
13425       # `set' quotes correctly as required by POSIX, so do not add quotes.
13426       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13427       ;;
13428     esac |
13429     sort
13430 ) |
13431   sed '
13432      /^ac_cv_env_/b end
13433      t clear
13434      :clear
13435      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13436      t end
13437      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13438      :end' >>confcache
13439 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13440   if test -w "$cache_file"; then
13441     test "x$cache_file" != "x/dev/null" &&
13442       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13443 $as_echo "$as_me: updating cache $cache_file" >&6;}
13444     cat confcache >$cache_file
13445   else
13446     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13447 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13448   fi
13449 fi
13450 rm -f confcache
13451
13452 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13453 # Let make expand exec_prefix.
13454 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13455
13456 DEFS=-DHAVE_CONFIG_H
13457
13458 ac_libobjs=
13459 ac_ltlibobjs=
13460 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13461   # 1. Remove the extension, and $U if already installed.
13462   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13463   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13464   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13465   #    will be set to the directory where LIBOBJS objects are built.
13466   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13467   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13468 done
13469 LIBOBJS=$ac_libobjs
13470
13471 LTLIBOBJS=$ac_ltlibobjs
13472
13473
13474 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13475   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13476 Usually this means the macro was only invoked conditionally." >&5
13477 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13478 Usually this means the macro was only invoked conditionally." >&2;}
13479    { (exit 1); exit 1; }; }
13480 fi
13481 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13482   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13483 Usually this means the macro was only invoked conditionally." >&5
13484 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13485 Usually this means the macro was only invoked conditionally." >&2;}
13486    { (exit 1); exit 1; }; }
13487 fi
13488
13489 : ${CONFIG_STATUS=./config.status}
13490 ac_write_fail=0
13491 ac_clean_files_save=$ac_clean_files
13492 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13493 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13494 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13495 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13496 #! $SHELL
13497 # Generated by $as_me.
13498 # Run this file to recreate the current configuration.
13499 # Compiler output produced by configure, useful for debugging
13500 # configure, is in config.log if it exists.
13501
13502 debug=false
13503 ac_cs_recheck=false
13504 ac_cs_silent=false
13505 SHELL=\${CONFIG_SHELL-$SHELL}
13506 _ACEOF
13507
13508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13509 ## --------------------- ##
13510 ## M4sh Initialization.  ##
13511 ## --------------------- ##
13512
13513 # Be more Bourne compatible
13514 DUALCASE=1; export DUALCASE # for MKS sh
13515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13516   emulate sh
13517   NULLCMD=:
13518   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13519   # is contrary to our usage.  Disable this feature.
13520   alias -g '${1+"$@"}'='"$@"'
13521   setopt NO_GLOB_SUBST
13522 else
13523   case `(set -o) 2>/dev/null` in
13524   *posix*) set -o posix ;;
13525 esac
13526
13527 fi
13528
13529
13530
13531
13532 # PATH needs CR
13533 # Avoid depending upon Character Ranges.
13534 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13535 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13536 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13537 as_cr_digits='0123456789'
13538 as_cr_alnum=$as_cr_Letters$as_cr_digits
13539
13540 as_nl='
13541 '
13542 export as_nl
13543 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13544 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13545 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13547 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13548   as_echo='printf %s\n'
13549   as_echo_n='printf %s'
13550 else
13551   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13552     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13553     as_echo_n='/usr/ucb/echo -n'
13554   else
13555     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13556     as_echo_n_body='eval
13557       arg=$1;
13558       case $arg in
13559       *"$as_nl"*)
13560         expr "X$arg" : "X\\(.*\\)$as_nl";
13561         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13562       esac;
13563       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13564     '
13565     export as_echo_n_body
13566     as_echo_n='sh -c $as_echo_n_body as_echo'
13567   fi
13568   export as_echo_body
13569   as_echo='sh -c $as_echo_body as_echo'
13570 fi
13571
13572 # The user is always right.
13573 if test "${PATH_SEPARATOR+set}" != set; then
13574   PATH_SEPARATOR=:
13575   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13576     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13577       PATH_SEPARATOR=';'
13578   }
13579 fi
13580
13581 # Support unset when possible.
13582 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13583   as_unset=unset
13584 else
13585   as_unset=false
13586 fi
13587
13588
13589 # IFS
13590 # We need space, tab and new line, in precisely that order.  Quoting is
13591 # there to prevent editors from complaining about space-tab.
13592 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13593 # splitting by setting IFS to empty value.)
13594 IFS=" ""        $as_nl"
13595
13596 # Find who we are.  Look in the path if we contain no directory separator.
13597 case $0 in
13598   *[\\/]* ) as_myself=$0 ;;
13599   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13600 for as_dir in $PATH
13601 do
13602   IFS=$as_save_IFS
13603   test -z "$as_dir" && as_dir=.
13604   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13605 done
13606 IFS=$as_save_IFS
13607
13608      ;;
13609 esac
13610 # We did not find ourselves, most probably we were run as `sh COMMAND'
13611 # in which case we are not to be found in the path.
13612 if test "x$as_myself" = x; then
13613   as_myself=$0
13614 fi
13615 if test ! -f "$as_myself"; then
13616   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13617   { (exit 1); exit 1; }
13618 fi
13619
13620 # Work around bugs in pre-3.0 UWIN ksh.
13621 for as_var in ENV MAIL MAILPATH
13622 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13623 done
13624 PS1='$ '
13625 PS2='> '
13626 PS4='+ '
13627
13628 # NLS nuisances.
13629 LC_ALL=C
13630 export LC_ALL
13631 LANGUAGE=C
13632 export LANGUAGE
13633
13634 # Required to use basename.
13635 if expr a : '\(a\)' >/dev/null 2>&1 &&
13636    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13637   as_expr=expr
13638 else
13639   as_expr=false
13640 fi
13641
13642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13643   as_basename=basename
13644 else
13645   as_basename=false
13646 fi
13647
13648
13649 # Name of the executable.
13650 as_me=`$as_basename -- "$0" ||
13651 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13652          X"$0" : 'X\(//\)$' \| \
13653          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13654 $as_echo X/"$0" |
13655     sed '/^.*\/\([^/][^/]*\)\/*$/{
13656             s//\1/
13657             q
13658           }
13659           /^X\/\(\/\/\)$/{
13660             s//\1/
13661             q
13662           }
13663           /^X\/\(\/\).*/{
13664             s//\1/
13665             q
13666           }
13667           s/.*/./; q'`
13668
13669 # CDPATH.
13670 $as_unset CDPATH
13671
13672
13673
13674   as_lineno_1=$LINENO
13675   as_lineno_2=$LINENO
13676   test "x$as_lineno_1" != "x$as_lineno_2" &&
13677   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13678
13679   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13680   # uniformly replaced by the line number.  The first 'sed' inserts a
13681   # line-number line after each line using $LINENO; the second 'sed'
13682   # does the real work.  The second script uses 'N' to pair each
13683   # line-number line with the line containing $LINENO, and appends
13684   # trailing '-' during substitution so that $LINENO is not a special
13685   # case at line end.
13686   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13687   # scripts with optimization help from Paolo Bonzini.  Blame Lee
13688   # E. McMahon (1931-1989) for sed's syntax.  :-)
13689   sed -n '
13690     p
13691     /[$]LINENO/=
13692   ' <$as_myself |
13693     sed '
13694       s/[$]LINENO.*/&-/
13695       t lineno
13696       b
13697       :lineno
13698       N
13699       :loop
13700       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13701       t loop
13702       s/-\n.*//
13703     ' >$as_me.lineno &&
13704   chmod +x "$as_me.lineno" ||
13705     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13706    { (exit 1); exit 1; }; }
13707
13708   # Don't try to exec as it changes $[0], causing all sort of problems
13709   # (the dirname of $[0] is not the place where we might find the
13710   # original and so on.  Autoconf is especially sensitive to this).
13711   . "./$as_me.lineno"
13712   # Exit status is that of the last command.
13713   exit
13714 }
13715
13716
13717 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13718   as_dirname=dirname
13719 else
13720   as_dirname=false
13721 fi
13722
13723 ECHO_C= ECHO_N= ECHO_T=
13724 case `echo -n x` in
13725 -n*)
13726   case `echo 'x\c'` in
13727   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13728   *)   ECHO_C='\c';;
13729   esac;;
13730 *)
13731   ECHO_N='-n';;
13732 esac
13733 if expr a : '\(a\)' >/dev/null 2>&1 &&
13734    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13735   as_expr=expr
13736 else
13737   as_expr=false
13738 fi
13739
13740 rm -f conf$$ conf$$.exe conf$$.file
13741 if test -d conf$$.dir; then
13742   rm -f conf$$.dir/conf$$.file
13743 else
13744   rm -f conf$$.dir
13745   mkdir conf$$.dir 2>/dev/null
13746 fi
13747 if (echo >conf$$.file) 2>/dev/null; then
13748   if ln -s conf$$.file conf$$ 2>/dev/null; then
13749     as_ln_s='ln -s'
13750     # ... but there are two gotchas:
13751     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13752     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13753     # In both cases, we have to default to `cp -p'.
13754     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13755       as_ln_s='cp -p'
13756   elif ln conf$$.file conf$$ 2>/dev/null; then
13757     as_ln_s=ln
13758   else
13759     as_ln_s='cp -p'
13760   fi
13761 else
13762   as_ln_s='cp -p'
13763 fi
13764 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13765 rmdir conf$$.dir 2>/dev/null
13766
13767 if mkdir -p . 2>/dev/null; then
13768   as_mkdir_p=:
13769 else
13770   test -d ./-p && rmdir ./-p
13771   as_mkdir_p=false
13772 fi
13773
13774 if test -x / >/dev/null 2>&1; then
13775   as_test_x='test -x'
13776 else
13777   if ls -dL / >/dev/null 2>&1; then
13778     as_ls_L_option=L
13779   else
13780     as_ls_L_option=
13781   fi
13782   as_test_x='
13783     eval sh -c '\''
13784       if test -d "$1"; then
13785         test -d "$1/.";
13786       else
13787         case $1 in
13788         -*)set "./$1";;
13789         esac;
13790         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13791         ???[sx]*):;;*)false;;esac;fi
13792     '\'' sh
13793   '
13794 fi
13795 as_executable_p=$as_test_x
13796
13797 # Sed expression to map a string onto a valid CPP name.
13798 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13799
13800 # Sed expression to map a string onto a valid variable name.
13801 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13802
13803
13804 exec 6>&1
13805
13806 # Save the log message, to keep $[0] and so on meaningful, and to
13807 # report actual input values of CONFIG_FILES etc. instead of their
13808 # values after options handling.
13809 ac_log="
13810 This file was extended by shellinabox $as_me 2.9, which was
13811 generated by GNU Autoconf 2.63.  Invocation command line was
13812
13813   CONFIG_FILES    = $CONFIG_FILES
13814   CONFIG_HEADERS  = $CONFIG_HEADERS
13815   CONFIG_LINKS    = $CONFIG_LINKS
13816   CONFIG_COMMANDS = $CONFIG_COMMANDS
13817   $ $0 $@
13818
13819 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13820 "
13821
13822 _ACEOF
13823
13824 case $ac_config_files in *"
13825 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13826 esac
13827
13828 case $ac_config_headers in *"
13829 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13830 esac
13831
13832
13833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13834 # Files that config.status was made for.
13835 config_files="$ac_config_files"
13836 config_headers="$ac_config_headers"
13837 config_commands="$ac_config_commands"
13838
13839 _ACEOF
13840
13841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13842 ac_cs_usage="\
13843 \`$as_me' instantiates files from templates according to the
13844 current configuration.
13845
13846 Usage: $0 [OPTION]... [FILE]...
13847
13848   -h, --help       print this help, then exit
13849   -V, --version    print version number and configuration settings, then exit
13850   -q, --quiet, --silent
13851                    do not print progress messages
13852   -d, --debug      don't remove temporary files
13853       --recheck    update $as_me by reconfiguring in the same conditions
13854       --file=FILE[:TEMPLATE]
13855                    instantiate the configuration file FILE
13856       --header=FILE[:TEMPLATE]
13857                    instantiate the configuration header FILE
13858
13859 Configuration files:
13860 $config_files
13861
13862 Configuration headers:
13863 $config_headers
13864
13865 Configuration commands:
13866 $config_commands
13867
13868 Report bugs to <bug-autoconf@gnu.org>."
13869
13870 _ACEOF
13871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13872 ac_cs_version="\\
13873 shellinabox config.status 2.9
13874 configured by $0, generated by GNU Autoconf 2.63,
13875   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13876
13877 Copyright (C) 2008 Free Software Foundation, Inc.
13878 This config.status script is free software; the Free Software Foundation
13879 gives unlimited permission to copy, distribute and modify it."
13880
13881 ac_pwd='$ac_pwd'
13882 srcdir='$srcdir'
13883 INSTALL='$INSTALL'
13884 MKDIR_P='$MKDIR_P'
13885 AWK='$AWK'
13886 test -n "\$AWK" || AWK=awk
13887 _ACEOF
13888
13889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13890 # The default lists apply if the user does not specify any file.
13891 ac_need_defaults=:
13892 while test $# != 0
13893 do
13894   case $1 in
13895   --*=*)
13896     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13897     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13898     ac_shift=:
13899     ;;
13900   *)
13901     ac_option=$1
13902     ac_optarg=$2
13903     ac_shift=shift
13904     ;;
13905   esac
13906
13907   case $ac_option in
13908   # Handling of the options.
13909   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13910     ac_cs_recheck=: ;;
13911   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13912     $as_echo "$ac_cs_version"; exit ;;
13913   --debug | --debu | --deb | --de | --d | -d )
13914     debug=: ;;
13915   --file | --fil | --fi | --f )
13916     $ac_shift
13917     case $ac_optarg in
13918     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13919     esac
13920     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13921     ac_need_defaults=false;;
13922   --header | --heade | --head | --hea )
13923     $ac_shift
13924     case $ac_optarg in
13925     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13926     esac
13927     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13928     ac_need_defaults=false;;
13929   --he | --h)
13930     # Conflict between --help and --header
13931     { $as_echo "$as_me: error: ambiguous option: $1
13932 Try \`$0 --help' for more information." >&2
13933    { (exit 1); exit 1; }; };;
13934   --help | --hel | -h )
13935     $as_echo "$ac_cs_usage"; exit ;;
13936   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13937   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13938     ac_cs_silent=: ;;
13939
13940   # This is an error.
13941   -*) { $as_echo "$as_me: error: unrecognized option: $1
13942 Try \`$0 --help' for more information." >&2
13943    { (exit 1); exit 1; }; } ;;
13944
13945   *) ac_config_targets="$ac_config_targets $1"
13946      ac_need_defaults=false ;;
13947
13948   esac
13949   shift
13950 done
13951
13952 ac_configure_extra_args=
13953
13954 if $ac_cs_silent; then
13955   exec 6>/dev/null
13956   ac_configure_extra_args="$ac_configure_extra_args --silent"
13957 fi
13958
13959 _ACEOF
13960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13961 if \$ac_cs_recheck; then
13962   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13963   shift
13964   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13965   CONFIG_SHELL='$SHELL'
13966   export CONFIG_SHELL
13967   exec "\$@"
13968 fi
13969
13970 _ACEOF
13971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13972 exec 5>>config.log
13973 {
13974   echo
13975   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13976 ## Running $as_me. ##
13977 _ASBOX
13978   $as_echo "$ac_log"
13979 } >&5
13980
13981 _ACEOF
13982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13983 #
13984 # INIT-COMMANDS
13985 #
13986 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13987
13988
13989 # The HP-UX ksh and POSIX shell print the target directory to stdout
13990 # if CDPATH is set.
13991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13992
13993 sed_quote_subst='$sed_quote_subst'
13994 double_quote_subst='$double_quote_subst'
13995 delay_variable_subst='$delay_variable_subst'
13996 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13997 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13998 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13999 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14000 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14001 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14002 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14003 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14004 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14005 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14006 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14007 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14008 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14009 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14010 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14011 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14012 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14013 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14014 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14015 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14016 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14017 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14018 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14019 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14020 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14021 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14022 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14023 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14024 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14025 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14026 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14027 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14028 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14029 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14030 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14031 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14032 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14033 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14034 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14035 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14036 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14037 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14038 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14039 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14040 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14041 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14042 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14043 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14044 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14045 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14046 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14047 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14048 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14049 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14050 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14051 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14052 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14053 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14054 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14055 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14056 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14057 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14058 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14059 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14060 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14061 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14062 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14063 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14064 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14065 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14066 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14067 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14068 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14069 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14070 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14071 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14072 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14073 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14074 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14075 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14076 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14077 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14078 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14079 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14080 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14081 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14082 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14083 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14084 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14085 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14086 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14087 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14088 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14089 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14090 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14091 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14092 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14093 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14094 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14095 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14096 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14097 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14098 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14099 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14100 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14101 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14102 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14103 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14104 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14105 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14106 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14107 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14108 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14109 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14110 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14111 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14112 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14113 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14114
14115 LTCC='$LTCC'
14116 LTCFLAGS='$LTCFLAGS'
14117 compiler='$compiler_DEFAULT'
14118
14119 # Quote evaled strings.
14120 for var in SED \
14121 GREP \
14122 EGREP \
14123 FGREP \
14124 LD \
14125 NM \
14126 LN_S \
14127 lt_SP2NL \
14128 lt_NL2SP \
14129 reload_flag \
14130 OBJDUMP \
14131 deplibs_check_method \
14132 file_magic_cmd \
14133 AR \
14134 AR_FLAGS \
14135 STRIP \
14136 RANLIB \
14137 CC \
14138 CFLAGS \
14139 compiler \
14140 lt_cv_sys_global_symbol_pipe \
14141 lt_cv_sys_global_symbol_to_cdecl \
14142 lt_cv_sys_global_symbol_to_c_name_address \
14143 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14144 SHELL \
14145 ECHO \
14146 lt_prog_compiler_no_builtin_flag \
14147 lt_prog_compiler_wl \
14148 lt_prog_compiler_pic \
14149 lt_prog_compiler_static \
14150 lt_cv_prog_compiler_c_o \
14151 need_locks \
14152 DSYMUTIL \
14153 NMEDIT \
14154 LIPO \
14155 OTOOL \
14156 OTOOL64 \
14157 shrext_cmds \
14158 export_dynamic_flag_spec \
14159 whole_archive_flag_spec \
14160 compiler_needs_object \
14161 with_gnu_ld \
14162 allow_undefined_flag \
14163 no_undefined_flag \
14164 hardcode_libdir_flag_spec \
14165 hardcode_libdir_flag_spec_ld \
14166 hardcode_libdir_separator \
14167 fix_srcfile_path \
14168 exclude_expsyms \
14169 include_expsyms \
14170 file_list_spec \
14171 variables_saved_for_relink \
14172 libname_spec \
14173 library_names_spec \
14174 soname_spec \
14175 finish_eval \
14176 old_striplib \
14177 striplib; do
14178     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14179     *[\\\\\\\`\\"\\\$]*)
14180       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14181       ;;
14182     *)
14183       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14184       ;;
14185     esac
14186 done
14187
14188 # Double-quote double-evaled strings.
14189 for var in reload_cmds \
14190 old_postinstall_cmds \
14191 old_postuninstall_cmds \
14192 old_archive_cmds \
14193 extract_expsyms_cmds \
14194 old_archive_from_new_cmds \
14195 old_archive_from_expsyms_cmds \
14196 archive_cmds \
14197 archive_expsym_cmds \
14198 module_cmds \
14199 module_expsym_cmds \
14200 export_symbols_cmds \
14201 prelink_cmds \
14202 postinstall_cmds \
14203 postuninstall_cmds \
14204 finish_cmds \
14205 sys_lib_search_path_spec \
14206 sys_lib_dlsearch_path_spec; do
14207     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14208     *[\\\\\\\`\\"\\\$]*)
14209       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14210       ;;
14211     *)
14212       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14213       ;;
14214     esac
14215 done
14216
14217 # Fix-up fallback echo if it was mangled by the above quoting rules.
14218 case \$lt_ECHO in
14219 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14220   ;;
14221 esac
14222
14223 ac_aux_dir='$ac_aux_dir'
14224 xsi_shell='$xsi_shell'
14225 lt_shell_append='$lt_shell_append'
14226
14227 # See if we are running on zsh, and set the options which allow our
14228 # commands through without removal of \ escapes INIT.
14229 if test -n "\${ZSH_VERSION+set}" ; then
14230    setopt NO_GLOB_SUBST
14231 fi
14232
14233
14234     PACKAGE='$PACKAGE'
14235     VERSION='$VERSION'
14236     TIMESTAMP='$TIMESTAMP'
14237     RM='$RM'
14238     ofile='$ofile'
14239
14240
14241
14242
14243 _ACEOF
14244
14245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14246
14247 # Handling of arguments.
14248 for ac_config_target in $ac_config_targets
14249 do
14250   case $ac_config_target in
14251     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14252     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14253     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14254     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14255
14256   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14257 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14258    { (exit 1); exit 1; }; };;
14259   esac
14260 done
14261
14262
14263 # If the user did not use the arguments to specify the items to instantiate,
14264 # then the envvar interface is used.  Set only those that are not.
14265 # We use the long form for the default assignment because of an extremely
14266 # bizarre bug on SunOS 4.1.3.
14267 if $ac_need_defaults; then
14268   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14269   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14270   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14271 fi
14272
14273 # Have a temporary directory for convenience.  Make it in the build tree
14274 # simply because there is no reason against having it here, and in addition,
14275 # creating and moving files from /tmp can sometimes cause problems.
14276 # Hook for its removal unless debugging.
14277 # Note that there is a small window in which the directory will not be cleaned:
14278 # after its creation but before its name has been assigned to `$tmp'.
14279 $debug ||
14280 {
14281   tmp=
14282   trap 'exit_status=$?
14283   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14284 ' 0
14285   trap '{ (exit 1); exit 1; }' 1 2 13 15
14286 }
14287 # Create a (secure) tmp directory for tmp files.
14288
14289 {
14290   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14291   test -n "$tmp" && test -d "$tmp"
14292 }  ||
14293 {
14294   tmp=./conf$$-$RANDOM
14295   (umask 077 && mkdir "$tmp")
14296 } ||
14297 {
14298    $as_echo "$as_me: cannot create a temporary directory in ." >&2
14299    { (exit 1); exit 1; }
14300 }
14301
14302 # Set up the scripts for CONFIG_FILES section.
14303 # No need to generate them if there are no CONFIG_FILES.
14304 # This happens for instance with `./config.status config.h'.
14305 if test -n "$CONFIG_FILES"; then
14306
14307
14308 ac_cr='\r'
14309 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14310 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14311   ac_cs_awk_cr='\\r'
14312 else
14313   ac_cs_awk_cr=$ac_cr
14314 fi
14315
14316 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14317 _ACEOF
14318
14319
14320 {
14321   echo "cat >conf$$subs.awk <<_ACEOF" &&
14322   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14323   echo "_ACEOF"
14324 } >conf$$subs.sh ||
14325   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14326 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14327    { (exit 1); exit 1; }; }
14328 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14329 ac_delim='%!_!# '
14330 for ac_last_try in false false false false false :; do
14331   . ./conf$$subs.sh ||
14332     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14333 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14334    { (exit 1); exit 1; }; }
14335
14336   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14337   if test $ac_delim_n = $ac_delim_num; then
14338     break
14339   elif $ac_last_try; then
14340     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14341 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14342    { (exit 1); exit 1; }; }
14343   else
14344     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14345   fi
14346 done
14347 rm -f conf$$subs.sh
14348
14349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14351 _ACEOF
14352 sed -n '
14353 h
14354 s/^/S["/; s/!.*/"]=/
14355 p
14356 g
14357 s/^[^!]*!//
14358 :repl
14359 t repl
14360 s/'"$ac_delim"'$//
14361 t delim
14362 :nl
14363 h
14364 s/\(.\{148\}\).*/\1/
14365 t more1
14366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14367 p
14368 n
14369 b repl
14370 :more1
14371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14372 p
14373 g
14374 s/.\{148\}//
14375 t nl
14376 :delim
14377 h
14378 s/\(.\{148\}\).*/\1/
14379 t more2
14380 s/["\\]/\\&/g; s/^/"/; s/$/"/
14381 p
14382 b
14383 :more2
14384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14385 p
14386 g
14387 s/.\{148\}//
14388 t delim
14389 ' <conf$$subs.awk | sed '
14390 /^[^""]/{
14391   N
14392   s/\n//
14393 }
14394 ' >>$CONFIG_STATUS || ac_write_fail=1
14395 rm -f conf$$subs.awk
14396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14397 _ACAWK
14398 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14399   for (key in S) S_is_set[key] = 1
14400   FS = "\a"
14401
14402 }
14403 {
14404   line = $ 0
14405   nfields = split(line, field, "@")
14406   substed = 0
14407   len = length(field[1])
14408   for (i = 2; i < nfields; i++) {
14409     key = field[i]
14410     keylen = length(key)
14411     if (S_is_set[key]) {
14412       value = S[key]
14413       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14414       len += length(value) + length(field[++i])
14415       substed = 1
14416     } else
14417       len += 1 + keylen
14418   }
14419
14420   print line
14421 }
14422
14423 _ACAWK
14424 _ACEOF
14425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14427   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14428 else
14429   cat
14430 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14431   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14432 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14433    { (exit 1); exit 1; }; }
14434 _ACEOF
14435
14436 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14437 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14438 # trailing colons and then remove the whole line if VPATH becomes empty
14439 # (actually we leave an empty line to preserve line numbers).
14440 if test "x$srcdir" = x.; then
14441   ac_vpsub='/^[  ]*VPATH[        ]*=/{
14442 s/:*\$(srcdir):*/:/
14443 s/:*\${srcdir}:*/:/
14444 s/:*@srcdir@:*/:/
14445 s/^\([^=]*=[     ]*\):*/\1/
14446 s/:*$//
14447 s/^[^=]*=[       ]*$//
14448 }'
14449 fi
14450
14451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14452 fi # test -n "$CONFIG_FILES"
14453
14454 # Set up the scripts for CONFIG_HEADERS section.
14455 # No need to generate them if there are no CONFIG_HEADERS.
14456 # This happens for instance with `./config.status Makefile'.
14457 if test -n "$CONFIG_HEADERS"; then
14458 cat >"$tmp/defines.awk" <<\_ACAWK ||
14459 BEGIN {
14460 _ACEOF
14461
14462 # Transform confdefs.h into an awk script `defines.awk', embedded as
14463 # here-document in config.status, that substitutes the proper values into
14464 # config.h.in to produce config.h.
14465
14466 # Create a delimiter string that does not exist in confdefs.h, to ease
14467 # handling of long lines.
14468 ac_delim='%!_!# '
14469 for ac_last_try in false false :; do
14470   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14471   if test -z "$ac_t"; then
14472     break
14473   elif $ac_last_try; then
14474     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14475 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14476    { (exit 1); exit 1; }; }
14477   else
14478     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14479   fi
14480 done
14481
14482 # For the awk script, D is an array of macro values keyed by name,
14483 # likewise P contains macro parameters if any.  Preserve backslash
14484 # newline sequences.
14485
14486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14487 sed -n '
14488 s/.\{148\}/&'"$ac_delim"'/g
14489 t rset
14490 :rset
14491 s/^[     ]*#[    ]*define[       ][      ]*/ /
14492 t def
14493 d
14494 :def
14495 s/\\$//
14496 t bsnl
14497 s/["\\]/\\&/g
14498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14499 D["\1"]=" \3"/p
14500 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14501 d
14502 :bsnl
14503 s/["\\]/\\&/g
14504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14505 D["\1"]=" \3\\\\\\n"\\/p
14506 t cont
14507 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14508 t cont
14509 d
14510 :cont
14511 n
14512 s/.\{148\}/&'"$ac_delim"'/g
14513 t clear
14514 :clear
14515 s/\\$//
14516 t bsnlc
14517 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14518 d
14519 :bsnlc
14520 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14521 b cont
14522 ' <confdefs.h | sed '
14523 s/'"$ac_delim"'/"\\\
14524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14525
14526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14527   for (key in D) D_is_set[key] = 1
14528   FS = "\a"
14529 }
14530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14531   line = \$ 0
14532   split(line, arg, " ")
14533   if (arg[1] == "#") {
14534     defundef = arg[2]
14535     mac1 = arg[3]
14536   } else {
14537     defundef = substr(arg[1], 2)
14538     mac1 = arg[2]
14539   }
14540   split(mac1, mac2, "(") #)
14541   macro = mac2[1]
14542   prefix = substr(line, 1, index(line, defundef) - 1)
14543   if (D_is_set[macro]) {
14544     # Preserve the white space surrounding the "#".
14545     print prefix "define", macro P[macro] D[macro]
14546     next
14547   } else {
14548     # Replace #undef with comments.  This is necessary, for example,
14549     # in the case of _POSIX_SOURCE, which is predefined and required
14550     # on some systems where configure will not decide to define it.
14551     if (defundef == "undef") {
14552       print "/*", prefix defundef, macro, "*/"
14553       next
14554     }
14555   }
14556 }
14557 { print }
14558 _ACAWK
14559 _ACEOF
14560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14562 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14563    { (exit 1); exit 1; }; }
14564 fi # test -n "$CONFIG_HEADERS"
14565
14566
14567 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14568 shift
14569 for ac_tag
14570 do
14571   case $ac_tag in
14572   :[FHLC]) ac_mode=$ac_tag; continue;;
14573   esac
14574   case $ac_mode$ac_tag in
14575   :[FHL]*:*);;
14576   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14577 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14578    { (exit 1); exit 1; }; };;
14579   :[FH]-) ac_tag=-:-;;
14580   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14581   esac
14582   ac_save_IFS=$IFS
14583   IFS=:
14584   set x $ac_tag
14585   IFS=$ac_save_IFS
14586   shift
14587   ac_file=$1
14588   shift
14589
14590   case $ac_mode in
14591   :L) ac_source=$1;;
14592   :[FH])
14593     ac_file_inputs=
14594     for ac_f
14595     do
14596       case $ac_f in
14597       -) ac_f="$tmp/stdin";;
14598       *) # Look for the file first in the build tree, then in the source tree
14599          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14600          # because $ac_f cannot contain `:'.
14601          test -f "$ac_f" ||
14602            case $ac_f in
14603            [\\/$]*) false;;
14604            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14605            esac ||
14606            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14607 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14608    { (exit 1); exit 1; }; };;
14609       esac
14610       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14611       ac_file_inputs="$ac_file_inputs '$ac_f'"
14612     done
14613
14614     # Let's still pretend it is `configure' which instantiates (i.e., don't
14615     # use $as_me), people would be surprised to read:
14616     #    /* config.h.  Generated by config.status.  */
14617     configure_input='Generated from '`
14618           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14619         `' by configure.'
14620     if test x"$ac_file" != x-; then
14621       configure_input="$ac_file.  $configure_input"
14622       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14623 $as_echo "$as_me: creating $ac_file" >&6;}
14624     fi
14625     # Neutralize special characters interpreted by sed in replacement strings.
14626     case $configure_input in #(
14627     *\&* | *\|* | *\\* )
14628        ac_sed_conf_input=`$as_echo "$configure_input" |
14629        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14630     *) ac_sed_conf_input=$configure_input;;
14631     esac
14632
14633     case $ac_tag in
14634     *:-:* | *:-) cat >"$tmp/stdin" \
14635       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14636 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14637    { (exit 1); exit 1; }; } ;;
14638     esac
14639     ;;
14640   esac
14641
14642   ac_dir=`$as_dirname -- "$ac_file" ||
14643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14644          X"$ac_file" : 'X\(//\)[^/]' \| \
14645          X"$ac_file" : 'X\(//\)$' \| \
14646          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14647 $as_echo X"$ac_file" |
14648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14649             s//\1/
14650             q
14651           }
14652           /^X\(\/\/\)[^/].*/{
14653             s//\1/
14654             q
14655           }
14656           /^X\(\/\/\)$/{
14657             s//\1/
14658             q
14659           }
14660           /^X\(\/\).*/{
14661             s//\1/
14662             q
14663           }
14664           s/.*/./; q'`
14665   { as_dir="$ac_dir"
14666   case $as_dir in #(
14667   -*) as_dir=./$as_dir;;
14668   esac
14669   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14670     as_dirs=
14671     while :; do
14672       case $as_dir in #(
14673       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14674       *) as_qdir=$as_dir;;
14675       esac
14676       as_dirs="'$as_qdir' $as_dirs"
14677       as_dir=`$as_dirname -- "$as_dir" ||
14678 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14679          X"$as_dir" : 'X\(//\)[^/]' \| \
14680          X"$as_dir" : 'X\(//\)$' \| \
14681          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14682 $as_echo X"$as_dir" |
14683     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14684             s//\1/
14685             q
14686           }
14687           /^X\(\/\/\)[^/].*/{
14688             s//\1/
14689             q
14690           }
14691           /^X\(\/\/\)$/{
14692             s//\1/
14693             q
14694           }
14695           /^X\(\/\).*/{
14696             s//\1/
14697             q
14698           }
14699           s/.*/./; q'`
14700       test -d "$as_dir" && break
14701     done
14702     test -z "$as_dirs" || eval "mkdir $as_dirs"
14703   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14704 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14705    { (exit 1); exit 1; }; }; }
14706   ac_builddir=.
14707
14708 case "$ac_dir" in
14709 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14710 *)
14711   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14712   # A ".." for each directory in $ac_dir_suffix.
14713   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14714   case $ac_top_builddir_sub in
14715   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14716   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14717   esac ;;
14718 esac
14719 ac_abs_top_builddir=$ac_pwd
14720 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14721 # for backward compatibility:
14722 ac_top_builddir=$ac_top_build_prefix
14723
14724 case $srcdir in
14725   .)  # We are building in place.
14726     ac_srcdir=.
14727     ac_top_srcdir=$ac_top_builddir_sub
14728     ac_abs_top_srcdir=$ac_pwd ;;
14729   [\\/]* | ?:[\\/]* )  # Absolute name.
14730     ac_srcdir=$srcdir$ac_dir_suffix;
14731     ac_top_srcdir=$srcdir
14732     ac_abs_top_srcdir=$srcdir ;;
14733   *) # Relative name.
14734     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14735     ac_top_srcdir=$ac_top_build_prefix$srcdir
14736     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14737 esac
14738 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14739
14740
14741   case $ac_mode in
14742   :F)
14743   #
14744   # CONFIG_FILE
14745   #
14746
14747   case $INSTALL in
14748   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14749   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14750   esac
14751   ac_MKDIR_P=$MKDIR_P
14752   case $MKDIR_P in
14753   [\\/$]* | ?:[\\/]* ) ;;
14754   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14755   esac
14756 _ACEOF
14757
14758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14759 # If the template does not know about datarootdir, expand it.
14760 # FIXME: This hack should be removed a few years after 2.60.
14761 ac_datarootdir_hack=; ac_datarootdir_seen=
14762
14763 ac_sed_dataroot='
14764 /datarootdir/ {
14765   p
14766   q
14767 }
14768 /@datadir@/p
14769 /@docdir@/p
14770 /@infodir@/p
14771 /@localedir@/p
14772 /@mandir@/p
14773 '
14774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14775 *datarootdir*) ac_datarootdir_seen=yes;;
14776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14777   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14779 _ACEOF
14780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14781   ac_datarootdir_hack='
14782   s&@datadir@&$datadir&g
14783   s&@docdir@&$docdir&g
14784   s&@infodir@&$infodir&g
14785   s&@localedir@&$localedir&g
14786   s&@mandir@&$mandir&g
14787     s&\\\${datarootdir}&$datarootdir&g' ;;
14788 esac
14789 _ACEOF
14790
14791 # Neutralize VPATH when `$srcdir' = `.'.
14792 # Shell code in configure.ac might set extrasub.
14793 # FIXME: do we really want to maintain this feature?
14794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14795 ac_sed_extra="$ac_vpsub
14796 $extrasub
14797 _ACEOF
14798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14799 :t
14800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14801 s|@configure_input@|$ac_sed_conf_input|;t t
14802 s&@top_builddir@&$ac_top_builddir_sub&;t t
14803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14804 s&@srcdir@&$ac_srcdir&;t t
14805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14806 s&@top_srcdir@&$ac_top_srcdir&;t t
14807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14808 s&@builddir@&$ac_builddir&;t t
14809 s&@abs_builddir@&$ac_abs_builddir&;t t
14810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14811 s&@INSTALL@&$ac_INSTALL&;t t
14812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14813 $ac_datarootdir_hack
14814 "
14815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14816   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14817 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14818    { (exit 1); exit 1; }; }
14819
14820 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14821   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14822   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14823   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14824 which seems to be undefined.  Please make sure it is defined." >&5
14825 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14826 which seems to be undefined.  Please make sure it is defined." >&2;}
14827
14828   rm -f "$tmp/stdin"
14829   case $ac_file in
14830   -) cat "$tmp/out" && rm -f "$tmp/out";;
14831   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14832   esac \
14833   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14834 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14835    { (exit 1); exit 1; }; }
14836  ;;
14837   :H)
14838   #
14839   # CONFIG_HEADER
14840   #
14841   if test x"$ac_file" != x-; then
14842     {
14843       $as_echo "/* $configure_input  */" \
14844       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14845     } >"$tmp/config.h" \
14846       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14847 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14848    { (exit 1); exit 1; }; }
14849     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14850       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14851 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14852     else
14853       rm -f "$ac_file"
14854       mv "$tmp/config.h" "$ac_file" \
14855         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14856 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14857    { (exit 1); exit 1; }; }
14858     fi
14859   else
14860     $as_echo "/* $configure_input  */" \
14861       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14862       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14863 $as_echo "$as_me: error: could not create -" >&2;}
14864    { (exit 1); exit 1; }; }
14865   fi
14866 # Compute "$ac_file"'s index in $config_headers.
14867 _am_arg="$ac_file"
14868 _am_stamp_count=1
14869 for _am_header in $config_headers :; do
14870   case $_am_header in
14871     $_am_arg | $_am_arg:* )
14872       break ;;
14873     * )
14874       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14875   esac
14876 done
14877 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14878 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14879          X"$_am_arg" : 'X\(//\)[^/]' \| \
14880          X"$_am_arg" : 'X\(//\)$' \| \
14881          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14882 $as_echo X"$_am_arg" |
14883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14884             s//\1/
14885             q
14886           }
14887           /^X\(\/\/\)[^/].*/{
14888             s//\1/
14889             q
14890           }
14891           /^X\(\/\/\)$/{
14892             s//\1/
14893             q
14894           }
14895           /^X\(\/\).*/{
14896             s//\1/
14897             q
14898           }
14899           s/.*/./; q'`/stamp-h$_am_stamp_count
14900  ;;
14901
14902   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14903 $as_echo "$as_me: executing $ac_file commands" >&6;}
14904  ;;
14905   esac
14906
14907
14908   case $ac_file$ac_mode in
14909     "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
14910 # are listed without --file.  Let's play safe and only enable the eval
14911 # if we detect the quoting.
14912 case $CONFIG_FILES in
14913 *\'*) eval set x "$CONFIG_FILES" ;;
14914 *)   set x $CONFIG_FILES ;;
14915 esac
14916 shift
14917 for mf
14918 do
14919   # Strip MF so we end up with the name of the file.
14920   mf=`echo "$mf" | sed -e 's/:.*$//'`
14921   # Check whether this is an Automake generated Makefile or not.
14922   # We used to match only the files named `Makefile.in', but
14923   # some people rename them; so instead we look at the file content.
14924   # Grep'ing the first line is not enough: some people post-process
14925   # each Makefile.in and add a new line on top of each file to say so.
14926   # Grep'ing the whole file is not good either: AIX grep has a line
14927   # limit of 2048, but all sed's we know have understand at least 4000.
14928   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14929     dirpart=`$as_dirname -- "$mf" ||
14930 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14931          X"$mf" : 'X\(//\)[^/]' \| \
14932          X"$mf" : 'X\(//\)$' \| \
14933          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14934 $as_echo X"$mf" |
14935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14936             s//\1/
14937             q
14938           }
14939           /^X\(\/\/\)[^/].*/{
14940             s//\1/
14941             q
14942           }
14943           /^X\(\/\/\)$/{
14944             s//\1/
14945             q
14946           }
14947           /^X\(\/\).*/{
14948             s//\1/
14949             q
14950           }
14951           s/.*/./; q'`
14952   else
14953     continue
14954   fi
14955   # Extract the definition of DEPDIR, am__include, and am__quote
14956   # from the Makefile without running `make'.
14957   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14958   test -z "$DEPDIR" && continue
14959   am__include=`sed -n 's/^am__include = //p' < "$mf"`
14960   test -z "am__include" && continue
14961   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14962   # When using ansi2knr, U may be empty or an underscore; expand it
14963   U=`sed -n 's/^U = //p' < "$mf"`
14964   # Find all dependency output files, they are included files with
14965   # $(DEPDIR) in their names.  We invoke sed twice because it is the
14966   # simplest approach to changing $(DEPDIR) to its actual value in the
14967   # expansion.
14968   for file in `sed -n "
14969     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14970        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14971     # Make sure the directory exists.
14972     test -f "$dirpart/$file" && continue
14973     fdir=`$as_dirname -- "$file" ||
14974 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14975          X"$file" : 'X\(//\)[^/]' \| \
14976          X"$file" : 'X\(//\)$' \| \
14977          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14978 $as_echo X"$file" |
14979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14980             s//\1/
14981             q
14982           }
14983           /^X\(\/\/\)[^/].*/{
14984             s//\1/
14985             q
14986           }
14987           /^X\(\/\/\)$/{
14988             s//\1/
14989             q
14990           }
14991           /^X\(\/\).*/{
14992             s//\1/
14993             q
14994           }
14995           s/.*/./; q'`
14996     { as_dir=$dirpart/$fdir
14997   case $as_dir in #(
14998   -*) as_dir=./$as_dir;;
14999   esac
15000   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15001     as_dirs=
15002     while :; do
15003       case $as_dir in #(
15004       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15005       *) as_qdir=$as_dir;;
15006       esac
15007       as_dirs="'$as_qdir' $as_dirs"
15008       as_dir=`$as_dirname -- "$as_dir" ||
15009 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15010          X"$as_dir" : 'X\(//\)[^/]' \| \
15011          X"$as_dir" : 'X\(//\)$' \| \
15012          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15013 $as_echo X"$as_dir" |
15014     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15015             s//\1/
15016             q
15017           }
15018           /^X\(\/\/\)[^/].*/{
15019             s//\1/
15020             q
15021           }
15022           /^X\(\/\/\)$/{
15023             s//\1/
15024             q
15025           }
15026           /^X\(\/\).*/{
15027             s//\1/
15028             q
15029           }
15030           s/.*/./; q'`
15031       test -d "$as_dir" && break
15032     done
15033     test -z "$as_dirs" || eval "mkdir $as_dirs"
15034   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15035 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
15036    { (exit 1); exit 1; }; }; }
15037     # echo "creating $dirpart/$file"
15038     echo '# dummy' > "$dirpart/$file"
15039   done
15040 done
15041  ;;
15042     "libtool":C)
15043
15044     # See if we are running on zsh, and set the options which allow our
15045     # commands through without removal of \ escapes.
15046     if test -n "${ZSH_VERSION+set}" ; then
15047       setopt NO_GLOB_SUBST
15048     fi
15049
15050     cfgfile="${ofile}T"
15051     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15052     $RM "$cfgfile"
15053
15054     cat <<_LT_EOF >> "$cfgfile"
15055 #! $SHELL
15056
15057 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15058 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15059 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15060 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15061 #
15062 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15063 #                 2006, 2007, 2008 Free Software Foundation, Inc.
15064 #   Written by Gordon Matzigkeit, 1996
15065 #
15066 #   This file is part of GNU Libtool.
15067 #
15068 # GNU Libtool is free software; you can redistribute it and/or
15069 # modify it under the terms of the GNU General Public License as
15070 # published by the Free Software Foundation; either version 2 of
15071 # the License, or (at your option) any later version.
15072 #
15073 # As a special exception to the GNU General Public License,
15074 # if you distribute this file as part of a program or library that
15075 # is built using GNU Libtool, you may include this file under the
15076 # same distribution terms that you use for the rest of that program.
15077 #
15078 # GNU Libtool is distributed in the hope that it will be useful,
15079 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15080 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15081 # GNU General Public License for more details.
15082 #
15083 # You should have received a copy of the GNU General Public License
15084 # along with GNU Libtool; see the file COPYING.  If not, a copy
15085 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15086 # obtained by writing to the Free Software Foundation, Inc.,
15087 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15088
15089
15090 # The names of the tagged configurations supported by this script.
15091 available_tags=""
15092
15093 # ### BEGIN LIBTOOL CONFIG
15094
15095 # Which release of libtool.m4 was used?
15096 macro_version=$macro_version
15097 macro_revision=$macro_revision
15098
15099 # Whether or not to build shared libraries.
15100 build_libtool_libs=$enable_shared
15101
15102 # Whether or not to build static libraries.
15103 build_old_libs=$enable_static
15104
15105 # What type of objects to build.
15106 pic_mode=$pic_mode
15107
15108 # Whether or not to optimize for fast installation.
15109 fast_install=$enable_fast_install
15110
15111 # The host system.
15112 host_alias=$host_alias
15113 host=$host
15114 host_os=$host_os
15115
15116 # The build system.
15117 build_alias=$build_alias
15118 build=$build
15119 build_os=$build_os
15120
15121 # A sed program that does not truncate output.
15122 SED=$lt_SED
15123
15124 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15125 Xsed="\$SED -e 1s/^X//"
15126
15127 # A grep program that handles long lines.
15128 GREP=$lt_GREP
15129
15130 # An ERE matcher.
15131 EGREP=$lt_EGREP
15132
15133 # A literal string matcher.
15134 FGREP=$lt_FGREP
15135
15136 # A BSD- or MS-compatible name lister.
15137 NM=$lt_NM
15138
15139 # Whether we need soft or hard links.
15140 LN_S=$lt_LN_S
15141
15142 # What is the maximum length of a command?
15143 max_cmd_len=$max_cmd_len
15144
15145 # Object file suffix (normally "o").
15146 objext=$ac_objext
15147
15148 # Executable file suffix (normally "").
15149 exeext=$exeext
15150
15151 # whether the shell understands "unset".
15152 lt_unset=$lt_unset
15153
15154 # turn spaces into newlines.
15155 SP2NL=$lt_lt_SP2NL
15156
15157 # turn newlines into spaces.
15158 NL2SP=$lt_lt_NL2SP
15159
15160 # How to create reloadable object files.
15161 reload_flag=$lt_reload_flag
15162 reload_cmds=$lt_reload_cmds
15163
15164 # An object symbol dumper.
15165 OBJDUMP=$lt_OBJDUMP
15166
15167 # Method to check whether dependent libraries are shared objects.
15168 deplibs_check_method=$lt_deplibs_check_method
15169
15170 # Command to use when deplibs_check_method == "file_magic".
15171 file_magic_cmd=$lt_file_magic_cmd
15172
15173 # The archiver.
15174 AR=$lt_AR
15175 AR_FLAGS=$lt_AR_FLAGS
15176
15177 # A symbol stripping program.
15178 STRIP=$lt_STRIP
15179
15180 # Commands used to install an old-style archive.
15181 RANLIB=$lt_RANLIB
15182 old_postinstall_cmds=$lt_old_postinstall_cmds
15183 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15184
15185 # A C compiler.
15186 LTCC=$lt_CC
15187
15188 # LTCC compiler flags.
15189 LTCFLAGS=$lt_CFLAGS
15190
15191 # Take the output of nm and produce a listing of raw symbols and C names.
15192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15193
15194 # Transform the output of nm in a proper C declaration.
15195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15196
15197 # Transform the output of nm in a C name address pair.
15198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15199
15200 # Transform the output of nm in a C name address pair when lib prefix is needed.
15201 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15202
15203 # The name of the directory that contains temporary libtool files.
15204 objdir=$objdir
15205
15206 # Shell to use when invoking shell scripts.
15207 SHELL=$lt_SHELL
15208
15209 # An echo program that does not interpret backslashes.
15210 ECHO=$lt_ECHO
15211
15212 # Used to examine libraries when file_magic_cmd begins with "file".
15213 MAGIC_CMD=$MAGIC_CMD
15214
15215 # Must we lock files when doing compilation?
15216 need_locks=$lt_need_locks
15217
15218 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15219 DSYMUTIL=$lt_DSYMUTIL
15220
15221 # Tool to change global to local symbols on Mac OS X.
15222 NMEDIT=$lt_NMEDIT
15223
15224 # Tool to manipulate fat objects and archives on Mac OS X.
15225 LIPO=$lt_LIPO
15226
15227 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15228 OTOOL=$lt_OTOOL
15229
15230 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15231 OTOOL64=$lt_OTOOL64
15232
15233 # Old archive suffix (normally "a").
15234 libext=$libext
15235
15236 # Shared library suffix (normally ".so").
15237 shrext_cmds=$lt_shrext_cmds
15238
15239 # The commands to extract the exported symbol list from a shared archive.
15240 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15241
15242 # Variables whose values should be saved in libtool wrapper scripts and
15243 # restored at link time.
15244 variables_saved_for_relink=$lt_variables_saved_for_relink
15245
15246 # Do we need the "lib" prefix for modules?
15247 need_lib_prefix=$need_lib_prefix
15248
15249 # Do we need a version for libraries?
15250 need_version=$need_version
15251
15252 # Library versioning type.
15253 version_type=$version_type
15254
15255 # Shared library runtime path variable.
15256 runpath_var=$runpath_var
15257
15258 # Shared library path variable.
15259 shlibpath_var=$shlibpath_var
15260
15261 # Is shlibpath searched before the hard-coded library search path?
15262 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15263
15264 # Format of library name prefix.
15265 libname_spec=$lt_libname_spec
15266
15267 # List of archive names.  First name is the real one, the rest are links.
15268 # The last name is the one that the linker finds with -lNAME
15269 library_names_spec=$lt_library_names_spec
15270
15271 # The coded name of the library, if different from the real name.
15272 soname_spec=$lt_soname_spec
15273
15274 # Command to use after installation of a shared archive.
15275 postinstall_cmds=$lt_postinstall_cmds
15276
15277 # Command to use after uninstallation of a shared archive.
15278 postuninstall_cmds=$lt_postuninstall_cmds
15279
15280 # Commands used to finish a libtool library installation in a directory.
15281 finish_cmds=$lt_finish_cmds
15282
15283 # As "finish_cmds", except a single script fragment to be evaled but
15284 # not shown.
15285 finish_eval=$lt_finish_eval
15286
15287 # Whether we should hardcode library paths into libraries.
15288 hardcode_into_libs=$hardcode_into_libs
15289
15290 # Compile-time system search path for libraries.
15291 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15292
15293 # Run-time system search path for libraries.
15294 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15295
15296 # Whether dlopen is supported.
15297 dlopen_support=$enable_dlopen
15298
15299 # Whether dlopen of programs is supported.
15300 dlopen_self=$enable_dlopen_self
15301
15302 # Whether dlopen of statically linked programs is supported.
15303 dlopen_self_static=$enable_dlopen_self_static
15304
15305 # Commands to strip libraries.
15306 old_striplib=$lt_old_striplib
15307 striplib=$lt_striplib
15308
15309
15310 # The linker used to build libraries.
15311 LD=$lt_LD
15312
15313 # Commands used to build an old-style archive.
15314 old_archive_cmds=$lt_old_archive_cmds
15315
15316 # A language specific compiler.
15317 CC=$lt_compiler
15318
15319 # Is the compiler the GNU compiler?
15320 with_gcc=$GCC
15321
15322 # Compiler flag to turn off builtin functions.
15323 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15324
15325 # How to pass a linker flag through the compiler.
15326 wl=$lt_lt_prog_compiler_wl
15327
15328 # Additional compiler flags for building library objects.
15329 pic_flag=$lt_lt_prog_compiler_pic
15330
15331 # Compiler flag to prevent dynamic linking.
15332 link_static_flag=$lt_lt_prog_compiler_static
15333
15334 # Does compiler simultaneously support -c and -o options?
15335 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15336
15337 # Whether or not to add -lc for building shared libraries.
15338 build_libtool_need_lc=$archive_cmds_need_lc
15339
15340 # Whether or not to disallow shared libs when runtime libs are static.
15341 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15342
15343 # Compiler flag to allow reflexive dlopens.
15344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15345
15346 # Compiler flag to generate shared objects directly from archives.
15347 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15348
15349 # Whether the compiler copes with passing no objects directly.
15350 compiler_needs_object=$lt_compiler_needs_object
15351
15352 # Create an old-style archive from a shared archive.
15353 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15354
15355 # Create a temporary old-style archive to link instead of a shared archive.
15356 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15357
15358 # Commands used to build a shared archive.
15359 archive_cmds=$lt_archive_cmds
15360 archive_expsym_cmds=$lt_archive_expsym_cmds
15361
15362 # Commands used to build a loadable module if different from building
15363 # a shared archive.
15364 module_cmds=$lt_module_cmds
15365 module_expsym_cmds=$lt_module_expsym_cmds
15366
15367 # Whether we are building with GNU ld or not.
15368 with_gnu_ld=$lt_with_gnu_ld
15369
15370 # Flag that allows shared libraries with undefined symbols to be built.
15371 allow_undefined_flag=$lt_allow_undefined_flag
15372
15373 # Flag that enforces no undefined symbols.
15374 no_undefined_flag=$lt_no_undefined_flag
15375
15376 # Flag to hardcode \$libdir into a binary during linking.
15377 # This must work even if \$libdir does not exist
15378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15379
15380 # If ld is used when linking, flag to hardcode \$libdir into a binary
15381 # during linking.  This must work even if \$libdir does not exist.
15382 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15383
15384 # Whether we need a single "-rpath" flag with a separated argument.
15385 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15386
15387 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15388 # DIR into the resulting binary.
15389 hardcode_direct=$hardcode_direct
15390
15391 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15392 # DIR into the resulting binary and the resulting library dependency is
15393 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15394 # library is relocated.
15395 hardcode_direct_absolute=$hardcode_direct_absolute
15396
15397 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15398 # into the resulting binary.
15399 hardcode_minus_L=$hardcode_minus_L
15400
15401 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15402 # into the resulting binary.
15403 hardcode_shlibpath_var=$hardcode_shlibpath_var
15404
15405 # Set to "yes" if building a shared library automatically hardcodes DIR
15406 # into the library and all subsequent libraries and executables linked
15407 # against it.
15408 hardcode_automatic=$hardcode_automatic
15409
15410 # Set to yes if linker adds runtime paths of dependent libraries
15411 # to runtime path list.
15412 inherit_rpath=$inherit_rpath
15413
15414 # Whether libtool must link a program against all its dependency libraries.
15415 link_all_deplibs=$link_all_deplibs
15416
15417 # Fix the shell variable \$srcfile for the compiler.
15418 fix_srcfile_path=$lt_fix_srcfile_path
15419
15420 # Set to "yes" if exported symbols are required.
15421 always_export_symbols=$always_export_symbols
15422
15423 # The commands to list exported symbols.
15424 export_symbols_cmds=$lt_export_symbols_cmds
15425
15426 # Symbols that should not be listed in the preloaded symbols.
15427 exclude_expsyms=$lt_exclude_expsyms
15428
15429 # Symbols that must always be exported.
15430 include_expsyms=$lt_include_expsyms
15431
15432 # Commands necessary for linking programs (against libraries) with templates.
15433 prelink_cmds=$lt_prelink_cmds
15434
15435 # Specify filename containing input files.
15436 file_list_spec=$lt_file_list_spec
15437
15438 # How to hardcode a shared library path into an executable.
15439 hardcode_action=$hardcode_action
15440
15441 # ### END LIBTOOL CONFIG
15442
15443 _LT_EOF
15444
15445   case $host_os in
15446   aix3*)
15447     cat <<\_LT_EOF >> "$cfgfile"
15448 # AIX sometimes has problems with the GCC collect2 program.  For some
15449 # reason, if we set the COLLECT_NAMES environment variable, the problems
15450 # vanish in a puff of smoke.
15451 if test "X${COLLECT_NAMES+set}" != Xset; then
15452   COLLECT_NAMES=
15453   export COLLECT_NAMES
15454 fi
15455 _LT_EOF
15456     ;;
15457   esac
15458
15459
15460 ltmain="$ac_aux_dir/ltmain.sh"
15461
15462
15463   # We use sed instead of cat because bash on DJGPP gets confused if
15464   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15465   # text mode, it properly converts lines to CR/LF.  This bash problem
15466   # is reportedly fixed, but why not run on old versions too?
15467   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15468     || (rm -f "$cfgfile"; exit 1)
15469
15470   case $xsi_shell in
15471   yes)
15472     cat << \_LT_EOF >> "$cfgfile"
15473
15474 # func_dirname file append nondir_replacement
15475 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15476 # otherwise set result to NONDIR_REPLACEMENT.
15477 func_dirname ()
15478 {
15479   case ${1} in
15480     */*) func_dirname_result="${1%/*}${2}" ;;
15481     *  ) func_dirname_result="${3}" ;;
15482   esac
15483 }
15484
15485 # func_basename file
15486 func_basename ()
15487 {
15488   func_basename_result="${1##*/}"
15489 }
15490
15491 # func_dirname_and_basename file append nondir_replacement
15492 # perform func_basename and func_dirname in a single function
15493 # call:
15494 #   dirname:  Compute the dirname of FILE.  If nonempty,
15495 #             add APPEND to the result, otherwise set result
15496 #             to NONDIR_REPLACEMENT.
15497 #             value returned in "$func_dirname_result"
15498 #   basename: Compute filename of FILE.
15499 #             value retuned in "$func_basename_result"
15500 # Implementation must be kept synchronized with func_dirname
15501 # and func_basename. For efficiency, we do not delegate to
15502 # those functions but instead duplicate the functionality here.
15503 func_dirname_and_basename ()
15504 {
15505   case ${1} in
15506     */*) func_dirname_result="${1%/*}${2}" ;;
15507     *  ) func_dirname_result="${3}" ;;
15508   esac
15509   func_basename_result="${1##*/}"
15510 }
15511
15512 # func_stripname prefix suffix name
15513 # strip PREFIX and SUFFIX off of NAME.
15514 # PREFIX and SUFFIX must not contain globbing or regex special
15515 # characters, hashes, percent signs, but SUFFIX may contain a leading
15516 # dot (in which case that matches only a dot).
15517 func_stripname ()
15518 {
15519   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15520   # positional parameters, so assign one to ordinary parameter first.
15521   func_stripname_result=${3}
15522   func_stripname_result=${func_stripname_result#"${1}"}
15523   func_stripname_result=${func_stripname_result%"${2}"}
15524 }
15525
15526 # func_opt_split
15527 func_opt_split ()
15528 {
15529   func_opt_split_opt=${1%%=*}
15530   func_opt_split_arg=${1#*=}
15531 }
15532
15533 # func_lo2o object
15534 func_lo2o ()
15535 {
15536   case ${1} in
15537     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15538     *)    func_lo2o_result=${1} ;;
15539   esac
15540 }
15541
15542 # func_xform libobj-or-source
15543 func_xform ()
15544 {
15545   func_xform_result=${1%.*}.lo
15546 }
15547
15548 # func_arith arithmetic-term...
15549 func_arith ()
15550 {
15551   func_arith_result=$(( $* ))
15552 }
15553
15554 # func_len string
15555 # STRING may not start with a hyphen.
15556 func_len ()
15557 {
15558   func_len_result=${#1}
15559 }
15560
15561 _LT_EOF
15562     ;;
15563   *) # Bourne compatible functions.
15564     cat << \_LT_EOF >> "$cfgfile"
15565
15566 # func_dirname file append nondir_replacement
15567 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15568 # otherwise set result to NONDIR_REPLACEMENT.
15569 func_dirname ()
15570 {
15571   # Extract subdirectory from the argument.
15572   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15573   if test "X$func_dirname_result" = "X${1}"; then
15574     func_dirname_result="${3}"
15575   else
15576     func_dirname_result="$func_dirname_result${2}"
15577   fi
15578 }
15579
15580 # func_basename file
15581 func_basename ()
15582 {
15583   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15584 }
15585
15586
15587 # func_stripname prefix suffix name
15588 # strip PREFIX and SUFFIX off of NAME.
15589 # PREFIX and SUFFIX must not contain globbing or regex special
15590 # characters, hashes, percent signs, but SUFFIX may contain a leading
15591 # dot (in which case that matches only a dot).
15592 # func_strip_suffix prefix name
15593 func_stripname ()
15594 {
15595   case ${2} in
15596     .*) func_stripname_result=`$ECHO "X${3}" \
15597            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15598     *)  func_stripname_result=`$ECHO "X${3}" \
15599            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15600   esac
15601 }
15602
15603 # sed scripts:
15604 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15605 my_sed_long_arg='1s/^-[^=]*=//'
15606
15607 # func_opt_split
15608 func_opt_split ()
15609 {
15610   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15611   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15612 }
15613
15614 # func_lo2o object
15615 func_lo2o ()
15616 {
15617   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15618 }
15619
15620 # func_xform libobj-or-source
15621 func_xform ()
15622 {
15623   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15624 }
15625
15626 # func_arith arithmetic-term...
15627 func_arith ()
15628 {
15629   func_arith_result=`expr "$@"`
15630 }
15631
15632 # func_len string
15633 # STRING may not start with a hyphen.
15634 func_len ()
15635 {
15636   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15637 }
15638
15639 _LT_EOF
15640 esac
15641
15642 case $lt_shell_append in
15643   yes)
15644     cat << \_LT_EOF >> "$cfgfile"
15645
15646 # func_append var value
15647 # Append VALUE to the end of shell variable VAR.
15648 func_append ()
15649 {
15650   eval "$1+=\$2"
15651 }
15652 _LT_EOF
15653     ;;
15654   *)
15655     cat << \_LT_EOF >> "$cfgfile"
15656
15657 # func_append var value
15658 # Append VALUE to the end of shell variable VAR.
15659 func_append ()
15660 {
15661   eval "$1=\$$1\$2"
15662 }
15663
15664 _LT_EOF
15665     ;;
15666   esac
15667
15668
15669   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15670     || (rm -f "$cfgfile"; exit 1)
15671
15672   mv -f "$cfgfile" "$ofile" ||
15673     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15674   chmod +x "$ofile"
15675
15676  ;;
15677
15678   esac
15679 done # for ac_tag
15680
15681
15682 { (exit 0); exit 0; }
15683 _ACEOF
15684 chmod +x $CONFIG_STATUS
15685 ac_clean_files=$ac_clean_files_save
15686
15687 test $ac_write_fail = 0 ||
15688   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15689 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15690    { (exit 1); exit 1; }; }
15691
15692
15693 # configure is writing to config.log, and then calls config.status.
15694 # config.status does its own redirection, appending to config.log.
15695 # Unfortunately, on DOS this fails, as config.log is still kept open
15696 # by configure, so config.status won't be able to write to it; its
15697 # output is simply discarded.  So we exec the FD to /dev/null,
15698 # effectively closing config.log, so it can be properly (re)opened and
15699 # appended to by config.status.  When coming back to configure, we
15700 # need to make the FD available again.
15701 if test "$no_create" != yes; then
15702   ac_cs_success=:
15703   ac_config_status_args=
15704   test "$silent" = yes &&
15705     ac_config_status_args="$ac_config_status_args --quiet"
15706   exec 5>/dev/null
15707   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15708   exec 5>>config.log
15709   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15710   # would make configure fail if this is the last instruction.
15711   $ac_cs_success || { (exit 1); exit 1; }
15712 fi
15713 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15714   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15715 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15716 fi
15717
This page took 1.231468 seconds and 5 git commands to generate.